s/CSR_Ghc/CSR_NoRegs/
[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.2svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 INTERNAL_PREFIX
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 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
771 HAVE_PTHREAD
772 HUGE_VAL_SANITY
773 MMAP_FILE
774 SHLIBEXT
775 SHLIBPATH_VAR
776 LLVM_PREFIX
777 LLVM_BINDIR
778 LLVM_LIBDIR
779 LLVM_DATADIR
780 LLVM_DOCSDIR
781 LLVM_ETCDIR
782 LLVM_INCLUDEDIR
783 LLVM_INFODIR
784 LLVM_MANDIR
785 LLVM_CONFIGTIME
786 BINDINGS_TO_BUILD
787 ALL_BINDINGS
788 OCAML_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
790 RPATH
791 RDYNAMIC
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 CPP'
806 ac_subdirs_all='projects/llvm-gcc
807 projects/test-suite
808 projects/llvm-test
809 projects/poolalloc
810 projects/llvm-poolalloc
811 projects/sample
812 projects/privbracket
813 projects/llvm-stacker
814 projects/llvm-reopt
815 projects/llvm-java
816 projects/llvm-tv
817 projects/safecode
818 projects/llvm-kernel
819 tools/polly'
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945    { (exit 1); exit 1; }; }
946     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947     eval enable_$ac_feature=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package| sed 's/-/_/g'`
1144     eval with_$ac_package=\$ac_optarg ;;
1145
1146   -without-* | --without-*)
1147     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package | sed 's/-/_/g'`
1153     eval with_$ac_package=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175    { (exit 1); exit 1; }; }
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183    { (exit 1); exit 1; }; }
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   { echo "$as_me: error: missing argument to $ac_option" >&2
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 # Be sure to have absolute directory names.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216    { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   { echo "$as_me: error: Working directory cannot be determined" >&2
1247    { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   { echo "$as_me: error: pwd does not report name of working directory" >&2
1250    { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$0" : 'X\(//\)[^/]' \| \
1260          X"$0" : 'X\(//\)$' \| \
1261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295    { (exit 1); exit 1; }; }
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR           user executables [EPREFIX/bin]
1356   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR       program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR           object code libraries [EPREFIX/lib]
1362   --includedir=DIR       C header files [PREFIX/include]
1363   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR          info documentation [DATAROOTDIR/info]
1367   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR           man documentation [DATAROOTDIR/man]
1369   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1370   --htmldir=DIR          html documentation [DOCDIR]
1371   --dvidir=DIR           dvi documentation [DOCDIR]
1372   --pdfdir=DIR           pdf documentation [DOCDIR]
1373   --psdir=DIR            ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-polly          Use polly if available (default is YES)
1395   --enable-libcpp         Use libc++ if available (default is NO)
1396   --enable-optimized      Compile with optimizations enabled (default is NO)
1397   --enable-profiling      Compile with profiling enabled (default is NO)
1398   --enable-assertions     Compile with assertion checks enabled (default is
1399                           YES)
1400   --enable-expensive-checks
1401                           Compile with expensive debug checks enabled (default
1402                           is NO)
1403   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1404                           NO)
1405   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1406                           optimization is on and YES if it's off)
1407   --enable-jit            Enable Just In Time Compiling (default is YES)
1408   --enable-docs           Build documents (default is YES)
1409   --enable-doxygen        Build doxygen documentation (default is NO)
1410   --enable-threads        Use threads if available (default is YES)
1411   --enable-pthreads       Use pthreads if available (default is YES)
1412   --enable-pic            Build LLVM with Position Independent Code (default
1413                           is YES)
1414   --enable-shared         Build a shared library and link tools against it
1415                           (default is NO)
1416   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1417                           Win32 DLL (default is NO)
1418   --enable-timestamps     Enable embedding timestamp information in build
1419                           (default is YES)
1420   --enable-targets        Build specific host targets: all or
1421                           target1,target2,... Valid targets are: host, x86,
1422                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423                           xcore, msp430, ptx, nvptx, and cpp (default=all)
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-gcc-toolchain    Directory where gcc is installed.
1445   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1446   --with-binutils-include Specify path to binutils/include/ containing
1447                           plugin-api.h file for gold plugin.
1448   --with-bug-report-url   Specify the URL where bug reports should be
1449                           submitted (default=http://llvm.org/bugs/)
1450   --with-internal-prefix  Installation directory for internal files
1451   --with-tclinclude       directory where tcl headers are
1452   --with-udis86=<path>    Use udis86 external x86 disassembler library
1453   --with-oprofile=<prefix>
1454                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1455   --with-intel-jitevents=<vtune-amplifier-dir>
1456                           Specify location of run-time support library for
1457                           Intel JIT API
1458                           (default=/opt/intel/vtune_amplifier_xe_2011)
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466               you have headers in a nonstandard directory <include dir>
1467   CXX         C++ compiler command
1468   CXXFLAGS    C++ compiler flags
1469   CPP         C preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <http://llvm.org/bugs/>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" || continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 LLVM configure 3.2svn
1536 generated by GNU Autoconf 2.60
1537
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542
1543 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1544 _ACEOF
1545   exit
1546 fi
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1550
1551 It was created by LLVM $as_me 3.2svn, which was
1552 generated by GNU Autoconf 2.60.  Invocation command line was
1553
1554   $ $0 $@
1555
1556 _ACEOF
1557 exec 5>>config.log
1558 {
1559 cat <<_ASUNAME
1560 ## --------- ##
1561 ## Platform. ##
1562 ## --------- ##
1563
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1572
1573 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1574 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1577 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1578 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1579 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1580
1581 _ASUNAME
1582
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586   IFS=$as_save_IFS
1587   test -z "$as_dir" && as_dir=.
1588   echo "PATH: $as_dir"
1589 done
1590 IFS=$as_save_IFS
1591
1592 } >&5
1593
1594 cat >&5 <<_ACEOF
1595
1596
1597 ## ----------- ##
1598 ## Core tests. ##
1599 ## ----------- ##
1600
1601 _ACEOF
1602
1603
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_configure_args=
1610 ac_configure_args0=
1611 ac_configure_args1=
1612 ac_must_keep_next=false
1613 for ac_pass in 1 2
1614 do
1615   for ac_arg
1616   do
1617     case $ac_arg in
1618     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620     | -silent | --silent | --silen | --sile | --sil)
1621       continue ;;
1622     *\'*)
1623       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624     esac
1625     case $ac_pass in
1626     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627     2)
1628       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629       if test $ac_must_keep_next = true; then
1630         ac_must_keep_next=false # Got value, back to normal.
1631       else
1632         case $ac_arg in
1633           *=* | --config-cache | -C | -disable-* | --disable-* \
1634           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636           | -with-* | --with-* | -without-* | --without-* | --x)
1637             case "$ac_configure_args0 " in
1638               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639             esac
1640             ;;
1641           -* ) ac_must_keep_next=true ;;
1642         esac
1643       fi
1644       ac_configure_args="$ac_configure_args '$ac_arg'"
1645       ;;
1646     esac
1647   done
1648 done
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log.  We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658   # Save into config.log some information that might help in debugging.
1659   {
1660     echo
1661
1662     cat <<\_ASBOX
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1666 _ASBOX
1667     echo
1668     # The following way of writing the cache mishandles newlines in values,
1669 (
1670   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671     eval ac_val=\$$ac_var
1672     case $ac_val in #(
1673     *${as_nl}*)
1674       case $ac_var in #(
1675       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677       esac
1678       case $ac_var in #(
1679       _ | IFS | as_nl) ;; #(
1680       *) $as_unset $ac_var ;;
1681       esac ;;
1682     esac
1683   done
1684   (set) 2>&1 |
1685     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686     *${as_nl}ac_space=\ *)
1687       sed -n \
1688         "s/'\''/'\''\\\\'\'''\''/g;
1689           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690       ;; #(
1691     *)
1692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1693       ;;
1694     esac |
1695     sort
1696 )
1697     echo
1698
1699     cat <<\_ASBOX
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1703 _ASBOX
1704     echo
1705     for ac_var in $ac_subst_vars
1706     do
1707       eval ac_val=\$$ac_var
1708       case $ac_val in
1709       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710       esac
1711       echo "$ac_var='\''$ac_val'\''"
1712     done | sort
1713     echo
1714
1715     if test -n "$ac_subst_files"; then
1716       cat <<\_ASBOX
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1720 _ASBOX
1721       echo
1722       for ac_var in $ac_subst_files
1723       do
1724         eval ac_val=\$$ac_var
1725         case $ac_val in
1726         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727         esac
1728         echo "$ac_var='\''$ac_val'\''"
1729       done | sort
1730       echo
1731     fi
1732
1733     if test -s confdefs.h; then
1734       cat <<\_ASBOX
1735 ## ----------- ##
1736 ## confdefs.h. ##
1737 ## ----------- ##
1738 _ASBOX
1739       echo
1740       cat confdefs.h
1741       echo
1742     fi
1743     test "$ac_signal" != 0 &&
1744       echo "$as_me: caught signal $ac_signal"
1745     echo "$as_me: exit $exit_status"
1746   } >&5
1747   rm -f core *.core core.conftest.* &&
1748     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749     exit $exit_status
1750 ' 0
1751 for ac_signal in 1 2 13 15; do
1752   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 done
1754 ac_signal=0
1755
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1758
1759 # Predefined preprocessor variables.
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 _ACEOF
1784
1785
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789   set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 else
1793   set x "$ac_default_prefix/share/config.site" \
1794         "$ac_default_prefix/etc/config.site"
1795 fi
1796 shift
1797 for ac_site_file
1798 do
1799   if test -r "$ac_site_file"; then
1800     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802     sed 's/^/| /' "$ac_site_file" >&5
1803     . "$ac_site_file"
1804   fi
1805 done
1806
1807 if test -r "$cache_file"; then
1808   # Some versions of bash will fail to source /dev/null (special
1809   # files actually), so we avoid doing that.
1810   if test -f "$cache_file"; then
1811     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1813     case $cache_file in
1814       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815       *)                      . "./$cache_file";;
1816     esac
1817   fi
1818 else
1819   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1821   >$cache_file
1822 fi
1823
1824 # Check that the precious variables saved in the cache have kept the same
1825 # value.
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829   eval ac_new_set=\$ac_env_${ac_var}_set
1830   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831   eval ac_new_val=\$ac_env_${ac_var}_value
1832   case $ac_old_set,$ac_new_set in
1833     set,)
1834       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836       ac_cache_corrupted=: ;;
1837     ,set)
1838       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,);;
1842     *)
1843       if test "x$ac_old_val" != "x$ac_new_val"; then
1844         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1847 echo "$as_me:   former value:  $ac_old_val" >&2;}
1848         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1849 echo "$as_me:   current value: $ac_new_val" >&2;}
1850         ac_cache_corrupted=:
1851       fi;;
1852   esac
1853   # Pass precious variables to config.status.
1854   if test "$ac_new_set" = set; then
1855     case $ac_new_val in
1856     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857     *) ac_arg=$ac_var=$ac_new_val ;;
1858     esac
1859     case " $ac_configure_args " in
1860       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1861       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862     esac
1863   fi
1864 done
1865 if $ac_cache_corrupted; then
1866   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870    { (exit 1); exit 1; }; }
1871 fi
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
1897 ac_ext=c
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MAJOR 3
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<\_ACEOF
1911 #define LLVM_VERSION_MINOR 2
1912 _ACEOF
1913
1914
1915 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1916
1917
1918
1919
1920
1921
1922
1923 ac_aux_dir=
1924 for ac_dir in autoconf "$srcdir"/autoconf; do
1925   if test -f "$ac_dir/install-sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install-sh -c"
1928     break
1929   elif test -f "$ac_dir/install.sh"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/install.sh -c"
1932     break
1933   elif test -f "$ac_dir/shtool"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/shtool install -c"
1936     break
1937   fi
1938 done
1939 if test -z "$ac_aux_dir"; then
1940   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1941 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 # These three variables are undocumented and unsupported,
1946 # and are intended to be withdrawn in a future Autoconf release.
1947 # They can cause serious problems if a builder's source tree is in a directory
1948 # whose full name contains unusual characters.
1949 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1950 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1951 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1952
1953
1954
1955 if test ${srcdir} != "." ; then
1956   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1957     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1958 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1959    { (exit 1); exit 1; }; }
1960   fi
1961 fi
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 if test -n "$ac_tool_prefix"; then
1969   for ac_prog in clang llvm-gcc gcc
1970   do
1971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1988     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994 IFS=$as_save_IFS
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2002 else
2003   { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2005 fi
2006
2007
2008     test -n "$CC" && break
2009   done
2010 fi
2011 if test -z "$CC"; then
2012   ac_ct_CC=$CC
2013   for ac_prog in clang llvm-gcc gcc
2014 do
2015   # Extract the first word of "$ac_prog", so it can be a program name with args.
2016 set dummy $ac_prog; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   if test -n "$ac_ct_CC"; then
2023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028   IFS=$as_save_IFS
2029   test -z "$as_dir" && as_dir=.
2030   for ac_exec_ext in '' $ac_executable_extensions; do
2031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2032     ac_cv_prog_ac_ct_CC="$ac_prog"
2033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034     break 2
2035   fi
2036 done
2037 done
2038 IFS=$as_save_IFS
2039
2040 fi
2041 fi
2042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043 if test -n "$ac_ct_CC"; then
2044   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045 echo "${ECHO_T}$ac_ct_CC" >&6; }
2046 else
2047   { echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6; }
2049 fi
2050
2051
2052   test -n "$ac_ct_CC" && break
2053 done
2054
2055   if test "x$ac_ct_CC" = x; then
2056     CC=""
2057   else
2058     case $cross_compiling:$ac_tool_warned in
2059 yes:)
2060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet.  If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&5
2063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet.  If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2066 ac_tool_warned=yes ;;
2067 esac
2068     CC=$ac_ct_CC
2069   fi
2070 fi
2071
2072
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077    { (exit 1); exit 1; }; }
2078
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO: checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (ac_try="$ac_compiler --version >&5"
2083 case "(($ac_try" in
2084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085   *) ac_try_echo=$ac_try;;
2086 esac
2087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2088   (eval "$ac_compiler --version >&5") 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (ac_try="$ac_compiler -v >&5"
2093 case "(($ac_try" in
2094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095   *) ac_try_echo=$ac_try;;
2096 esac
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098   (eval "$ac_compiler -v >&5") 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102 { (ac_try="$ac_compiler -V >&5"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108   (eval "$ac_compiler -V >&5") 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112
2113 cat >conftest.$ac_ext <<_ACEOF
2114 /* confdefs.h.  */
2115 _ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h.  */
2119
2120 int
2121 main ()
2122 {
2123
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 ac_clean_files_save=$ac_clean_files
2129 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2130 # Try to create an executable without -o first, disregard a.out.
2131 # It will help us diagnose broken compilers, and finding out an intuition
2132 # of exeext.
2133 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2134 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2135 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136 #
2137 # List of possible output files, starting from the most likely.
2138 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2139 # only as a last resort.  b.out is created by i960 compilers.
2140 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2141 #
2142 # The IRIX 6 linker writes into existing files which may not be
2143 # executable, retaining their permissions.  Remove them first so a
2144 # subsequent execution test works.
2145 ac_rmfiles=
2146 for ac_file in $ac_files
2147 do
2148   case $ac_file in
2149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2150     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2151   esac
2152 done
2153 rm -f $ac_rmfiles
2154
2155 if { (ac_try="$ac_link_default"
2156 case "(($ac_try" in
2157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158   *) ac_try_echo=$ac_try;;
2159 esac
2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161   (eval "$ac_link_default") 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; then
2165   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2167 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2168 # so that the user can short-circuit this test for compilers unknown to
2169 # Autoconf.
2170 for ac_file in $ac_files
2171 do
2172   test -f "$ac_file" || continue
2173   case $ac_file in
2174     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2175         ;;
2176     [ab].out )
2177         # We found the default executable, but exeext='' is most
2178         # certainly right.
2179         break;;
2180     *.* )
2181         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2182         then :; else
2183            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         fi
2185         # We set ac_cv_exeext here because the later test for it is not
2186         # safe: cross compilers may not add the suffix if given an `-o'
2187         # argument, so we may need to know it at that point already.
2188         # Even if this section looks crufty: it has the advantage of
2189         # actually working.
2190         break;;
2191     * )
2192         break;;
2193   esac
2194 done
2195 test "$ac_cv_exeext" = no && ac_cv_exeext=
2196
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205    { (exit 77); exit 77; }; }
2206 fi
2207
2208 ac_exeext=$ac_cv_exeext
2209 { echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6; }
2211
2212 # Check that the compiler produces executables we can run.  If not, either
2213 # the compiler is broken, or we cross compile.
2214 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217 # If not cross compiling, check that we can run a simple program.
2218 if test "$cross_compiling" != yes; then
2219   if { ac_try='./$ac_file'
2220   { (case "(($ac_try" in
2221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222   *) ac_try_echo=$ac_try;;
2223 esac
2224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225   (eval "$ac_try") 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }; }; then
2229     cross_compiling=no
2230   else
2231     if test "$cross_compiling" = maybe; then
2232         cross_compiling=yes
2233     else
2234         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240    { (exit 1); exit 1; }; }
2241     fi
2242   fi
2243 fi
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2246
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check that the compiler produces executables we can run.  If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2253 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6; }
2255
2256 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2258 if { (ac_try="$ac_link"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264   (eval "$ac_link") 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 # `rm'.
2272 for ac_file in conftest.exe conftest conftest.*; do
2273   test -f "$ac_file" || continue
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2276     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277           break;;
2278     * ) break;;
2279   esac
2280 done
2281 else
2282   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2292
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2298 if test "${ac_cv_objext+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (ac_try="$ac_compile"
2318 case "(($ac_try" in
2319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320   *) ac_try_echo=$ac_try;;
2321 esac
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323   (eval "$ac_compile") 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; then
2327   for ac_file in conftest.o conftest.obj conftest.*; do
2328   test -f "$ac_file" || continue;
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2331     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332        break;;
2333   esac
2334 done
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 fi
2348 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6; }
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367 #ifndef __GNUC__
2368        choke me
2369 #endif
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (ac_try="$ac_compile"
2377 case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382   (eval "$ac_compile") 2>conftest.er1
2383   ac_status=$?
2384   grep -v '^ *+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); } &&
2389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2390   { (case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_try") 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_try") 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   ac_compiler_gnu=yes
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414         ac_compiler_gnu=no
2415 fi
2416
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420 fi
2421 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   ac_save_c_werror_flag=$ac_c_werror_flag
2432    ac_c_werror_flag=yes
2433    ac_cv_prog_cc_g=no
2434    CFLAGS="-g"
2435    cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441
2442 int
2443 main ()
2444 {
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.$ac_objext
2451 if { (ac_try="$ac_compile"
2452 case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_compile") 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2465   { (case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_try") 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; } &&
2474          { ac_try='test -s conftest.$ac_objext'
2475   { (case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480   (eval "$ac_try") 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   ac_cv_prog_cc_g=yes
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489         CFLAGS=""
2490       cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496
2497 int
2498 main ()
2499 {
2500
2501   ;
2502   return 0;
2503 }
2504 _ACEOF
2505 rm -f conftest.$ac_objext
2506 if { (ac_try="$ac_compile"
2507 case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_compile") 2>conftest.er1
2513   ac_status=$?
2514   grep -v '^ *+' conftest.er1 >conftest.err
2515   rm -f conftest.er1
2516   cat conftest.err >&5
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2520   { (case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_try") 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_try") 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   :
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544         ac_c_werror_flag=$ac_save_c_werror_flag
2545          CFLAGS="-g"
2546          cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 int
2554 main ()
2555 {
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } &&
2575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576   { (case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_try") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_try") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595   ac_cv_prog_cc_g=yes
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600
2601 fi
2602
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 fi
2605
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610    ac_c_werror_flag=$ac_save_c_werror_flag
2611 fi
2612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2614 if test "$ac_test_CFLAGS" = set; then
2615   CFLAGS=$ac_save_CFLAGS
2616 elif test $ac_cv_prog_cc_g = yes; then
2617   if test "$GCC" = yes; then
2618     CFLAGS="-g -O2"
2619   else
2620     CFLAGS="-g"
2621   fi
2622 else
2623   if test "$GCC" = yes; then
2624     CFLAGS="-O2"
2625   else
2626     CFLAGS=
2627   fi
2628 fi
2629 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2630 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_cc_c89+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   ac_cv_prog_cc_c89=no
2635 ac_save_CC=$CC
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642 #include <stdarg.h>
2643 #include <stdio.h>
2644 #include <sys/types.h>
2645 #include <sys/stat.h>
2646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2647 struct buf { int x; };
2648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2649 static char *e (p, i)
2650      char **p;
2651      int i;
2652 {
2653   return p[i];
2654 }
2655 static char *f (char * (*g) (char **, int), char **p, ...)
2656 {
2657   char *s;
2658   va_list v;
2659   va_start (v,p);
2660   s = g (p, va_arg (v,int));
2661   va_end (v);
2662   return s;
2663 }
2664
2665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2666    function prototypes and stuff, but not '\xHH' hex character constants.
2667    These don't provoke an error unfortunately, instead are silently treated
2668    as 'x'.  The following induces an error, until -std is added to get
2669    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2670    array size at least.  It's necessary to write '\x00'==0 to get something
2671    that's true only with -std.  */
2672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673
2674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2675    inside strings and character constants.  */
2676 #define FOO(x) 'x'
2677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678
2679 int test (int i, double x);
2680 struct s1 {int (*f) (int a);};
2681 struct s2 {int (*f) (double a);};
2682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683 int argc;
2684 char **argv;
2685 int
2686 main ()
2687 {
2688 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2694         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 do
2696   CC="$ac_save_CC $ac_arg"
2697   rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712   { (case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_try") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_cv_prog_cc_c89=$ac_arg
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext
2740   test "x$ac_cv_prog_cc_c89" != "xno" && break
2741 done
2742 rm -f conftest.$ac_ext
2743 CC=$ac_save_CC
2744
2745 fi
2746 # AC_CACHE_VAL
2747 case "x$ac_cv_prog_cc_c89" in
2748   x)
2749     { echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6; } ;;
2751   xno)
2752     { echo "$as_me:$LINENO: result: unsupported" >&5
2753 echo "${ECHO_T}unsupported" >&6; } ;;
2754   *)
2755     CC="$CC $ac_cv_prog_cc_c89"
2756     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2758 esac
2759
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766
2767 ac_ext=cpp
2768 ac_cpp='$CXXCPP $CPPFLAGS'
2769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772 if test -z "$CXX"; then
2773   if test -n "$CCC"; then
2774     CXX=$CCC
2775   else
2776     if test -n "$ac_tool_prefix"; then
2777   for ac_prog in clang++ llvm-g++ g++
2778   do
2779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CXX+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$CXX"; then
2787   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794   for ac_exec_ext in '' $ac_executable_extensions; do
2795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2796     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 CXX=$ac_cv_prog_CXX
2807 if test -n "$CXX"; then
2808   { echo "$as_me:$LINENO: result: $CXX" >&5
2809 echo "${ECHO_T}$CXX" >&6; }
2810 else
2811   { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2814
2815
2816     test -n "$CXX" && break
2817   done
2818 fi
2819 if test -z "$CXX"; then
2820   ac_ct_CXX=$CXX
2821   for ac_prog in clang++ llvm-g++ g++
2822 do
2823   # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   if test -n "$ac_ct_CXX"; then
2831   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836   IFS=$as_save_IFS
2837   test -z "$as_dir" && as_dir=.
2838   for ac_exec_ext in '' $ac_executable_extensions; do
2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2840     ac_cv_prog_ac_ct_CXX="$ac_prog"
2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2851 if test -n "$ac_ct_CXX"; then
2852   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2853 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2854 else
2855   { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2858
2859
2860   test -n "$ac_ct_CXX" && break
2861 done
2862
2863   if test "x$ac_ct_CXX" = x; then
2864     CXX="g++"
2865   else
2866     case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet.  If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet.  If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876     CXX=$ac_ct_CXX
2877   fi
2878 fi
2879
2880   fi
2881 fi
2882 # Provide some information about the compiler.
2883 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2884 ac_compiler=`set X $ac_compile; echo $2`
2885 { (ac_try="$ac_compiler --version >&5"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_compiler --version >&5") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }
2895 { (ac_try="$ac_compiler -v >&5"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_compiler -v >&5") 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }
2905 { (ac_try="$ac_compiler -V >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compiler -V >&5") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931 #ifndef __GNUC__
2932        choke me
2933 #endif
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compile") 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2954   { (case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_try") 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; } &&
2963          { ac_try='test -s conftest.$ac_objext'
2964   { (case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_try") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   ac_compiler_gnu=yes
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978         ac_compiler_gnu=no
2979 fi
2980
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2983
2984 fi
2985 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2986 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2987 GXX=`test $ac_compiler_gnu = yes && echo yes`
2988 ac_test_CXXFLAGS=${CXXFLAGS+set}
2989 ac_save_CXXFLAGS=$CXXFLAGS
2990 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2991 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2992 if test "${ac_cv_prog_cxx_g+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2996    ac_cxx_werror_flag=yes
2997    ac_cv_prog_cxx_g=no
2998    CXXFLAGS="-g"
2999    cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005
3006 int
3007 main ()
3008 {
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_compile") 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3029   { (case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_try") 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest.$ac_objext'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; }; then
3048   ac_cv_prog_cxx_g=yes
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053         CXXFLAGS=""
3054       cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060
3061 int
3062 main ()
3063 {
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3084   { (case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_try") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; } &&
3093          { ac_try='test -s conftest.$ac_objext'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   :
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109          CXXFLAGS="-g"
3110          cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   ac_cv_prog_cxx_g=yes
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164
3165 fi
3166
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 fi
3169
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175 fi
3176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3177 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3178 if test "$ac_test_CXXFLAGS" = set; then
3179   CXXFLAGS=$ac_save_CXXFLAGS
3180 elif test $ac_cv_prog_cxx_g = yes; then
3181   if test "$GXX" = yes; then
3182     CXXFLAGS="-g -O2"
3183   else
3184     CXXFLAGS="-g"
3185   fi
3186 else
3187   if test "$GXX" = yes; then
3188     CXXFLAGS="-O2"
3189   else
3190     CXXFLAGS=
3191   fi
3192 fi
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3205 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3206 # On Suns, sometimes $CPP names a directory.
3207 if test -n "$CPP" && test -d "$CPP"; then
3208   CPP=
3209 fi
3210 if test -z "$CPP"; then
3211   if test "${ac_cv_prog_CPP+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214       # Double quotes because CPP needs to be expanded
3215     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216     do
3217       ac_preproc_ok=false
3218 for ac_c_preproc_warn_flag in '' yes
3219 do
3220   # Use a header file that comes with gcc, so configuring glibc
3221   # with a fresh cross-compiler works.
3222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223   # <limits.h> exists even on freestanding compilers.
3224   # On the NeXT, cc -E runs the code through the compiler's parser,
3225   # not just through cpp. "Syntax error" is here to catch this case.
3226   cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h.  */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h.  */
3232 #ifdef __STDC__
3233 # include <limits.h>
3234 #else
3235 # include <assert.h>
3236 #endif
3237                      Syntax error
3238 _ACEOF
3239 if { (ac_try="$ac_cpp conftest.$ac_ext"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } >/dev/null; then
3252   if test -s conftest.err; then
3253     ac_cpp_err=$ac_c_preproc_warn_flag
3254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255   else
3256     ac_cpp_err=
3257   fi
3258 else
3259   ac_cpp_err=yes
3260 fi
3261 if test -z "$ac_cpp_err"; then
3262   :
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267   # Broken: fails on valid input.
3268 continue
3269 fi
3270
3271 rm -f conftest.err conftest.$ac_ext
3272
3273   # OK, works on sane cases.  Now check whether nonexistent headers
3274   # can be detected and how.
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 #include <ac_nonexistent.h>
3282 _ACEOF
3283 if { (ac_try="$ac_cpp conftest.$ac_ext"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } >/dev/null; then
3296   if test -s conftest.err; then
3297     ac_cpp_err=$ac_c_preproc_warn_flag
3298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299   else
3300     ac_cpp_err=
3301   fi
3302 else
3303   ac_cpp_err=yes
3304 fi
3305 if test -z "$ac_cpp_err"; then
3306   # Broken: success on invalid input.
3307 continue
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312   # Passes both tests.
3313 ac_preproc_ok=:
3314 break
3315 fi
3316
3317 rm -f conftest.err conftest.$ac_ext
3318
3319 done
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3323   break
3324 fi
3325
3326     done
3327     ac_cv_prog_CPP=$CPP
3328
3329 fi
3330   CPP=$ac_cv_prog_CPP
3331 else
3332   ac_cv_prog_CPP=$CPP
3333 fi
3334 { echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6; }
3336 ac_preproc_ok=false
3337 for ac_c_preproc_warn_flag in '' yes
3338 do
3339   # Use a header file that comes with gcc, so configuring glibc
3340   # with a fresh cross-compiler works.
3341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342   # <limits.h> exists even on freestanding compilers.
3343   # On the NeXT, cc -E runs the code through the compiler's parser,
3344   # not just through cpp. "Syntax error" is here to catch this case.
3345   cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #ifdef __STDC__
3352 # include <limits.h>
3353 #else
3354 # include <assert.h>
3355 #endif
3356                      Syntax error
3357 _ACEOF
3358 if { (ac_try="$ac_cpp conftest.$ac_ext"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365   ac_status=$?
3366   grep -v '^ *+' conftest.er1 >conftest.err
3367   rm -f conftest.er1
3368   cat conftest.err >&5
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); } >/dev/null; then
3371   if test -s conftest.err; then
3372     ac_cpp_err=$ac_c_preproc_warn_flag
3373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3374   else
3375     ac_cpp_err=
3376   fi
3377 else
3378   ac_cpp_err=yes
3379 fi
3380 if test -z "$ac_cpp_err"; then
3381   :
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386   # Broken: fails on valid input.
3387 continue
3388 fi
3389
3390 rm -f conftest.err conftest.$ac_ext
3391
3392   # OK, works on sane cases.  Now check whether nonexistent headers
3393   # can be detected and how.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 #include <ac_nonexistent.h>
3401 _ACEOF
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } >/dev/null; then
3415   if test -s conftest.err; then
3416     ac_cpp_err=$ac_c_preproc_warn_flag
3417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418   else
3419     ac_cpp_err=
3420   fi
3421 else
3422   ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425   # Broken: success on invalid input.
3426 continue
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431   # Passes both tests.
3432 ac_preproc_ok=:
3433 break
3434 fi
3435
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3442   :
3443 else
3444   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }
3449 fi
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458
3459
3460 if test -d ${srcdir}/projects/llvm-gcc ; then
3461   subdirs="$subdirs projects/llvm-gcc"
3462
3463 fi
3464
3465 if test -d ${srcdir}/projects/test-suite ; then
3466   subdirs="$subdirs projects/test-suite"
3467
3468 fi
3469
3470 if test -d ${srcdir}/projects/llvm-test ; then
3471   subdirs="$subdirs projects/llvm-test"
3472
3473 fi
3474
3475 if test -d ${srcdir}/projects/poolalloc ; then
3476   subdirs="$subdirs projects/poolalloc"
3477
3478 fi
3479
3480 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3481   subdirs="$subdirs projects/llvm-poolalloc"
3482
3483 fi
3484
3485 for i in `ls ${srcdir}/projects`
3486 do
3487   if test -d ${srcdir}/projects/${i} ; then
3488     case ${i} in
3489       sample)       subdirs="$subdirs projects/sample"
3490     ;;
3491       privbracket)  subdirs="$subdirs projects/privbracket"
3492  ;;
3493       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3494  ;;
3495       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3496 ;;
3497       llvm-java)    subdirs="$subdirs projects/llvm-java"
3498  ;;
3499       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3500    ;;
3501       safecode)     subdirs="$subdirs projects/safecode"
3502  ;;
3503       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3504  ;;
3505       compiler-rt)       ;;
3506       llvm-gcc)       ;;
3507       test-suite)     ;;
3508       llvm-test)      ;;
3509       poolalloc)      ;;
3510       llvm-poolalloc) ;;
3511       *)
3512         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3513 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3514         ;;
3515     esac
3516   fi
3517 done
3518
3519 # Check whether --enable-polly was given.
3520 if test "${enable_polly+set}" = set; then
3521   enableval=$enable_polly;
3522 else
3523   enableval=default
3524 fi
3525
3526 case "$enableval" in
3527   yes) ENABLE_POLLY=1
3528  ;;
3529   no)  ENABLE_POLLY=0
3530  ;;
3531   default) ENABLE_POLLY=1
3532  ;;
3533   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3534 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3535    { (exit 1); exit 1; }; } ;;
3536 esac
3537
3538
3539 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3540   LLVM_HAS_POLLY=1
3541
3542   subdirs="$subdirs tools/polly"
3543
3544 fi
3545
3546
3547 # Make sure we can run config.sub.
3548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3550 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3551    { (exit 1); exit 1; }; }
3552
3553 { echo "$as_me:$LINENO: checking build system type" >&5
3554 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3555 if test "${ac_cv_build+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_build_alias=$build_alias
3559 test "x$ac_build_alias" = x &&
3560   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561 test "x$ac_build_alias" = x &&
3562   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3564    { (exit 1); exit 1; }; }
3565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3566   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3567 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3568    { (exit 1); exit 1; }; }
3569
3570 fi
3571 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3572 echo "${ECHO_T}$ac_cv_build" >&6; }
3573 case $ac_cv_build in
3574 *-*-*) ;;
3575 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3576 echo "$as_me: error: invalid value of canonical build" >&2;}
3577    { (exit 1); exit 1; }; };;
3578 esac
3579 build=$ac_cv_build
3580 ac_save_IFS=$IFS; IFS='-'
3581 set x $ac_cv_build
3582 shift
3583 build_cpu=$1
3584 build_vendor=$2
3585 shift; shift
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3588 build_os=$*
3589 IFS=$ac_save_IFS
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591
3592
3593 { echo "$as_me:$LINENO: checking host system type" >&5
3594 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3595 if test "${ac_cv_host+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   if test "x$host_alias" = x; then
3599   ac_cv_host=$ac_cv_build
3600 else
3601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3603 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3604    { (exit 1); exit 1; }; }
3605 fi
3606
3607 fi
3608 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3609 echo "${ECHO_T}$ac_cv_host" >&6; }
3610 case $ac_cv_host in
3611 *-*-*) ;;
3612 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3613 echo "$as_me: error: invalid value of canonical host" >&2;}
3614    { (exit 1); exit 1; }; };;
3615 esac
3616 host=$ac_cv_host
3617 ac_save_IFS=$IFS; IFS='-'
3618 set x $ac_cv_host
3619 shift
3620 host_cpu=$1
3621 host_vendor=$2
3622 shift; shift
3623 # Remember, the first character of IFS is used to create $*,
3624 # except with old shells:
3625 host_os=$*
3626 IFS=$ac_save_IFS
3627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628
3629
3630 { echo "$as_me:$LINENO: checking target system type" >&5
3631 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3632 if test "${ac_cv_target+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   if test "x$target_alias" = x; then
3636   ac_cv_target=$ac_cv_host
3637 else
3638   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3639     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3640 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643
3644 fi
3645 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3646 echo "${ECHO_T}$ac_cv_target" >&6; }
3647 case $ac_cv_target in
3648 *-*-*) ;;
3649 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3650 echo "$as_me: error: invalid value of canonical target" >&2;}
3651    { (exit 1); exit 1; }; };;
3652 esac
3653 target=$ac_cv_target
3654 ac_save_IFS=$IFS; IFS='-'
3655 set x $ac_cv_target
3656 shift
3657 target_cpu=$1
3658 target_vendor=$2
3659 shift; shift
3660 # Remember, the first character of IFS is used to create $*,
3661 # except with old shells:
3662 target_os=$*
3663 IFS=$ac_save_IFS
3664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3665
3666
3667 # The aliases save the names the user supplied, while $host etc.
3668 # will get canonicalized.
3669 test -n "$target_alias" &&
3670   test "$program_prefix$program_suffix$program_transform_name" = \
3671     NONENONEs,x,x, &&
3672   program_prefix=${target_alias}-
3673
3674 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3675 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3676 if test "${llvm_cv_os_type+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   case $host in
3680   *-*-aix*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="AIX"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-irix*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="IRIX"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-cygwin*)
3691     llvm_cv_link_all_option="-Wl,--whole-archive"
3692     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693     llvm_cv_os_type="Cygwin"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-darwin*)
3696     llvm_cv_link_all_option="-Wl,-all_load"
3697     llvm_cv_no_link_all_option="-Wl,-noall_load"
3698     llvm_cv_os_type="Darwin"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-minix*)
3701     llvm_cv_link_all_option="-Wl,-all_load"
3702     llvm_cv_no_link_all_option="-Wl,-noall_load"
3703     llvm_cv_os_type="Minix"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-freebsd* | *-*-kfreebsd-gnu)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="FreeBSD"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-*-openbsd*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="OpenBSD"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-*-netbsd*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="NetBSD"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-*-dragonfly*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="DragonFly"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-*-hpux*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="HP-UX"
3729     llvm_cv_platform_type="Unix" ;;
3730   *-*-interix*)
3731     llvm_cv_link_all_option="-Wl,--whole-archive"
3732     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733     llvm_cv_os_type="Interix"
3734     llvm_cv_platform_type="Unix" ;;
3735   *-*-linux*)
3736     llvm_cv_link_all_option="-Wl,--whole-archive"
3737     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738     llvm_cv_os_type="Linux"
3739     llvm_cv_platform_type="Unix" ;;
3740   *-*-gnu*)
3741     llvm_cv_link_all_option="-Wl,--whole-archive"
3742     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743     llvm_cv_os_type="GNU"
3744     llvm_cv_platform_type="Unix" ;;
3745   *-*-solaris*)
3746     llvm_cv_link_all_option="-Wl,-z,allextract"
3747     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3748     llvm_cv_os_type="SunOS"
3749     llvm_cv_platform_type="Unix" ;;
3750   *-*-auroraux*)
3751     llvm_cv_link_all_option="-Wl,-z,allextract"
3752     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3753     llvm_cv_os_type="AuroraUX"
3754     llvm_cv_platform_type="Unix" ;;
3755   *-*-win32*)
3756     llvm_cv_link_all_option="-Wl,--whole-archive"
3757     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758     llvm_cv_os_type="Win32"
3759     llvm_cv_platform_type="Win32" ;;
3760   *-*-mingw*)
3761     llvm_cv_link_all_option="-Wl,--whole-archive"
3762     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763     llvm_cv_os_type="MingW"
3764     llvm_cv_platform_type="Win32" ;;
3765   *-*-haiku*)
3766     llvm_cv_link_all_option="-Wl,--whole-archive"
3767     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768     llvm_cv_os_type="Haiku"
3769     llvm_cv_platform_type="Unix" ;;
3770   *-unknown-eabi*)
3771     llvm_cv_link_all_option="-Wl,--whole-archive"
3772     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773     llvm_cv_os_type="Freestanding"
3774     llvm_cv_platform_type="Unix" ;;
3775   *-unknown-elf*)
3776     llvm_cv_link_all_option="-Wl,--whole-archive"
3777     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778     llvm_cv_os_type="Freestanding"
3779     llvm_cv_platform_type="Unix" ;;
3780   *)
3781     llvm_cv_link_all_option=""
3782     llvm_cv_no_link_all_option=""
3783     llvm_cv_os_type="Unknown"
3784     llvm_cv_platform_type="Unknown" ;;
3785 esac
3786 fi
3787 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3789
3790 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3791 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3792 if test "${llvm_cv_target_os_type+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   case $target in
3796   *-*-aix*)
3797     llvm_cv_target_os_type="AIX" ;;
3798   *-*-irix*)
3799     llvm_cv_target_os_type="IRIX" ;;
3800   *-*-cygwin*)
3801     llvm_cv_target_os_type="Cygwin" ;;
3802   *-*-darwin*)
3803     llvm_cv_target_os_type="Darwin" ;;
3804   *-*-minix*)
3805     llvm_cv_target_os_type="Minix" ;;
3806   *-*-freebsd* | *-*-kfreebsd-gnu)
3807     llvm_cv_target_os_type="FreeBSD" ;;
3808   *-*-openbsd*)
3809     llvm_cv_target_os_type="OpenBSD" ;;
3810   *-*-netbsd*)
3811     llvm_cv_target_os_type="NetBSD" ;;
3812   *-*-dragonfly*)
3813     llvm_cv_target_os_type="DragonFly" ;;
3814   *-*-hpux*)
3815     llvm_cv_target_os_type="HP-UX" ;;
3816   *-*-interix*)
3817     llvm_cv_target_os_type="Interix" ;;
3818   *-*-linux*)
3819     llvm_cv_target_os_type="Linux" ;;
3820   *-*-gnu*)
3821     llvm_cv_target_os_type="GNU" ;;
3822   *-*-solaris*)
3823     llvm_cv_target_os_type="SunOS" ;;
3824   *-*-auroraux*)
3825     llvm_cv_target_os_type="AuroraUX" ;;
3826   *-*-win32*)
3827     llvm_cv_target_os_type="Win32" ;;
3828   *-*-mingw*)
3829     llvm_cv_target_os_type="MingW" ;;
3830   *-*-haiku*)
3831     llvm_cv_target_os_type="Haiku" ;;
3832   *-*-rtems*)
3833     llvm_cv_target_os_type="RTEMS" ;;
3834   *-*-nacl*)
3835     llvm_cv_target_os_type="NativeClient" ;;
3836   *-unknown-eabi*)
3837     llvm_cv_target_os_type="Freestanding" ;;
3838   *)
3839     llvm_cv_target_os_type="Unknown" ;;
3840 esac
3841 fi
3842 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844
3845 if test "$llvm_cv_os_type" = "Unknown" ; then
3846   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848    { (exit 1); exit 1; }; }
3849 fi
3850
3851 OS=$llvm_cv_os_type
3852
3853 HOST_OS=$llvm_cv_os_type
3854
3855 TARGET_OS=$llvm_cv_target_os_type
3856
3857
3858 LINKALL=$llvm_cv_link_all_option
3859
3860 NOLINKALL=$llvm_cv_no_link_all_option
3861
3862
3863 case $llvm_cv_platform_type in
3864   Unix)
3865
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_UNIX 1
3868 _ACEOF
3869
3870     LLVM_ON_UNIX=1
3871
3872     LLVM_ON_WIN32=0
3873
3874     ;;
3875   Win32)
3876
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_WIN32 1
3879 _ACEOF
3880
3881     LLVM_ON_UNIX=0
3882
3883     LLVM_ON_WIN32=1
3884
3885     ;;
3886 esac
3887
3888 { echo "$as_me:$LINENO: checking target architecture" >&5
3889 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890 if test "${llvm_cv_target_arch+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   case $target in
3894   i?86-*)                 llvm_cv_target_arch="x86" ;;
3895   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3896   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3897   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3898   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3899   mips-*)                 llvm_cv_target_arch="Mips" ;;
3900   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3901   xcore-*)                llvm_cv_target_arch="XCore" ;;
3902   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3903   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3904   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3905   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3906   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3907   *)                      llvm_cv_target_arch="Unknown" ;;
3908 esac
3909 fi
3910 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912
3913 if test "$llvm_cv_target_arch" = "Unknown" ; then
3914   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916 fi
3917
3918 case "$llvm_cv_target_arch" in
3919     x86)     LLVM_NATIVE_ARCH="X86" ;;
3920     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3921     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922 esac
3923
3924 ARCH=$llvm_cv_target_arch
3925
3926
3927
3928
3929 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3930 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   # Extract the first word of "grep ggrep" to use in msg output
3935 if test -z "$GREP"; then
3936 set dummy grep ggrep; ac_prog_name=$2
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   ac_path_GREP_found=false
3941 # Loop through the user's path and test for each of PROGNAME-LIST
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 do
3945   IFS=$as_save_IFS
3946   test -z "$as_dir" && as_dir=.
3947   for ac_prog in grep ggrep; do
3948   for ac_exec_ext in '' $ac_executable_extensions; do
3949     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3950     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3951     # Check for GNU ac_path_GREP and select it if it is found.
3952   # Check for GNU $ac_path_GREP
3953 case `"$ac_path_GREP" --version 2>&1` in
3954 *GNU*)
3955   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956 *)
3957   ac_count=0
3958   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3959   while :
3960   do
3961     cat "conftest.in" "conftest.in" >"conftest.tmp"
3962     mv "conftest.tmp" "conftest.in"
3963     cp "conftest.in" "conftest.nl"
3964     echo 'GREP' >> "conftest.nl"
3965     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967     ac_count=`expr $ac_count + 1`
3968     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3969       # Best one so far, save it but keep looking for a better one
3970       ac_cv_path_GREP="$ac_path_GREP"
3971       ac_path_GREP_max=$ac_count
3972     fi
3973     # 10*(2^10) chars as input seems more than enough
3974     test $ac_count -gt 10 && break
3975   done
3976   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977 esac
3978
3979
3980     $ac_path_GREP_found && break 3
3981   done
3982 done
3983
3984 done
3985 IFS=$as_save_IFS
3986
3987
3988 fi
3989
3990 GREP="$ac_cv_path_GREP"
3991 if test -z "$GREP"; then
3992   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3993 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3994    { (exit 1); exit 1; }; }
3995 fi
3996
3997 else
3998   ac_cv_path_GREP=$GREP
3999 fi
4000
4001
4002 fi
4003 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4004 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4005  GREP="$ac_cv_path_GREP"
4006
4007
4008 { echo "$as_me:$LINENO: checking for egrep" >&5
4009 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4010 if test "${ac_cv_path_EGREP+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4014    then ac_cv_path_EGREP="$GREP -E"
4015    else
4016      # Extract the first word of "egrep" to use in msg output
4017 if test -z "$EGREP"; then
4018 set dummy egrep; ac_prog_name=$2
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   ac_path_EGREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026 do
4027   IFS=$as_save_IFS
4028   test -z "$as_dir" && as_dir=.
4029   for ac_prog in egrep; do
4030   for ac_exec_ext in '' $ac_executable_extensions; do
4031     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4032     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4033     # Check for GNU ac_path_EGREP and select it if it is found.
4034   # Check for GNU $ac_path_EGREP
4035 case `"$ac_path_EGREP" --version 2>&1` in
4036 *GNU*)
4037   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038 *)
4039   ac_count=0
4040   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4041   while :
4042   do
4043     cat "conftest.in" "conftest.in" >"conftest.tmp"
4044     mv "conftest.tmp" "conftest.in"
4045     cp "conftest.in" "conftest.nl"
4046     echo 'EGREP' >> "conftest.nl"
4047     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049     ac_count=`expr $ac_count + 1`
4050     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051       # Best one so far, save it but keep looking for a better one
4052       ac_cv_path_EGREP="$ac_path_EGREP"
4053       ac_path_EGREP_max=$ac_count
4054     fi
4055     # 10*(2^10) chars as input seems more than enough
4056     test $ac_count -gt 10 && break
4057   done
4058   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 esac
4060
4061
4062     $ac_path_EGREP_found && break 3
4063   done
4064 done
4065
4066 done
4067 IFS=$as_save_IFS
4068
4069
4070 fi
4071
4072 EGREP="$ac_cv_path_EGREP"
4073 if test -z "$EGREP"; then
4074   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076    { (exit 1); exit 1; }; }
4077 fi
4078
4079 else
4080   ac_cv_path_EGREP=$EGREP
4081 fi
4082
4083
4084    fi
4085 fi
4086 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4087 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4088  EGREP="$ac_cv_path_EGREP"
4089
4090
4091 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <stdlib.h>
4103 #include <stdarg.h>
4104 #include <string.h>
4105 #include <float.h>
4106
4107 int
4108 main ()
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (ac_try="$ac_compile"
4117 case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122   (eval "$ac_compile") 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4130   { (case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_try") 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; } &&
4139          { ac_try='test -s conftest.$ac_objext'
4140   { (case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_try") 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; }; then
4149   ac_cv_header_stdc=yes
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154         ac_cv_header_stdc=no
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # SunOS 4.x string.h does not declare mem*, 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 <string.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <stdlib.h>
4189
4190 _ACEOF
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192   $EGREP "free" >/dev/null 2>&1; then
4193   :
4194 else
4195   ac_cv_header_stdc=no
4196 fi
4197 rm -f conftest*
4198
4199 fi
4200
4201 if test $ac_cv_header_stdc = yes; then
4202   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4203   if test "$cross_compiling" = yes; then
4204   :
4205 else
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <ctype.h>
4213 #include <stdlib.h>
4214 #if ((' ' & 0x0FF) == 0x020)
4215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217 #else
4218 # define ISLOWER(c) \
4219                    (('a' <= (c) && (c) <= 'i') \
4220                      || ('j' <= (c) && (c) <= 'r') \
4221                      || ('s' <= (c) && (c) <= 'z'))
4222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4223 #endif
4224
4225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4226 int
4227 main ()
4228 {
4229   int i;
4230   for (i = 0; i < 256; i++)
4231     if (XOR (islower (i), ISLOWER (i))
4232         || toupper (i) != TOUPPER (i))
4233       return 2;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest$ac_exeext
4238 if { (ac_try="$ac_link"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_link") 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248   { (case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253   (eval "$ac_try") 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; }; then
4257   :
4258 else
4259   echo "$as_me: program exited with status $ac_status" >&5
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 ( exit $ac_status )
4264 ac_cv_header_stdc=no
4265 fi
4266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4267 fi
4268
4269
4270 fi
4271 fi
4272 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4274 if test $ac_cv_header_stdc = yes; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define STDC_HEADERS 1
4278 _ACEOF
4279
4280 fi
4281
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293                   inttypes.h stdint.h unistd.h
4294 do
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 $ac_includes_default
4308
4309 #include <$ac_header>
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (ac_try="$ac_compile"
4313 case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_compile") 2>conftest.er1
4319   ac_status=$?
4320   grep -v '^ *+' conftest.er1 >conftest.err
4321   rm -f conftest.er1
4322   cat conftest.err >&5
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); } &&
4325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326   { (case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; } &&
4335          { ac_try='test -s conftest.$ac_objext'
4336   { (case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_try") 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }; }; then
4345   eval "$as_ac_Header=yes"
4346 else
4347   echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350         eval "$as_ac_Header=no"
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 ac_res=`eval echo '${'$as_ac_Header'}'`
4356                { echo "$as_me:$LINENO: result: $ac_res" >&5
4357 echo "${ECHO_T}$ac_res" >&6; }
4358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4359   cat >>confdefs.h <<_ACEOF
4360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361 _ACEOF
4362
4363 fi
4364
4365 done
4366
4367
4368 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4369 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4370 if test "${ac_cv_c_bigendian+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   # See if sys/param.h defines the BYTE_ORDER macro.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4382
4383 int
4384 main ()
4385 {
4386 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4387  bogus endian macros
4388 #endif
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   # It does; now see whether it defined to BIG_ENDIAN or not.
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435 #include <sys/types.h>
4436 #include <sys/param.h>
4437
4438 int
4439 main ()
4440 {
4441 #if BYTE_ORDER != BIG_ENDIAN
4442  not big endian
4443 #endif
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (ac_try="$ac_compile"
4451 case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456   (eval "$ac_compile") 2>conftest.er1
4457   ac_status=$?
4458   grep -v '^ *+' conftest.er1 >conftest.err
4459   rm -f conftest.er1
4460   cat conftest.err >&5
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4464   { (case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469   (eval "$ac_try") 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; } &&
4473          { ac_try='test -s conftest.$ac_objext'
4474   { (case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; }; then
4483   ac_cv_c_bigendian=yes
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488         ac_cv_c_bigendian=no
4489 fi
4490
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496         # It does not; compile a test program.
4497 if test "$cross_compiling" = yes; then
4498   # try to guess the endianness by grepping values into an object file
4499   ac_cv_c_bigendian=unknown
4500   cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4507 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4508 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4509 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4510 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4511 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4512 int
4513 main ()
4514 {
4515  _ascii (); _ebcdic ();
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 rm -f conftest.$ac_objext
4521 if { (ac_try="$ac_compile"
4522 case "(($ac_try" in
4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524   *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527   (eval "$ac_compile") 2>conftest.er1
4528   ac_status=$?
4529   grep -v '^ *+' conftest.er1 >conftest.err
4530   rm -f conftest.er1
4531   cat conftest.err >&5
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4535   { (case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_try") 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; } &&
4544          { ac_try='test -s conftest.$ac_objext'
4545   { (case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_try") 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; }; then
4554   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4555   ac_cv_c_bigendian=yes
4556 fi
4557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4558   if test "$ac_cv_c_bigendian" = unknown; then
4559     ac_cv_c_bigendian=no
4560   else
4561     # finding both strings is unlikely to happen, but who knows?
4562     ac_cv_c_bigendian=unknown
4563   fi
4564 fi
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 else
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 $ac_includes_default
4581 int
4582 main ()
4583 {
4584
4585   /* Are we little or big endian?  From Harbison&Steele.  */
4586   union
4587   {
4588     long int l;
4589     char c[sizeof (long int)];
4590   } u;
4591   u.l = 1;
4592   return u.c[sizeof (long int) - 1] == 1;
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_link") 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609   { (case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_try") 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_cv_c_bigendian=no
4619 else
4620   echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ( exit $ac_status )
4625 ac_cv_c_bigendian=yes
4626 fi
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4628 fi
4629
4630
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4636 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4637 case $ac_cv_c_bigendian in
4638   yes)
4639     ENDIAN=big
4640  ;;
4641   no)
4642     ENDIAN=little
4643  ;;
4644   *)
4645     { { echo "$as_me:$LINENO: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4647 echo "$as_me: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4649    { (exit 1); exit 1; }; } ;;
4650 esac
4651
4652
4653 if test "$cross_compiling" = yes; then
4654   LLVM_CROSS_COMPILING=1
4655
4656
4657 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4658 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4659 if test "${ac_cv_build_exeext+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4663   ac_cv_build_exeext=.exe
4664 else
4665   ac_build_prefix=${build_alias}-
4666
4667   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4668 set dummy ${ac_build_prefix}gcc; ac_word=$2
4669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   if test -n "$BUILD_CC"; then
4675   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682   for ac_exec_ext in '' $ac_executable_extensions; do
4683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4684     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689 done
4690 IFS=$as_save_IFS
4691
4692 fi
4693 fi
4694 BUILD_CC=$ac_cv_prog_BUILD_CC
4695 if test -n "$BUILD_CC"; then
4696   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4697 echo "${ECHO_T}$BUILD_CC" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 fi
4702
4703
4704   if test -z "$BUILD_CC"; then
4705      # Extract the first word of "gcc", so it can be a program name with args.
4706 set dummy gcc; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   if test -n "$BUILD_CC"; then
4713   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720   for ac_exec_ext in '' $ac_executable_extensions; do
4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4722     ac_cv_prog_BUILD_CC="gcc"
4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724     break 2
4725   fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi
4731 fi
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742      if test -z "$BUILD_CC"; then
4743        # Extract the first word of "cc", so it can be a program name with args.
4744 set dummy cc; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   if test -n "$BUILD_CC"; then
4751   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4752 else
4753   ac_prog_rejected=no
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759   for ac_exec_ext in '' $ac_executable_extensions; do
4760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4761     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762        ac_prog_rejected=yes
4763        continue
4764      fi
4765     ac_cv_prog_BUILD_CC="cc"
4766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 if test $ac_prog_rejected = yes; then
4774   # We found a bogon in the path, so make sure we never use it.
4775   set dummy $ac_cv_prog_BUILD_CC
4776   shift
4777   if test $# != 0; then
4778     # We chose a different compiler from the bogus one.
4779     # However, it has the same basename, so the bogon will be chosen
4780     # first if we set BUILD_CC to just the basename; use the full file name.
4781     shift
4782     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4783   fi
4784 fi
4785 fi
4786 fi
4787 BUILD_CC=$ac_cv_prog_BUILD_CC
4788 if test -n "$BUILD_CC"; then
4789   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4790 echo "${ECHO_T}$BUILD_CC" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797      fi
4798   fi
4799   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4800 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4801    { (exit 1); exit 1; }; }
4802   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4803   rm -f conftest*
4804   echo 'int main () { return 0; }' > conftest.$ac_ext
4805   ac_cv_build_exeext=
4806   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4807   (eval $ac_build_link) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; then
4811     for file in conftest.*; do
4812       case $file in
4813       *.c | *.o | *.obj | *.dSYM) ;;
4814       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4815       esac
4816     done
4817   else
4818     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4819 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4820    { (exit 1); exit 1; }; }
4821   fi
4822   rm -f conftest*
4823   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4824 fi
4825 fi
4826
4827 BUILD_EXEEXT=""
4828 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4829 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4830 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4831 ac_build_exeext=$BUILD_EXEEXT
4832
4833   ac_build_prefix=${build_alias}-
4834   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4835 set dummy ${ac_build_prefix}g++; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   if test -n "$BUILD_CXX"; then
4842   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4851     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857 IFS=$as_save_IFS
4858
4859 fi
4860 fi
4861 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4862 if test -n "$BUILD_CXX"; then
4863   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4864 echo "${ECHO_T}$BUILD_CXX" >&6; }
4865 else
4866   { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4868 fi
4869
4870
4871   if test -z "$BUILD_CXX"; then
4872      # Extract the first word of "g++", so it can be a program name with args.
4873 set dummy g++; ac_word=$2
4874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4876 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   if test -n "$BUILD_CXX"; then
4880   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885   IFS=$as_save_IFS
4886   test -z "$as_dir" && as_dir=.
4887   for ac_exec_ext in '' $ac_executable_extensions; do
4888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4889     ac_cv_prog_BUILD_CXX="g++"
4890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891     break 2
4892   fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909      if test -z "$BUILD_CXX"; then
4910        # Extract the first word of "c++", so it can be a program name with args.
4911 set dummy c++; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   if test -n "$BUILD_CXX"; then
4918   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4919 else
4920   ac_prog_rejected=no
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_exec_ext in '' $ac_executable_extensions; do
4927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4928     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4929        ac_prog_rejected=yes
4930        continue
4931      fi
4932     ac_cv_prog_BUILD_CXX="c++"
4933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 if test $ac_prog_rejected = yes; then
4941   # We found a bogon in the path, so make sure we never use it.
4942   set dummy $ac_cv_prog_BUILD_CXX
4943   shift
4944   if test $# != 0; then
4945     # We chose a different compiler from the bogus one.
4946     # However, it has the same basename, so the bogon will be chosen
4947     # first if we set BUILD_CXX to just the basename; use the full file name.
4948     shift
4949     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4950   fi
4951 fi
4952 fi
4953 fi
4954 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4955 if test -n "$BUILD_CXX"; then
4956   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4957 echo "${ECHO_T}$BUILD_CXX" >&6; }
4958 else
4959   { echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6; }
4961 fi
4962
4963
4964      fi
4965   fi
4966 else
4967   LLVM_CROSS_COMPILING=0
4968
4969 fi
4970
4971 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4972   cvsbuild="yes"
4973   optimize="no"
4974   CVSBUILD=CVSBUILD=1
4975
4976 else
4977   cvsbuild="no"
4978   optimize="yes"
4979 fi
4980
4981
4982 # Check whether --enable-libcpp was given.
4983 if test "${enable_libcpp+set}" = set; then
4984   enableval=$enable_libcpp;
4985 else
4986   enableval=default
4987 fi
4988
4989 case "$enableval" in
4990   yes) ENABLE_LIBCPP=1
4991  ;;
4992   no)  ENABLE_LIBCPP=0
4993  ;;
4994   default) ENABLE_LIBCPP=0
4995 ;;
4996   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4997 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4998    { (exit 1); exit 1; }; } ;;
4999 esac
5000
5001 # Check whether --enable-optimized was given.
5002 if test "${enable_optimized+set}" = set; then
5003   enableval=$enable_optimized;
5004 else
5005   enableval=$optimize
5006 fi
5007
5008 if test ${enableval} = "no" ; then
5009   ENABLE_OPTIMIZED=
5010
5011 else
5012   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5013
5014 fi
5015
5016 # Check whether --enable-profiling was given.
5017 if test "${enable_profiling+set}" = set; then
5018   enableval=$enable_profiling;
5019 else
5020   enableval="no"
5021 fi
5022
5023 if test ${enableval} = "no" ; then
5024   ENABLE_PROFILING=
5025
5026 else
5027   ENABLE_PROFILING=ENABLE_PROFILING=1
5028
5029 fi
5030
5031 # Check whether --enable-assertions was given.
5032 if test "${enable_assertions+set}" = set; then
5033   enableval=$enable_assertions;
5034 else
5035   enableval="yes"
5036 fi
5037
5038 if test ${enableval} = "yes" ; then
5039   DISABLE_ASSERTIONS=
5040
5041 else
5042   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5043
5044 fi
5045
5046 # Check whether --enable-expensive-checks was given.
5047 if test "${enable_expensive_checks+set}" = set; then
5048   enableval=$enable_expensive_checks;
5049 else
5050   enableval="no"
5051 fi
5052
5053 if test ${enableval} = "yes" ; then
5054   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5055
5056   EXPENSIVE_CHECKS=yes
5057
5058 else
5059   ENABLE_EXPENSIVE_CHECKS=
5060
5061   EXPENSIVE_CHECKS=no
5062
5063 fi
5064
5065 # Check whether --enable-debug-runtime was given.
5066 if test "${enable_debug_runtime+set}" = set; then
5067   enableval=$enable_debug_runtime;
5068 else
5069   enableval=no
5070 fi
5071
5072 if test ${enableval} = "no" ; then
5073   DEBUG_RUNTIME=
5074
5075 else
5076   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5077
5078 fi
5079
5080 # Check whether --enable-debug-symbols was given.
5081 if test "${enable_debug_symbols+set}" = set; then
5082   enableval=$enable_debug_symbols;
5083 else
5084   enableval=no
5085 fi
5086
5087 if test ${enableval} = "no" ; then
5088   DEBUG_SYMBOLS=
5089
5090 else
5091   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5092
5093 fi
5094
5095 # Check whether --enable-jit was given.
5096 if test "${enable_jit+set}" = set; then
5097   enableval=$enable_jit;
5098 else
5099   enableval=default
5100 fi
5101
5102 if test ${enableval} = "no"
5103 then
5104   JIT=
5105
5106 else
5107   case "$llvm_cv_target_arch" in
5108     x86)         TARGET_HAS_JIT=1
5109  ;;
5110     Sparc)       TARGET_HAS_JIT=0
5111  ;;
5112     PowerPC)     TARGET_HAS_JIT=1
5113  ;;
5114     x86_64)      TARGET_HAS_JIT=1
5115  ;;
5116     ARM)         TARGET_HAS_JIT=1
5117  ;;
5118     Mips)        TARGET_HAS_JIT=1
5119  ;;
5120     XCore)       TARGET_HAS_JIT=0
5121  ;;
5122     MSP430)      TARGET_HAS_JIT=0
5123  ;;
5124     Hexagon)     TARGET_HAS_JIT=0
5125  ;;
5126     MBlaze)      TARGET_HAS_JIT=0
5127  ;;
5128     PTX)         TARGET_HAS_JIT=0
5129  ;;
5130     NVPTX)       TARGET_HAS_JIT=0
5131  ;;
5132     *)           TARGET_HAS_JIT=0
5133  ;;
5134   esac
5135 fi
5136
5137 # Check whether --enable-docs was given.
5138 if test "${enable_docs+set}" = set; then
5139   enableval=$enable_docs;
5140 else
5141   enableval=default
5142 fi
5143
5144 case "$enableval" in
5145   yes) ENABLE_DOCS=1
5146  ;;
5147   no)  ENABLE_DOCS=0
5148  ;;
5149   default) ENABLE_DOCS=1
5150  ;;
5151   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5153    { (exit 1); exit 1; }; } ;;
5154 esac
5155
5156 # Check whether --enable-doxygen was given.
5157 if test "${enable_doxygen+set}" = set; then
5158   enableval=$enable_doxygen;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_DOXYGEN=1
5165  ;;
5166   no)  ENABLE_DOXYGEN=0
5167  ;;
5168   default) ENABLE_DOXYGEN=0
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-threads was given.
5176 if test "${enable_threads+set}" = set; then
5177   enableval=$enable_threads;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) LLVM_ENABLE_THREADS=1
5184  ;;
5185   no)  LLVM_ENABLE_THREADS=0
5186  ;;
5187   default) LLVM_ENABLE_THREADS=1
5188  ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5196 _ACEOF
5197
5198
5199 # Check whether --enable-pthreads was given.
5200 if test "${enable_pthreads+set}" = set; then
5201   enableval=$enable_pthreads;
5202 else
5203   enableval=default
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_PTHREADS=1
5208  ;;
5209   no)  ENABLE_PTHREADS=0
5210  ;;
5211   default) ENABLE_PTHREADS=1
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-pic was given.
5219 if test "${enable_pic+set}" = set; then
5220   enableval=$enable_pic;
5221 else
5222   enableval=default
5223 fi
5224
5225 case "$enableval" in
5226   yes) ENABLE_PIC=1
5227  ;;
5228   no)  ENABLE_PIC=0
5229  ;;
5230   default) ENABLE_PIC=1
5231  ;;
5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5234    { (exit 1); exit 1; }; } ;;
5235 esac
5236
5237 cat >>confdefs.h <<_ACEOF
5238 #define ENABLE_PIC $ENABLE_PIC
5239 _ACEOF
5240
5241
5242 # Check whether --enable-shared was given.
5243 if test "${enable_shared+set}" = set; then
5244   enableval=$enable_shared;
5245 else
5246   enableval=default
5247 fi
5248
5249 case "$enableval" in
5250   yes) ENABLE_SHARED=1
5251  ;;
5252   no)  ENABLE_SHARED=0
5253  ;;
5254   default) ENABLE_SHARED=0
5255  ;;
5256   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5258    { (exit 1); exit 1; }; } ;;
5259 esac
5260
5261 # Check whether --enable-embed-stdcxx was given.
5262 if test "${enable_embed_stdcxx+set}" = set; then
5263   enableval=$enable_embed_stdcxx;
5264 else
5265   enableval=default
5266 fi
5267
5268 case "$enableval" in
5269   yes) ENABLE_EMBED_STDCXX=1
5270  ;;
5271   no)  ENABLE_EMBED_STDCXX=0
5272  ;;
5273   default) ENABLE_EMBED_STDCXX=0
5274  ;;
5275   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278 esac
5279
5280 # Check whether --enable-timestamps was given.
5281 if test "${enable_timestamps+set}" = set; then
5282   enableval=$enable_timestamps;
5283 else
5284   enableval=default
5285 fi
5286
5287 case "$enableval" in
5288   yes) ENABLE_TIMESTAMPS=1
5289  ;;
5290   no)  ENABLE_TIMESTAMPS=0
5291  ;;
5292   default) ENABLE_TIMESTAMPS=1
5293  ;;
5294   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5296    { (exit 1); exit 1; }; } ;;
5297 esac
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5301 _ACEOF
5302
5303
5304 TARGETS_TO_BUILD=""
5305 # Check whether --enable-targets was given.
5306 if test "${enable_targets+set}" = set; then
5307   enableval=$enable_targets;
5308 else
5309   enableval=all
5310 fi
5311
5312 if test "$enableval" = host-only ; then
5313   enableval=host
5314 fi
5315 case "$enableval" in
5316   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5317   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5318       case "$a_target" in
5319         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5320         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5322         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5323         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5324         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5325         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5326         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5327         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5328         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5329         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5330         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5333         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5334         host) case "$llvm_cv_target_arch" in
5335             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5342             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5343             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5345             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5346             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5347             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5348             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5349 echo "$as_me: error: Can not set target to build" >&2;}
5350    { (exit 1); exit 1; }; } ;;
5351           esac ;;
5352         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5353 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5354    { (exit 1); exit 1; }; } ;;
5355       esac
5356   done
5357   ;;
5358 esac
5359 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5360
5361
5362 for a_target in $TARGETS_TO_BUILD; do
5363   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5367 _ACEOF
5368
5369     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5370     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5371     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5372     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5373     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5374       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5375     fi
5376     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5377       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5378     fi
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5387 _ACEOF
5388
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5392 _ACEOF
5393
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5397 _ACEOF
5398
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400
5401 cat >>confdefs.h <<_ACEOF
5402 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5403 _ACEOF
5404
5405     fi
5406     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5410 _ACEOF
5411
5412     fi
5413   fi
5414 done
5415
5416 LLVM_ENUM_TARGETS=""
5417 LLVM_ENUM_ASM_PRINTERS=""
5418 LLVM_ENUM_ASM_PARSERS=""
5419 LLVM_ENUM_DISASSEMBLERS=""
5420 for target_to_build in $TARGETS_TO_BUILD; do
5421   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5423     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5424   fi
5425   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5426     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5427   fi
5428   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5429     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5430   fi
5431 done
5432
5433
5434
5435
5436
5437
5438 # Check whether --with-optimize-option was given.
5439 if test "${with_optimize_option+set}" = set; then
5440   withval=$with_optimize_option;
5441 else
5442   withval=default
5443 fi
5444
5445 { echo "$as_me:$LINENO: checking optimization flags" >&5
5446 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5447 case "$withval" in
5448   default)
5449     case "$llvm_cv_os_type" in
5450     FreeBSD) optimize_option=-O2 ;;
5451     MingW) optimize_option=-O2 ;;
5452     *)     optimize_option=-O3 ;;
5453     esac ;;
5454   *) optimize_option="$withval" ;;
5455 esac
5456 OPTIMIZE_OPTION=$optimize_option
5457
5458 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5459 echo "${ECHO_T}$optimize_option" >&6; }
5460
5461
5462 # Check whether --with-extra-options was given.
5463 if test "${with_extra_options+set}" = set; then
5464   withval=$with_extra_options;
5465 else
5466   withval=default
5467 fi
5468
5469 case "$withval" in
5470   default) EXTRA_OPTIONS= ;;
5471   *) EXTRA_OPTIONS=$withval ;;
5472 esac
5473 EXTRA_OPTIONS=$EXTRA_OPTIONS
5474
5475
5476
5477 # Check whether --with-extra-ld-options was given.
5478 if test "${with_extra_ld_options+set}" = set; then
5479   withval=$with_extra_ld_options;
5480 else
5481   withval=default
5482 fi
5483
5484 case "$withval" in
5485   default) EXTRA_LD_OPTIONS= ;;
5486   *) EXTRA_LD_OPTIONS=$withval ;;
5487 esac
5488 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5489
5490
5491 # Check whether --enable-bindings was given.
5492 if test "${enable_bindings+set}" = set; then
5493   enableval=$enable_bindings;
5494 else
5495   enableval=default
5496 fi
5497
5498 BINDINGS_TO_BUILD=""
5499 case "$enableval" in
5500   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5501   all ) BINDINGS_TO_BUILD="ocaml" ;;
5502   none | no) BINDINGS_TO_BUILD="" ;;
5503   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5504       case "$a_binding" in
5505         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5506         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5507 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509       esac
5510   done
5511   ;;
5512 esac
5513
5514
5515 # Check whether --with-ocaml-libdir was given.
5516 if test "${with_ocaml_libdir+set}" = set; then
5517   withval=$with_ocaml_libdir;
5518 else
5519   withval=auto
5520 fi
5521
5522 case "$withval" in
5523   auto) with_ocaml_libdir="$withval" ;;
5524   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5525   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5526 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5527    { (exit 1); exit 1; }; } ;;
5528 esac
5529
5530
5531 # Check whether --with-clang-srcdir was given.
5532 if test "${with_clang_srcdir+set}" = set; then
5533   withval=$with_clang_srcdir;
5534 else
5535   withval="-"
5536 fi
5537
5538 case "$withval" in
5539   -) clang_src_root="" ;;
5540   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5541   *) clang_src_root="$ac_pwd/$withval" ;;
5542 esac
5543 CLANG_SRC_ROOT=$clang_src_root
5544
5545
5546
5547 # Check whether --with-clang-resource-dir was given.
5548 if test "${with_clang_resource_dir+set}" = set; then
5549   withval=$with_clang_resource_dir;
5550 else
5551   withval=""
5552 fi
5553
5554
5555 cat >>confdefs.h <<_ACEOF
5556 #define CLANG_RESOURCE_DIR "$withval"
5557 _ACEOF
5558
5559
5560
5561 # Check whether --with-c-include-dirs was given.
5562 if test "${with_c_include_dirs+set}" = set; then
5563   withval=$with_c_include_dirs;
5564 else
5565   withval=""
5566 fi
5567
5568
5569 cat >>confdefs.h <<_ACEOF
5570 #define C_INCLUDE_DIRS "$withval"
5571 _ACEOF
5572
5573
5574 # Clang normally uses the system c++ headers and libraries. With this option,
5575 # clang will use the ones provided by a gcc installation instead. This option should
5576 # be passed the same value that was used with --prefix when configuring gcc.
5577
5578 # Check whether --with-gcc-toolchain was given.
5579 if test "${with_gcc_toolchain+set}" = set; then
5580   withval=$with_gcc_toolchain;
5581 else
5582   withval=""
5583 fi
5584
5585
5586 cat >>confdefs.h <<_ACEOF
5587 #define GCC_INSTALL_PREFIX "$withval"
5588 _ACEOF
5589
5590
5591
5592 # Check whether --with-default-sysroot was given.
5593 if test "${with_default_sysroot+set}" = set; then
5594   withval=$with_default_sysroot;
5595 else
5596   withval=""
5597 fi
5598
5599
5600 cat >>confdefs.h <<_ACEOF
5601 #define DEFAULT_SYSROOT "$withval"
5602 _ACEOF
5603
5604
5605
5606 # Check whether --with-binutils-include was given.
5607 if test "${with_binutils_include+set}" = set; then
5608   withval=$with_binutils_include;
5609 else
5610   withval=default
5611 fi
5612
5613 case "$withval" in
5614   default) WITH_BINUTILS_INCDIR=default ;;
5615   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5616   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5617 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5618    { (exit 1); exit 1; }; } ;;
5619 esac
5620 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5621   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5622
5623   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5624      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5625      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5626 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5627    { (exit 1); exit 1; }; };
5628   fi
5629 fi
5630
5631
5632 # Check whether --with-bug-report-url was given.
5633 if test "${with_bug_report_url+set}" = set; then
5634   withval=$with_bug_report_url;
5635 else
5636   withval="http://llvm.org/bugs/"
5637 fi
5638
5639
5640 cat >>confdefs.h <<_ACEOF
5641 #define BUG_REPORT_URL "$withval"
5642 _ACEOF
5643
5644
5645 # Check whether --enable-libffi was given.
5646 if test "${enable_libffi+set}" = set; then
5647   enableval=$enable_libffi; case "$enableval" in
5648     yes) llvm_cv_enable_libffi="yes" ;;
5649     no)  llvm_cv_enable_libffi="no"  ;;
5650     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5651 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5652    { (exit 1); exit 1; }; } ;;
5653   esac
5654 else
5655   llvm_cv_enable_libffi=no
5656 fi
5657
5658
5659
5660 # Check whether --with-internal-prefix was given.
5661 if test "${with_internal_prefix+set}" = set; then
5662   withval=$with_internal_prefix;
5663 else
5664   withval=""
5665 fi
5666
5667 INTERNAL_PREFIX=$withval
5668
5669
5670
5671 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5672 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5673 if test "${lt_cv_path_NM+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   if test -n "$NM"; then
5677   # Let the user override the test.
5678   lt_cv_path_NM="$NM"
5679 else
5680   lt_nm_to_check="${ac_tool_prefix}nm"
5681   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5682     lt_nm_to_check="$lt_nm_to_check nm"
5683   fi
5684   for lt_tmp_nm in $lt_nm_to_check; do
5685     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5687       IFS="$lt_save_ifs"
5688       test -z "$ac_dir" && ac_dir=.
5689       tmp_nm="$ac_dir/$lt_tmp_nm"
5690       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5691         # Check to see if the nm accepts a BSD-compat flag.
5692         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5693         #   nm: unknown option "B" ignored
5694         # Tru64's nm complains that /dev/null is an invalid object file
5695         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5696         */dev/null* | *'Invalid file or object type'*)
5697           lt_cv_path_NM="$tmp_nm -B"
5698           break
5699           ;;
5700         *)
5701           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5702           */dev/null*)
5703             lt_cv_path_NM="$tmp_nm -p"
5704             break
5705             ;;
5706           *)
5707             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708             continue # so that we can try to find one that supports BSD flags
5709             ;;
5710           esac
5711           ;;
5712         esac
5713       fi
5714     done
5715     IFS="$lt_save_ifs"
5716   done
5717   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5718 fi
5719 fi
5720 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5721 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5722 NM="$lt_cv_path_NM"
5723
5724
5725
5726 { echo "$as_me:$LINENO: checking for GNU make" >&5
5727 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5728 if test "${llvm_cv_gnu_make_command+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   llvm_cv_gnu_make_command=''
5732  for a in "$MAKE" make gmake gnumake ; do
5733   if test -z "$a" ; then continue ; fi ;
5734   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5735   then
5736    llvm_cv_gnu_make_command=$a ;
5737    break;
5738   fi
5739  done
5740 fi
5741 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5742 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5743  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5744    ifGNUmake='' ;
5745  else
5746    ifGNUmake='#' ;
5747    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5748 echo "${ECHO_T}\"Not found\"" >&6; };
5749  fi
5750
5751
5752 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5753 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5754 LN_S=$as_ln_s
5755 if test "$LN_S" = "ln -s"; then
5756   { echo "$as_me:$LINENO: result: yes" >&5
5757 echo "${ECHO_T}yes" >&6; }
5758 else
5759   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5760 echo "${ECHO_T}no, using $LN_S" >&6; }
5761 fi
5762
5763 # Extract the first word of "cmp", so it can be a program name with args.
5764 set dummy cmp; ac_word=$2
5765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5767 if test "${ac_cv_path_CMP+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   case $CMP in
5771   [\\/]* | ?:[\\/]*)
5772   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5773   ;;
5774   *)
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5791   ;;
5792 esac
5793 fi
5794 CMP=$ac_cv_path_CMP
5795 if test -n "$CMP"; then
5796   { echo "$as_me:$LINENO: result: $CMP" >&5
5797 echo "${ECHO_T}$CMP" >&6; }
5798 else
5799   { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5801 fi
5802
5803
5804 # Extract the first word of "cp", so it can be a program name with args.
5805 set dummy cp; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_path_CP+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   case $CP in
5812   [\\/]* | ?:[\\/]*)
5813   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5814   ;;
5815   *)
5816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5832   ;;
5833 esac
5834 fi
5835 CP=$ac_cv_path_CP
5836 if test -n "$CP"; then
5837   { echo "$as_me:$LINENO: result: $CP" >&5
5838 echo "${ECHO_T}$CP" >&6; }
5839 else
5840   { echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6; }
5842 fi
5843
5844
5845 # Extract the first word of "date", so it can be a program name with args.
5846 set dummy date; ac_word=$2
5847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5849 if test "${ac_cv_path_DATE+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   case $DATE in
5853   [\\/]* | ?:[\\/]*)
5854   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5855   ;;
5856   *)
5857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5873   ;;
5874 esac
5875 fi
5876 DATE=$ac_cv_path_DATE
5877 if test -n "$DATE"; then
5878   { echo "$as_me:$LINENO: result: $DATE" >&5
5879 echo "${ECHO_T}$DATE" >&6; }
5880 else
5881   { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5883 fi
5884
5885
5886 # Extract the first word of "find", so it can be a program name with args.
5887 set dummy find; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_path_FIND+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   case $FIND in
5894   [\\/]* | ?:[\\/]*)
5895   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5896   ;;
5897   *)
5898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5905     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911 IFS=$as_save_IFS
5912
5913   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5914   ;;
5915 esac
5916 fi
5917 FIND=$ac_cv_path_FIND
5918 if test -n "$FIND"; then
5919   { echo "$as_me:$LINENO: result: $FIND" >&5
5920 echo "${ECHO_T}$FIND" >&6; }
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926
5927 # Extract the first word of "grep", so it can be a program name with args.
5928 set dummy grep; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_path_GREP+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   case $GREP in
5935   [\\/]* | ?:[\\/]*)
5936   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5937   ;;
5938   *)
5939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5946     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5955   ;;
5956 esac
5957 fi
5958 GREP=$ac_cv_path_GREP
5959 if test -n "$GREP"; then
5960   { echo "$as_me:$LINENO: result: $GREP" >&5
5961 echo "${ECHO_T}$GREP" >&6; }
5962 else
5963   { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5965 fi
5966
5967
5968 # Extract the first word of "mkdir", so it can be a program name with args.
5969 set dummy mkdir; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_path_MKDIR+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $MKDIR in
5976   [\\/]* | ?:[\\/]*)
5977   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5978   ;;
5979   *)
5980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985   for ac_exec_ext in '' $ac_executable_extensions; do
5986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5987     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5996   ;;
5997 esac
5998 fi
5999 MKDIR=$ac_cv_path_MKDIR
6000 if test -n "$MKDIR"; then
6001   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6002 echo "${ECHO_T}$MKDIR" >&6; }
6003 else
6004   { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6006 fi
6007
6008
6009 # Extract the first word of "mv", so it can be a program name with args.
6010 set dummy mv; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_MV+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   case $MV in
6017   [\\/]* | ?:[\\/]*)
6018   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6019   ;;
6020   *)
6021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026   for ac_exec_ext in '' $ac_executable_extensions; do
6027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6028     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6037   ;;
6038 esac
6039 fi
6040 MV=$ac_cv_path_MV
6041 if test -n "$MV"; then
6042   { echo "$as_me:$LINENO: result: $MV" >&5
6043 echo "${ECHO_T}$MV" >&6; }
6044 else
6045   { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6047 fi
6048
6049
6050 if test -n "$ac_tool_prefix"; then
6051   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_RANLIB+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if test -n "$RANLIB"; then
6059   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 RANLIB=$ac_cv_prog_RANLIB
6079 if test -n "$RANLIB"; then
6080   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6081 echo "${ECHO_T}$RANLIB" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6085 fi
6086
6087
6088 fi
6089 if test -z "$ac_cv_prog_RANLIB"; then
6090   ac_ct_RANLIB=$RANLIB
6091   # Extract the first word of "ranlib", so it can be a program name with args.
6092 set dummy ranlib; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   if test -n "$ac_ct_RANLIB"; then
6099   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106   for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_ac_ct_RANLIB="ranlib"
6109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119 if test -n "$ac_ct_RANLIB"; then
6120   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6121 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127   if test "x$ac_ct_RANLIB" = x; then
6128     RANLIB=":"
6129   else
6130     case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet.  If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: 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." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140     RANLIB=$ac_ct_RANLIB
6141   fi
6142 else
6143   RANLIB="$ac_cv_prog_RANLIB"
6144 fi
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ar; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_AR+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   if test -n "$AR"; then
6155   ac_cv_prog_AR="$AR" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_AR="${ac_tool_prefix}ar"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 AR=$ac_cv_prog_AR
6175 if test -n "$AR"; then
6176   { echo "$as_me:$LINENO: result: $AR" >&5
6177 echo "${ECHO_T}$AR" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_AR"; then
6186   ac_ct_AR=$AR
6187   # Extract the first word of "ar", so it can be a program name with args.
6188 set dummy ar; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$ac_ct_AR"; then
6195   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_ac_ct_AR="ar"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6215 if test -n "$ac_ct_AR"; then
6216   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6217 echo "${ECHO_T}$ac_ct_AR" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_AR" = x; then
6224     AR="false"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet.  If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: 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." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     AR=$ac_ct_AR
6237   fi
6238 else
6239   AR="$ac_cv_prog_AR"
6240 fi
6241
6242 # Extract the first word of "rm", so it can be a program name with args.
6243 set dummy rm; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_path_RM+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   case $RM in
6250   [\\/]* | ?:[\\/]*)
6251   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6252   ;;
6253   *)
6254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6270   ;;
6271 esac
6272 fi
6273 RM=$ac_cv_path_RM
6274 if test -n "$RM"; then
6275   { echo "$as_me:$LINENO: result: $RM" >&5
6276 echo "${ECHO_T}$RM" >&6; }
6277 else
6278   { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6280 fi
6281
6282
6283 # Extract the first word of "sed", so it can be a program name with args.
6284 set dummy sed; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_path_SED+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   case $SED in
6291   [\\/]* | ?:[\\/]*)
6292   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6293   ;;
6294   *)
6295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6311   ;;
6312 esac
6313 fi
6314 SED=$ac_cv_path_SED
6315 if test -n "$SED"; then
6316   { echo "$as_me:$LINENO: result: $SED" >&5
6317 echo "${ECHO_T}$SED" >&6; }
6318 else
6319   { echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6; }
6321 fi
6322
6323
6324 # Extract the first word of "tar", so it can be a program name with args.
6325 set dummy tar; ac_word=$2
6326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328 if test "${ac_cv_path_TAR+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   case $TAR in
6332   [\\/]* | ?:[\\/]*)
6333   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6334   ;;
6335   *)
6336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339   IFS=$as_save_IFS
6340   test -z "$as_dir" && as_dir=.
6341   for ac_exec_ext in '' $ac_executable_extensions; do
6342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6343     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345     break 2
6346   fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6352   ;;
6353 esac
6354 fi
6355 TAR=$ac_cv_path_TAR
6356 if test -n "$TAR"; then
6357   { echo "$as_me:$LINENO: result: $TAR" >&5
6358 echo "${ECHO_T}$TAR" >&6; }
6359 else
6360   { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6362 fi
6363
6364
6365 # Extract the first word of "pwd", so it can be a program name with args.
6366 set dummy pwd; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_path_BINPWD+set}" = set; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372   case $BINPWD in
6373   [\\/]* | ?:[\\/]*)
6374   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6375   ;;
6376   *)
6377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380   IFS=$as_save_IFS
6381   test -z "$as_dir" && as_dir=.
6382   for ac_exec_ext in '' $ac_executable_extensions; do
6383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386     break 2
6387   fi
6388 done
6389 done
6390 IFS=$as_save_IFS
6391
6392   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6393   ;;
6394 esac
6395 fi
6396 BINPWD=$ac_cv_path_BINPWD
6397 if test -n "$BINPWD"; then
6398   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6399 echo "${ECHO_T}$BINPWD" >&6; }
6400 else
6401   { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6403 fi
6404
6405
6406
6407 # Extract the first word of "Graphviz", so it can be a program name with args.
6408 set dummy Graphviz; ac_word=$2
6409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   case $GRAPHVIZ in
6415   [\\/]* | ?:[\\/]*)
6416   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6417   ;;
6418   *)
6419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424   for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6435   ;;
6436 esac
6437 fi
6438 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6439 if test -n "$GRAPHVIZ"; then
6440   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6441 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6442 else
6443   { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6445 fi
6446
6447
6448 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6449
6450 cat >>confdefs.h <<\_ACEOF
6451 #define HAVE_GRAPHVIZ 1
6452 _ACEOF
6453
6454     if test "$llvm_cv_os_type" = "MingW" ; then
6455     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456   fi
6457
6458 cat >>confdefs.h <<_ACEOF
6459 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6460 _ACEOF
6461
6462 fi
6463 # Extract the first word of "dot", so it can be a program name with args.
6464 set dummy dot; ac_word=$2
6465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467 if test "${ac_cv_path_DOT+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   case $DOT in
6471   [\\/]* | ?:[\\/]*)
6472   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6473   ;;
6474   *)
6475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6491   ;;
6492 esac
6493 fi
6494 DOT=$ac_cv_path_DOT
6495 if test -n "$DOT"; then
6496   { echo "$as_me:$LINENO: result: $DOT" >&5
6497 echo "${ECHO_T}$DOT" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6501 fi
6502
6503
6504 if test "$DOT" != "echo dot" ; then
6505
6506 cat >>confdefs.h <<\_ACEOF
6507 #define HAVE_DOT 1
6508 _ACEOF
6509
6510     if test "$llvm_cv_os_type" = "MingW" ; then
6511     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512   fi
6513
6514 cat >>confdefs.h <<_ACEOF
6515 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6516 _ACEOF
6517
6518 fi
6519 # Extract the first word of "fdp", so it can be a program name with args.
6520 set dummy fdp; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_path_FDP+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   case $FDP in
6527   [\\/]* | ?:[\\/]*)
6528   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6529   ;;
6530   *)
6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6547   ;;
6548 esac
6549 fi
6550 FDP=$ac_cv_path_FDP
6551 if test -n "$FDP"; then
6552   { echo "$as_me:$LINENO: result: $FDP" >&5
6553 echo "${ECHO_T}$FDP" >&6; }
6554 else
6555   { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6557 fi
6558
6559
6560 if test "$FDP" != "echo fdp" ; then
6561
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_FDP 1
6564 _ACEOF
6565
6566     if test "$llvm_cv_os_type" = "MingW" ; then
6567     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568   fi
6569
6570 cat >>confdefs.h <<_ACEOF
6571 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6572 _ACEOF
6573
6574 fi
6575 # Extract the first word of "neato", so it can be a program name with args.
6576 set dummy neato; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_path_NEATO+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   case $NEATO in
6583   [\\/]* | ?:[\\/]*)
6584   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6585   ;;
6586   *)
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592   for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6603   ;;
6604 esac
6605 fi
6606 NEATO=$ac_cv_path_NEATO
6607 if test -n "$NEATO"; then
6608   { echo "$as_me:$LINENO: result: $NEATO" >&5
6609 echo "${ECHO_T}$NEATO" >&6; }
6610 else
6611   { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6613 fi
6614
6615
6616 if test "$NEATO" != "echo neato" ; then
6617
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_NEATO 1
6620 _ACEOF
6621
6622     if test "$llvm_cv_os_type" = "MingW" ; then
6623     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624   fi
6625
6626 cat >>confdefs.h <<_ACEOF
6627 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6628 _ACEOF
6629
6630 fi
6631 # Extract the first word of "twopi", so it can be a program name with args.
6632 set dummy twopi; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_TWOPI+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   case $TWOPI in
6639   [\\/]* | ?:[\\/]*)
6640   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6641   ;;
6642   *)
6643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6659   ;;
6660 esac
6661 fi
6662 TWOPI=$ac_cv_path_TWOPI
6663 if test -n "$TWOPI"; then
6664   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6665 echo "${ECHO_T}$TWOPI" >&6; }
6666 else
6667   { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6669 fi
6670
6671
6672 if test "$TWOPI" != "echo twopi" ; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_TWOPI 1
6676 _ACEOF
6677
6678     if test "$llvm_cv_os_type" = "MingW" ; then
6679     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680   fi
6681
6682 cat >>confdefs.h <<_ACEOF
6683 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6684 _ACEOF
6685
6686 fi
6687 # Extract the first word of "circo", so it can be a program name with args.
6688 set dummy circo; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_CIRCO+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   case $CIRCO in
6695   [\\/]* | ?:[\\/]*)
6696   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6697   ;;
6698   *)
6699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6715   ;;
6716 esac
6717 fi
6718 CIRCO=$ac_cv_path_CIRCO
6719 if test -n "$CIRCO"; then
6720   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6721 echo "${ECHO_T}$CIRCO" >&6; }
6722 else
6723   { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6725 fi
6726
6727
6728 if test "$CIRCO" != "echo circo" ; then
6729
6730 cat >>confdefs.h <<\_ACEOF
6731 #define HAVE_CIRCO 1
6732 _ACEOF
6733
6734     if test "$llvm_cv_os_type" = "MingW" ; then
6735     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736   fi
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6740 _ACEOF
6741
6742 fi
6743 for ac_prog in gv gsview32
6744 do
6745   # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_GV+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   case $GV in
6753   [\\/]* | ?:[\\/]*)
6754   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6755   ;;
6756   *)
6757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772   ;;
6773 esac
6774 fi
6775 GV=$ac_cv_path_GV
6776 if test -n "$GV"; then
6777   { echo "$as_me:$LINENO: result: $GV" >&5
6778 echo "${ECHO_T}$GV" >&6; }
6779 else
6780   { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784
6785   test -n "$GV" && break
6786 done
6787 test -n "$GV" || GV="echo gv"
6788
6789 if test "$GV" != "echo gv" ; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_GV 1
6793 _ACEOF
6794
6795     if test "$llvm_cv_os_type" = "MingW" ; then
6796     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797   fi
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_GV "$GV${EXEEXT}"
6801 _ACEOF
6802
6803 fi
6804 # Extract the first word of "dotty", so it can be a program name with args.
6805 set dummy dotty; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_DOTTY+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   case $DOTTY in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6832   ;;
6833 esac
6834 fi
6835 DOTTY=$ac_cv_path_DOTTY
6836 if test -n "$DOTTY"; then
6837   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6838 echo "${ECHO_T}$DOTTY" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844
6845 if test "$DOTTY" != "echo dotty" ; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define HAVE_DOTTY 1
6849 _ACEOF
6850
6851     if test "$llvm_cv_os_type" = "MingW" ; then
6852     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853   fi
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6857 _ACEOF
6858
6859 fi
6860 # Extract the first word of "xdot.py", so it can be a program name with args.
6861 set dummy xdot.py; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   case $XDOT_PY in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6888   ;;
6889 esac
6890 fi
6891 XDOT_PY=$ac_cv_path_XDOT_PY
6892 if test -n "$XDOT_PY"; then
6893   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6894 echo "${ECHO_T}$XDOT_PY" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901 if test "$XDOT_PY" != "echo xdot.py" ; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_XDOT_PY 1
6905 _ACEOF
6906
6907     if test "$llvm_cv_os_type" = "MingW" ; then
6908     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909   fi
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6913 _ACEOF
6914
6915 fi
6916
6917 # Find a good install program.  We prefer a C program (faster),
6918 # so one script is as good as another.  But avoid the broken or
6919 # incompatible versions:
6920 # SysV /etc/install, /usr/sbin/install
6921 # SunOS /usr/etc/install
6922 # IRIX /sbin/install
6923 # AIX /bin/install
6924 # AmigaOS /C/install, which installs bootblocks on floppy discs
6925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6928 # OS/2's system install, which has a completely different semantic
6929 # ./install, which can be erroneously created by make from ./install.sh.
6930 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6932 if test -z "$INSTALL"; then
6933 if test "${ac_cv_path_install+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   # Account for people who put trailing slashes in PATH elements.
6942 case $as_dir/ in
6943   ./ | .// | /cC/* | \
6944   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6945   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6946   /usr/ucb/* ) ;;
6947   *)
6948     # OSF1 and SCO ODT 3.0 have their own names for install.
6949     # Don't use installbsd from OSF since it installs stuff as root
6950     # by default.
6951     for ac_prog in ginstall scoinst install; do
6952       for ac_exec_ext in '' $ac_executable_extensions; do
6953         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6954           if test $ac_prog = install &&
6955             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956             # AIX install.  It has an incompatible calling convention.
6957             :
6958           elif test $ac_prog = install &&
6959             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960             # program-specific install script used by HP pwplus--don't use.
6961             :
6962           else
6963             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6964             break 3
6965           fi
6966         fi
6967       done
6968     done
6969     ;;
6970 esac
6971 done
6972 IFS=$as_save_IFS
6973
6974
6975 fi
6976   if test "${ac_cv_path_install+set}" = set; then
6977     INSTALL=$ac_cv_path_install
6978   else
6979     # As a last resort, use the slow shell script.  Don't cache a
6980     # value for INSTALL within a source directory, because that will
6981     # break other packages using the cache if that directory is
6982     # removed, or if the value is a relative name.
6983     INSTALL=$ac_install_sh
6984   fi
6985 fi
6986 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6987 echo "${ECHO_T}$INSTALL" >&6; }
6988
6989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6990 # It thinks the first close brace ends the variable substitution.
6991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6992
6993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6994
6995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6996
6997 case "$INSTALL" in
6998  [\\/$]* | ?:[\\/]* ) ;;
6999  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7000 esac
7001
7002 # Extract the first word of "bzip2", so it can be a program name with args.
7003 set dummy bzip2; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_BZIP2+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   case $BZIP2 in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029   ;;
7030 esac
7031 fi
7032 BZIP2=$ac_cv_path_BZIP2
7033 if test -n "$BZIP2"; then
7034   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7035 echo "${ECHO_T}$BZIP2" >&6; }
7036 else
7037   { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7039 fi
7040
7041
7042 # Extract the first word of "cat", so it can be a program name with args.
7043 set dummy cat; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_CAT+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   case $CAT in
7050   [\\/]* | ?:[\\/]*)
7051   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7052   ;;
7053   *)
7054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069   ;;
7070 esac
7071 fi
7072 CAT=$ac_cv_path_CAT
7073 if test -n "$CAT"; then
7074   { echo "$as_me:$LINENO: result: $CAT" >&5
7075 echo "${ECHO_T}$CAT" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 # Extract the first word of "doxygen", so it can be a program name with args.
7083 set dummy doxygen; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   case $DOXYGEN in
7090   [\\/]* | ?:[\\/]*)
7091   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7092   ;;
7093   *)
7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109   ;;
7110 esac
7111 fi
7112 DOXYGEN=$ac_cv_path_DOXYGEN
7113 if test -n "$DOXYGEN"; then
7114   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7115 echo "${ECHO_T}$DOXYGEN" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 # Extract the first word of "groff", so it can be a program name with args.
7123 set dummy groff; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GROFF+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $GROFF in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 GROFF=$ac_cv_path_GROFF
7153 if test -n "$GROFF"; then
7154   { echo "$as_me:$LINENO: result: $GROFF" >&5
7155 echo "${ECHO_T}$GROFF" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "gzip", so it can be a program name with args.
7163 set dummy gzip; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $GZIPBIN in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 GZIPBIN=$ac_cv_path_GZIPBIN
7193 if test -n "$GZIPBIN"; then
7194   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7195 echo "${ECHO_T}$GZIPBIN" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "pod2html", so it can be a program name with args.
7203 set dummy pod2html; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_POD2HTML+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $POD2HTML in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 POD2HTML=$ac_cv_path_POD2HTML
7233 if test -n "$POD2HTML"; then
7234   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7235 echo "${ECHO_T}$POD2HTML" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 # Extract the first word of "pod2man", so it can be a program name with args.
7243 set dummy pod2man; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_POD2MAN+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $POD2MAN in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   ;;
7270 esac
7271 fi
7272 POD2MAN=$ac_cv_path_POD2MAN
7273 if test -n "$POD2MAN"; then
7274   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7275 echo "${ECHO_T}$POD2MAN" >&6; }
7276 else
7277   { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279 fi
7280
7281
7282 # Extract the first word of "pdfroff", so it can be a program name with args.
7283 set dummy pdfroff; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_PDFROFF+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $PDFROFF in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   ;;
7310 esac
7311 fi
7312 PDFROFF=$ac_cv_path_PDFROFF
7313 if test -n "$PDFROFF"; then
7314   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7315 echo "${ECHO_T}$PDFROFF" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 # Extract the first word of "runtest", so it can be a program name with args.
7323 set dummy runtest; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_RUNTEST+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   case $RUNTEST in
7330   [\\/]* | ?:[\\/]*)
7331   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7332   ;;
7333   *)
7334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349   ;;
7350 esac
7351 fi
7352 RUNTEST=$ac_cv_path_RUNTEST
7353 if test -n "$RUNTEST"; then
7354   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7355 echo "${ECHO_T}$RUNTEST" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362
7363 no_itcl=true
7364 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7365 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7366
7367 # Check whether --with-tclinclude was given.
7368 if test "${with_tclinclude+set}" = set; then
7369   withval=$with_tclinclude; with_tclinclude=${withval}
7370 else
7371   with_tclinclude=''
7372 fi
7373
7374 if test "${ac_cv_path_tclsh+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377
7378 if test x"${with_tclinclude}" != x ; then
7379   if test -f ${with_tclinclude}/tclsh ; then
7380     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7381   elif test -f ${with_tclinclude}/src/tclsh ; then
7382     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7383   else
7384     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7385 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7386    { (exit 1); exit 1; }; }
7387   fi
7388 fi
7389 fi
7390
7391
7392 if test x"${ac_cv_path_tclsh}" = x ; then
7393   { echo "$as_me:$LINENO: result: none" >&5
7394 echo "${ECHO_T}none" >&6; }
7395   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
7396 do
7397   # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_path_TCLSH+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   case $TCLSH in
7405   [\\/]* | ?:[\\/]*)
7406   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7407   ;;
7408   *)
7409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414   for ac_exec_ext in '' $ac_executable_extensions; do
7415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7416     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421 done
7422 IFS=$as_save_IFS
7423
7424   ;;
7425 esac
7426 fi
7427 TCLSH=$ac_cv_path_TCLSH
7428 if test -n "$TCLSH"; then
7429   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7430 echo "${ECHO_T}$TCLSH" >&6; }
7431 else
7432   { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7434 fi
7435
7436
7437   test -n "$TCLSH" && break
7438 done
7439
7440   if test x"${TCLSH}" = x ; then
7441     ac_cv_path_tclsh='';
7442   else
7443     ac_cv_path_tclsh="${TCLSH}";
7444   fi
7445 else
7446   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7447 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7448   TCLSH="${ac_cv_path_tclsh}"
7449
7450 fi
7451
7452 # Extract the first word of "zip", so it can be a program name with args.
7453 set dummy zip; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_ZIP+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   case $ZIP in
7460   [\\/]* | ?:[\\/]*)
7461   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7462   ;;
7463   *)
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479   ;;
7480 esac
7481 fi
7482 ZIP=$ac_cv_path_ZIP
7483 if test -n "$ZIP"; then
7484   { echo "$as_me:$LINENO: result: $ZIP" >&5
7485 echo "${ECHO_T}$ZIP" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491
7492 for ac_prog in ocamlc
7493 do
7494   # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_OCAMLC+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   case $OCAMLC in
7502   [\\/]* | ?:[\\/]*)
7503   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521   ;;
7522 esac
7523 fi
7524 OCAMLC=$ac_cv_path_OCAMLC
7525 if test -n "$OCAMLC"; then
7526   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7527 echo "${ECHO_T}$OCAMLC" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534   test -n "$OCAMLC" && break
7535 done
7536
7537 for ac_prog in ocamlopt
7538 do
7539   # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   case $OCAMLOPT in
7547   [\\/]* | ?:[\\/]*)
7548   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7549   ;;
7550   *)
7551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566   ;;
7567 esac
7568 fi
7569 OCAMLOPT=$ac_cv_path_OCAMLOPT
7570 if test -n "$OCAMLOPT"; then
7571   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7572 echo "${ECHO_T}$OCAMLOPT" >&6; }
7573 else
7574   { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576 fi
7577
7578
7579   test -n "$OCAMLOPT" && break
7580 done
7581
7582 for ac_prog in ocamldep
7583 do
7584   # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   case $OCAMLDEP in
7592   [\\/]* | ?:[\\/]*)
7593   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7594   ;;
7595   *)
7596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611   ;;
7612 esac
7613 fi
7614 OCAMLDEP=$ac_cv_path_OCAMLDEP
7615 if test -n "$OCAMLDEP"; then
7616   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7617 echo "${ECHO_T}$OCAMLDEP" >&6; }
7618 else
7619   { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7621 fi
7622
7623
7624   test -n "$OCAMLDEP" && break
7625 done
7626
7627 for ac_prog in ocamldoc
7628 do
7629   # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   case $OCAMLDOC in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646   for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656   ;;
7657 esac
7658 fi
7659 OCAMLDOC=$ac_cv_path_OCAMLDOC
7660 if test -n "$OCAMLDOC"; then
7661   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7662 echo "${ECHO_T}$OCAMLDOC" >&6; }
7663 else
7664   { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7666 fi
7667
7668
7669   test -n "$OCAMLDOC" && break
7670 done
7671
7672 for ac_prog in gas as
7673 do
7674   # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_GAS+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   case $GAS in
7682   [\\/]* | ?:[\\/]*)
7683   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7684   ;;
7685   *)
7686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701   ;;
7702 esac
7703 fi
7704 GAS=$ac_cv_path_GAS
7705 if test -n "$GAS"; then
7706   { echo "$as_me:$LINENO: result: $GAS" >&5
7707 echo "${ECHO_T}$GAS" >&6; }
7708 else
7709   { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7711 fi
7712
7713
7714   test -n "$GAS" && break
7715 done
7716
7717
7718 { echo "$as_me:$LINENO: checking for linker version" >&5
7719 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7720 if test "${llvm_cv_link_version+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723
7724    version_string="$(ld -v 2>&1 | head -1)"
7725
7726    # Check for ld64.
7727    if (echo "$version_string" | grep -q "ld64"); then
7728      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7729    else
7730      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7731    fi
7732
7733 fi
7734 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7735 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7736
7737 cat >>confdefs.h <<_ACEOF
7738 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7739 _ACEOF
7740
7741
7742
7743 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7744 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7745 if test "${llvm_cv_link_use_r+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748    ac_ext=c
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754   oldcflags="$CFLAGS"
7755   CFLAGS="$CFLAGS -Wl,-R."
7756   cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762
7763 int
7764 main ()
7765 {
7766
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (ac_try="$ac_link"
7773 case "(($ac_try" in
7774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775   *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778   (eval "$ac_link") 2>conftest.er1
7779   ac_status=$?
7780   grep -v '^ *+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786   { (case "(($ac_try" in
7787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788   *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791   (eval "$ac_try") 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); }; } &&
7795          { ac_try='test -s conftest$ac_exeext'
7796   { (case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_try") 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   llvm_cv_link_use_r=yes
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810         llvm_cv_link_use_r=no
7811 fi
7812
7813 rm -f core conftest.err conftest.$ac_objext \
7814       conftest$ac_exeext conftest.$ac_ext
7815   CFLAGS="$oldcflags"
7816   ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823 fi
7824 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7825 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7826 if test "$llvm_cv_link_use_r" = yes ; then
7827
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_LINK_R 1
7830 _ACEOF
7831
7832   fi
7833
7834
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840    ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846   oldcflags="$CFLAGS"
7847   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7848   cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854
7855 int
7856 main ()
7857 {
7858
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7865 case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_link") 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } &&
7877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878   { (case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_try") 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; } &&
7887          { ac_try='test -s conftest$ac_exeext'
7888   { (case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893   (eval "$ac_try") 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   llvm_cv_link_use_export_dynamic=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902         llvm_cv_link_use_export_dynamic=no
7903 fi
7904
7905 rm -f core conftest.err conftest.$ac_objext \
7906       conftest$ac_exeext conftest.$ac_ext
7907   CFLAGS="$oldcflags"
7908   ac_ext=c
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915 fi
7916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7917 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7918 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LINK_EXPORT_DYNAMIC 1
7922 _ACEOF
7923
7924   fi
7925
7926
7927 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7928 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7929 if test "${llvm_cv_link_use_version_script+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932    ac_ext=c
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938   oldcflags="$CFLAGS"
7939
7940   # The following code is from the autoconf manual,
7941   # "11.13: Limitations of Usual Tools".
7942   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7943   # Use mktemp if possible; otherwise fall back on mkdir,
7944   # with $RANDOM to make collisions less likely.
7945   : ${TMPDIR=/tmp}
7946   {
7947     tmp=`
7948       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7949     ` &&
7950     test -n "$tmp" && test -d "$tmp"
7951   } || {
7952     tmp=$TMPDIR/foo$$-$RANDOM
7953     (umask 077 && mkdir "$tmp")
7954   } || exit $?
7955
7956   echo "{" > "$tmp/export.map"
7957   echo "  global: main;" >> "$tmp/export.map"
7958   echo "  local: *;" >> "$tmp/export.map"
7959   echo "};" >> "$tmp/export.map"
7960
7961   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7962   cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_link") 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992   { (case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997   (eval "$ac_try") 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; } &&
8001          { ac_try='test -s conftest$ac_exeext'
8002   { (case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_try") 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   llvm_cv_link_use_version_script=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016         llvm_cv_link_use_version_script=no
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext \
8020       conftest$ac_exeext conftest.$ac_ext
8021   rm "$tmp/export.map"
8022   rmdir "$tmp"
8023   CFLAGS="$oldcflags"
8024   ac_ext=c
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030
8031 fi
8032 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8033 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8034 if test "$llvm_cv_link_use_version_script" = yes ; then
8035   HAVE_LINK_VERSION_SCRIPT=1
8036
8037   fi
8038
8039
8040
8041
8042 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8044 if test "${ac_cv_c_const+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053
8054 int
8055 main ()
8056 {
8057 /* FIXME: Include the comments suggested by Paul. */
8058 #ifndef __cplusplus
8059   /* Ultrix mips cc rejects this.  */
8060   typedef int charset[2];
8061   const charset x;
8062   /* SunOS 4.1.1 cc rejects this.  */
8063   char const *const *ccp;
8064   char **p;
8065   /* NEC SVR4.0.2 mips cc rejects this.  */
8066   struct point {int x, y;};
8067   static struct point const zero = {0,0};
8068   /* AIX XL C 1.02.0.0 rejects this.
8069      It does not let you subtract one const X* pointer from another in
8070      an arm of an if-expression whose if-part is not a constant
8071      expression */
8072   const char *g = "string";
8073   ccp = &g + (g ? g-g : 0);
8074   /* HPUX 7.0 cc rejects these. */
8075   ++ccp;
8076   p = (char**) ccp;
8077   ccp = (char const *const *) p;
8078   { /* SCO 3.2v4 cc rejects this.  */
8079     char *t;
8080     char const *s = 0 ? (char *) 0 : (char const *) 0;
8081
8082     *t++ = 0;
8083     if (s) return 0;
8084   }
8085   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8086     int x[] = {25, 17};
8087     const int *foo = &x[0];
8088     ++foo;
8089   }
8090   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8091     typedef const int *iptr;
8092     iptr p = 0;
8093     ++p;
8094   }
8095   { /* AIX XL C 1.02.0.0 rejects this saying
8096        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8097     struct s { int j; const int *ap[3]; };
8098     struct s *b; b->j = 5;
8099   }
8100   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8101     const int foo = 10;
8102     if (!foo) return 0;
8103   }
8104   return !x[0] && !zero.x;
8105 #endif
8106
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (ac_try="$ac_compile"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_compile") 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126   { (case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_try") 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest.$ac_objext'
8136   { (case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141   (eval "$ac_try") 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   ac_cv_c_const=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         ac_cv_c_const=no
8151 fi
8152
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8156 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8157 if test $ac_cv_c_const = no; then
8158
8159 cat >>confdefs.h <<\_ACEOF
8160 #define const
8161 _ACEOF
8162
8163 fi
8164
8165
8166
8167
8168
8169
8170 ac_header_dirent=no
8171 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8172   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8173 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8174 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184 #include <sys/types.h>
8185 #include <$ac_hdr>
8186
8187 int
8188 main ()
8189 {
8190 if ((DIR *) 0)
8191 return 0;
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8198 case "(($ac_try" in
8199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200   *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203   (eval "$ac_compile") 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211   { (case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_try") 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; } &&
8220          { ac_try='test -s conftest.$ac_objext'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_try") 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   eval "$as_ac_Header=yes"
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235         eval "$as_ac_Header=no"
8236 fi
8237
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 ac_res=`eval echo '${'$as_ac_Header'}'`
8241                { echo "$as_me:$LINENO: result: $ac_res" >&5
8242 echo "${ECHO_T}$ac_res" >&6; }
8243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8244   cat >>confdefs.h <<_ACEOF
8245 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8246 _ACEOF
8247
8248 ac_header_dirent=$ac_hdr; break
8249 fi
8250
8251 done
8252 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8253 if test $ac_header_dirent = dirent.h; then
8254   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8256 if test "${ac_cv_search_opendir+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_func_search_save_LIBS=$LIBS
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266
8267 /* Override any GCC internal prototype to avoid an error.
8268    Use char because int might match the return type of a GCC
8269    builtin and then its argument prototype would still apply.  */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 char opendir ();
8274 int
8275 main ()
8276 {
8277 return opendir ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 for ac_lib in '' dir; do
8283   if test -z "$ac_lib"; then
8284     ac_res="none required"
8285   else
8286     ac_res=-l$ac_lib
8287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8288   fi
8289   rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304   { (case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_try") 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; } &&
8313          { ac_try='test -s conftest$ac_exeext'
8314   { (case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_try") 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_search_opendir=$ac_res
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext \
8332       conftest$ac_exeext
8333   if test "${ac_cv_search_opendir+set}" = set; then
8334   break
8335 fi
8336 done
8337 if test "${ac_cv_search_opendir+set}" = set; then
8338   :
8339 else
8340   ac_cv_search_opendir=no
8341 fi
8342 rm conftest.$ac_ext
8343 LIBS=$ac_func_search_save_LIBS
8344 fi
8345 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8346 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8347 ac_res=$ac_cv_search_opendir
8348 if test "$ac_res" != no; then
8349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8350
8351 fi
8352
8353 else
8354   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8356 if test "${ac_cv_search_opendir+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   ac_func_search_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h.  */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h.  */
8366
8367 /* Override any GCC internal prototype to avoid an error.
8368    Use char because int might match the return type of a GCC
8369    builtin and then its argument prototype would still apply.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 char opendir ();
8374 int
8375 main ()
8376 {
8377 return opendir ();
8378   ;
8379   return 0;
8380 }
8381 _ACEOF
8382 for ac_lib in '' x; do
8383   if test -z "$ac_lib"; then
8384     ac_res="none required"
8385   else
8386     ac_res=-l$ac_lib
8387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8388   fi
8389   rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_link") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } &&
8403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404   { (case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_try") 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_try") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_cv_search_opendir=$ac_res
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428
8429 fi
8430
8431 rm -f core conftest.err conftest.$ac_objext \
8432       conftest$ac_exeext
8433   if test "${ac_cv_search_opendir+set}" = set; then
8434   break
8435 fi
8436 done
8437 if test "${ac_cv_search_opendir+set}" = set; then
8438   :
8439 else
8440   ac_cv_search_opendir=no
8441 fi
8442 rm conftest.$ac_ext
8443 LIBS=$ac_func_search_save_LIBS
8444 fi
8445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8447 ac_res=$ac_cv_search_opendir
8448 if test "$ac_res" != no; then
8449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8450
8451 fi
8452
8453 fi
8454
8455
8456 for ac_header in dlfcn.h
8457 do
8458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 fi
8465 ac_res=`eval echo '${'$as_ac_Header'}'`
8466                { echo "$as_me:$LINENO: result: $ac_res" >&5
8467 echo "${ECHO_T}$ac_res" >&6; }
8468 else
8469   # Is the header compilable?
8470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 $ac_includes_default
8479 #include <$ac_header>
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_compile") 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496   { (case "(($ac_try" in
8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498   *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501   (eval "$ac_try") 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; } &&
8505          { ac_try='test -s conftest.$ac_objext'
8506   { (case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_try") 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_header_compiler=yes
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520         ac_header_compiler=no
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8525 echo "${ECHO_T}$ac_header_compiler" >&6; }
8526
8527 # Is the header present?
8528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536 #include <$ac_header>
8537 _ACEOF
8538 if { (ac_try="$ac_cpp conftest.$ac_ext"
8539 case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } >/dev/null; then
8551   if test -s conftest.err; then
8552     ac_cpp_err=$ac_c_preproc_warn_flag
8553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8554   else
8555     ac_cpp_err=
8556   fi
8557 else
8558   ac_cpp_err=yes
8559 fi
8560 if test -z "$ac_cpp_err"; then
8561   ac_header_preproc=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566   ac_header_preproc=no
8567 fi
8568
8569 rm -f conftest.err conftest.$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571 echo "${ECHO_T}$ac_header_preproc" >&6; }
8572
8573 # So?  What about this header?
8574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575   yes:no: )
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580     ac_header_preproc=yes
8581     ;;
8582   no:yes:* )
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8595     ( cat <<\_ASBOX
8596 ## ------------------------------------ ##
8597 ## Report this to http://llvm.org/bugs/ ##
8598 ## ------------------------------------ ##
8599 _ASBOX
8600      ) | sed "s/^/$as_me: WARNING:     /" >&2
8601     ;;
8602 esac
8603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   eval "$as_ac_Header=\$ac_header_preproc"
8609 fi
8610 ac_res=`eval echo '${'$as_ac_Header'}'`
8611                { echo "$as_me:$LINENO: result: $ac_res" >&5
8612 echo "${ECHO_T}$ac_res" >&6; }
8613
8614 fi
8615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8616   cat >>confdefs.h <<_ACEOF
8617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8618 _ACEOF
8619
8620 fi
8621
8622 done
8623
8624 # Check whether --enable-ltdl-install was given.
8625 if test "${enable_ltdl_install+set}" = set; then
8626   enableval=$enable_ltdl_install;
8627 fi
8628
8629
8630
8631
8632 if test x"${enable_ltdl_install-no}" != xno; then
8633   INSTALL_LTDL_TRUE=
8634   INSTALL_LTDL_FALSE='#'
8635 else
8636   INSTALL_LTDL_TRUE='#'
8637   INSTALL_LTDL_FALSE=
8638 fi
8639
8640
8641
8642 if test x"${enable_ltdl_convenience-no}" != xno; then
8643   CONVENIENCE_LTDL_TRUE=
8644   CONVENIENCE_LTDL_FALSE='#'
8645 else
8646   CONVENIENCE_LTDL_TRUE='#'
8647   CONVENIENCE_LTDL_FALSE=
8648 fi
8649
8650
8651 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8653 library_names_spec=
8654 libname_spec='lib$name'
8655 soname_spec=
8656 shrext_cmds=".so"
8657 postinstall_cmds=
8658 postuninstall_cmds=
8659 finish_cmds=
8660 finish_eval=
8661 shlibpath_var=
8662 shlibpath_overrides_runpath=unknown
8663 version_type=none
8664 dynamic_linker="$host_os ld.so"
8665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8666 if test "$GCC" = yes; then
8667   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8668   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8669     # if the path contains ";" then we assume it to be the separator
8670     # otherwise default to the standard path separator (i.e. ":") - it is
8671     # assumed that no part of a normal pathname contains ";" but that should
8672     # okay in the real world where ";" in dirpaths is itself problematic.
8673     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8674   else
8675     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8676   fi
8677 else
8678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8679 fi
8680 need_lib_prefix=unknown
8681 hardcode_into_libs=no
8682
8683 # when you set need_version to no, make sure it does not cause -set_version
8684 # flags to be left without arguments
8685 need_version=unknown
8686
8687 case $host_os in
8688 aix3*)
8689   version_type=linux
8690   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8691   shlibpath_var=LIBPATH
8692
8693   # AIX 3 has no versioning support, so we append a major version to the name.
8694   soname_spec='${libname}${release}${shared_ext}$major'
8695   ;;
8696
8697 aix4* | aix5*)
8698   version_type=linux
8699   need_lib_prefix=no
8700   need_version=no
8701   hardcode_into_libs=yes
8702   if test "$host_cpu" = ia64; then
8703     # AIX 5 supports IA64
8704     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8705     shlibpath_var=LD_LIBRARY_PATH
8706   else
8707     # With GCC up to 2.95.x, collect2 would create an import file
8708     # for dependence libraries.  The import file would start with
8709     # the line `#! .'.  This would cause the generated library to
8710     # depend on `.', always an invalid library.  This was fixed in
8711     # development snapshots of GCC prior to 3.0.
8712     case $host_os in
8713       aix4 | aix4.[01] | aix4.[01].*)
8714       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8715            echo ' yes '
8716            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8717         :
8718       else
8719         can_build_shared=no
8720       fi
8721       ;;
8722     esac
8723     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8724     # soname into executable. Probably we can add versioning support to
8725     # collect2, so additional links can be useful in future.
8726     if test "$aix_use_runtimelinking" = yes; then
8727       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8728       # instead of lib<name>.a to let people know that these are not
8729       # typical AIX shared libraries.
8730       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731     else
8732       # We preserve .a as extension for shared libraries through AIX4.2
8733       # and later when we are not doing run time linking.
8734       library_names_spec='${libname}${release}.a $libname.a'
8735       soname_spec='${libname}${release}${shared_ext}$major'
8736     fi
8737     shlibpath_var=LIBPATH
8738   fi
8739   ;;
8740
8741 amigaos*)
8742   library_names_spec='$libname.ixlibrary $libname.a'
8743   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8744   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'
8745   ;;
8746
8747 beos*)
8748   library_names_spec='${libname}${shared_ext}'
8749   dynamic_linker="$host_os ld.so"
8750   shlibpath_var=LIBRARY_PATH
8751   ;;
8752
8753 bsdi[45]*)
8754   version_type=linux
8755   need_version=no
8756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757   soname_spec='${libname}${release}${shared_ext}$major'
8758   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8759   shlibpath_var=LD_LIBRARY_PATH
8760   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8761   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8762   # the default ld.so.conf also contains /usr/contrib/lib and
8763   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8764   # libtool to hard-code these into programs
8765   ;;
8766
8767 cygwin* | mingw* | pw32*)
8768   version_type=windows
8769   shrext_cmds=".dll"
8770   need_version=no
8771   need_lib_prefix=no
8772
8773   case $GCC,$host_os in
8774   yes,cygwin* | yes,mingw* | yes,pw32*)
8775     library_names_spec='$libname.dll.a'
8776     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8777     postinstall_cmds='base_file=`basename \${file}`~
8778       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8779       dldir=$destdir/`dirname \$dlpath`~
8780       test -d \$dldir || mkdir -p \$dldir~
8781       $install_prog $dir/$dlname \$dldir/$dlname~
8782       chmod a+x \$dldir/$dlname'
8783     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8784       dlpath=$dir/\$dldll~
8785        $rm \$dlpath'
8786     shlibpath_overrides_runpath=yes
8787
8788     case $host_os in
8789     cygwin*)
8790       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8791       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8793       ;;
8794     mingw*)
8795       # MinGW DLLs use traditional 'lib' prefix
8796       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8799         # It is most probably a Windows format PATH printed by
8800         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8801         # path with ; separators, and with drive letters. We can handle the
8802         # drive letters (cygwin fileutils understands them), so leave them,
8803         # especially as we might pass files found there to a mingw objdump,
8804         # which wouldn't understand a cygwinified path. Ahh.
8805         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8806       else
8807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8808       fi
8809       ;;
8810     pw32*)
8811       # pw32 DLLs use 'pw' prefix rather than 'lib'
8812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8813       ;;
8814     esac
8815     ;;
8816
8817   *)
8818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8819     ;;
8820   esac
8821   dynamic_linker='Win32 ld.exe'
8822   # FIXME: first we should search . and the directory the executable is in
8823   shlibpath_var=PATH
8824   ;;
8825
8826 darwin* | rhapsody*)
8827   dynamic_linker="$host_os dyld"
8828   version_type=darwin
8829   need_lib_prefix=no
8830   need_version=no
8831   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8832   soname_spec='${libname}${release}${major}$shared_ext'
8833   shlibpath_overrides_runpath=yes
8834   shlibpath_var=DYLD_LIBRARY_PATH
8835   shrext_cmds='.dylib'
8836   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8837   if test "$GCC" = yes; then
8838     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"`
8839   else
8840     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8841   fi
8842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8843   ;;
8844
8845 dgux*)
8846   version_type=linux
8847   need_lib_prefix=no
8848   need_version=no
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   shlibpath_var=LD_LIBRARY_PATH
8852   ;;
8853
8854 freebsd1.*)
8855   dynamic_linker=no
8856   ;;
8857
8858 kfreebsd*-gnu)
8859   version_type=linux
8860   need_lib_prefix=no
8861   need_version=no
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863   soname_spec='${libname}${release}${shared_ext}$major'
8864   shlibpath_var=LD_LIBRARY_PATH
8865   shlibpath_overrides_runpath=no
8866   hardcode_into_libs=yes
8867   dynamic_linker='GNU ld.so'
8868   ;;
8869
8870 freebsd* | dragonfly*)
8871   # DragonFly does not have aout.  When/if they implement a new
8872   # versioning mechanism, adjust this.
8873   if test -x /usr/bin/objformat; then
8874     objformat=`/usr/bin/objformat`
8875   else
8876     case $host_os in
8877     freebsd[123].*) objformat=aout ;;
8878     *) objformat=elf ;;
8879     esac
8880   fi
8881   version_type=freebsd-$objformat
8882   case $version_type in
8883     freebsd-elf*)
8884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8885       need_version=no
8886       need_lib_prefix=no
8887       ;;
8888     freebsd-*)
8889       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8890       need_version=yes
8891       ;;
8892   esac
8893   shlibpath_var=LD_LIBRARY_PATH
8894   case $host_os in
8895   freebsd2.*)
8896     shlibpath_overrides_runpath=yes
8897     ;;
8898   freebsd3.[01]* | freebsdelf3.[01]*)
8899     shlibpath_overrides_runpath=yes
8900     hardcode_into_libs=yes
8901     ;;
8902   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8903   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8904     shlibpath_overrides_runpath=no
8905     hardcode_into_libs=yes
8906     ;;
8907   freebsd*) # from 4.6 on
8908     shlibpath_overrides_runpath=yes
8909     hardcode_into_libs=yes
8910     ;;
8911   esac
8912   ;;
8913
8914 gnu*)
8915   version_type=linux
8916   need_lib_prefix=no
8917   need_version=no
8918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8919   soname_spec='${libname}${release}${shared_ext}$major'
8920   shlibpath_var=LD_LIBRARY_PATH
8921   hardcode_into_libs=yes
8922   ;;
8923
8924 hpux9* | hpux10* | hpux11*)
8925   # Give a soname corresponding to the major version so that dld.sl refuses to
8926   # link against other versions.
8927   version_type=sunos
8928   need_lib_prefix=no
8929   need_version=no
8930   case $host_cpu in
8931   ia64*)
8932     shrext_cmds='.so'
8933     hardcode_into_libs=yes
8934     dynamic_linker="$host_os dld.so"
8935     shlibpath_var=LD_LIBRARY_PATH
8936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938     soname_spec='${libname}${release}${shared_ext}$major'
8939     if test "X$HPUX_IA64_MODE" = X32; then
8940       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8941     else
8942       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8943     fi
8944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945     ;;
8946    hppa*64*)
8947      shrext_cmds='.sl'
8948      hardcode_into_libs=yes
8949      dynamic_linker="$host_os dld.sl"
8950      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8951      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953      soname_spec='${libname}${release}${shared_ext}$major'
8954      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8955      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8956      ;;
8957    *)
8958     shrext_cmds='.sl'
8959     dynamic_linker="$host_os dld.sl"
8960     shlibpath_var=SHLIB_PATH
8961     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963     soname_spec='${libname}${release}${shared_ext}$major'
8964     ;;
8965   esac
8966   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8967   postinstall_cmds='chmod 555 $lib'
8968   ;;
8969
8970 interix3*)
8971   version_type=linux
8972   need_lib_prefix=no
8973   need_version=no
8974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975   soname_spec='${libname}${release}${shared_ext}$major'
8976   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8977   shlibpath_var=LD_LIBRARY_PATH
8978   shlibpath_overrides_runpath=no
8979   hardcode_into_libs=yes
8980   ;;
8981
8982 irix5* | irix6* | nonstopux*)
8983   case $host_os in
8984     nonstopux*) version_type=nonstopux ;;
8985     *)
8986         if test "$lt_cv_prog_gnu_ld" = yes; then
8987                 version_type=linux
8988         else
8989                 version_type=irix
8990         fi ;;
8991   esac
8992   need_lib_prefix=no
8993   need_version=no
8994   soname_spec='${libname}${release}${shared_ext}$major'
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8996   case $host_os in
8997   irix5* | nonstopux*)
8998     libsuff= shlibsuff=
8999     ;;
9000   *)
9001     case $LD in # libtool.m4 will add one of these switches to LD
9002     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9003       libsuff= shlibsuff= libmagic=32-bit;;
9004     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9005       libsuff=32 shlibsuff=N32 libmagic=N32;;
9006     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9007       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9008     *) libsuff= shlibsuff= libmagic=never-match;;
9009     esac
9010     ;;
9011   esac
9012   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9013   shlibpath_overrides_runpath=no
9014   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9015   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9016   hardcode_into_libs=yes
9017   ;;
9018
9019 # No shared lib support for Linux oldld, aout, or coff.
9020 linux*oldld* | linux*aout* | linux*coff*)
9021   dynamic_linker=no
9022   ;;
9023
9024 # This must be Linux ELF.
9025 linux*)
9026   version_type=linux
9027   need_lib_prefix=no
9028   need_version=no
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   shlibpath_overrides_runpath=no
9034   # This implies no fast_install, which is unacceptable.
9035   # Some rework will be needed to allow for fast_install
9036   # before this can be enabled.
9037   hardcode_into_libs=yes
9038
9039   # Append ld.so.conf contents to the search path
9040   if test -f /etc/ld.so.conf; then
9041     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' ' '`
9042     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9043   fi
9044
9045   # We used to test for /lib/ld.so.1 and disable shared libraries on
9046   # powerpc, because MkLinux only supported shared libraries with the
9047   # GNU dynamic linker.  Since this was broken with cross compilers,
9048   # most powerpc-linux boxes support dynamic linking these days and
9049   # people can always --disable-shared, the test was removed, and we
9050   # assume the GNU/Linux dynamic linker is in use.
9051   dynamic_linker='GNU/Linux ld.so'
9052   ;;
9053
9054 knetbsd*-gnu)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=no
9062   hardcode_into_libs=yes
9063   dynamic_linker='GNU ld.so'
9064   ;;
9065
9066 netbsd*)
9067   version_type=sunos
9068   need_lib_prefix=no
9069   need_version=no
9070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073     dynamic_linker='NetBSD (a.out) ld.so'
9074   else
9075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076     soname_spec='${libname}${release}${shared_ext}$major'
9077     dynamic_linker='NetBSD ld.elf_so'
9078   fi
9079   shlibpath_var=LD_LIBRARY_PATH
9080   shlibpath_overrides_runpath=yes
9081   hardcode_into_libs=yes
9082   ;;
9083
9084 newsos6)
9085   version_type=linux
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   shlibpath_overrides_runpath=yes
9089   ;;
9090
9091 nto-qnx*)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=yes
9099   ;;
9100
9101 openbsd*)
9102   version_type=sunos
9103   sys_lib_dlsearch_path_spec="/usr/lib"
9104   need_lib_prefix=no
9105   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9106   case $host_os in
9107     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9108     *)                         need_version=no  ;;
9109   esac
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114     case $host_os in
9115       openbsd2.[89] | openbsd2.[89].*)
9116         shlibpath_overrides_runpath=no
9117         ;;
9118       *)
9119         shlibpath_overrides_runpath=yes
9120         ;;
9121       esac
9122   else
9123     shlibpath_overrides_runpath=yes
9124   fi
9125   ;;
9126
9127 os2*)
9128   libname_spec='$name'
9129   shrext_cmds=".dll"
9130   need_lib_prefix=no
9131   library_names_spec='$libname${shared_ext} $libname.a'
9132   dynamic_linker='OS/2 ld.exe'
9133   shlibpath_var=LIBPATH
9134   ;;
9135
9136 osf3* | osf4* | osf5*)
9137   version_type=osf
9138   need_lib_prefix=no
9139   need_version=no
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9144   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9145   ;;
9146
9147 solaris*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   shlibpath_overrides_runpath=yes
9155   hardcode_into_libs=yes
9156   # ldd complains unless libraries are executable
9157   postinstall_cmds='chmod +x $lib'
9158   ;;
9159
9160 sunos4*)
9161   version_type=sunos
9162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9164   shlibpath_var=LD_LIBRARY_PATH
9165   shlibpath_overrides_runpath=yes
9166   if test "$with_gnu_ld" = yes; then
9167     need_lib_prefix=no
9168   fi
9169   need_version=yes
9170   ;;
9171
9172 sysv4 | sysv4.3*)
9173   version_type=linux
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175   soname_spec='${libname}${release}${shared_ext}$major'
9176   shlibpath_var=LD_LIBRARY_PATH
9177   case $host_vendor in
9178     sni)
9179       shlibpath_overrides_runpath=no
9180       need_lib_prefix=no
9181       export_dynamic_flag_spec='${wl}-Blargedynsym'
9182       runpath_var=LD_RUN_PATH
9183       ;;
9184     siemens)
9185       need_lib_prefix=no
9186       ;;
9187     motorola)
9188       need_lib_prefix=no
9189       need_version=no
9190       shlibpath_overrides_runpath=no
9191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9192       ;;
9193   esac
9194   ;;
9195
9196 sysv4*MP*)
9197   if test -d /usr/nec ;then
9198     version_type=linux
9199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9200     soname_spec='$libname${shared_ext}.$major'
9201     shlibpath_var=LD_LIBRARY_PATH
9202   fi
9203   ;;
9204
9205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9206   version_type=freebsd-elf
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   hardcode_into_libs=yes
9213   if test "$with_gnu_ld" = yes; then
9214     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9215     shlibpath_overrides_runpath=no
9216   else
9217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9218     shlibpath_overrides_runpath=yes
9219     case $host_os in
9220       sco3.2v5*)
9221         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9222         ;;
9223     esac
9224   fi
9225   sys_lib_dlsearch_path_spec='/usr/lib'
9226   ;;
9227
9228 uts4*)
9229   version_type=linux
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   ;;
9234
9235 *)
9236   dynamic_linker=no
9237   ;;
9238 esac
9239 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9240 echo "${ECHO_T}$dynamic_linker" >&6; }
9241 test "$dynamic_linker" = no && can_build_shared=no
9242
9243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9244 if test "$GCC" = yes; then
9245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9246 fi
9247
9248
9249 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9250 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9251 if test "${libltdl_cv_shlibext+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254
9255 module=yes
9256 eval libltdl_cv_shlibext=$shrext_cmds
9257
9258 fi
9259 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9260 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9261 if test -n "$libltdl_cv_shlibext"; then
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9265 _ACEOF
9266
9267 fi
9268
9269
9270 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9271 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9272 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   libltdl_cv_shlibpath_var="$shlibpath_var"
9276 fi
9277 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9278 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9279 if test -n "$libltdl_cv_shlibpath_var"; then
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9283 _ACEOF
9284
9285 fi
9286
9287
9288 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9289 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9290 if test "${libltdl_cv_sys_search_path+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9294 fi
9295 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9296 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9297 if test -n "$libltdl_cv_sys_search_path"; then
9298   sys_search_path=
9299   for dir in $libltdl_cv_sys_search_path; do
9300     if test -z "$sys_search_path"; then
9301       sys_search_path="$dir"
9302     else
9303       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9304     fi
9305   done
9306
9307 cat >>confdefs.h <<_ACEOF
9308 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9309 _ACEOF
9310
9311 fi
9312
9313 { echo "$as_me:$LINENO: checking for objdir" >&5
9314 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9315 if test "${libltdl_cv_objdir+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   libltdl_cv_objdir="$objdir"
9319   if test -n "$objdir"; then
9320     :
9321   else
9322     rm -f .libs 2>/dev/null
9323     mkdir .libs 2>/dev/null
9324     if test -d .libs; then
9325       libltdl_cv_objdir=.libs
9326     else
9327       # MS-DOS does not allow filenames that begin with a dot.
9328       libltdl_cv_objdir=_libs
9329     fi
9330   rmdir .libs 2>/dev/null
9331   fi
9332
9333 fi
9334 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9335 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9336
9337 cat >>confdefs.h <<_ACEOF
9338 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9339 _ACEOF
9340
9341
9342
9343
9344
9345
9346 # Check for command to grab the raw symbol name followed by C symbol from nm.
9347 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9348 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9349 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352
9353 # These are sane defaults that work on at least a few old systems.
9354 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9355
9356 # Character class describing NM global symbol codes.
9357 symcode='[BCDEGRST]'
9358
9359 # Regexp to match symbols that can be accessed directly from C.
9360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9361
9362 # Transform an extracted symbol line into a proper C declaration
9363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9364
9365 # Transform an extracted symbol line into symbol name and symbol address
9366 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'"
9367
9368 # Define system-specific variables.
9369 case $host_os in
9370 aix*)
9371   symcode='[BCDT]'
9372   ;;
9373 cygwin* | mingw* | pw32*)
9374   symcode='[ABCDGISTW]'
9375   ;;
9376 hpux*) # Its linker distinguishes data from code symbols
9377   if test "$host_cpu" = ia64; then
9378     symcode='[ABCDEGRST]'
9379   fi
9380   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9381   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'"
9382   ;;
9383 linux*)
9384   if test "$host_cpu" = ia64; then
9385     symcode='[ABCDGIRSTW]'
9386     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9387     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'"
9388   fi
9389   ;;
9390 irix* | nonstopux*)
9391   symcode='[BCDEGRST]'
9392   ;;
9393 osf*)
9394   symcode='[BCDEGQRST]'
9395   ;;
9396 solaris*)
9397   symcode='[BDRT]'
9398   ;;
9399 sco3.2v5*)
9400   symcode='[DT]'
9401   ;;
9402 sysv4.2uw2*)
9403   symcode='[DT]'
9404   ;;
9405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9406   symcode='[ABDT]'
9407   ;;
9408 sysv4)
9409   symcode='[DFNSTU]'
9410   ;;
9411 esac
9412
9413 # Handle CRLF in mingw tool chain
9414 opt_cr=
9415 case $build_os in
9416 mingw*)
9417   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9418   ;;
9419 esac
9420
9421 # If we're using GNU nm, then use its standard symbol codes.
9422 case `$NM -V 2>&1` in
9423 *GNU* | *'with BFD'*)
9424   symcode='[ABCDGIRSTW]' ;;
9425 esac
9426
9427 # Try without a prefix undercore, then with it.
9428 for ac_symprfx in "" "_"; do
9429
9430   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9431   symxfrm="\\1 $ac_symprfx\\2 \\2"
9432
9433   # Write the raw and C identifiers.
9434   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9435
9436   # Check to see that the pipe works correctly.
9437   pipe_works=no
9438
9439   rm -f conftest*
9440   cat > conftest.$ac_ext <<EOF
9441 #ifdef __cplusplus
9442 extern "C" {
9443 #endif
9444 char nm_test_var;
9445 void nm_test_func(){}
9446 #ifdef __cplusplus
9447 }
9448 #endif
9449 int main(){nm_test_var='a';nm_test_func();return(0);}
9450 EOF
9451
9452   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453   (eval $ac_compile) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; then
9457     # Now try to grab the symbols.
9458     nlist=conftest.nm
9459     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9460   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } && test -s "$nlist"; then
9464       # Try sorting and uniquifying the output.
9465       if sort "$nlist" | uniq > "$nlist"T; then
9466         mv -f "$nlist"T "$nlist"
9467       else
9468         rm -f "$nlist"T
9469       fi
9470
9471       # Make sure that we snagged all the symbols we need.
9472       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9473         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9474           cat <<EOF > conftest.$ac_ext
9475 #ifdef __cplusplus
9476 extern "C" {
9477 #endif
9478
9479 EOF
9480           # Now generate the symbol file.
9481           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9482
9483           cat <<EOF >> conftest.$ac_ext
9484 #if defined (__STDC__) && __STDC__
9485 # define lt_ptr_t void *
9486 #else
9487 # define lt_ptr_t char *
9488 # define const
9489 #endif
9490
9491 /* The mapping between symbol names and symbols. */
9492 const struct {
9493   const char *name;
9494   lt_ptr_t address;
9495 }
9496 lt_preloaded_symbols[] =
9497 {
9498 EOF
9499           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9500           cat <<\EOF >> conftest.$ac_ext
9501   {0, (lt_ptr_t) 0}
9502 };
9503
9504 #ifdef __cplusplus
9505 }
9506 #endif
9507 EOF
9508           # Now try linking the two files.
9509           mv conftest.$ac_objext conftstm.$ac_objext
9510           lt_save_LIBS="$LIBS"
9511           lt_save_CFLAGS="$CFLAGS"
9512           LIBS="conftstm.$ac_objext"
9513           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9514           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515   (eval $ac_link) 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9519             pipe_works=yes
9520           fi
9521           LIBS="$lt_save_LIBS"
9522           CFLAGS="$lt_save_CFLAGS"
9523         else
9524           echo "cannot find nm_test_func in $nlist" >&5
9525         fi
9526       else
9527         echo "cannot find nm_test_var in $nlist" >&5
9528       fi
9529     else
9530       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9531     fi
9532   else
9533     echo "$progname: failed program was:" >&5
9534     cat conftest.$ac_ext >&5
9535   fi
9536   rm -f conftest* conftst*
9537
9538   # Do not use the global_symbol_pipe unless it works.
9539   if test "$pipe_works" = yes; then
9540     break
9541   else
9542     lt_cv_sys_global_symbol_pipe=
9543   fi
9544 done
9545
9546 fi
9547
9548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9549   lt_cv_sys_global_symbol_to_cdecl=
9550 fi
9551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9552   { echo "$as_me:$LINENO: result: failed" >&5
9553 echo "${ECHO_T}failed" >&6; }
9554 else
9555   { echo "$as_me:$LINENO: result: ok" >&5
9556 echo "${ECHO_T}ok" >&6; }
9557 fi
9558
9559
9560 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9561 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9562 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9563   echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9566     libltdl_cv_preloaded_symbols=yes
9567   else
9568     libltdl_cv_preloaded_symbols=no
9569   fi
9570
9571 fi
9572 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9573 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9574 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9575
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_PRELOADED_SYMBOLS 1
9578 _ACEOF
9579
9580 fi
9581
9582 LIBADD_DL=
9583
9584 ac_ext=c
9585 ac_cpp='$CPP $CPPFLAGS'
9586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589
9590
9591 { echo "$as_me:$LINENO: checking for shl_load" >&5
9592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9593 if test "${ac_cv_func_shl_load+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9604 #define shl_load innocuous_shl_load
9605
9606 /* System header to define __stub macros and hopefully few prototypes,
9607     which can conflict with char shl_load (); below.
9608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609     <limits.h> exists even on freestanding compilers.  */
9610
9611 #ifdef __STDC__
9612 # include <limits.h>
9613 #else
9614 # include <assert.h>
9615 #endif
9616
9617 #undef shl_load
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620    Use char because int might match the return type of a GCC
9621    builtin and then its argument prototype would still apply.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char shl_load ();
9626 /* The GNU C library defines this for functions which it implements
9627     to always fail with ENOSYS.  Some functions are actually named
9628     something starting with __ and the normal name is an alias.  */
9629 #if defined __stub_shl_load || defined __stub___shl_load
9630 choke me
9631 #endif
9632
9633 int
9634 main ()
9635 {
9636 return shl_load ();
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9643 case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_link") 2>conftest.er1
9649   ac_status=$?
9650   grep -v '^ *+' conftest.er1 >conftest.err
9651   rm -f conftest.er1
9652   cat conftest.err >&5
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); } &&
9655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656   { (case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_try") 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; } &&
9665          { ac_try='test -s conftest$ac_exeext'
9666   { (case "(($ac_try" in
9667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668   *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671   (eval "$ac_try") 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ac_cv_func_shl_load=yes
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         ac_cv_func_shl_load=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext \
9684       conftest$ac_exeext conftest.$ac_ext
9685 fi
9686 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9688 if test $ac_cv_func_shl_load = yes; then
9689
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_SHL_LOAD 1
9692 _ACEOF
9693
9694 else
9695   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   ac_check_lib_save_LIBS=$LIBS
9701 LIBS="-ldld  $LIBS"
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708
9709 /* Override any GCC internal prototype to avoid an error.
9710    Use char because int might match the return type of a GCC
9711    builtin and then its argument prototype would still apply.  */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 char shl_load ();
9716 int
9717 main ()
9718 {
9719 return shl_load ();
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739   { (case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_try") 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_try") 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_cv_lib_dld_shl_load=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763         ac_cv_lib_dld_shl_load=no
9764 fi
9765
9766 rm -f core conftest.err conftest.$ac_objext \
9767       conftest$ac_exeext conftest.$ac_ext
9768 LIBS=$ac_check_lib_save_LIBS
9769 fi
9770 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9771 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9772 if test $ac_cv_lib_dld_shl_load = yes; then
9773
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_SHL_LOAD 1
9776 _ACEOF
9777
9778         LIBADD_DL="$LIBADD_DL -ldld"
9779 else
9780   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldl  $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793
9794 /* Override any GCC internal prototype to avoid an error.
9795    Use char because int might match the return type of a GCC
9796    builtin and then its argument prototype would still apply.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char dlopen ();
9801 int
9802 main ()
9803 {
9804 return dlopen ();
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_link") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824   { (case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_try") 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest$ac_exeext'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_cv_lib_dl_dlopen=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         ac_cv_lib_dl_dlopen=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext \
9852       conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9854 fi
9855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9857 if test $ac_cv_lib_dl_dlopen = yes; then
9858
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_LIBDL 1
9861 _ACEOF
9862
9863                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9864 else
9865   cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871 #if HAVE_DLFCN_H
9872 #  include <dlfcn.h>
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 dlopen(0, 0);
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9885 case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_link") 2>conftest.er1
9891   ac_status=$?
9892   grep -v '^ *+' conftest.er1 >conftest.err
9893   rm -f conftest.er1
9894   cat conftest.err >&5
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); } &&
9897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9898   { (case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_try") 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; } &&
9907          { ac_try='test -s conftest$ac_exeext'
9908   { (case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_try") 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; }; then
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_LIBDL 1
9920 _ACEOF
9921  libltdl_cv_func_dlopen="yes"
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9927 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9928 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9929   echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931   ac_check_lib_save_LIBS=$LIBS
9932 LIBS="-lsvld  $LIBS"
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char dlopen ();
9947 int
9948 main ()
9949 {
9950 return dlopen ();
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_link") 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970   { (case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_try") 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; } &&
9979          { ac_try='test -s conftest$ac_exeext'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_try") 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989   ac_cv_lib_svld_dlopen=yes
9990 else
9991   echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994         ac_cv_lib_svld_dlopen=no
9995 fi
9996
9997 rm -f core conftest.err conftest.$ac_objext \
9998       conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10002 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10003 if test $ac_cv_lib_svld_dlopen = yes; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_LIBDL 1
10007 _ACEOF
10008
10009                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10010 else
10011   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-ldld  $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char dld_link ();
10032 int
10033 main ()
10034 {
10035 return dld_link ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_link") 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055   { (case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_try") 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; } &&
10064          { ac_try='test -s conftest$ac_exeext'
10065   { (case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_try") 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_cv_lib_dld_dld_link=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_cv_lib_dld_dld_link=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10088 if test $ac_cv_lib_dld_dld_link = yes; then
10089
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_DLD 1
10092 _ACEOF
10093
10094                 LIBADD_DL="$LIBADD_DL -ldld"
10095 else
10096   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10097 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10098 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10109 #define _dyld_func_lookup innocuous__dyld_func_lookup
10110
10111 /* System header to define __stub macros and hopefully few prototypes,
10112     which can conflict with char _dyld_func_lookup (); below.
10113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10114     <limits.h> exists even on freestanding compilers.  */
10115
10116 #ifdef __STDC__
10117 # include <limits.h>
10118 #else
10119 # include <assert.h>
10120 #endif
10121
10122 #undef _dyld_func_lookup
10123
10124 /* Override any GCC internal prototype to avoid an error.
10125    Use char because int might match the return type of a GCC
10126    builtin and then its argument prototype would still apply.  */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char _dyld_func_lookup ();
10131 /* The GNU C library defines this for functions which it implements
10132     to always fail with ENOSYS.  Some functions are actually named
10133     something starting with __ and the normal name is an alias.  */
10134 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10135 choke me
10136 #endif
10137
10138 int
10139 main ()
10140 {
10141 return _dyld_func_lookup ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (ac_try="$ac_link"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_link") 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161   { (case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_try") 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; } &&
10170          { ac_try='test -s conftest$ac_exeext'
10171   { (case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_try") 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_func__dyld_func_lookup=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185         ac_cv_func__dyld_func_lookup=no
10186 fi
10187
10188 rm -f core conftest.err conftest.$ac_objext \
10189       conftest$ac_exeext conftest.$ac_ext
10190 fi
10191 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10192 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10193 if test $ac_cv_func__dyld_func_lookup = yes; then
10194
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_DYLD 1
10197 _ACEOF
10198
10199 fi
10200
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210 rm -f core conftest.err conftest.$ac_objext \
10211       conftest$ac_exeext conftest.$ac_ext
10212
10213 fi
10214
10215
10216 fi
10217
10218
10219 fi
10220
10221
10222 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10223 then
10224   lt_save_LIBS="$LIBS"
10225   LIBS="$LIBS $LIBADD_DL"
10226
10227 for ac_func in dlerror
10228 do
10229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10243 #define $ac_func innocuous_$ac_func
10244
10245 /* System header to define __stub macros and hopefully few prototypes,
10246     which can conflict with char $ac_func (); below.
10247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248     <limits.h> exists even on freestanding compilers.  */
10249
10250 #ifdef __STDC__
10251 # include <limits.h>
10252 #else
10253 # include <assert.h>
10254 #endif
10255
10256 #undef $ac_func
10257
10258 /* Override any GCC internal prototype to avoid an error.
10259    Use char because int might match the return type of a GCC
10260    builtin and then its argument prototype would still apply.  */
10261 #ifdef __cplusplus
10262 extern "C"
10263 #endif
10264 char $ac_func ();
10265 /* The GNU C library defines this for functions which it implements
10266     to always fail with ENOSYS.  Some functions are actually named
10267     something starting with __ and the normal name is an alias.  */
10268 #if defined __stub_$ac_func || defined __stub___$ac_func
10269 choke me
10270 #endif
10271
10272 int
10273 main ()
10274 {
10275 return $ac_func ();
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (ac_try="$ac_link"
10282 case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_link") 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10295   { (case "(($ac_try" in
10296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297   *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300   (eval "$ac_try") 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; } &&
10304          { ac_try='test -s conftest$ac_exeext'
10305   { (case "(($ac_try" in
10306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307   *) ac_try_echo=$ac_try;;
10308 esac
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310   (eval "$ac_try") 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   eval "$as_ac_var=yes"
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319         eval "$as_ac_var=no"
10320 fi
10321
10322 rm -f core conftest.err conftest.$ac_objext \
10323       conftest$ac_exeext conftest.$ac_ext
10324 fi
10325 ac_res=`eval echo '${'$as_ac_var'}'`
10326                { echo "$as_me:$LINENO: result: $ac_res" >&5
10327 echo "${ECHO_T}$ac_res" >&6; }
10328 if test `eval echo '${'$as_ac_var'}'` = yes; then
10329   cat >>confdefs.h <<_ACEOF
10330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10331 _ACEOF
10332
10333 fi
10334 done
10335
10336   LIBS="$lt_save_LIBS"
10337 fi
10338 ac_ext=c
10339 ac_cpp='$CPP $CPPFLAGS'
10340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343
10344
10345
10346 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10347 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10348 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351   ac_cv_sys_symbol_underscore=no
10352   cat > conftest.$ac_ext <<EOF
10353 void nm_test_func(){}
10354 int main(){nm_test_func;return 0;}
10355 EOF
10356   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; then
10361     # Now try to grab the symbols.
10362     ac_nlist=conftest.nm
10363     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10364   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && test -s "$ac_nlist"; then
10368       # See whether the symbols have a leading underscore.
10369       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10370         ac_cv_sys_symbol_underscore=yes
10371       else
10372         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10373           :
10374         else
10375           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10376         fi
10377       fi
10378     else
10379       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10380     fi
10381   else
10382     echo "configure: failed program was:" >&5
10383     cat conftest.c >&5
10384   fi
10385   rm -rf conftest*
10386
10387 fi
10388 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10389 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10390
10391
10392 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10393   if test x"$libltdl_cv_func_dlopen" = xyes ||
10394      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10395         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10396 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10397 if test "${libltdl_cv_need_uscore+set}" = set; then
10398   echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400   libltdl_cv_need_uscore=unknown
10401           save_LIBS="$LIBS"
10402           LIBS="$LIBS $LIBADD_DL"
10403           if test "$cross_compiling" = yes; then :
10404   libltdl_cv_need_uscore=cross
10405 else
10406   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10407   lt_status=$lt_dlunknown
10408   cat > conftest.$ac_ext <<EOF
10409 #line 10409 "configure"
10410 #include "confdefs.h"
10411
10412 #if HAVE_DLFCN_H
10413 #include <dlfcn.h>
10414 #endif
10415
10416 #include <stdio.h>
10417
10418 #ifdef RTLD_GLOBAL
10419 #  define LT_DLGLOBAL           RTLD_GLOBAL
10420 #else
10421 #  ifdef DL_GLOBAL
10422 #    define LT_DLGLOBAL         DL_GLOBAL
10423 #  else
10424 #    define LT_DLGLOBAL         0
10425 #  endif
10426 #endif
10427
10428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10429    find out it does not work in some platform. */
10430 #ifndef LT_DLLAZY_OR_NOW
10431 #  ifdef RTLD_LAZY
10432 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10433 #  else
10434 #    ifdef DL_LAZY
10435 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10436 #    else
10437 #      ifdef RTLD_NOW
10438 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10439 #      else
10440 #        ifdef DL_NOW
10441 #          define LT_DLLAZY_OR_NOW      DL_NOW
10442 #        else
10443 #          define LT_DLLAZY_OR_NOW      0
10444 #        endif
10445 #      endif
10446 #    endif
10447 #  endif
10448 #endif
10449
10450 #ifdef __cplusplus
10451 extern "C" void exit (int);
10452 #endif
10453
10454 void fnord() { int i=42;}
10455 int main ()
10456 {
10457   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10458   int status = $lt_dlunknown;
10459
10460   if (self)
10461     {
10462       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10463       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10464       /* dlclose (self); */
10465     }
10466   else
10467     puts (dlerror ());
10468
10469     exit (status);
10470 }
10471 EOF
10472   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473   (eval $ac_link) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10477     (./conftest; exit; ) >&5 2>/dev/null
10478     lt_status=$?
10479     case x$lt_status in
10480       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10481       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10482       x$lt_dlunknown|x*)  ;;
10483     esac
10484   else :
10485     # compilation failed
10486
10487   fi
10488 fi
10489 rm -fr conftest*
10490
10491           LIBS="$save_LIBS"
10492
10493 fi
10494 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10495 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10496   fi
10497 fi
10498
10499 if test x"$libltdl_cv_need_uscore" = xyes; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define NEED_USCORE 1
10503 _ACEOF
10504
10505 fi
10506
10507
10508 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10509 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10510 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513   # PORTME does your system automatically load deplibs for dlopen?
10514   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10515   # For now, we just catch OSes we know something about -- in the
10516   # future, we'll try test this programmatically.
10517   libltdl_cv_sys_dlopen_deplibs=unknown
10518   case "$host_os" in
10519   aix3*|aix4.1.*|aix4.2.*)
10520     # Unknown whether this is true for these versions of AIX, but
10521     # we want this `case' here to explicitly catch those versions.
10522     libltdl_cv_sys_dlopen_deplibs=unknown
10523     ;;
10524   aix[45]*)
10525     libltdl_cv_sys_dlopen_deplibs=yes
10526     ;;
10527   darwin*)
10528     # Assuming the user has installed a libdl from somewhere, this is true
10529     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10533     # GNU and its variants, using gnu ld.so (Glibc)
10534     libltdl_cv_sys_dlopen_deplibs=yes
10535     ;;
10536   hpux10*|hpux11*)
10537     libltdl_cv_sys_dlopen_deplibs=yes
10538     ;;
10539   interix*)
10540     libltdl_cv_sys_dlopen_deplibs=yes
10541     ;;
10542   irix[12345]*|irix6.[01]*)
10543     # Catch all versions of IRIX before 6.2, and indicate that we don't
10544     # know how it worked for any of those versions.
10545     libltdl_cv_sys_dlopen_deplibs=unknown
10546     ;;
10547   irix*)
10548     # The case above catches anything before 6.2, and it's known that
10549     # at 6.2 and later dlopen does load deplibs.
10550     libltdl_cv_sys_dlopen_deplibs=yes
10551     ;;
10552   netbsd*)
10553     libltdl_cv_sys_dlopen_deplibs=yes
10554     ;;
10555   openbsd*)
10556     libltdl_cv_sys_dlopen_deplibs=yes
10557     ;;
10558   osf[1234]*)
10559     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10560     # it did *not* use an RPATH in a shared library to find objects the
10561     # library depends on, so we explicitly say `no'.
10562     libltdl_cv_sys_dlopen_deplibs=no
10563     ;;
10564   osf5.0|osf5.0a|osf5.1)
10565     # dlopen *does* load deplibs and with the right loader patch applied
10566     # it even uses RPATH in a shared library to search for shared objects
10567     # that the library depends on, but there's no easy way to know if that
10568     # patch is installed.  Since this is the case, all we can really
10569     # say is unknown -- it depends on the patch being installed.  If
10570     # it is, this changes to `yes'.  Without it, it would be `no'.
10571     libltdl_cv_sys_dlopen_deplibs=unknown
10572     ;;
10573   osf*)
10574     # the two cases above should catch all versions of osf <= 5.1.  Read
10575     # the comments above for what we know about them.
10576     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10577     # is used to find them so we can finally say `yes'.
10578     libltdl_cv_sys_dlopen_deplibs=yes
10579     ;;
10580   solaris*)
10581     libltdl_cv_sys_dlopen_deplibs=yes
10582     ;;
10583   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10584     libltdl_cv_sys_dlopen_deplibs=yes
10585     ;;
10586   esac
10587
10588 fi
10589 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10590 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10591 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10592
10593 cat >>confdefs.h <<\_ACEOF
10594 #define LTDL_DLOPEN_DEPLIBS 1
10595 _ACEOF
10596
10597 fi
10598
10599
10600 for ac_header in argz.h
10601 do
10602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10604   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 fi
10609 ac_res=`eval echo '${'$as_ac_Header'}'`
10610                { echo "$as_me:$LINENO: result: $ac_res" >&5
10611 echo "${ECHO_T}$ac_res" >&6; }
10612 else
10613   # Is the header compilable?
10614 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 $ac_includes_default
10623 #include <$ac_header>
10624 _ACEOF
10625 rm -f conftest.$ac_objext
10626 if { (ac_try="$ac_compile"
10627 case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_compile") 2>conftest.er1
10633   ac_status=$?
10634   grep -v '^ *+' conftest.er1 >conftest.err
10635   rm -f conftest.er1
10636   cat conftest.err >&5
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640   { (case "(($ac_try" in
10641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642   *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645   (eval "$ac_try") 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; } &&
10649          { ac_try='test -s conftest.$ac_objext'
10650   { (case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_try") 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   ac_header_compiler=yes
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664         ac_header_compiler=no
10665 fi
10666
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669 echo "${ECHO_T}$ac_header_compiler" >&6; }
10670
10671 # Is the header present?
10672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 #include <$ac_header>
10681 _ACEOF
10682 if { (ac_try="$ac_cpp conftest.$ac_ext"
10683 case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10689   ac_status=$?
10690   grep -v '^ *+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } >/dev/null; then
10695   if test -s conftest.err; then
10696     ac_cpp_err=$ac_c_preproc_warn_flag
10697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10698   else
10699     ac_cpp_err=
10700   fi
10701 else
10702   ac_cpp_err=yes
10703 fi
10704 if test -z "$ac_cpp_err"; then
10705   ac_header_preproc=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710   ac_header_preproc=no
10711 fi
10712
10713 rm -f conftest.err conftest.$ac_ext
10714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10715 echo "${ECHO_T}$ac_header_preproc" >&6; }
10716
10717 # So?  What about this header?
10718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10719   yes:no: )
10720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10724     ac_header_preproc=yes
10725     ;;
10726   no:yes:* )
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10739     ( cat <<\_ASBOX
10740 ## ------------------------------------ ##
10741 ## Report this to http://llvm.org/bugs/ ##
10742 ## ------------------------------------ ##
10743 _ASBOX
10744      ) | sed "s/^/$as_me: WARNING:     /" >&2
10745     ;;
10746 esac
10747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   eval "$as_ac_Header=\$ac_header_preproc"
10753 fi
10754 ac_res=`eval echo '${'$as_ac_Header'}'`
10755                { echo "$as_me:$LINENO: result: $ac_res" >&5
10756 echo "${ECHO_T}$ac_res" >&6; }
10757
10758 fi
10759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10760   cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10762 _ACEOF
10763
10764 fi
10765
10766 done
10767
10768
10769 { echo "$as_me:$LINENO: checking for error_t" >&5
10770 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10771 if test "${ac_cv_type_error_t+set}" = set; then
10772   echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774   cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 #if HAVE_ARGZ_H
10781 #  include <argz.h>
10782 #endif
10783
10784 typedef error_t ac__type_new_;
10785 int
10786 main ()
10787 {
10788 if ((ac__type_new_ *) 0)
10789   return 0;
10790 if (sizeof (ac__type_new_))
10791   return 0;
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_compile") 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811   { (case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_try") 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; } &&
10820          { ac_try='test -s conftest.$ac_objext'
10821   { (case "(($ac_try" in
10822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823   *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826   (eval "$ac_try") 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_cv_type_error_t=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835         ac_cv_type_error_t=no
10836 fi
10837
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 fi
10840 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10841 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10842 if test $ac_cv_type_error_t = yes; then
10843
10844 cat >>confdefs.h <<_ACEOF
10845 #define HAVE_ERROR_T 1
10846 _ACEOF
10847
10848
10849 else
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define error_t int
10853 _ACEOF
10854
10855 fi
10856
10857
10858
10859
10860
10861
10862
10863 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10864 do
10865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10879 #define $ac_func innocuous_$ac_func
10880
10881 /* System header to define __stub macros and hopefully few prototypes,
10882     which can conflict with char $ac_func (); below.
10883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884     <limits.h> exists even on freestanding compilers.  */
10885
10886 #ifdef __STDC__
10887 # include <limits.h>
10888 #else
10889 # include <assert.h>
10890 #endif
10891
10892 #undef $ac_func
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895    Use char because int might match the return type of a GCC
10896    builtin and then its argument prototype would still apply.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char $ac_func ();
10901 /* The GNU C library defines this for functions which it implements
10902     to always fail with ENOSYS.  Some functions are actually named
10903     something starting with __ and the normal name is an alias.  */
10904 #if defined __stub_$ac_func || defined __stub___$ac_func
10905 choke me
10906 #endif
10907
10908 int
10909 main ()
10910 {
10911 return $ac_func ();
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_link") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest$ac_exeext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   eval "$as_ac_var=yes"
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         eval "$as_ac_var=no"
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext \
10959       conftest$ac_exeext conftest.$ac_ext
10960 fi
10961 ac_res=`eval echo '${'$as_ac_var'}'`
10962                { echo "$as_me:$LINENO: result: $ac_res" >&5
10963 echo "${ECHO_T}$ac_res" >&6; }
10964 if test `eval echo '${'$as_ac_var'}'` = yes; then
10965   cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970 done
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11000                   stdio.h unistd.h
11001 do
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 fi
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010                { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 else
11013   # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022 $ac_includes_default
11023 #include <$ac_header>
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_compile") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } &&
11039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; } &&
11049          { ac_try='test -s conftest.$ac_objext'
11050   { (case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_try") 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   ac_header_compiler=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064         ac_header_compiler=no
11065 fi
11066
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6; }
11070
11071 # Is the header present?
11072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <$ac_header>
11081 _ACEOF
11082 if { (ac_try="$ac_cpp conftest.$ac_ext"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } >/dev/null; then
11095   if test -s conftest.err; then
11096     ac_cpp_err=$ac_c_preproc_warn_flag
11097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11098   else
11099     ac_cpp_err=
11100   fi
11101 else
11102   ac_cpp_err=yes
11103 fi
11104 if test -z "$ac_cpp_err"; then
11105   ac_header_preproc=yes
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110   ac_header_preproc=no
11111 fi
11112
11113 rm -f conftest.err conftest.$ac_ext
11114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115 echo "${ECHO_T}$ac_header_preproc" >&6; }
11116
11117 # So?  What about this header?
11118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11119   yes:no: )
11120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124     ac_header_preproc=yes
11125     ;;
11126   no:yes:* )
11127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139     ( cat <<\_ASBOX
11140 ## ------------------------------------ ##
11141 ## Report this to http://llvm.org/bugs/ ##
11142 ## ------------------------------------ ##
11143 _ASBOX
11144      ) | sed "s/^/$as_me: WARNING:     /" >&2
11145     ;;
11146 esac
11147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   eval "$as_ac_Header=\$ac_header_preproc"
11153 fi
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155                { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11157
11158 fi
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160   cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11162 _ACEOF
11163
11164 fi
11165
11166 done
11167
11168
11169
11170
11171
11172 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11173 do
11174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 fi
11181 ac_res=`eval echo '${'$as_ac_Header'}'`
11182                { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11184 else
11185   # Is the header compilable?
11186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194 $ac_includes_default
11195 #include <$ac_header>
11196 _ACEOF
11197 rm -f conftest.$ac_objext
11198 if { (ac_try="$ac_compile"
11199 case "(($ac_try" in
11200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201   *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204   (eval "$ac_compile") 2>conftest.er1
11205   ac_status=$?
11206   grep -v '^ *+' conftest.er1 >conftest.err
11207   rm -f conftest.er1
11208   cat conftest.err >&5
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); } &&
11211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11212   { (case "(($ac_try" in
11213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214   *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217   (eval "$ac_try") 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; } &&
11221          { ac_try='test -s conftest.$ac_objext'
11222   { (case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_try") 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   ac_header_compiler=yes
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236         ac_header_compiler=no
11237 fi
11238
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6; }
11242
11243 # Is the header present?
11244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 #include <$ac_header>
11253 _ACEOF
11254 if { (ac_try="$ac_cpp conftest.$ac_ext"
11255 case "(($ac_try" in
11256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257   *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261   ac_status=$?
11262   grep -v '^ *+' conftest.er1 >conftest.err
11263   rm -f conftest.er1
11264   cat conftest.err >&5
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); } >/dev/null; then
11267   if test -s conftest.err; then
11268     ac_cpp_err=$ac_c_preproc_warn_flag
11269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11270   else
11271     ac_cpp_err=
11272   fi
11273 else
11274   ac_cpp_err=yes
11275 fi
11276 if test -z "$ac_cpp_err"; then
11277   ac_header_preproc=yes
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282   ac_header_preproc=no
11283 fi
11284
11285 rm -f conftest.err conftest.$ac_ext
11286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6; }
11288
11289 # So?  What about this header?
11290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11291   yes:no: )
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11296     ac_header_preproc=yes
11297     ;;
11298   no:yes:* )
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311     ( cat <<\_ASBOX
11312 ## ------------------------------------ ##
11313 ## Report this to http://llvm.org/bugs/ ##
11314 ## ------------------------------------ ##
11315 _ASBOX
11316      ) | sed "s/^/$as_me: WARNING:     /" >&2
11317     ;;
11318 esac
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   eval "$as_ac_Header=\$ac_header_preproc"
11325 fi
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327                { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11329
11330 fi
11331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11332   cat >>confdefs.h <<_ACEOF
11333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11334 _ACEOF
11335
11336 fi
11337
11338 done
11339
11340
11341
11342 for ac_header in string.h strings.h
11343 do
11344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 fi
11351 ac_res=`eval echo '${'$as_ac_Header'}'`
11352                { echo "$as_me:$LINENO: result: $ac_res" >&5
11353 echo "${ECHO_T}$ac_res" >&6; }
11354 else
11355   # Is the header compilable?
11356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h.  */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h.  */
11364 $ac_includes_default
11365 #include <$ac_header>
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (ac_try="$ac_compile"
11369 case "(($ac_try" in
11370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371   *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374   (eval "$ac_compile") 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } &&
11381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11382   { (case "(($ac_try" in
11383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384   *) ac_try_echo=$ac_try;;
11385 esac
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387   (eval "$ac_try") 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; } &&
11391          { ac_try='test -s conftest.$ac_objext'
11392   { (case "(($ac_try" in
11393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394   *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397   (eval "$ac_try") 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; }; then
11401   ac_header_compiler=yes
11402 else
11403   echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406         ac_header_compiler=no
11407 fi
11408
11409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11411 echo "${ECHO_T}$ac_header_compiler" >&6; }
11412
11413 # Is the header present?
11414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 #include <$ac_header>
11423 _ACEOF
11424 if { (ac_try="$ac_cpp conftest.$ac_ext"
11425 case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } >/dev/null; then
11437   if test -s conftest.err; then
11438     ac_cpp_err=$ac_c_preproc_warn_flag
11439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440   else
11441     ac_cpp_err=
11442   fi
11443 else
11444   ac_cpp_err=yes
11445 fi
11446 if test -z "$ac_cpp_err"; then
11447   ac_header_preproc=yes
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452   ac_header_preproc=no
11453 fi
11454
11455 rm -f conftest.err conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457 echo "${ECHO_T}$ac_header_preproc" >&6; }
11458
11459 # So?  What about this header?
11460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461   yes:no: )
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466     ac_header_preproc=yes
11467     ;;
11468   no:yes:* )
11469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481     ( cat <<\_ASBOX
11482 ## ------------------------------------ ##
11483 ## Report this to http://llvm.org/bugs/ ##
11484 ## ------------------------------------ ##
11485 _ASBOX
11486      ) | sed "s/^/$as_me: WARNING:     /" >&2
11487     ;;
11488 esac
11489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   eval "$as_ac_Header=\$ac_header_preproc"
11495 fi
11496 ac_res=`eval echo '${'$as_ac_Header'}'`
11497                { echo "$as_me:$LINENO: result: $ac_res" >&5
11498 echo "${ECHO_T}$ac_res" >&6; }
11499
11500 fi
11501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502   cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504 _ACEOF
11505  break
11506 fi
11507
11508 done
11509
11510
11511
11512
11513 for ac_func in strchr index
11514 do
11515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h.  */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h.  */
11527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11529 #define $ac_func innocuous_$ac_func
11530
11531 /* System header to define __stub macros and hopefully few prototypes,
11532     which can conflict with char $ac_func (); below.
11533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534     <limits.h> exists even on freestanding compilers.  */
11535
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11541
11542 #undef $ac_func
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545    Use char because int might match the return type of a GCC
11546    builtin and then its argument prototype would still apply.  */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char $ac_func ();
11551 /* The GNU C library defines this for functions which it implements
11552     to always fail with ENOSYS.  Some functions are actually named
11553     something starting with __ and the normal name is an alias.  */
11554 #if defined __stub_$ac_func || defined __stub___$ac_func
11555 choke me
11556 #endif
11557
11558 int
11559 main ()
11560 {
11561 return $ac_func ();
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (ac_try="$ac_link"
11568 case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_link") 2>conftest.er1
11574   ac_status=$?
11575   grep -v '^ *+' conftest.er1 >conftest.err
11576   rm -f conftest.er1
11577   cat conftest.err >&5
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11581   { (case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586   (eval "$ac_try") 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; } &&
11590          { ac_try='test -s conftest$ac_exeext'
11591   { (case "(($ac_try" in
11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593   *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596   (eval "$ac_try") 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); }; }; then
11600   eval "$as_ac_var=yes"
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605         eval "$as_ac_var=no"
11606 fi
11607
11608 rm -f core conftest.err conftest.$ac_objext \
11609       conftest$ac_exeext conftest.$ac_ext
11610 fi
11611 ac_res=`eval echo '${'$as_ac_var'}'`
11612                { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 _ACEOF
11618  break
11619 fi
11620 done
11621
11622
11623
11624 for ac_func in strrchr rindex
11625 do
11626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11640 #define $ac_func innocuous_$ac_func
11641
11642 /* System header to define __stub macros and hopefully few prototypes,
11643     which can conflict with char $ac_func (); below.
11644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645     <limits.h> exists even on freestanding compilers.  */
11646
11647 #ifdef __STDC__
11648 # include <limits.h>
11649 #else
11650 # include <assert.h>
11651 #endif
11652
11653 #undef $ac_func
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656    Use char because int might match the return type of a GCC
11657    builtin and then its argument prototype would still apply.  */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char $ac_func ();
11662 /* The GNU C library defines this for functions which it implements
11663     to always fail with ENOSYS.  Some functions are actually named
11664     something starting with __ and the normal name is an alias.  */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11666 choke me
11667 #endif
11668
11669 int
11670 main ()
11671 {
11672 return $ac_func ();
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_link") 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } &&
11691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692   { (case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_try") 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest$ac_exeext'
11702   { (case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707   (eval "$ac_try") 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711   eval "$as_ac_var=yes"
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716         eval "$as_ac_var=no"
11717 fi
11718
11719 rm -f core conftest.err conftest.$ac_objext \
11720       conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723                { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726   cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11728 _ACEOF
11729  break
11730 fi
11731 done
11732
11733
11734
11735 for ac_func in memcpy bcopy
11736 do
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11751 #define $ac_func innocuous_$ac_func
11752
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func (); below.
11755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756     <limits.h> exists even on freestanding compilers.  */
11757
11758 #ifdef __STDC__
11759 # include <limits.h>
11760 #else
11761 # include <assert.h>
11762 #endif
11763
11764 #undef $ac_func
11765
11766 /* Override any GCC internal prototype to avoid an error.
11767    Use char because int might match the return type of a GCC
11768    builtin and then its argument prototype would still apply.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char $ac_func ();
11773 /* The GNU C library defines this for functions which it implements
11774     to always fail with ENOSYS.  Some functions are actually named
11775     something starting with __ and the normal name is an alias.  */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 choke me
11778 #endif
11779
11780 int
11781 main ()
11782 {
11783 return $ac_func ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_link") 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest$ac_exeext'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   eval "$as_ac_var=yes"
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         eval "$as_ac_var=no"
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext \
11831       conftest$ac_exeext conftest.$ac_ext
11832 fi
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834                { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837   cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839 _ACEOF
11840  break
11841 fi
11842 done
11843
11844
11845
11846 for ac_func in memmove strcmp
11847 do
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11862 #define $ac_func innocuous_$ac_func
11863
11864 /* System header to define __stub macros and hopefully few prototypes,
11865     which can conflict with char $ac_func (); below.
11866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867     <limits.h> exists even on freestanding compilers.  */
11868
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11874
11875 #undef $ac_func
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878    Use char because int might match the return type of a GCC
11879    builtin and then its argument prototype would still apply.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char $ac_func ();
11884 /* The GNU C library defines this for functions which it implements
11885     to always fail with ENOSYS.  Some functions are actually named
11886     something starting with __ and the normal name is an alias.  */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11888 choke me
11889 #endif
11890
11891 int
11892 main ()
11893 {
11894 return $ac_func ();
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_link") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914   { (case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_try") 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest$ac_exeext'
11924   { (case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_try") 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   eval "$as_ac_var=yes"
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938         eval "$as_ac_var=no"
11939 fi
11940
11941 rm -f core conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945                { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948   cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 _ACEOF
11951
11952 fi
11953 done
11954
11955
11956
11957
11958 for ac_func in closedir opendir readdir
11959 do
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11974 #define $ac_func innocuous_$ac_func
11975
11976 /* System header to define __stub macros and hopefully few prototypes,
11977     which can conflict with char $ac_func (); below.
11978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979     <limits.h> exists even on freestanding compilers.  */
11980
11981 #ifdef __STDC__
11982 # include <limits.h>
11983 #else
11984 # include <assert.h>
11985 #endif
11986
11987 #undef $ac_func
11988
11989 /* Override any GCC internal prototype to avoid an error.
11990    Use char because int might match the return type of a GCC
11991    builtin and then its argument prototype would still apply.  */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char $ac_func ();
11996 /* The GNU C library defines this for functions which it implements
11997     to always fail with ENOSYS.  Some functions are actually named
11998     something starting with __ and the normal name is an alias.  */
11999 #if defined __stub_$ac_func || defined __stub___$ac_func
12000 choke me
12001 #endif
12002
12003 int
12004 main ()
12005 {
12006 return $ac_func ();
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_link") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   eval "$as_ac_var=yes"
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050         eval "$as_ac_var=no"
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext \
12054       conftest$ac_exeext conftest.$ac_ext
12055 fi
12056 ac_res=`eval echo '${'$as_ac_var'}'`
12057                { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060   cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062 _ACEOF
12063
12064 fi
12065 done
12066
12067
12068
12069 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12070 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12071
12072 ICC=no
12073 IXX=no
12074 case $CC in
12075   icc*|icpc*)
12076     ICC=yes
12077     IXX=yes
12078     ;;
12079    *)
12080     ;;
12081 esac
12082
12083 if test "$GCC" != "yes" && test "$ICC" != "yes"
12084 then
12085   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12086 echo "$as_me: error: gcc|icc required but not found" >&2;}
12087    { (exit 1); exit 1; }; }
12088 fi
12089
12090 if test "$GXX" != "yes" && test "$IXX" != "yes"
12091 then
12092   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12093 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12094    { (exit 1); exit 1; }; }
12095 fi
12096
12097 if test "$GCC" = "yes"
12098 then
12099   cat >conftest.$ac_ext <<_ACEOF
12100 #if !defined(__GNUC__) || __GNUC__ < 3
12101 #error Unsupported GCC version
12102 #endif
12103
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_compile") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest.$ac_objext'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   :
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12145 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12146    { (exit 1); exit 1; }; }
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 fi
12151
12152 if test -z "$llvm_cv_gnu_make_command"
12153 then
12154   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12155 echo "$as_me: error: GNU Make required but not found" >&2;}
12156    { (exit 1); exit 1; }; }
12157 fi
12158
12159 { echo "$as_me:$LINENO: result: ok" >&5
12160 echo "${ECHO_T}ok" >&6; }
12161
12162 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12163 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12164 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12165
12166 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12167
12168 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12169
12170 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12171 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12172
12173
12174
12175 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12176 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_m_sin+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lm  $LIBS"
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190    Use char because int might match the return type of a GCC
12191    builtin and then its argument prototype would still apply.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char sin ();
12196 int
12197 main ()
12198 {
12199 return sin ();
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_link") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest$ac_exeext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_lib_m_sin=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243         ac_cv_lib_m_sin=no
12244 fi
12245
12246 rm -f core conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12251 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12252 if test $ac_cv_lib_m_sin = yes; then
12253   cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBM 1
12255 _ACEOF
12256
12257   LIBS="-lm $LIBS"
12258
12259 fi
12260
12261 if test "$llvm_cv_os_type" = "MingW" ; then
12262
12263 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12264 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12265 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-limagehlp  $LIBS"
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276
12277
12278 int
12279 main ()
12280 {
12281 return main ();
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_link") 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301   { (case "(($ac_try" in
12302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303   *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306   (eval "$ac_try") 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; } &&
12310          { ac_try='test -s conftest$ac_exeext'
12311   { (case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_try") 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_lib_imagehlp_main=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325         ac_cv_lib_imagehlp_main=no
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext \
12329       conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12331 fi
12332 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12333 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12334 if test $ac_cv_lib_imagehlp_main = yes; then
12335   cat >>confdefs.h <<_ACEOF
12336 #define HAVE_LIBIMAGEHLP 1
12337 _ACEOF
12338
12339   LIBS="-limagehlp $LIBS"
12340
12341 fi
12342
12343
12344 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12345 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12346 if test "${ac_cv_lib_psapi_main+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-lpsapi  $LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358
12359 int
12360 main ()
12361 {
12362 return main ();
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12375   ac_status=$?
12376   grep -v '^ *+' conftest.er1 >conftest.err
12377   rm -f conftest.er1
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382   { (case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387   (eval "$ac_try") 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; } &&
12391          { ac_try='test -s conftest$ac_exeext'
12392   { (case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397   (eval "$ac_try") 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_lib_psapi_main=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406         ac_cv_lib_psapi_main=no
12407 fi
12408
12409 rm -f core conftest.err conftest.$ac_objext \
12410       conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12414 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12415 if test $ac_cv_lib_psapi_main = yes; then
12416   cat >>confdefs.h <<_ACEOF
12417 #define HAVE_LIBPSAPI 1
12418 _ACEOF
12419
12420   LIBS="-lpsapi $LIBS"
12421
12422 fi
12423
12424 fi
12425
12426 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12427 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12428 if test "${ac_cv_search_dlopen+set}" = set; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   ac_func_search_save_LIBS=$LIBS
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440    Use char because int might match the return type of a GCC
12441    builtin and then its argument prototype would still apply.  */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char dlopen ();
12446 int
12447 main ()
12448 {
12449 return dlopen ();
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 for ac_lib in '' dl; do
12455   if test -z "$ac_lib"; then
12456     ac_res="none required"
12457   else
12458     ac_res=-l$ac_lib
12459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12460   fi
12461   rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468   (eval "$ac_link") 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476   { (case "(($ac_try" in
12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478   *) ac_try_echo=$ac_try;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481   (eval "$ac_try") 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest$ac_exeext'
12486   { (case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_try") 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; }; then
12495   ac_cv_search_dlopen=$ac_res
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500
12501 fi
12502
12503 rm -f core conftest.err conftest.$ac_objext \
12504       conftest$ac_exeext
12505   if test "${ac_cv_search_dlopen+set}" = set; then
12506   break
12507 fi
12508 done
12509 if test "${ac_cv_search_dlopen+set}" = set; then
12510   :
12511 else
12512   ac_cv_search_dlopen=no
12513 fi
12514 rm conftest.$ac_ext
12515 LIBS=$ac_func_search_save_LIBS
12516 fi
12517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12518 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12519 ac_res=$ac_cv_search_dlopen
12520 if test "$ac_res" != no; then
12521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12522
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_DLOPEN 1
12525 _ACEOF
12526
12527 else
12528   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12529 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12530 fi
12531
12532
12533 if test "$llvm_cv_enable_libffi" = "yes" ; then
12534   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12535 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12536 if test "${ac_cv_search_ffi_call+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   ac_func_search_save_LIBS=$LIBS
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546
12547 /* Override any GCC internal prototype to avoid an error.
12548    Use char because int might match the return type of a GCC
12549    builtin and then its argument prototype would still apply.  */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 char ffi_call ();
12554 int
12555 main ()
12556 {
12557 return ffi_call ();
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 for ac_lib in '' ffi; do
12563   if test -z "$ac_lib"; then
12564     ac_res="none required"
12565   else
12566     ac_res=-l$ac_lib
12567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12568   fi
12569   rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_link") 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584   { (case "(($ac_try" in
12585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586   *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589   (eval "$ac_try") 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest$ac_exeext'
12594   { (case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_try") 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_cv_search_ffi_call=$ac_res
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext \
12612       conftest$ac_exeext
12613   if test "${ac_cv_search_ffi_call+set}" = set; then
12614   break
12615 fi
12616 done
12617 if test "${ac_cv_search_ffi_call+set}" = set; then
12618   :
12619 else
12620   ac_cv_search_ffi_call=no
12621 fi
12622 rm conftest.$ac_ext
12623 LIBS=$ac_func_search_save_LIBS
12624 fi
12625 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12626 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12627 ac_res=$ac_cv_search_ffi_call
12628 if test "$ac_res" != no; then
12629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630
12631 cat >>confdefs.h <<\_ACEOF
12632 #define HAVE_FFI_CALL 1
12633 _ACEOF
12634
12635 else
12636   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12637 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12638    { (exit 1); exit 1; }; }
12639 fi
12640
12641 fi
12642
12643 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12644 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12645 if test "${ac_cv_search_mallinfo+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   ac_func_search_save_LIBS=$LIBS
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655
12656 /* Override any GCC internal prototype to avoid an error.
12657    Use char because int might match the return type of a GCC
12658    builtin and then its argument prototype would still apply.  */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char mallinfo ();
12663 int
12664 main ()
12665 {
12666 return mallinfo ();
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 for ac_lib in '' malloc; do
12672   if test -z "$ac_lib"; then
12673     ac_res="none required"
12674   else
12675     ac_res=-l$ac_lib
12676     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12677   fi
12678   rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682   *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685   (eval "$ac_link") 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693   { (case "(($ac_try" in
12694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695   *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698   (eval "$ac_try") 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; } &&
12702          { ac_try='test -s conftest$ac_exeext'
12703   { (case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_try") 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; }; then
12712   ac_cv_search_mallinfo=$ac_res
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
12718 fi
12719
12720 rm -f core conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext
12722   if test "${ac_cv_search_mallinfo+set}" = set; then
12723   break
12724 fi
12725 done
12726 if test "${ac_cv_search_mallinfo+set}" = set; then
12727   :
12728 else
12729   ac_cv_search_mallinfo=no
12730 fi
12731 rm conftest.$ac_ext
12732 LIBS=$ac_func_search_save_LIBS
12733 fi
12734 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12735 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12736 ac_res=$ac_cv_search_mallinfo
12737 if test "$ac_res" != no; then
12738   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12739
12740 cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_MALLINFO 1
12742 _ACEOF
12743
12744 fi
12745
12746
12747 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12748
12749 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12750 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12751 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lpthread  $LIBS"
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764    Use char because int might match the return type of a GCC
12765    builtin and then its argument prototype would still apply.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char pthread_mutex_init ();
12770 int
12771 main ()
12772 {
12773 return pthread_mutex_init ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_link") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_cv_lib_pthread_pthread_mutex_init=yes
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817         ac_cv_lib_pthread_pthread_mutex_init=no
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12823 fi
12824 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12825 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12826 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12827   cat >>confdefs.h <<_ACEOF
12828 #define HAVE_LIBPTHREAD 1
12829 _ACEOF
12830
12831   LIBS="-lpthread $LIBS"
12832
12833 fi
12834
12835   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12836 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12837 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840   ac_func_search_save_LIBS=$LIBS
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847
12848 /* Override any GCC internal prototype to avoid an error.
12849    Use char because int might match the return type of a GCC
12850    builtin and then its argument prototype would still apply.  */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 char pthread_mutex_lock ();
12855 int
12856 main ()
12857 {
12858 return pthread_mutex_lock ();
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 for ac_lib in '' pthread; do
12864   if test -z "$ac_lib"; then
12865     ac_res="none required"
12866   else
12867     ac_res=-l$ac_lib
12868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12869   fi
12870   rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877   (eval "$ac_link") 2>conftest.er1
12878   ac_status=$?
12879   grep -v '^ *+' conftest.er1 >conftest.err
12880   rm -f conftest.er1
12881   cat conftest.err >&5
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } &&
12884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885   { (case "(($ac_try" in
12886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887   *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890   (eval "$ac_try") 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; } &&
12894          { ac_try='test -s conftest$ac_exeext'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_cv_search_pthread_mutex_lock=$ac_res
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext \
12913       conftest$ac_exeext
12914   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12915   break
12916 fi
12917 done
12918 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919   :
12920 else
12921   ac_cv_search_pthread_mutex_lock=no
12922 fi
12923 rm conftest.$ac_ext
12924 LIBS=$ac_func_search_save_LIBS
12925 fi
12926 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12927 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12928 ac_res=$ac_cv_search_pthread_mutex_lock
12929 if test "$ac_res" != no; then
12930   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12931
12932 cat >>confdefs.h <<\_ACEOF
12933 #define HAVE_PTHREAD_MUTEX_LOCK 1
12934 _ACEOF
12935
12936 fi
12937
12938   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12939 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12940 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   ac_func_search_save_LIBS=$LIBS
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h.  */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h.  */
12950
12951 /* Override any GCC internal prototype to avoid an error.
12952    Use char because int might match the return type of a GCC
12953    builtin and then its argument prototype would still apply.  */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char pthread_rwlock_init ();
12958 int
12959 main ()
12960 {
12961 return pthread_rwlock_init ();
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 for ac_lib in '' pthread; do
12967   if test -z "$ac_lib"; then
12968     ac_res="none required"
12969   else
12970     ac_res=-l$ac_lib
12971     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12972   fi
12973   rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977   *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980   (eval "$ac_link") 2>conftest.er1
12981   ac_status=$?
12982   grep -v '^ *+' conftest.er1 >conftest.err
12983   rm -f conftest.er1
12984   cat conftest.err >&5
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); } &&
12987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12988   { (case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993   (eval "$ac_try") 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; } &&
12997          { ac_try='test -s conftest$ac_exeext'
12998   { (case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_try") 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_cv_search_pthread_rwlock_init=$ac_res
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012
13013 fi
13014
13015 rm -f core conftest.err conftest.$ac_objext \
13016       conftest$ac_exeext
13017   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13018   break
13019 fi
13020 done
13021 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022   :
13023 else
13024   ac_cv_search_pthread_rwlock_init=no
13025 fi
13026 rm conftest.$ac_ext
13027 LIBS=$ac_func_search_save_LIBS
13028 fi
13029 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13030 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13031 ac_res=$ac_cv_search_pthread_rwlock_init
13032 if test "$ac_res" != no; then
13033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13034
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_PTHREAD_RWLOCK_INIT 1
13037 _ACEOF
13038
13039 fi
13040
13041   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13042 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13043 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   ac_func_search_save_LIBS=$LIBS
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055    Use char because int might match the return type of a GCC
13056    builtin and then its argument prototype would still apply.  */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char pthread_getspecific ();
13061 int
13062 main ()
13063 {
13064 return pthread_getspecific ();
13065   ;
13066   return 0;
13067 }
13068 _ACEOF
13069 for ac_lib in '' pthread; do
13070   if test -z "$ac_lib"; then
13071     ac_res="none required"
13072   else
13073     ac_res=-l$ac_lib
13074     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13075   fi
13076   rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (ac_try="$ac_link"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_link") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } &&
13090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091   { (case "(($ac_try" in
13092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093   *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096   (eval "$ac_try") 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; } &&
13100          { ac_try='test -s conftest$ac_exeext'
13101   { (case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_try") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_cv_search_pthread_getspecific=$ac_res
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115
13116 fi
13117
13118 rm -f core conftest.err conftest.$ac_objext \
13119       conftest$ac_exeext
13120   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13121   break
13122 fi
13123 done
13124 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125   :
13126 else
13127   ac_cv_search_pthread_getspecific=no
13128 fi
13129 rm conftest.$ac_ext
13130 LIBS=$ac_func_search_save_LIBS
13131 fi
13132 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13133 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13134 ac_res=$ac_cv_search_pthread_getspecific
13135 if test "$ac_res" != no; then
13136   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_PTHREAD_GETSPECIFIC 1
13140 _ACEOF
13141
13142 fi
13143
13144 fi
13145
13146
13147 # Check whether --with-udis86 was given.
13148 if test "${with_udis86+set}" = set; then
13149   withval=$with_udis86;
13150       USE_UDIS86=1
13151
13152       case "$withval" in
13153         /usr/lib|yes) ;;
13154         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13155       esac
13156
13157 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13158 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13159 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-ludis86  $LIBS"
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172    Use char because int might match the return type of a GCC
13173    builtin and then its argument prototype would still apply.  */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char ud_init ();
13178 int
13179 main ()
13180 {
13181 return ud_init ();
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (ac_try="$ac_link"
13188 case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_link") 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } &&
13200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13201   { (case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_try") 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; } &&
13210          { ac_try='test -s conftest$ac_exeext'
13211   { (case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_try") 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   ac_cv_lib_udis86_ud_init=yes
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225         ac_cv_lib_udis86_ud_init=no
13226 fi
13227
13228 rm -f core conftest.err conftest.$ac_objext \
13229       conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13233 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13234 if test $ac_cv_lib_udis86_ud_init = yes; then
13235   cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LIBUDIS86 1
13237 _ACEOF
13238
13239   LIBS="-ludis86 $LIBS"
13240
13241 else
13242
13243         echo "Error! You need to have libudis86 around."
13244         exit -1
13245
13246 fi
13247
13248
13249 else
13250   USE_UDIS86=0
13251
13252 fi
13253
13254
13255 cat >>confdefs.h <<_ACEOF
13256 #define USE_UDIS86 $USE_UDIS86
13257 _ACEOF
13258
13259
13260
13261 # Check whether --with-oprofile was given.
13262 if test "${with_oprofile+set}" = set; then
13263   withval=$with_oprofile;
13264       USE_OPROFILE=1
13265
13266       case "$withval" in
13267         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13268         no) llvm_cv_oppath=
13269             USE_OPROFILE=0
13270  ;;
13271         *) llvm_cv_oppath="${withval}/lib/oprofile"
13272            CPPFLAGS="-I${withval}/include";;
13273       esac
13274       case $llvm_cv_os_type in
13275         Linux)
13276           if test -n "$llvm_cv_oppath" ; then
13277             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13279 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_bfd_init+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292    Use char because int might match the return type of a GCC
13293    builtin and then its argument prototype would still apply.  */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char bfd_init ();
13298 int
13299 main ()
13300 {
13301 return bfd_init ();
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 for ac_lib in '' bfd; do
13307   if test -z "$ac_lib"; then
13308     ac_res="none required"
13309   else
13310     ac_res=-l$ac_lib
13311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13312   fi
13313   rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_link") 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } &&
13327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328   { (case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_try") 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; } &&
13337          { ac_try='test -s conftest$ac_exeext'
13338   { (case "(($ac_try" in
13339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340   *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343   (eval "$ac_try") 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; }; then
13347   ac_cv_search_bfd_init=$ac_res
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352
13353 fi
13354
13355 rm -f core conftest.err conftest.$ac_objext \
13356       conftest$ac_exeext
13357   if test "${ac_cv_search_bfd_init+set}" = set; then
13358   break
13359 fi
13360 done
13361 if test "${ac_cv_search_bfd_init+set}" = set; then
13362   :
13363 else
13364   ac_cv_search_bfd_init=no
13365 fi
13366 rm conftest.$ac_ext
13367 LIBS=$ac_func_search_save_LIBS
13368 fi
13369 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13371 ac_res=$ac_cv_search_bfd_init
13372 if test "$ac_res" != no; then
13373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13374
13375 fi
13376
13377             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13378 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_op_open_agent+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 /* Override any GCC internal prototype to avoid an error.
13391    Use char because int might match the return type of a GCC
13392    builtin and then its argument prototype would still apply.  */
13393 #ifdef __cplusplus
13394 extern "C"
13395 #endif
13396 char op_open_agent ();
13397 int
13398 main ()
13399 {
13400 return op_open_agent ();
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 for ac_lib in '' opagent; do
13406   if test -z "$ac_lib"; then
13407     ac_res="none required"
13408   else
13409     ac_res=-l$ac_lib
13410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13411   fi
13412   rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_search_op_open_agent=$ac_res
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext
13456   if test "${ac_cv_search_op_open_agent+set}" = set; then
13457   break
13458 fi
13459 done
13460 if test "${ac_cv_search_op_open_agent+set}" = set; then
13461   :
13462 else
13463   ac_cv_search_op_open_agent=no
13464 fi
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13470 ac_res=$ac_cv_search_op_open_agent
13471 if test "$ac_res" != no; then
13472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474 else
13475
13476               echo "Error! You need to have libopagent around."
13477               exit -1
13478
13479 fi
13480
13481             if test "${ac_cv_header_opagent_h+set}" = set; then
13482   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_opagent_h+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 fi
13487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13489 else
13490   # Is the header compilable?
13491 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 $ac_includes_default
13500 #include <opagent.h>
13501 _ACEOF
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_compile") 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest.$ac_objext'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_header_compiler=yes
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541         ac_header_compiler=no
13542 fi
13543
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546 echo "${ECHO_T}$ac_header_compiler" >&6; }
13547
13548 # Is the header present?
13549 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551 cat >conftest.$ac_ext <<_ACEOF
13552 /* confdefs.h.  */
13553 _ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h.  */
13557 #include <opagent.h>
13558 _ACEOF
13559 if { (ac_try="$ac_cpp conftest.$ac_ext"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } >/dev/null; then
13572   if test -s conftest.err; then
13573     ac_cpp_err=$ac_c_preproc_warn_flag
13574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575   else
13576     ac_cpp_err=
13577   fi
13578 else
13579   ac_cpp_err=yes
13580 fi
13581 if test -z "$ac_cpp_err"; then
13582   ac_header_preproc=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587   ac_header_preproc=no
13588 fi
13589
13590 rm -f conftest.err conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 echo "${ECHO_T}$ac_header_preproc" >&6; }
13593
13594 # So?  What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596   yes:no: )
13597     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601     ac_header_preproc=yes
13602     ;;
13603   no:yes:* )
13604     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13607 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13608     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13611 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13612     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13616     ( cat <<\_ASBOX
13617 ## ------------------------------------ ##
13618 ## Report this to http://llvm.org/bugs/ ##
13619 ## ------------------------------------ ##
13620 _ASBOX
13621      ) | sed "s/^/$as_me: WARNING:     /" >&2
13622     ;;
13623 esac
13624 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13625 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627   echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629   ac_cv_header_opagent_h=$ac_header_preproc
13630 fi
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13633
13634 fi
13635 if test $ac_cv_header_opagent_h = yes; then
13636   :
13637 else
13638
13639               echo "Error! You need to have opagent.h around."
13640               exit -1
13641
13642 fi
13643
13644
13645           fi ;;
13646         *)
13647           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13648 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13649    { (exit 1); exit 1; }; } ;;
13650       esac
13651
13652 else
13653
13654       USE_OPROFILE=0
13655
13656
13657 fi
13658
13659
13660 cat >>confdefs.h <<_ACEOF
13661 #define LLVM_USE_OPROFILE $USE_OPROFILE
13662 _ACEOF
13663
13664
13665
13666 # Check whether --with-intel-jitevents was given.
13667 if test "${with_intel_jitevents+set}" = set; then
13668   withval=$with_intel_jitevents;
13669       case $llvm_cv_os_type in
13670         Linux|Win32|Cygwin|MingW) ;;
13671         *)
13672           { { echo "$as_me:$LINENO: error:
13673             Intel JIT API support is available on Linux and Windows only.\"" >&5
13674 echo "$as_me: error:
13675             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13676    { (exit 1); exit 1; }; } ;;
13677       esac
13678
13679       USE_INTEL_JITEVENTS=1
13680
13681       case "$llvm_cv_target_arch" in
13682         x86)    llvm_intel_jitevents_archdir="lib32";;
13683         x86_64) llvm_intel_jitevents_archdir="lib64";;
13684         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13685                 exit -1;;
13686       esac
13687       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13688       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13689       case "$withval" in
13690         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13691                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13692         *) ;;
13693       esac
13694
13695
13696
13697
13698       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13699       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13700
13701       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13702 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13703 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706   ac_func_search_save_LIBS=$LIBS
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713
13714 /* Override any GCC internal prototype to avoid an error.
13715    Use char because int might match the return type of a GCC
13716    builtin and then its argument prototype would still apply.  */
13717 #ifdef __cplusplus
13718 extern "C"
13719 #endif
13720 char iJIT_IsProfilingActive ();
13721 int
13722 main ()
13723 {
13724 return iJIT_IsProfilingActive ();
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 for ac_lib in '' jitprofiling; do
13730   if test -z "$ac_lib"; then
13731     ac_res="none required"
13732   else
13733     ac_res=-l$ac_lib
13734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13735   fi
13736   rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (ac_try="$ac_link"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_link") 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } &&
13750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751   { (case "(($ac_try" in
13752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753   *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756   (eval "$ac_try") 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest$ac_exeext'
13761   { (case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_try") 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; }; then
13770   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775
13776 fi
13777
13778 rm -f core conftest.err conftest.$ac_objext \
13779       conftest$ac_exeext
13780   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13781   break
13782 fi
13783 done
13784 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13785   :
13786 else
13787   ac_cv_search_iJIT_IsProfilingActive=no
13788 fi
13789 rm conftest.$ac_ext
13790 LIBS=$ac_func_search_save_LIBS
13791 fi
13792 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13793 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13794 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13795 if test "$ac_res" != no; then
13796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13797
13798 else
13799
13800         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13801         exit -1
13802
13803 fi
13804
13805       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13807 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13808 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 fi
13811 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13812 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13813 else
13814   # Is the header compilable?
13815 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13816 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h.  */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h.  */
13823 $ac_includes_default
13824 #include <jitprofiling.h>
13825 _ACEOF
13826 rm -f conftest.$ac_objext
13827 if { (ac_try="$ac_compile"
13828 case "(($ac_try" in
13829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830   *) ac_try_echo=$ac_try;;
13831 esac
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833   (eval "$ac_compile") 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13841   { (case "(($ac_try" in
13842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843   *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846   (eval "$ac_try") 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest.$ac_objext'
13851   { (case "(($ac_try" in
13852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853   *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856   (eval "$ac_try") 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; }; then
13860   ac_header_compiler=yes
13861 else
13862   echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865         ac_header_compiler=no
13866 fi
13867
13868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13870 echo "${ECHO_T}$ac_header_compiler" >&6; }
13871
13872 # Is the header present?
13873 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13874 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h.  */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h.  */
13881 #include <jitprofiling.h>
13882 _ACEOF
13883 if { (ac_try="$ac_cpp conftest.$ac_ext"
13884 case "(($ac_try" in
13885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886   *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13890   ac_status=$?
13891   grep -v '^ *+' conftest.er1 >conftest.err
13892   rm -f conftest.er1
13893   cat conftest.err >&5
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } >/dev/null; then
13896   if test -s conftest.err; then
13897     ac_cpp_err=$ac_c_preproc_warn_flag
13898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13899   else
13900     ac_cpp_err=
13901   fi
13902 else
13903   ac_cpp_err=yes
13904 fi
13905 if test -z "$ac_cpp_err"; then
13906   ac_header_preproc=yes
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911   ac_header_preproc=no
13912 fi
13913
13914 rm -f conftest.err conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916 echo "${ECHO_T}$ac_header_preproc" >&6; }
13917
13918 # So?  What about this header?
13919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920   yes:no: )
13921     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13922 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13923     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13924 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13925     ac_header_preproc=yes
13926     ;;
13927   no:yes:* )
13928     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13929 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13930     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13931 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13932     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13933 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13935 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13937 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13938     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13939 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13940     ( cat <<\_ASBOX
13941 ## ------------------------------------ ##
13942 ## Report this to http://llvm.org/bugs/ ##
13943 ## ------------------------------------ ##
13944 _ASBOX
13945      ) | sed "s/^/$as_me: WARNING:     /" >&2
13946     ;;
13947 esac
13948 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13949 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13950 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   ac_cv_header_jitprofiling_h=$ac_header_preproc
13954 fi
13955 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13956 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13957
13958 fi
13959 if test $ac_cv_header_jitprofiling_h = yes; then
13960   :
13961 else
13962
13963         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13964         exit -1
13965
13966 fi
13967
13968
13969
13970
13971 else
13972
13973       USE_INTEL_JITEVENTS=0
13974
13975
13976 fi
13977
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13981 _ACEOF
13982
13983
13984
13985
13986
13987
13988
13989
13990 ac_header_dirent=no
13991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13992   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13993 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13994 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 #include <sys/types.h>
14005 #include <$ac_hdr>
14006
14007 int
14008 main ()
14009 {
14010 if ((DIR *) 0)
14011 return 0;
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (ac_try="$ac_compile"
14018 case "(($ac_try" in
14019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020   *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023   (eval "$ac_compile") 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; } &&
14040          { ac_try='test -s conftest.$ac_objext'
14041   { (case "(($ac_try" in
14042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043   *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046   (eval "$ac_try") 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   eval "$as_ac_Header=yes"
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055         eval "$as_ac_Header=no"
14056 fi
14057
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 fi
14060 ac_res=`eval echo '${'$as_ac_Header'}'`
14061                { echo "$as_me:$LINENO: result: $ac_res" >&5
14062 echo "${ECHO_T}$ac_res" >&6; }
14063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14064   cat >>confdefs.h <<_ACEOF
14065 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14066 _ACEOF
14067
14068 ac_header_dirent=$ac_hdr; break
14069 fi
14070
14071 done
14072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14073 if test $ac_header_dirent = dirent.h; then
14074   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14076 if test "${ac_cv_search_opendir+set}" = set; then
14077   echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079   ac_func_search_save_LIBS=$LIBS
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h.  */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h.  */
14086
14087 /* Override any GCC internal prototype to avoid an error.
14088    Use char because int might match the return type of a GCC
14089    builtin and then its argument prototype would still apply.  */
14090 #ifdef __cplusplus
14091 extern "C"
14092 #endif
14093 char opendir ();
14094 int
14095 main ()
14096 {
14097 return opendir ();
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 for ac_lib in '' dir; do
14103   if test -z "$ac_lib"; then
14104     ac_res="none required"
14105   else
14106     ac_res=-l$ac_lib
14107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14108   fi
14109   rm -f conftest.$ac_objext conftest$ac_exeext
14110 if { (ac_try="$ac_link"
14111 case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116   (eval "$ac_link") 2>conftest.er1
14117   ac_status=$?
14118   grep -v '^ *+' conftest.er1 >conftest.err
14119   rm -f conftest.er1
14120   cat conftest.err >&5
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } &&
14123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14124   { (case "(($ac_try" in
14125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126   *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129   (eval "$ac_try") 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; } &&
14133          { ac_try='test -s conftest$ac_exeext'
14134   { (case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139   (eval "$ac_try") 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; }; then
14143   ac_cv_search_opendir=$ac_res
14144 else
14145   echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14147
14148
14149 fi
14150
14151 rm -f core conftest.err conftest.$ac_objext \
14152       conftest$ac_exeext
14153   if test "${ac_cv_search_opendir+set}" = set; then
14154   break
14155 fi
14156 done
14157 if test "${ac_cv_search_opendir+set}" = set; then
14158   :
14159 else
14160   ac_cv_search_opendir=no
14161 fi
14162 rm conftest.$ac_ext
14163 LIBS=$ac_func_search_save_LIBS
14164 fi
14165 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14166 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14167 ac_res=$ac_cv_search_opendir
14168 if test "$ac_res" != no; then
14169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14170
14171 fi
14172
14173 else
14174   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14175 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14176 if test "${ac_cv_search_opendir+set}" = set; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   ac_func_search_save_LIBS=$LIBS
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h.  */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h.  */
14186
14187 /* Override any GCC internal prototype to avoid an error.
14188    Use char because int might match the return type of a GCC
14189    builtin and then its argument prototype would still apply.  */
14190 #ifdef __cplusplus
14191 extern "C"
14192 #endif
14193 char opendir ();
14194 int
14195 main ()
14196 {
14197 return opendir ();
14198   ;
14199   return 0;
14200 }
14201 _ACEOF
14202 for ac_lib in '' x; do
14203   if test -z "$ac_lib"; then
14204     ac_res="none required"
14205   else
14206     ac_res=-l$ac_lib
14207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14208   fi
14209   rm -f conftest.$ac_objext conftest$ac_exeext
14210 if { (ac_try="$ac_link"
14211 case "(($ac_try" in
14212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213   *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216   (eval "$ac_link") 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } &&
14223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14224   { (case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229   (eval "$ac_try") 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); }; } &&
14233          { ac_try='test -s conftest$ac_exeext'
14234   { (case "(($ac_try" in
14235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236   *) ac_try_echo=$ac_try;;
14237 esac
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239   (eval "$ac_try") 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; }; then
14243   ac_cv_search_opendir=$ac_res
14244 else
14245   echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248
14249 fi
14250
14251 rm -f core conftest.err conftest.$ac_objext \
14252       conftest$ac_exeext
14253   if test "${ac_cv_search_opendir+set}" = set; then
14254   break
14255 fi
14256 done
14257 if test "${ac_cv_search_opendir+set}" = set; then
14258   :
14259 else
14260   ac_cv_search_opendir=no
14261 fi
14262 rm conftest.$ac_ext
14263 LIBS=$ac_func_search_save_LIBS
14264 fi
14265 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14266 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14267 ac_res=$ac_cv_search_opendir
14268 if test "$ac_res" != no; then
14269   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14270
14271 fi
14272
14273 fi
14274
14275 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14276 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14277 if test "${ac_cv_header_mmap_anon+set}" = set; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280    ac_ext=c
14281 ac_cpp='$CPP $CPPFLAGS'
14282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
14286   cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 #include <sys/mman.h>
14293 #include <unistd.h>
14294 #include <fcntl.h>
14295 int
14296 main ()
14297 {
14298 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
14305 case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_compile") 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318   { (case "(($ac_try" in
14319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320   *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323   (eval "$ac_try") 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (case "(($ac_try" in
14329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330   *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333   (eval "$ac_try") 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_header_mmap_anon=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342         ac_cv_header_mmap_anon=no
14343 fi
14344
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346   ac_ext=c
14347 ac_cpp='$CPP $CPPFLAGS'
14348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14351
14352
14353 fi
14354 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14355 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14356 if test "$ac_cv_header_mmap_anon" = yes; then
14357
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_MMAP_ANONYMOUS 1
14360 _ACEOF
14361
14362 fi
14363
14364 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14365 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14366 if test "${ac_cv_header_stat_broken+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h.  */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h.  */
14375 #include <sys/types.h>
14376 #include <sys/stat.h>
14377
14378 #if defined S_ISBLK && defined S_IFDIR
14379 # if S_ISBLK (S_IFDIR)
14380 You lose.
14381 # endif
14382 #endif
14383
14384 #if defined S_ISBLK && defined S_IFCHR
14385 # if S_ISBLK (S_IFCHR)
14386 You lose.
14387 # endif
14388 #endif
14389
14390 #if defined S_ISLNK && defined S_IFREG
14391 # if S_ISLNK (S_IFREG)
14392 You lose.
14393 # endif
14394 #endif
14395
14396 #if defined S_ISSOCK && defined S_IFREG
14397 # if S_ISSOCK (S_IFREG)
14398 You lose.
14399 # endif
14400 #endif
14401
14402 _ACEOF
14403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14404   $EGREP "You lose" >/dev/null 2>&1; then
14405   ac_cv_header_stat_broken=yes
14406 else
14407   ac_cv_header_stat_broken=no
14408 fi
14409 rm -f conftest*
14410
14411 fi
14412 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14413 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14414 if test $ac_cv_header_stat_broken = yes; then
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define STAT_MACROS_BROKEN 1
14418 _ACEOF
14419
14420 fi
14421
14422 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14423 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h.  */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h.  */
14433 #include <sys/types.h>
14434 #include <sys/wait.h>
14435 #ifndef WEXITSTATUS
14436 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14437 #endif
14438 #ifndef WIFEXITED
14439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14440 #endif
14441
14442 int
14443 main ()
14444 {
14445   int s;
14446   wait (&s);
14447   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456   *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459   (eval "$ac_compile") 2>conftest.er1
14460   ac_status=$?
14461   grep -v '^ *+' conftest.er1 >conftest.err
14462   rm -f conftest.er1
14463   cat conftest.err >&5
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } &&
14466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14467   { (case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_try") 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; } &&
14476          { ac_try='test -s conftest.$ac_objext'
14477   { (case "(($ac_try" in
14478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479   *) ac_try_echo=$ac_try;;
14480 esac
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482   (eval "$ac_try") 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }; }; then
14486   ac_cv_header_sys_wait_h=yes
14487 else
14488   echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491         ac_cv_header_sys_wait_h=no
14492 fi
14493
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14497 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14498 if test $ac_cv_header_sys_wait_h = yes; then
14499
14500 cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_SYS_WAIT_H 1
14502 _ACEOF
14503
14504 fi
14505
14506 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14507 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14508 if test "${ac_cv_header_time+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 #include <sys/types.h>
14518 #include <sys/time.h>
14519 #include <time.h>
14520
14521 int
14522 main ()
14523 {
14524 if ((struct tm *) 0)
14525 return 0;
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext
14531 if { (ac_try="$ac_compile"
14532 case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_compile") 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } &&
14544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545   { (case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_try") 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; } &&
14554          { ac_try='test -s conftest.$ac_objext'
14555   { (case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560   (eval "$ac_try") 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; }; then
14564   ac_cv_header_time=yes
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569         ac_cv_header_time=no
14570 fi
14571
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 fi
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14575 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14576 if test $ac_cv_header_time = yes; then
14577
14578 cat >>confdefs.h <<\_ACEOF
14579 #define TIME_WITH_SYS_TIME 1
14580 _ACEOF
14581
14582 fi
14583
14584
14585
14586
14587
14588
14589
14590
14591 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14592 do
14593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 fi
14600 ac_res=`eval echo '${'$as_ac_Header'}'`
14601                { echo "$as_me:$LINENO: result: $ac_res" >&5
14602 echo "${ECHO_T}$ac_res" >&6; }
14603 else
14604   # Is the header compilable?
14605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613 $ac_includes_default
14614 #include <$ac_header>
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (ac_try="$ac_compile"
14618 case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_compile") 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631   { (case "(($ac_try" in
14632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633   *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636   (eval "$ac_try") 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; } &&
14640          { ac_try='test -s conftest.$ac_objext'
14641   { (case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646   (eval "$ac_try") 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; }; then
14650   ac_header_compiler=yes
14651 else
14652   echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655         ac_header_compiler=no
14656 fi
14657
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14660 echo "${ECHO_T}$ac_header_compiler" >&6; }
14661
14662 # Is the header present?
14663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 #include <$ac_header>
14672 _ACEOF
14673 if { (ac_try="$ac_cpp conftest.$ac_ext"
14674 case "(($ac_try" in
14675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676   *) ac_try_echo=$ac_try;;
14677 esac
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680   ac_status=$?
14681   grep -v '^ *+' conftest.er1 >conftest.err
14682   rm -f conftest.er1
14683   cat conftest.err >&5
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } >/dev/null; then
14686   if test -s conftest.err; then
14687     ac_cpp_err=$ac_c_preproc_warn_flag
14688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14689   else
14690     ac_cpp_err=
14691   fi
14692 else
14693   ac_cpp_err=yes
14694 fi
14695 if test -z "$ac_cpp_err"; then
14696   ac_header_preproc=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701   ac_header_preproc=no
14702 fi
14703
14704 rm -f conftest.err conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6; }
14707
14708 # So?  What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710   yes:no: )
14711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14715     ac_header_preproc=yes
14716     ;;
14717   no:yes:* )
14718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14730     ( cat <<\_ASBOX
14731 ## ------------------------------------ ##
14732 ## Report this to http://llvm.org/bugs/ ##
14733 ## ------------------------------------ ##
14734 _ASBOX
14735      ) | sed "s/^/$as_me: WARNING:     /" >&2
14736     ;;
14737 esac
14738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743   eval "$as_ac_Header=\$ac_header_preproc"
14744 fi
14745 ac_res=`eval echo '${'$as_ac_Header'}'`
14746                { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14748
14749 fi
14750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14751   cat >>confdefs.h <<_ACEOF
14752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14753 _ACEOF
14754
14755 fi
14756
14757 done
14758
14759
14760
14761
14762
14763
14764
14765 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14766 do
14767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 fi
14774 ac_res=`eval echo '${'$as_ac_Header'}'`
14775                { echo "$as_me:$LINENO: result: $ac_res" >&5
14776 echo "${ECHO_T}$ac_res" >&6; }
14777 else
14778   # Is the header compilable?
14779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787 $ac_includes_default
14788 #include <$ac_header>
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_compile") 2>conftest.er1
14798   ac_status=$?
14799   grep -v '^ *+' conftest.er1 >conftest.err
14800   rm -f conftest.er1
14801   cat conftest.err >&5
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805   { (case "(($ac_try" in
14806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807   *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810   (eval "$ac_try") 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; } &&
14814          { ac_try='test -s conftest.$ac_objext'
14815   { (case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_try") 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_header_compiler=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829         ac_header_compiler=no
14830 fi
14831
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14834 echo "${ECHO_T}$ac_header_compiler" >&6; }
14835
14836 # Is the header present?
14837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14839 cat >conftest.$ac_ext <<_ACEOF
14840 /* confdefs.h.  */
14841 _ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h.  */
14845 #include <$ac_header>
14846 _ACEOF
14847 if { (ac_try="$ac_cpp conftest.$ac_ext"
14848 case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14854   ac_status=$?
14855   grep -v '^ *+' conftest.er1 >conftest.err
14856   rm -f conftest.er1
14857   cat conftest.err >&5
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } >/dev/null; then
14860   if test -s conftest.err; then
14861     ac_cpp_err=$ac_c_preproc_warn_flag
14862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14863   else
14864     ac_cpp_err=
14865   fi
14866 else
14867   ac_cpp_err=yes
14868 fi
14869 if test -z "$ac_cpp_err"; then
14870   ac_header_preproc=yes
14871 else
14872   echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875   ac_header_preproc=no
14876 fi
14877
14878 rm -f conftest.err conftest.$ac_ext
14879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880 echo "${ECHO_T}$ac_header_preproc" >&6; }
14881
14882 # So?  What about this header?
14883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884   yes:no: )
14885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889     ac_header_preproc=yes
14890     ;;
14891   no:yes:* )
14892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904     ( cat <<\_ASBOX
14905 ## ------------------------------------ ##
14906 ## Report this to http://llvm.org/bugs/ ##
14907 ## ------------------------------------ ##
14908 _ASBOX
14909      ) | sed "s/^/$as_me: WARNING:     /" >&2
14910     ;;
14911 esac
14912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   eval "$as_ac_Header=\$ac_header_preproc"
14918 fi
14919 ac_res=`eval echo '${'$as_ac_Header'}'`
14920                { echo "$as_me:$LINENO: result: $ac_res" >&5
14921 echo "${ECHO_T}$ac_res" >&6; }
14922
14923 fi
14924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14925   cat >>confdefs.h <<_ACEOF
14926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14927 _ACEOF
14928
14929 fi
14930
14931 done
14932
14933
14934
14935 for ac_header in utime.h windows.h
14936 do
14937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 fi
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945                { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14947 else
14948   # Is the header compilable?
14949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 $ac_includes_default
14958 #include <$ac_header>
14959 _ACEOF
14960 rm -f conftest.$ac_objext
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_compile") 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } &&
14974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975   { (case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_try") 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; } &&
14984          { ac_try='test -s conftest.$ac_objext'
14985   { (case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_try") 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); }; }; then
14994   ac_header_compiler=yes
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         ac_header_compiler=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004 echo "${ECHO_T}$ac_header_compiler" >&6; }
15005
15006 # Is the header present?
15007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015 #include <$ac_header>
15016 _ACEOF
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } >/dev/null; then
15030   if test -s conftest.err; then
15031     ac_cpp_err=$ac_c_preproc_warn_flag
15032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15033   else
15034     ac_cpp_err=
15035   fi
15036 else
15037   ac_cpp_err=yes
15038 fi
15039 if test -z "$ac_cpp_err"; then
15040   ac_header_preproc=yes
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045   ac_header_preproc=no
15046 fi
15047
15048 rm -f conftest.err conftest.$ac_ext
15049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15050 echo "${ECHO_T}$ac_header_preproc" >&6; }
15051
15052 # So?  What about this header?
15053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15054   yes:no: )
15055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15059     ac_header_preproc=yes
15060     ;;
15061   no:yes:* )
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15074     ( cat <<\_ASBOX
15075 ## ------------------------------------ ##
15076 ## Report this to http://llvm.org/bugs/ ##
15077 ## ------------------------------------ ##
15078 _ASBOX
15079      ) | sed "s/^/$as_me: WARNING:     /" >&2
15080     ;;
15081 esac
15082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   eval "$as_ac_Header=\$ac_header_preproc"
15088 fi
15089 ac_res=`eval echo '${'$as_ac_Header'}'`
15090                { echo "$as_me:$LINENO: result: $ac_res" >&5
15091 echo "${ECHO_T}$ac_res" >&6; }
15092
15093 fi
15094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15095   cat >>confdefs.h <<_ACEOF
15096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15097 _ACEOF
15098
15099 fi
15100
15101 done
15102
15103
15104
15105
15106
15107
15108 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15109 do
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 fi
15117 ac_res=`eval echo '${'$as_ac_Header'}'`
15118                { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15120 else
15121   # Is the header compilable?
15122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 $ac_includes_default
15131 #include <$ac_header>
15132 _ACEOF
15133 rm -f conftest.$ac_objext
15134 if { (ac_try="$ac_compile"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_compile") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest.$ac_objext'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_header_compiler=yes
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172         ac_header_compiler=no
15173 fi
15174
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15177 echo "${ECHO_T}$ac_header_compiler" >&6; }
15178
15179 # Is the header present?
15180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188 #include <$ac_header>
15189 _ACEOF
15190 if { (ac_try="$ac_cpp conftest.$ac_ext"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } >/dev/null; then
15203   if test -s conftest.err; then
15204     ac_cpp_err=$ac_c_preproc_warn_flag
15205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15206   else
15207     ac_cpp_err=
15208   fi
15209 else
15210   ac_cpp_err=yes
15211 fi
15212 if test -z "$ac_cpp_err"; then
15213   ac_header_preproc=yes
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218   ac_header_preproc=no
15219 fi
15220
15221 rm -f conftest.err conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6; }
15224
15225 # So?  What about this header?
15226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227   yes:no: )
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15232     ac_header_preproc=yes
15233     ;;
15234   no:yes:* )
15235     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15238 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15242 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15247     ( cat <<\_ASBOX
15248 ## ------------------------------------ ##
15249 ## Report this to http://llvm.org/bugs/ ##
15250 ## ------------------------------------ ##
15251 _ASBOX
15252      ) | sed "s/^/$as_me: WARNING:     /" >&2
15253     ;;
15254 esac
15255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   eval "$as_ac_Header=\$ac_header_preproc"
15261 fi
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263                { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15265
15266 fi
15267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15268   cat >>confdefs.h <<_ACEOF
15269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15270 _ACEOF
15271
15272 fi
15273
15274 done
15275
15276
15277
15278
15279
15280 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15281 do
15282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 fi
15289 ac_res=`eval echo '${'$as_ac_Header'}'`
15290                { echo "$as_me:$LINENO: result: $ac_res" >&5
15291 echo "${ECHO_T}$ac_res" >&6; }
15292 else
15293   # Is the header compilable?
15294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15296 cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 $ac_includes_default
15303 #include <$ac_header>
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest.$ac_objext'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_header_compiler=yes
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344         ac_header_compiler=no
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 echo "${ECHO_T}$ac_header_compiler" >&6; }
15350
15351 # Is the header present?
15352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 #include <$ac_header>
15361 _ACEOF
15362 if { (ac_try="$ac_cpp conftest.$ac_ext"
15363 case "(($ac_try" in
15364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365   *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15369   ac_status=$?
15370   grep -v '^ *+' conftest.er1 >conftest.err
15371   rm -f conftest.er1
15372   cat conftest.err >&5
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } >/dev/null; then
15375   if test -s conftest.err; then
15376     ac_cpp_err=$ac_c_preproc_warn_flag
15377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15378   else
15379     ac_cpp_err=
15380   fi
15381 else
15382   ac_cpp_err=yes
15383 fi
15384 if test -z "$ac_cpp_err"; then
15385   ac_header_preproc=yes
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390   ac_header_preproc=no
15391 fi
15392
15393 rm -f conftest.err conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395 echo "${ECHO_T}$ac_header_preproc" >&6; }
15396
15397 # So?  What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399   yes:no: )
15400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15404     ac_header_preproc=yes
15405     ;;
15406   no:yes:* )
15407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15419     ( cat <<\_ASBOX
15420 ## ------------------------------------ ##
15421 ## Report this to http://llvm.org/bugs/ ##
15422 ## ------------------------------------ ##
15423 _ASBOX
15424      ) | sed "s/^/$as_me: WARNING:     /" >&2
15425     ;;
15426 esac
15427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   eval "$as_ac_Header=\$ac_header_preproc"
15433 fi
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435                { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15437
15438 fi
15439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15440   cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 fi
15445
15446 done
15447
15448
15449 for ac_header in valgrind/valgrind.h
15450 do
15451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 fi
15458 ac_res=`eval echo '${'$as_ac_Header'}'`
15459                { echo "$as_me:$LINENO: result: $ac_res" >&5
15460 echo "${ECHO_T}$ac_res" >&6; }
15461 else
15462   # Is the header compilable?
15463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 $ac_includes_default
15472 #include <$ac_header>
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478   *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481   (eval "$ac_compile") 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } &&
15488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489   { (case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_try") 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest.$ac_objext'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   ac_header_compiler=yes
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         ac_header_compiler=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6; }
15519
15520 # Is the header present?
15521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } >/dev/null; then
15544   if test -s conftest.err; then
15545     ac_cpp_err=$ac_c_preproc_warn_flag
15546     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15547   else
15548     ac_cpp_err=
15549   fi
15550 else
15551   ac_cpp_err=yes
15552 fi
15553 if test -z "$ac_cpp_err"; then
15554   ac_header_preproc=yes
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559   ac_header_preproc=no
15560 fi
15561
15562 rm -f conftest.err conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6; }
15565
15566 # So?  What about this header?
15567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15568   yes:no: )
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15573     ac_header_preproc=yes
15574     ;;
15575   no:yes:* )
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15588     ( cat <<\_ASBOX
15589 ## ------------------------------------ ##
15590 ## Report this to http://llvm.org/bugs/ ##
15591 ## ------------------------------------ ##
15592 _ASBOX
15593      ) | sed "s/^/$as_me: WARNING:     /" >&2
15594     ;;
15595 esac
15596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   eval "$as_ac_Header=\$ac_header_preproc"
15602 fi
15603 ac_res=`eval echo '${'$as_ac_Header'}'`
15604                { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15606
15607 fi
15608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15609   cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15611 _ACEOF
15612
15613 fi
15614
15615 done
15616
15617
15618 for ac_header in fenv.h
15619 do
15620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 fi
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628                { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15630 else
15631   # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 $ac_includes_default
15641 #include <$ac_header>
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647   *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650   (eval "$ac_compile") 2>conftest.er1
15651   ac_status=$?
15652   grep -v '^ *+' conftest.er1 >conftest.err
15653   rm -f conftest.er1
15654   cat conftest.err >&5
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } &&
15657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15658   { (case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_try") 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; } &&
15667          { ac_try='test -s conftest.$ac_objext'
15668   { (case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_try") 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; }; then
15677   ac_header_compiler=yes
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682         ac_header_compiler=no
15683 fi
15684
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687 echo "${ECHO_T}$ac_header_compiler" >&6; }
15688
15689 # Is the header present?
15690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 #include <$ac_header>
15699 _ACEOF
15700 if { (ac_try="$ac_cpp conftest.$ac_ext"
15701 case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } >/dev/null; then
15713   if test -s conftest.err; then
15714     ac_cpp_err=$ac_c_preproc_warn_flag
15715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15716   else
15717     ac_cpp_err=
15718   fi
15719 else
15720   ac_cpp_err=yes
15721 fi
15722 if test -z "$ac_cpp_err"; then
15723   ac_header_preproc=yes
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728   ac_header_preproc=no
15729 fi
15730
15731 rm -f conftest.err conftest.$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15733 echo "${ECHO_T}$ac_header_preproc" >&6; }
15734
15735 # So?  What about this header?
15736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15737   yes:no: )
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15742     ac_header_preproc=yes
15743     ;;
15744   no:yes:* )
15745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15757     ( cat <<\_ASBOX
15758 ## ------------------------------------ ##
15759 ## Report this to http://llvm.org/bugs/ ##
15760 ## ------------------------------------ ##
15761 _ASBOX
15762      ) | sed "s/^/$as_me: WARNING:     /" >&2
15763     ;;
15764 esac
15765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768   echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770   eval "$as_ac_Header=\$ac_header_preproc"
15771 fi
15772 ac_res=`eval echo '${'$as_ac_Header'}'`
15773                { echo "$as_me:$LINENO: result: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15775
15776 fi
15777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778   cat >>confdefs.h <<_ACEOF
15779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15780 _ACEOF
15781
15782 fi
15783
15784 done
15785
15786 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15787
15788 for ac_header in pthread.h
15789 do
15790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 fi
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798                { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800 else
15801   # Is the header compilable?
15802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 $ac_includes_default
15811 #include <$ac_header>
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_compile") 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828   { (case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_try") 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; } &&
15837          { ac_try='test -s conftest.$ac_objext'
15838   { (case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_try") 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_header_compiler=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         ac_header_compiler=no
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15857 echo "${ECHO_T}$ac_header_compiler" >&6; }
15858
15859 # Is the header present?
15860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868 #include <$ac_header>
15869 _ACEOF
15870 if { (ac_try="$ac_cpp conftest.$ac_ext"
15871 case "(($ac_try" in
15872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873   *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } >/dev/null; then
15883   if test -s conftest.err; then
15884     ac_cpp_err=$ac_c_preproc_warn_flag
15885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886   else
15887     ac_cpp_err=
15888   fi
15889 else
15890   ac_cpp_err=yes
15891 fi
15892 if test -z "$ac_cpp_err"; then
15893   ac_header_preproc=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898   ac_header_preproc=no
15899 fi
15900
15901 rm -f conftest.err conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15903 echo "${ECHO_T}$ac_header_preproc" >&6; }
15904
15905 # So?  What about this header?
15906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907   yes:no: )
15908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15912     ac_header_preproc=yes
15913     ;;
15914   no:yes:* )
15915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15927     ( cat <<\_ASBOX
15928 ## ------------------------------------ ##
15929 ## Report this to http://llvm.org/bugs/ ##
15930 ## ------------------------------------ ##
15931 _ASBOX
15932      ) | sed "s/^/$as_me: WARNING:     /" >&2
15933     ;;
15934 esac
15935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   eval "$as_ac_Header=\$ac_header_preproc"
15941 fi
15942 ac_res=`eval echo '${'$as_ac_Header'}'`
15943                { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15945
15946 fi
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948   cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 _ACEOF
15951  HAVE_PTHREAD=1
15952
15953 else
15954   HAVE_PTHREAD=0
15955
15956 fi
15957
15958 done
15959
15960 else
15961   HAVE_PTHREAD=0
15962
15963 fi
15964
15965 if test "$llvm_cv_enable_libffi" = "yes" ; then
15966
15967
15968 for ac_header in ffi.h ffi/ffi.h
15969 do
15970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 fi
15977 ac_res=`eval echo '${'$as_ac_Header'}'`
15978                { echo "$as_me:$LINENO: result: $ac_res" >&5
15979 echo "${ECHO_T}$ac_res" >&6; }
15980 else
15981   # Is the header compilable?
15982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 $ac_includes_default
15991 #include <$ac_header>
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_compile") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } &&
16007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16008   { (case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_try") 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; } &&
16017          { ac_try='test -s conftest.$ac_objext'
16018   { (case "(($ac_try" in
16019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020   *) ac_try_echo=$ac_try;;
16021 esac
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023   (eval "$ac_try") 2>&5
16024   ac_status=$?
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); }; }; then
16027   ac_header_compiler=yes
16028 else
16029   echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16031
16032         ac_header_compiler=no
16033 fi
16034
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16037 echo "${ECHO_T}$ac_header_compiler" >&6; }
16038
16039 # Is the header present?
16040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048 #include <$ac_header>
16049 _ACEOF
16050 if { (ac_try="$ac_cpp conftest.$ac_ext"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } >/dev/null; then
16063   if test -s conftest.err; then
16064     ac_cpp_err=$ac_c_preproc_warn_flag
16065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16066   else
16067     ac_cpp_err=
16068   fi
16069 else
16070   ac_cpp_err=yes
16071 fi
16072 if test -z "$ac_cpp_err"; then
16073   ac_header_preproc=yes
16074 else
16075   echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078   ac_header_preproc=no
16079 fi
16080
16081 rm -f conftest.err conftest.$ac_ext
16082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16083 echo "${ECHO_T}$ac_header_preproc" >&6; }
16084
16085 # So?  What about this header?
16086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16087   yes:no: )
16088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16092     ac_header_preproc=yes
16093     ;;
16094   no:yes:* )
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16107     ( cat <<\_ASBOX
16108 ## ------------------------------------ ##
16109 ## Report this to http://llvm.org/bugs/ ##
16110 ## ------------------------------------ ##
16111 _ASBOX
16112      ) | sed "s/^/$as_me: WARNING:     /" >&2
16113     ;;
16114 esac
16115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   eval "$as_ac_Header=\$ac_header_preproc"
16121 fi
16122 ac_res=`eval echo '${'$as_ac_Header'}'`
16123                { echo "$as_me:$LINENO: result: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16125
16126 fi
16127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16128   cat >>confdefs.h <<_ACEOF
16129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16130 _ACEOF
16131
16132 fi
16133
16134 done
16135
16136 fi
16137
16138
16139 for ac_header in CrashReporterClient.h
16140 do
16141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146   echo $ECHO_N "(cached) $ECHO_C" >&6
16147 fi
16148 ac_res=`eval echo '${'$as_ac_Header'}'`
16149                { echo "$as_me:$LINENO: result: $ac_res" >&5
16150 echo "${ECHO_T}$ac_res" >&6; }
16151 else
16152   # Is the header compilable?
16153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 $ac_includes_default
16162 #include <$ac_header>
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_compile") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } &&
16178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179   { (case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_try") 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest.$ac_objext'
16189   { (case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_try") 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ac_header_compiler=yes
16199 else
16200   echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203         ac_header_compiler=no
16204 fi
16205
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208 echo "${ECHO_T}$ac_header_compiler" >&6; }
16209
16210 # Is the header present?
16211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 #include <$ac_header>
16220 _ACEOF
16221 if { (ac_try="$ac_cpp conftest.$ac_ext"
16222 case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16228   ac_status=$?
16229   grep -v '^ *+' conftest.er1 >conftest.err
16230   rm -f conftest.er1
16231   cat conftest.err >&5
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); } >/dev/null; then
16234   if test -s conftest.err; then
16235     ac_cpp_err=$ac_c_preproc_warn_flag
16236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16237   else
16238     ac_cpp_err=
16239   fi
16240 else
16241   ac_cpp_err=yes
16242 fi
16243 if test -z "$ac_cpp_err"; then
16244   ac_header_preproc=yes
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249   ac_header_preproc=no
16250 fi
16251
16252 rm -f conftest.err conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6; }
16255
16256 # So?  What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258   yes:no: )
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263     ac_header_preproc=yes
16264     ;;
16265   no:yes:* )
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16278     ( cat <<\_ASBOX
16279 ## ------------------------------------ ##
16280 ## Report this to http://llvm.org/bugs/ ##
16281 ## ------------------------------------ ##
16282 _ASBOX
16283      ) | sed "s/^/$as_me: WARNING:     /" >&2
16284     ;;
16285 esac
16286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289   echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291   eval "$as_ac_Header=\$ac_header_preproc"
16292 fi
16293 ac_res=`eval echo '${'$as_ac_Header'}'`
16294                { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16296
16297 fi
16298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299   cat >>confdefs.h <<_ACEOF
16300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16301 _ACEOF
16302
16303 fi
16304
16305 done
16306
16307
16308 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16309 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316 extern const char *__crashreporter_info__;
16317       int main() {
16318         __crashreporter_info__ = "test";
16319         return 0;
16320       }
16321
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327   *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330   (eval "$ac_link") 2>conftest.er1
16331   ac_status=$?
16332   grep -v '^ *+' conftest.er1 >conftest.err
16333   rm -f conftest.er1
16334   cat conftest.err >&5
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); } &&
16337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338   { (case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_try") 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; } &&
16347          { ac_try='test -s conftest$ac_exeext'
16348   { (case "(($ac_try" in
16349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350   *) ac_try_echo=$ac_try;;
16351 esac
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353   (eval "$ac_try") 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; }; then
16357   { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CRASHREPORTER_INFO 1
16362 _ACEOF
16363
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368         { echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6; }
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_CRASHREPORTER_INFO 0
16373 _ACEOF
16374
16375 fi
16376
16377 rm -f core conftest.err conftest.$ac_objext \
16378       conftest$ac_exeext conftest.$ac_ext
16379
16380
16381
16382
16383   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16384 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16385 if test "${ac_cv_huge_val_sanity+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388
16389     ac_ext=cpp
16390 ac_cpp='$CXXCPP $CPPFLAGS'
16391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16394
16395     ac_save_CXXFLAGS=$CXXFLAGS
16396     CXXFLAGS="$CXXFLAGS -pedantic"
16397     if test "$cross_compiling" = yes; then
16398   ac_cv_huge_val_sanity=yes
16399 else
16400   cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406 #include <math.h>
16407 int
16408 main ()
16409 {
16410 double x = HUGE_VAL; return x != x;
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_link") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426   { (case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_try") 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435   ac_cv_huge_val_sanity=yes
16436 else
16437   echo "$as_me: program exited with status $ac_status" >&5
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ( exit $ac_status )
16442 ac_cv_huge_val_sanity=no
16443 fi
16444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16445 fi
16446
16447
16448     CXXFLAGS=$ac_save_CXXFLAGS
16449     ac_ext=c
16450 ac_cpp='$CPP $CPPFLAGS'
16451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16454
16455
16456 fi
16457 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16458 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16459   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16460
16461
16462 { echo "$as_me:$LINENO: checking for pid_t" >&5
16463 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16464 if test "${ac_cv_type_pid_t+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 $ac_includes_default
16474 typedef pid_t ac__type_new_;
16475 int
16476 main ()
16477 {
16478 if ((ac__type_new_ *) 0)
16479   return 0;
16480 if (sizeof (ac__type_new_))
16481   return 0;
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (ac_try="$ac_compile"
16488 case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_compile") 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } &&
16500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501   { (case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_try") 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; } &&
16510          { ac_try='test -s conftest.$ac_objext'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520   ac_cv_type_pid_t=yes
16521 else
16522   echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16524
16525         ac_cv_type_pid_t=no
16526 fi
16527
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16531 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16532 if test $ac_cv_type_pid_t = yes; then
16533   :
16534 else
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define pid_t int
16538 _ACEOF
16539
16540 fi
16541
16542 { echo "$as_me:$LINENO: checking for size_t" >&5
16543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16544 if test "${ac_cv_type_size_t+set}" = set; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 $ac_includes_default
16554 typedef size_t ac__type_new_;
16555 int
16556 main ()
16557 {
16558 if ((ac__type_new_ *) 0)
16559   return 0;
16560 if (sizeof (ac__type_new_))
16561   return 0;
16562   ;
16563   return 0;
16564 }
16565 _ACEOF
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_compile") 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } &&
16580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581   { (case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_try") 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; } &&
16590          { ac_try='test -s conftest.$ac_objext'
16591   { (case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_try") 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; }; then
16600   ac_cv_type_size_t=yes
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605         ac_cv_type_size_t=no
16606 fi
16607
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 fi
16610 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16611 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16612 if test $ac_cv_type_size_t = yes; then
16613   :
16614 else
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define size_t unsigned int
16618 _ACEOF
16619
16620 fi
16621
16622
16623 cat >>confdefs.h <<_ACEOF
16624 #define RETSIGTYPE void
16625 _ACEOF
16626
16627 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16629 if test "${ac_cv_struct_tm+set}" = set; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632   cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 #include <sys/types.h>
16639 #include <time.h>
16640
16641 int
16642 main ()
16643 {
16644 struct tm *tp; tp->tm_sec;
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_compile") 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } &&
16663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664   { (case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_try") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   ac_cv_struct_tm=time.h
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688         ac_cv_struct_tm=sys/time.h
16689 fi
16690
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 fi
16693 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16694 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16695 if test $ac_cv_struct_tm = sys/time.h; then
16696
16697 cat >>confdefs.h <<\_ACEOF
16698 #define TM_IN_SYS_TIME 1
16699 _ACEOF
16700
16701 fi
16702
16703 { echo "$as_me:$LINENO: checking for int64_t" >&5
16704 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16705 if test "${ac_cv_type_int64_t+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 $ac_includes_default
16715 typedef int64_t ac__type_new_;
16716 int
16717 main ()
16718 {
16719 if ((ac__type_new_ *) 0)
16720   return 0;
16721 if (sizeof (ac__type_new_))
16722   return 0;
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (ac_try="$ac_compile"
16729 case "(($ac_try" in
16730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731   *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734   (eval "$ac_compile") 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16742   { (case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747   (eval "$ac_try") 2>&5
16748   ac_status=$?
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); }; } &&
16751          { ac_try='test -s conftest.$ac_objext'
16752   { (case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_try") 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; }; then
16761   ac_cv_type_int64_t=yes
16762 else
16763   echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766         ac_cv_type_int64_t=no
16767 fi
16768
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770 fi
16771 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16772 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16773 if test $ac_cv_type_int64_t = yes; then
16774
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_INT64_T 1
16777 _ACEOF
16778
16779
16780 else
16781   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16782 echo "$as_me: error: Type int64_t required but not found" >&2;}
16783    { (exit 1); exit 1; }; }
16784 fi
16785
16786 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16787 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16788 if test "${ac_cv_type_uint64_t+set}" = set; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791   cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797 $ac_includes_default
16798 typedef uint64_t ac__type_new_;
16799 int
16800 main ()
16801 {
16802 if ((ac__type_new_ *) 0)
16803   return 0;
16804 if (sizeof (ac__type_new_))
16805   return 0;
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (ac_try="$ac_compile"
16812 case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_compile") 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; } &&
16834          { ac_try='test -s conftest.$ac_objext'
16835   { (case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_try") 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_cv_type_uint64_t=yes
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849         ac_cv_type_uint64_t=no
16850 fi
16851
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 fi
16854 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16855 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16856 if test $ac_cv_type_uint64_t = yes; then
16857
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_UINT64_T 1
16860 _ACEOF
16861
16862
16863 else
16864   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16865 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16866 if test "${ac_cv_type_u_int64_t+set}" = set; then
16867   echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869   cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 $ac_includes_default
16876 typedef u_int64_t ac__type_new_;
16877 int
16878 main ()
16879 {
16880 if ((ac__type_new_ *) 0)
16881   return 0;
16882 if (sizeof (ac__type_new_))
16883   return 0;
16884   ;
16885   return 0;
16886 }
16887 _ACEOF
16888 rm -f conftest.$ac_objext
16889 if { (ac_try="$ac_compile"
16890 case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_compile") 2>conftest.er1
16896   ac_status=$?
16897   grep -v '^ *+' conftest.er1 >conftest.err
16898   rm -f conftest.er1
16899   cat conftest.err >&5
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903   { (case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908   (eval "$ac_try") 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; } &&
16912          { ac_try='test -s conftest.$ac_objext'
16913   { (case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918   (eval "$ac_try") 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_type_u_int64_t=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927         ac_cv_type_u_int64_t=no
16928 fi
16929
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931 fi
16932 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16933 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16934 if test $ac_cv_type_u_int64_t = yes; then
16935
16936 cat >>confdefs.h <<_ACEOF
16937 #define HAVE_U_INT64_T 1
16938 _ACEOF
16939
16940
16941 else
16942   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16943 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16944    { (exit 1); exit 1; }; }
16945 fi
16946
16947 fi
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16959 do
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16974 #define $ac_func innocuous_$ac_func
16975
16976 /* System header to define __stub macros and hopefully few prototypes,
16977     which can conflict with char $ac_func (); below.
16978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979     <limits.h> exists even on freestanding compilers.  */
16980
16981 #ifdef __STDC__
16982 # include <limits.h>
16983 #else
16984 # include <assert.h>
16985 #endif
16986
16987 #undef $ac_func
16988
16989 /* Override any GCC internal prototype to avoid an error.
16990    Use char because int might match the return type of a GCC
16991    builtin and then its argument prototype would still apply.  */
16992 #ifdef __cplusplus
16993 extern "C"
16994 #endif
16995 char $ac_func ();
16996 /* The GNU C library defines this for functions which it implements
16997     to always fail with ENOSYS.  Some functions are actually named
16998     something starting with __ and the normal name is an alias.  */
16999 #if defined __stub_$ac_func || defined __stub___$ac_func
17000 choke me
17001 #endif
17002
17003 int
17004 main ()
17005 {
17006 return $ac_func ();
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_link") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; } &&
17035          { ac_try='test -s conftest$ac_exeext'
17036   { (case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_try") 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   eval "$as_ac_var=yes"
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050         eval "$as_ac_var=no"
17051 fi
17052
17053 rm -f core conftest.err conftest.$ac_objext \
17054       conftest$ac_exeext conftest.$ac_ext
17055 fi
17056 ac_res=`eval echo '${'$as_ac_var'}'`
17057                { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059 if test `eval echo '${'$as_ac_var'}'` = yes; then
17060   cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17062 _ACEOF
17063
17064 fi
17065 done
17066
17067
17068
17069
17070
17071 for ac_func in powf fmodf strtof round
17072 do
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079   cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h.  */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h.  */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17087 #define $ac_func innocuous_$ac_func
17088
17089 /* System header to define __stub macros and hopefully few prototypes,
17090     which can conflict with char $ac_func (); below.
17091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092     <limits.h> exists even on freestanding compilers.  */
17093
17094 #ifdef __STDC__
17095 # include <limits.h>
17096 #else
17097 # include <assert.h>
17098 #endif
17099
17100 #undef $ac_func
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103    Use char because int might match the return type of a GCC
17104    builtin and then its argument prototype would still apply.  */
17105 #ifdef __cplusplus
17106 extern "C"
17107 #endif
17108 char $ac_func ();
17109 /* The GNU C library defines this for functions which it implements
17110     to always fail with ENOSYS.  Some functions are actually named
17111     something starting with __ and the normal name is an alias.  */
17112 #if defined __stub_$ac_func || defined __stub___$ac_func
17113 choke me
17114 #endif
17115
17116 int
17117 main ()
17118 {
17119 return $ac_func ();
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (ac_try="$ac_link"
17126 case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_link") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17139   { (case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144   (eval "$ac_try") 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; } &&
17148          { ac_try='test -s conftest$ac_exeext'
17149   { (case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_try") 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; }; then
17158   eval "$as_ac_var=yes"
17159 else
17160   echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163         eval "$as_ac_var=no"
17164 fi
17165
17166 rm -f core conftest.err conftest.$ac_objext \
17167       conftest$ac_exeext conftest.$ac_ext
17168 fi
17169 ac_res=`eval echo '${'$as_ac_var'}'`
17170                { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172 if test `eval echo '${'$as_ac_var'}'` = yes; then
17173   cat >>confdefs.h <<_ACEOF
17174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17175 _ACEOF
17176
17177 fi
17178 done
17179
17180
17181
17182
17183
17184
17185 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17186 do
17187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17201 #define $ac_func innocuous_$ac_func
17202
17203 /* System header to define __stub macros and hopefully few prototypes,
17204     which can conflict with char $ac_func (); below.
17205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206     <limits.h> exists even on freestanding compilers.  */
17207
17208 #ifdef __STDC__
17209 # include <limits.h>
17210 #else
17211 # include <assert.h>
17212 #endif
17213
17214 #undef $ac_func
17215
17216 /* Override any GCC internal prototype to avoid an error.
17217    Use char because int might match the return type of a GCC
17218    builtin and then its argument prototype would still apply.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char $ac_func ();
17223 /* The GNU C library defines this for functions which it implements
17224     to always fail with ENOSYS.  Some functions are actually named
17225     something starting with __ and the normal name is an alias.  */
17226 #if defined __stub_$ac_func || defined __stub___$ac_func
17227 choke me
17228 #endif
17229
17230 int
17231 main ()
17232 {
17233 return $ac_func ();
17234   ;
17235   return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242   *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245   (eval "$ac_link") 2>conftest.er1
17246   ac_status=$?
17247   grep -v '^ *+' conftest.er1 >conftest.err
17248   rm -f conftest.er1
17249   cat conftest.err >&5
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } &&
17252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253   { (case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_try") 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; } &&
17262          { ac_try='test -s conftest$ac_exeext'
17263   { (case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_try") 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272   eval "$as_ac_var=yes"
17273 else
17274   echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277         eval "$as_ac_var=no"
17278 fi
17279
17280 rm -f core conftest.err conftest.$ac_objext \
17281       conftest$ac_exeext conftest.$ac_ext
17282 fi
17283 ac_res=`eval echo '${'$as_ac_var'}'`
17284                { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17286 if test `eval echo '${'$as_ac_var'}'` = yes; then
17287   cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289 _ACEOF
17290
17291 fi
17292 done
17293
17294
17295
17296
17297 for ac_func in isatty mkdtemp mkstemp
17298 do
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303   echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305   cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17313 #define $ac_func innocuous_$ac_func
17314
17315 /* System header to define __stub macros and hopefully few prototypes,
17316     which can conflict with char $ac_func (); below.
17317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318     <limits.h> exists even on freestanding compilers.  */
17319
17320 #ifdef __STDC__
17321 # include <limits.h>
17322 #else
17323 # include <assert.h>
17324 #endif
17325
17326 #undef $ac_func
17327
17328 /* Override any GCC internal prototype to avoid an error.
17329    Use char because int might match the return type of a GCC
17330    builtin and then its argument prototype would still apply.  */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char $ac_func ();
17335 /* The GNU C library defines this for functions which it implements
17336     to always fail with ENOSYS.  Some functions are actually named
17337     something starting with __ and the normal name is an alias.  */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 choke me
17340 #endif
17341
17342 int
17343 main ()
17344 {
17345 return $ac_func ();
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_link") 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365   { (case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_try") 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; } &&
17374          { ac_try='test -s conftest$ac_exeext'
17375   { (case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_try") 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   eval "$as_ac_var=yes"
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389         eval "$as_ac_var=no"
17390 fi
17391
17392 rm -f core conftest.err conftest.$ac_objext \
17393       conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396                { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399   cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401 _ACEOF
17402
17403 fi
17404 done
17405
17406
17407
17408
17409
17410
17411
17412
17413 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17414 do
17415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h.  */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h.  */
17427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17429 #define $ac_func innocuous_$ac_func
17430
17431 /* System header to define __stub macros and hopefully few prototypes,
17432     which can conflict with char $ac_func (); below.
17433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434     <limits.h> exists even on freestanding compilers.  */
17435
17436 #ifdef __STDC__
17437 # include <limits.h>
17438 #else
17439 # include <assert.h>
17440 #endif
17441
17442 #undef $ac_func
17443
17444 /* Override any GCC internal prototype to avoid an error.
17445    Use char because int might match the return type of a GCC
17446    builtin and then its argument prototype would still apply.  */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 char $ac_func ();
17451 /* The GNU C library defines this for functions which it implements
17452     to always fail with ENOSYS.  Some functions are actually named
17453     something starting with __ and the normal name is an alias.  */
17454 #if defined __stub_$ac_func || defined __stub___$ac_func
17455 choke me
17456 #endif
17457
17458 int
17459 main ()
17460 {
17461 return $ac_func ();
17462   ;
17463   return 0;
17464 }
17465 _ACEOF
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470   *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473   (eval "$ac_link") 2>conftest.er1
17474   ac_status=$?
17475   grep -v '^ *+' conftest.er1 >conftest.err
17476   rm -f conftest.er1
17477   cat conftest.err >&5
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } &&
17480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481   { (case "(($ac_try" in
17482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483   *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486   (eval "$ac_try") 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; } &&
17490          { ac_try='test -s conftest$ac_exeext'
17491   { (case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_try") 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; }; then
17500   eval "$as_ac_var=yes"
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505         eval "$as_ac_var=no"
17506 fi
17507
17508 rm -f core conftest.err conftest.$ac_objext \
17509       conftest$ac_exeext conftest.$ac_ext
17510 fi
17511 ac_res=`eval echo '${'$as_ac_var'}'`
17512                { echo "$as_me:$LINENO: result: $ac_res" >&5
17513 echo "${ECHO_T}$ac_res" >&6; }
17514 if test `eval echo '${'$as_ac_var'}'` = yes; then
17515   cat >>confdefs.h <<_ACEOF
17516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17517 _ACEOF
17518
17519 fi
17520 done
17521
17522
17523
17524
17525
17526 for ac_func in strerror strerror_r setenv arc4random
17527 do
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534   cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17542 #define $ac_func innocuous_$ac_func
17543
17544 /* System header to define __stub macros and hopefully few prototypes,
17545     which can conflict with char $ac_func (); below.
17546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547     <limits.h> exists even on freestanding compilers.  */
17548
17549 #ifdef __STDC__
17550 # include <limits.h>
17551 #else
17552 # include <assert.h>
17553 #endif
17554
17555 #undef $ac_func
17556
17557 /* Override any GCC internal prototype to avoid an error.
17558    Use char because int might match the return type of a GCC
17559    builtin and then its argument prototype would still apply.  */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 char $ac_func ();
17564 /* The GNU C library defines this for functions which it implements
17565     to always fail with ENOSYS.  Some functions are actually named
17566     something starting with __ and the normal name is an alias.  */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17568 choke me
17569 #endif
17570
17571 int
17572 main ()
17573 {
17574 return $ac_func ();
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_link") 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594   { (case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_try") 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; } &&
17603          { ac_try='test -s conftest$ac_exeext'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; }; then
17613   eval "$as_ac_var=yes"
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618         eval "$as_ac_var=no"
17619 fi
17620
17621 rm -f core conftest.err conftest.$ac_objext \
17622       conftest$ac_exeext conftest.$ac_ext
17623 fi
17624 ac_res=`eval echo '${'$as_ac_var'}'`
17625                { echo "$as_me:$LINENO: result: $ac_res" >&5
17626 echo "${ECHO_T}$ac_res" >&6; }
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628   cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 _ACEOF
17631
17632 fi
17633 done
17634
17635
17636
17637
17638
17639 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17640 do
17641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647   cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17655 #define $ac_func innocuous_$ac_func
17656
17657 /* System header to define __stub macros and hopefully few prototypes,
17658     which can conflict with char $ac_func (); below.
17659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17660     <limits.h> exists even on freestanding compilers.  */
17661
17662 #ifdef __STDC__
17663 # include <limits.h>
17664 #else
17665 # include <assert.h>
17666 #endif
17667
17668 #undef $ac_func
17669
17670 /* Override any GCC internal prototype to avoid an error.
17671    Use char because int might match the return type of a GCC
17672    builtin and then its argument prototype would still apply.  */
17673 #ifdef __cplusplus
17674 extern "C"
17675 #endif
17676 char $ac_func ();
17677 /* The GNU C library defines this for functions which it implements
17678     to always fail with ENOSYS.  Some functions are actually named
17679     something starting with __ and the normal name is an alias.  */
17680 #if defined __stub_$ac_func || defined __stub___$ac_func
17681 choke me
17682 #endif
17683
17684 int
17685 main ()
17686 {
17687 return $ac_func ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (ac_try="$ac_link"
17694 case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_link") 2>conftest.er1
17700   ac_status=$?
17701   grep -v '^ *+' conftest.er1 >conftest.err
17702   rm -f conftest.er1
17703   cat conftest.err >&5
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } &&
17706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17707   { (case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712   (eval "$ac_try") 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; } &&
17716          { ac_try='test -s conftest$ac_exeext'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_try") 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; }; then
17726   eval "$as_ac_var=yes"
17727 else
17728   echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731         eval "$as_ac_var=no"
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext \
17735       conftest$ac_exeext conftest.$ac_ext
17736 fi
17737 ac_res=`eval echo '${'$as_ac_var'}'`
17738                { echo "$as_me:$LINENO: result: $ac_res" >&5
17739 echo "${ECHO_T}$ac_res" >&6; }
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17741   cat >>confdefs.h <<_ACEOF
17742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17743 _ACEOF
17744
17745 fi
17746 done
17747
17748
17749
17750
17751
17752
17753 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17754 do
17755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17759   echo $ECHO_N "(cached) $ECHO_C" >&6
17760 else
17761   cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17769 #define $ac_func innocuous_$ac_func
17770
17771 /* System header to define __stub macros and hopefully few prototypes,
17772     which can conflict with char $ac_func (); below.
17773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774     <limits.h> exists even on freestanding compilers.  */
17775
17776 #ifdef __STDC__
17777 # include <limits.h>
17778 #else
17779 # include <assert.h>
17780 #endif
17781
17782 #undef $ac_func
17783
17784 /* Override any GCC internal prototype to avoid an error.
17785    Use char because int might match the return type of a GCC
17786    builtin and then its argument prototype would still apply.  */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 char $ac_func ();
17791 /* The GNU C library defines this for functions which it implements
17792     to always fail with ENOSYS.  Some functions are actually named
17793     something starting with __ and the normal name is an alias.  */
17794 #if defined __stub_$ac_func || defined __stub___$ac_func
17795 choke me
17796 #endif
17797
17798 int
17799 main ()
17800 {
17801 return $ac_func ();
17802   ;
17803   return 0;
17804 }
17805 _ACEOF
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_link") 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } &&
17820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821   { (case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826   (eval "$ac_try") 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_try") 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }; }; then
17840   eval "$as_ac_var=yes"
17841 else
17842   echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845         eval "$as_ac_var=no"
17846 fi
17847
17848 rm -f core conftest.err conftest.$ac_objext \
17849       conftest$ac_exeext conftest.$ac_ext
17850 fi
17851 ac_res=`eval echo '${'$as_ac_var'}'`
17852                { echo "$as_me:$LINENO: result: $ac_res" >&5
17853 echo "${ECHO_T}$ac_res" >&6; }
17854 if test `eval echo '${'$as_ac_var'}'` = yes; then
17855   cat >>confdefs.h <<_ACEOF
17856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17857 _ACEOF
17858
17859 fi
17860 done
17861
17862 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17863 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17864 if test "${llvm_cv_c_printf_a+set}" = set; then
17865   echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867   ac_ext=c
17868 ac_cpp='$CPP $CPPFLAGS'
17869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17872
17873  if test "$cross_compiling" = yes; then
17874   llvmac_cv_c_printf_a=no
17875 else
17876   cat >conftest.$ac_ext <<_ACEOF
17877
17878   /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883
17884 #include <stdio.h>
17885 #include <stdlib.h>
17886
17887 int
17888 main ()
17889 {
17890
17891 volatile double A, B;
17892 char Buffer[100];
17893 A = 1;
17894 A /= 10.0;
17895 sprintf(Buffer, "%a", A);
17896 B = atof(Buffer);
17897 if (A != B)
17898   return (1);
17899 if (A != 0x1.999999999999ap-4)
17900   return (1);
17901 return (0);
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_link") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17926   llvm_cv_c_printf_a=yes
17927 else
17928   echo "$as_me: program exited with status $ac_status" >&5
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 ( exit $ac_status )
17933 llvmac_cv_c_printf_a=no
17934 fi
17935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17936 fi
17937
17938
17939  ac_ext=c
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
17945 fi
17946 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17947 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17948  if test "$llvm_cv_c_printf_a" = "yes"; then
17949
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_PRINTF_A 1
17952 _ACEOF
17953
17954  fi
17955
17956
17957 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17958 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17959 if test "${ac_cv_func_rand48+set}" = set; then
17960   echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962   ac_ext=cpp
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17967
17968    cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #include <stdlib.h>
17975 int
17976 main ()
17977 {
17978 srand48(0);lrand48();drand48();
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_compile") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17998   { (case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_try") 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; } &&
18007          { ac_try='test -s conftest.$ac_objext'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   ac_cv_func_rand48=yes
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         ac_cv_func_rand48=no
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026   ac_ext=c
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031
18032 fi
18033 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18034 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18035
18036 if test "$ac_cv_func_rand48" = "yes" ; then
18037
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE_RAND48 1
18040 _ACEOF
18041
18042 fi
18043
18044
18045 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18046 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18047 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
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 $ac_includes_default
18057 int
18058 main ()
18059 {
18060 #ifndef strerror_s
18061   char *p = (char *) strerror_s;
18062   return !p;
18063 #endif
18064
18065   ;
18066   return 0;
18067 }
18068 _ACEOF
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_compile") 2>conftest.er1
18077   ac_status=$?
18078   grep -v '^ *+' conftest.er1 >conftest.err
18079   rm -f conftest.er1
18080   cat conftest.err >&5
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } &&
18083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084   { (case "(($ac_try" in
18085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086   *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089   (eval "$ac_try") 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); }; } &&
18093          { ac_try='test -s conftest.$ac_objext'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; }; then
18103   ac_cv_have_decl_strerror_s=yes
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108         ac_cv_have_decl_strerror_s=no
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 fi
18113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18114 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18115 if test $ac_cv_have_decl_strerror_s = yes; then
18116
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_DECL_STRERROR_S 1
18119 _ACEOF
18120
18121
18122 else
18123   cat >>confdefs.h <<_ACEOF
18124 #define HAVE_DECL_STRERROR_S 0
18125 _ACEOF
18126
18127
18128 fi
18129
18130
18131
18132 if test "$llvm_cv_os_type" = "MingW" ; then
18133   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18134 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18135 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18136   echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138   ac_check_lib_save_LIBS=$LIBS
18139 LIBS="-lgcc  $LIBS"
18140 cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146
18147 /* Override any GCC internal prototype to avoid an error.
18148    Use char because int might match the return type of a GCC
18149    builtin and then its argument prototype would still apply.  */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char _alloca ();
18154 int
18155 main ()
18156 {
18157 return _alloca ();
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_link") 2>conftest.er1
18170   ac_status=$?
18171   grep -v '^ *+' conftest.er1 >conftest.err
18172   rm -f conftest.er1
18173   cat conftest.err >&5
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } &&
18176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18177   { (case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_try") 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest$ac_exeext'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; }; then
18196   ac_cv_lib_gcc__alloca=yes
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         ac_cv_lib_gcc__alloca=no
18202 fi
18203
18204 rm -f core conftest.err conftest.$ac_objext \
18205       conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18207 fi
18208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18209 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18210 if test $ac_cv_lib_gcc__alloca = yes; then
18211
18212 cat >>confdefs.h <<\_ACEOF
18213 #define HAVE__ALLOCA 1
18214 _ACEOF
18215
18216 fi
18217
18218   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18219 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18220 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18221   echo $ECHO_N "(cached) $ECHO_C" >&6
18222 else
18223   ac_check_lib_save_LIBS=$LIBS
18224 LIBS="-lgcc  $LIBS"
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233    Use char because int might match the return type of a GCC
18234    builtin and then its argument prototype would still apply.  */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char __alloca ();
18239 int
18240 main ()
18241 {
18242 return __alloca ();
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251   *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254   (eval "$ac_link") 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } &&
18261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18262   { (case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_try") 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); }; } &&
18271          { ac_try='test -s conftest$ac_exeext'
18272   { (case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_try") 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; }; then
18281   ac_cv_lib_gcc___alloca=yes
18282 else
18283   echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286         ac_cv_lib_gcc___alloca=no
18287 fi
18288
18289 rm -f core conftest.err conftest.$ac_objext \
18290       conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18292 fi
18293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18294 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18295 if test $ac_cv_lib_gcc___alloca = yes; then
18296
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE___ALLOCA 1
18299 _ACEOF
18300
18301 fi
18302
18303   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18304 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18305 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18306   echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308   ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lgcc  $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317 /* Override any GCC internal prototype to avoid an error.
18318    Use char because int might match the return type of a GCC
18319    builtin and then its argument prototype would still apply.  */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char __chkstk ();
18324 int
18325 main ()
18326 {
18327 return __chkstk ();
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336   *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339   (eval "$ac_link") 2>conftest.er1
18340   ac_status=$?
18341   grep -v '^ *+' conftest.er1 >conftest.err
18342   rm -f conftest.er1
18343   cat conftest.err >&5
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); } &&
18346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18347   { (case "(($ac_try" in
18348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349   *) ac_try_echo=$ac_try;;
18350 esac
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352   (eval "$ac_try") 2>&5
18353   ac_status=$?
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); }; } &&
18356          { ac_try='test -s conftest$ac_exeext'
18357   { (case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_try") 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; }; then
18366   ac_cv_lib_gcc___chkstk=yes
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371         ac_cv_lib_gcc___chkstk=no
18372 fi
18373
18374 rm -f core conftest.err conftest.$ac_objext \
18375       conftest$ac_exeext conftest.$ac_ext
18376 LIBS=$ac_check_lib_save_LIBS
18377 fi
18378 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18379 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18380 if test $ac_cv_lib_gcc___chkstk = yes; then
18381
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE___CHKSTK 1
18384 _ACEOF
18385
18386 fi
18387
18388   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18389 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18390 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18391   echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393   ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lgcc  $LIBS"
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401
18402 /* Override any GCC internal prototype to avoid an error.
18403    Use char because int might match the return type of a GCC
18404    builtin and then its argument prototype would still apply.  */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 char ___chkstk ();
18409 int
18410 main ()
18411 {
18412 return ___chkstk ();
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421   *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424   (eval "$ac_link") 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } &&
18431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18432   { (case "(($ac_try" in
18433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434   *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437   (eval "$ac_try") 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; } &&
18441          { ac_try='test -s conftest$ac_exeext'
18442   { (case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_try") 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }; }; then
18451   ac_cv_lib_gcc____chkstk=yes
18452 else
18453   echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18455
18456         ac_cv_lib_gcc____chkstk=no
18457 fi
18458
18459 rm -f core conftest.err conftest.$ac_objext \
18460       conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18462 fi
18463 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18464 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18465 if test $ac_cv_lib_gcc____chkstk = yes; then
18466
18467 cat >>confdefs.h <<\_ACEOF
18468 #define HAVE____CHKSTK 1
18469 _ACEOF
18470
18471 fi
18472
18473
18474   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18475 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18476 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   ac_check_lib_save_LIBS=$LIBS
18480 LIBS="-lgcc  $LIBS"
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487
18488 /* Override any GCC internal prototype to avoid an error.
18489    Use char because int might match the return type of a GCC
18490    builtin and then its argument prototype would still apply.  */
18491 #ifdef __cplusplus
18492 extern "C"
18493 #endif
18494 char __ashldi3 ();
18495 int
18496 main ()
18497 {
18498 return __ashldi3 ();
18499   ;
18500   return 0;
18501 }
18502 _ACEOF
18503 rm -f conftest.$ac_objext conftest$ac_exeext
18504 if { (ac_try="$ac_link"
18505 case "(($ac_try" in
18506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507   *) ac_try_echo=$ac_try;;
18508 esac
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510   (eval "$ac_link") 2>conftest.er1
18511   ac_status=$?
18512   grep -v '^ *+' conftest.er1 >conftest.err
18513   rm -f conftest.er1
18514   cat conftest.err >&5
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); } &&
18517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18518   { (case "(($ac_try" in
18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520   *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523   (eval "$ac_try") 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; } &&
18527          { ac_try='test -s conftest$ac_exeext'
18528   { (case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533   (eval "$ac_try") 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; }; then
18537   ac_cv_lib_gcc___ashldi3=yes
18538 else
18539   echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18541
18542         ac_cv_lib_gcc___ashldi3=no
18543 fi
18544
18545 rm -f core conftest.err conftest.$ac_objext \
18546       conftest$ac_exeext conftest.$ac_ext
18547 LIBS=$ac_check_lib_save_LIBS
18548 fi
18549 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18550 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18551 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18552
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE___ASHLDI3 1
18555 _ACEOF
18556
18557 fi
18558
18559   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18560 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18561 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18562   echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564   ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lgcc  $LIBS"
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h.  */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h.  */
18572
18573 /* Override any GCC internal prototype to avoid an error.
18574    Use char because int might match the return type of a GCC
18575    builtin and then its argument prototype would still apply.  */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char __ashrdi3 ();
18580 int
18581 main ()
18582 {
18583 return __ashrdi3 ();
18584   ;
18585   return 0;
18586 }
18587 _ACEOF
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (ac_try="$ac_link"
18590 case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_link") 2>conftest.er1
18596   ac_status=$?
18597   grep -v '^ *+' conftest.er1 >conftest.err
18598   rm -f conftest.er1
18599   cat conftest.err >&5
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); } &&
18602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603   { (case "(($ac_try" in
18604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605   *) ac_try_echo=$ac_try;;
18606 esac
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608   (eval "$ac_try") 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; } &&
18612          { ac_try='test -s conftest$ac_exeext'
18613   { (case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_try") 2>&5
18619   ac_status=$?
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); }; }; then
18622   ac_cv_lib_gcc___ashrdi3=yes
18623 else
18624   echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18626
18627         ac_cv_lib_gcc___ashrdi3=no
18628 fi
18629
18630 rm -f core conftest.err conftest.$ac_objext \
18631       conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18633 fi
18634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18635 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18636 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18637
18638 cat >>confdefs.h <<\_ACEOF
18639 #define HAVE___ASHRDI3 1
18640 _ACEOF
18641
18642 fi
18643
18644   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18645 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18646 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   ac_check_lib_save_LIBS=$LIBS
18650 LIBS="-lgcc  $LIBS"
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657
18658 /* Override any GCC internal prototype to avoid an error.
18659    Use char because int might match the return type of a GCC
18660    builtin and then its argument prototype would still apply.  */
18661 #ifdef __cplusplus
18662 extern "C"
18663 #endif
18664 char __divdi3 ();
18665 int
18666 main ()
18667 {
18668 return __divdi3 ();
18669   ;
18670   return 0;
18671 }
18672 _ACEOF
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (ac_try="$ac_link"
18675 case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680   (eval "$ac_link") 2>conftest.er1
18681   ac_status=$?
18682   grep -v '^ *+' conftest.er1 >conftest.err
18683   rm -f conftest.er1
18684   cat conftest.err >&5
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); } &&
18687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18688   { (case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_try") 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; } &&
18697          { ac_try='test -s conftest$ac_exeext'
18698   { (case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_try") 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; }; then
18707   ac_cv_lib_gcc___divdi3=yes
18708 else
18709   echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712         ac_cv_lib_gcc___divdi3=no
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext \
18716       conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18718 fi
18719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18720 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18721 if test $ac_cv_lib_gcc___divdi3 = yes; then
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE___DIVDI3 1
18725 _ACEOF
18726
18727 fi
18728
18729   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18730 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18731 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734   ac_check_lib_save_LIBS=$LIBS
18735 LIBS="-lgcc  $LIBS"
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742
18743 /* Override any GCC internal prototype to avoid an error.
18744    Use char because int might match the return type of a GCC
18745    builtin and then its argument prototype would still apply.  */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char __fixdfdi ();
18750 int
18751 main ()
18752 {
18753 return __fixdfdi ();
18754   ;
18755   return 0;
18756 }
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762   *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765   (eval "$ac_link") 2>conftest.er1
18766   ac_status=$?
18767   grep -v '^ *+' conftest.er1 >conftest.err
18768   rm -f conftest.er1
18769   cat conftest.err >&5
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); } &&
18772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18773   { (case "(($ac_try" in
18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775   *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778   (eval "$ac_try") 2>&5
18779   ac_status=$?
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); }; } &&
18782          { ac_try='test -s conftest$ac_exeext'
18783   { (case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_try") 2>&5
18789   ac_status=$?
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); }; }; then
18792   ac_cv_lib_gcc___fixdfdi=yes
18793 else
18794   echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797         ac_cv_lib_gcc___fixdfdi=no
18798 fi
18799
18800 rm -f core conftest.err conftest.$ac_objext \
18801       conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18803 fi
18804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18805 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18806 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE___FIXDFDI 1
18810 _ACEOF
18811
18812 fi
18813
18814   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18815 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18816 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18817   echo $ECHO_N "(cached) $ECHO_C" >&6
18818 else
18819   ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-lgcc  $LIBS"
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827
18828 /* Override any GCC internal prototype to avoid an error.
18829    Use char because int might match the return type of a GCC
18830    builtin and then its argument prototype would still apply.  */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char __fixsfdi ();
18835 int
18836 main ()
18837 {
18838 return __fixsfdi ();
18839   ;
18840   return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847   *) ac_try_echo=$ac_try;;
18848 esac
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850   (eval "$ac_link") 2>conftest.er1
18851   ac_status=$?
18852   grep -v '^ *+' conftest.er1 >conftest.err
18853   rm -f conftest.er1
18854   cat conftest.err >&5
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); } &&
18857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18858   { (case "(($ac_try" in
18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860   *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863   (eval "$ac_try") 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; } &&
18867          { ac_try='test -s conftest$ac_exeext'
18868   { (case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_try") 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; }; then
18877   ac_cv_lib_gcc___fixsfdi=yes
18878 else
18879   echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882         ac_cv_lib_gcc___fixsfdi=no
18883 fi
18884
18885 rm -f core conftest.err conftest.$ac_objext \
18886       conftest$ac_exeext conftest.$ac_ext
18887 LIBS=$ac_check_lib_save_LIBS
18888 fi
18889 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18890 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18891 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18892
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE___FIXSFDI 1
18895 _ACEOF
18896
18897 fi
18898
18899   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18900 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18901 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904   ac_check_lib_save_LIBS=$LIBS
18905 LIBS="-lgcc  $LIBS"
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h.  */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h.  */
18912
18913 /* Override any GCC internal prototype to avoid an error.
18914    Use char because int might match the return type of a GCC
18915    builtin and then its argument prototype would still apply.  */
18916 #ifdef __cplusplus
18917 extern "C"
18918 #endif
18919 char __floatdidf ();
18920 int
18921 main ()
18922 {
18923 return __floatdidf ();
18924   ;
18925   return 0;
18926 }
18927 _ACEOF
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_link") 2>conftest.er1
18936   ac_status=$?
18937   grep -v '^ *+' conftest.er1 >conftest.err
18938   rm -f conftest.er1
18939   cat conftest.err >&5
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); } &&
18942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943   { (case "(($ac_try" in
18944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945   *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948   (eval "$ac_try") 2>&5
18949   ac_status=$?
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); }; } &&
18952          { ac_try='test -s conftest$ac_exeext'
18953   { (case "(($ac_try" in
18954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955   *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958   (eval "$ac_try") 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; }; then
18962   ac_cv_lib_gcc___floatdidf=yes
18963 else
18964   echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967         ac_cv_lib_gcc___floatdidf=no
18968 fi
18969
18970 rm -f core conftest.err conftest.$ac_objext \
18971       conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18973 fi
18974 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18975 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18976 if test $ac_cv_lib_gcc___floatdidf = yes; then
18977
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE___FLOATDIDF 1
18980 _ACEOF
18981
18982 fi
18983
18984   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18985 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18986 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18987   echo $ECHO_N "(cached) $ECHO_C" >&6
18988 else
18989   ac_check_lib_save_LIBS=$LIBS
18990 LIBS="-lgcc  $LIBS"
18991 cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997
18998 /* Override any GCC internal prototype to avoid an error.
18999    Use char because int might match the return type of a GCC
19000    builtin and then its argument prototype would still apply.  */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 char __lshrdi3 ();
19005 int
19006 main ()
19007 {
19008 return __lshrdi3 ();
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_link") 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028   { (case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033   (eval "$ac_try") 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); }; } &&
19037          { ac_try='test -s conftest$ac_exeext'
19038   { (case "(($ac_try" in
19039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040   *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043   (eval "$ac_try") 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; }; then
19047   ac_cv_lib_gcc___lshrdi3=yes
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052         ac_cv_lib_gcc___lshrdi3=no
19053 fi
19054
19055 rm -f core conftest.err conftest.$ac_objext \
19056       conftest$ac_exeext conftest.$ac_ext
19057 LIBS=$ac_check_lib_save_LIBS
19058 fi
19059 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19060 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19061 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19062
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE___LSHRDI3 1
19065 _ACEOF
19066
19067 fi
19068
19069   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19070 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19071 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074   ac_check_lib_save_LIBS=$LIBS
19075 LIBS="-lgcc  $LIBS"
19076 cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082
19083 /* Override any GCC internal prototype to avoid an error.
19084    Use char because int might match the return type of a GCC
19085    builtin and then its argument prototype would still apply.  */
19086 #ifdef __cplusplus
19087 extern "C"
19088 #endif
19089 char __moddi3 ();
19090 int
19091 main ()
19092 {
19093 return __moddi3 ();
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (ac_try="$ac_link"
19100 case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_link") 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } &&
19112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19113   { (case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_try") 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; } &&
19122          { ac_try='test -s conftest$ac_exeext'
19123   { (case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_try") 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   ac_cv_lib_gcc___moddi3=yes
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137         ac_cv_lib_gcc___moddi3=no
19138 fi
19139
19140 rm -f core conftest.err conftest.$ac_objext \
19141       conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19143 fi
19144 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19145 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19146 if test $ac_cv_lib_gcc___moddi3 = yes; then
19147
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE___MODDI3 1
19150 _ACEOF
19151
19152 fi
19153
19154   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19155 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19156 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_check_lib_save_LIBS=$LIBS
19160 LIBS="-lgcc  $LIBS"
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167
19168 /* Override any GCC internal prototype to avoid an error.
19169    Use char because int might match the return type of a GCC
19170    builtin and then its argument prototype would still apply.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 char __udivdi3 ();
19175 int
19176 main ()
19177 {
19178 return __udivdi3 ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_link") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19198   { (case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_try") 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest$ac_exeext'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_lib_gcc___udivdi3=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222         ac_cv_lib_gcc___udivdi3=no
19223 fi
19224
19225 rm -f core conftest.err conftest.$ac_objext \
19226       conftest$ac_exeext conftest.$ac_ext
19227 LIBS=$ac_check_lib_save_LIBS
19228 fi
19229 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19230 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19231 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19232
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE___UDIVDI3 1
19235 _ACEOF
19236
19237 fi
19238
19239   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19240 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19241 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   ac_check_lib_save_LIBS=$LIBS
19245 LIBS="-lgcc  $LIBS"
19246 cat >conftest.$ac_ext <<_ACEOF
19247 /* confdefs.h.  */
19248 _ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h.  */
19252
19253 /* Override any GCC internal prototype to avoid an error.
19254    Use char because int might match the return type of a GCC
19255    builtin and then its argument prototype would still apply.  */
19256 #ifdef __cplusplus
19257 extern "C"
19258 #endif
19259 char __umoddi3 ();
19260 int
19261 main ()
19262 {
19263 return __umoddi3 ();
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (ac_try="$ac_link"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_link") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } &&
19282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283   { (case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288   (eval "$ac_try") 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } &&
19292          { ac_try='test -s conftest$ac_exeext'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_cv_lib_gcc___umoddi3=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         ac_cv_lib_gcc___umoddi3=no
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext \
19311       conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS
19313 fi
19314 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19315 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19316 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19317
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE___UMODDI3 1
19320 _ACEOF
19321
19322 fi
19323
19324
19325   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19326 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19327 if test "${ac_cv_lib_gcc___main+set}" = set; then
19328   echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330   ac_check_lib_save_LIBS=$LIBS
19331 LIBS="-lgcc  $LIBS"
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h.  */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h.  */
19338
19339 /* Override any GCC internal prototype to avoid an error.
19340    Use char because int might match the return type of a GCC
19341    builtin and then its argument prototype would still apply.  */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char __main ();
19346 int
19347 main ()
19348 {
19349 return __main ();
19350   ;
19351   return 0;
19352 }
19353 _ACEOF
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369   { (case "(($ac_try" in
19370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371   *) ac_try_echo=$ac_try;;
19372 esac
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374   (eval "$ac_try") 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; } &&
19378          { ac_try='test -s conftest$ac_exeext'
19379   { (case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_try") 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388   ac_cv_lib_gcc___main=yes
19389 else
19390   echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393         ac_cv_lib_gcc___main=no
19394 fi
19395
19396 rm -f core conftest.err conftest.$ac_objext \
19397       conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19399 fi
19400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19401 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19402 if test $ac_cv_lib_gcc___main = yes; then
19403
19404 cat >>confdefs.h <<\_ACEOF
19405 #define HAVE___MAIN 1
19406 _ACEOF
19407
19408 fi
19409
19410   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19411 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19412 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19413   echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415   ac_check_lib_save_LIBS=$LIBS
19416 LIBS="-lgcc  $LIBS"
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423
19424 /* Override any GCC internal prototype to avoid an error.
19425    Use char because int might match the return type of a GCC
19426    builtin and then its argument prototype would still apply.  */
19427 #ifdef __cplusplus
19428 extern "C"
19429 #endif
19430 char __cmpdi2 ();
19431 int
19432 main ()
19433 {
19434 return __cmpdi2 ();
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_link") 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } &&
19453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454   { (case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_try") 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest$ac_exeext'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; }; then
19473   ac_cv_lib_gcc___cmpdi2=yes
19474 else
19475   echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19477
19478         ac_cv_lib_gcc___cmpdi2=no
19479 fi
19480
19481 rm -f core conftest.err conftest.$ac_objext \
19482       conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19484 fi
19485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19486 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19487 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19488
19489 cat >>confdefs.h <<\_ACEOF
19490 #define HAVE___CMPDI2 1
19491 _ACEOF
19492
19493 fi
19494
19495 fi
19496
19497 if test "$llvm_cv_os_type" = "MingW" ; then
19498   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19499 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19500   cat >conftest.$ac_ext <<_ACEOF
19501 #include <windows.h>
19502 #include <imagehlp.h>
19503 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19504 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
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_c_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
19541   { echo "$as_me:$LINENO: result: yes" >&5
19542 echo "${ECHO_T}yes" >&6; }
19543   llvm_cv_win32_elmcb_pcstr="PCSTR"
19544
19545 else
19546   echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549
19550   { echo "$as_me:$LINENO: result: no" >&5
19551 echo "${ECHO_T}no" >&6; }
19552   llvm_cv_win32_elmcb_pcstr="PSTR"
19553
19554 fi
19555
19556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19557
19558 cat >>confdefs.h <<_ACEOF
19559 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19560 _ACEOF
19561
19562 fi
19563
19564
19565 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19566 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570   ac_ext=cpp
19571 ac_cpp='$CXXCPP $CPPFLAGS'
19572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
19576    cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 #include <math.h>
19583 int
19584 main ()
19585 {
19586 float f; isnan(f);
19587   ;
19588   return 0;
19589 }
19590 _ACEOF
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_compile") 2>conftest.er1
19599   ac_status=$?
19600   grep -v '^ *+' conftest.er1 >conftest.err
19601   rm -f conftest.er1
19602   cat conftest.err >&5
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); } &&
19605          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606   { (case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611   (eval "$ac_try") 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest.$ac_objext'
19616   { (case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_try") 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_func_isnan_in_math_h=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630         ac_cv_func_isnan_in_math_h=no
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634   ac_ext=c
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640 fi
19641 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19642 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19643
19644
19645 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_ISNAN_IN_MATH_H 1
19649 _ACEOF
19650
19651 fi
19652
19653 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19654 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19655 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658   ac_ext=cpp
19659 ac_cpp='$CXXCPP $CPPFLAGS'
19660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663
19664    cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 #include <cmath>
19671 int
19672 main ()
19673 {
19674 float f; isnan(f);
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_compile") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; } &&
19703          { ac_try='test -s conftest.$ac_objext'
19704   { (case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_try") 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   ac_cv_func_isnan_in_cmath=yes
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         ac_cv_func_isnan_in_cmath=no
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722   ac_ext=c
19723 ac_cpp='$CPP $CPPFLAGS'
19724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728 fi
19729 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19730 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19731
19732 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_ISNAN_IN_CMATH 1
19736 _ACEOF
19737
19738 fi
19739
19740 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19741 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19742 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745   ac_ext=cpp
19746 ac_cpp='$CXXCPP $CPPFLAGS'
19747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19750
19751    cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757 #include <cmath>
19758 int
19759 main ()
19760 {
19761 float f; std::isnan(f);
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_compile") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } &&
19780          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; } &&
19790          { ac_try='test -s conftest.$ac_objext'
19791   { (case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_try") 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_func_std_isnan_in_cmath=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805         ac_cv_func_std_isnan_in_cmath=no
19806 fi
19807
19808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19809   ac_ext=c
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814
19815 fi
19816 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19817 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19818
19819 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_STD_ISNAN_IN_CMATH 1
19823 _ACEOF
19824
19825 fi
19826
19827
19828 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19829 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19830 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   ac_ext=cpp
19834 ac_cpp='$CXXCPP $CPPFLAGS'
19835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838
19839    cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 #include <math.h>
19846 int
19847 main ()
19848 {
19849 float f; isinf(f);
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_compile") 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } &&
19868          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19869   { (case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_try") 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_try") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_cv_func_isinf_in_math_h=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893         ac_cv_func_isinf_in_math_h=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897   ac_ext=c
19898 ac_cpp='$CPP $CPPFLAGS'
19899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19902
19903 fi
19904 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19905 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19906
19907 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19908
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_ISINF_IN_MATH_H 1
19911 _ACEOF
19912
19913 fi
19914
19915 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19916 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19917 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920   ac_ext=cpp
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19925
19926    cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932 #include <cmath>
19933 int
19934 main ()
19935 {
19936 float f; isinf(f);
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_compile") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } &&
19955          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19956   { (case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; } &&
19965          { ac_try='test -s conftest.$ac_objext'
19966   { (case "(($ac_try" in
19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968   *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971   (eval "$ac_try") 2>&5
19972   ac_status=$?
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); }; }; then
19975   ac_cv_func_isinf_in_cmath=yes
19976 else
19977   echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980         ac_cv_func_isinf_in_cmath=no
19981 fi
19982
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984   ac_ext=c
19985 ac_cpp='$CPP $CPPFLAGS'
19986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19989
19990 fi
19991 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19992 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19993
19994 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19995
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_ISINF_IN_CMATH 1
19998 _ACEOF
19999
20000 fi
20001
20002 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20003 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20004 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007   ac_ext=cpp
20008 ac_cpp='$CXXCPP $CPPFLAGS'
20009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20012
20013    cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 #include <cmath>
20020 int
20021 main ()
20022 {
20023 float f; std::isinf(f);
20024   ;
20025   return 0;
20026 }
20027 _ACEOF
20028 rm -f conftest.$ac_objext
20029 if { (ac_try="$ac_compile"
20030 case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_compile") 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } &&
20042          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20043   { (case "(($ac_try" in
20044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045   *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048   (eval "$ac_try") 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; } &&
20052          { ac_try='test -s conftest.$ac_objext'
20053   { (case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_try") 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); }; }; then
20062   ac_cv_func_std_isinf_in_cmath=yes
20063 else
20064   echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20066
20067         ac_cv_func_std_isinf_in_cmath=no
20068 fi
20069
20070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20071   ac_ext=c
20072 ac_cpp='$CPP $CPPFLAGS'
20073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076
20077 fi
20078 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20079 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20080
20081 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20082
20083 cat >>confdefs.h <<\_ACEOF
20084 #define HAVE_STD_ISINF_IN_CMATH 1
20085 _ACEOF
20086
20087 fi
20088
20089 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20090 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20091 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20092   echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094   ac_ext=cpp
20095 ac_cpp='$CXXCPP $CPPFLAGS'
20096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20099
20100    cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106 #include <ieeefp.h>
20107 int
20108 main ()
20109 {
20110 float f; finite(f);
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext
20116 if { (ac_try="$ac_compile"
20117 case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122   (eval "$ac_compile") 2>conftest.er1
20123   ac_status=$?
20124   grep -v '^ *+' conftest.er1 >conftest.err
20125   rm -f conftest.er1
20126   cat conftest.err >&5
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); } &&
20129          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20130   { (case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_try") 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; } &&
20139          { ac_try='test -s conftest.$ac_objext'
20140   { (case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_try") 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; }; then
20149   ac_cv_func_finite_in_ieeefp_h=yes
20150 else
20151   echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154         ac_cv_func_finite_in_ieeefp_h=no
20155 fi
20156
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158   ac_ext=c
20159 ac_cpp='$CPP $CPPFLAGS'
20160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20163
20164 fi
20165 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20166 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20167
20168 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20169
20170 cat >>confdefs.h <<\_ACEOF
20171 #define HAVE_FINITE_IN_IEEEFP_H 1
20172 _ACEOF
20173
20174 fi
20175
20176
20177
20178 if test "$llvm_cv_platform_type" = "Unix" ; then
20179
20180
20181 for ac_header in stdlib.h unistd.h
20182 do
20183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20185   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 fi
20190 ac_res=`eval echo '${'$as_ac_Header'}'`
20191                { echo "$as_me:$LINENO: result: $ac_res" >&5
20192 echo "${ECHO_T}$ac_res" >&6; }
20193 else
20194   # Is the header compilable?
20195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h.  */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h.  */
20203 $ac_includes_default
20204 #include <$ac_header>
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (ac_try="$ac_compile"
20208 case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_compile") 2>conftest.er1
20214   ac_status=$?
20215   grep -v '^ *+' conftest.er1 >conftest.err
20216   rm -f conftest.er1
20217   cat conftest.err >&5
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } &&
20220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20221   { (case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_try") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; } &&
20230          { ac_try='test -s conftest.$ac_objext'
20231   { (case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_try") 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   ac_header_compiler=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245         ac_header_compiler=no
20246 fi
20247
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20250 echo "${ECHO_T}$ac_header_compiler" >&6; }
20251
20252 # Is the header present?
20253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261 #include <$ac_header>
20262 _ACEOF
20263 if { (ac_try="$ac_cpp conftest.$ac_ext"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } >/dev/null; then
20276   if test -s conftest.err; then
20277     ac_cpp_err=$ac_c_preproc_warn_flag
20278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20279   else
20280     ac_cpp_err=
20281   fi
20282 else
20283   ac_cpp_err=yes
20284 fi
20285 if test -z "$ac_cpp_err"; then
20286   ac_header_preproc=yes
20287 else
20288   echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291   ac_header_preproc=no
20292 fi
20293
20294 rm -f conftest.err conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20296 echo "${ECHO_T}$ac_header_preproc" >&6; }
20297
20298 # So?  What about this header?
20299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20300   yes:no: )
20301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20305     ac_header_preproc=yes
20306     ;;
20307   no:yes:* )
20308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20320     ( cat <<\_ASBOX
20321 ## ------------------------------------ ##
20322 ## Report this to http://llvm.org/bugs/ ##
20323 ## ------------------------------------ ##
20324 _ASBOX
20325      ) | sed "s/^/$as_me: WARNING:     /" >&2
20326     ;;
20327 esac
20328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   eval "$as_ac_Header=\$ac_header_preproc"
20334 fi
20335 ac_res=`eval echo '${'$as_ac_Header'}'`
20336                { echo "$as_me:$LINENO: result: $ac_res" >&5
20337 echo "${ECHO_T}$ac_res" >&6; }
20338
20339 fi
20340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20341   cat >>confdefs.h <<_ACEOF
20342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20343 _ACEOF
20344
20345 fi
20346
20347 done
20348
20349
20350 for ac_func in getpagesize
20351 do
20352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20356   echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358   cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20366 #define $ac_func innocuous_$ac_func
20367
20368 /* System header to define __stub macros and hopefully few prototypes,
20369     which can conflict with char $ac_func (); below.
20370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20371     <limits.h> exists even on freestanding compilers.  */
20372
20373 #ifdef __STDC__
20374 # include <limits.h>
20375 #else
20376 # include <assert.h>
20377 #endif
20378
20379 #undef $ac_func
20380
20381 /* Override any GCC internal prototype to avoid an error.
20382    Use char because int might match the return type of a GCC
20383    builtin and then its argument prototype would still apply.  */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char $ac_func ();
20388 /* The GNU C library defines this for functions which it implements
20389     to always fail with ENOSYS.  Some functions are actually named
20390     something starting with __ and the normal name is an alias.  */
20391 #if defined __stub_$ac_func || defined __stub___$ac_func
20392 choke me
20393 #endif
20394
20395 int
20396 main ()
20397 {
20398 return $ac_func ();
20399   ;
20400   return 0;
20401 }
20402 _ACEOF
20403 rm -f conftest.$ac_objext conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_link") 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } &&
20417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20418   { (case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_try") 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; } &&
20427          { ac_try='test -s conftest$ac_exeext'
20428   { (case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433   (eval "$ac_try") 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; }; then
20437   eval "$as_ac_var=yes"
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442         eval "$as_ac_var=no"
20443 fi
20444
20445 rm -f core conftest.err conftest.$ac_objext \
20446       conftest$ac_exeext conftest.$ac_ext
20447 fi
20448 ac_res=`eval echo '${'$as_ac_var'}'`
20449                { echo "$as_me:$LINENO: result: $ac_res" >&5
20450 echo "${ECHO_T}$ac_res" >&6; }
20451 if test `eval echo '${'$as_ac_var'}'` = yes; then
20452   cat >>confdefs.h <<_ACEOF
20453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20454 _ACEOF
20455
20456 fi
20457 done
20458
20459 { echo "$as_me:$LINENO: checking for working mmap" >&5
20460 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20461 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   if test "$cross_compiling" = yes; then
20465   ac_cv_func_mmap_fixed_mapped=no
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473 $ac_includes_default
20474 /* malloc might have been renamed as rpl_malloc. */
20475 #undef malloc
20476
20477 /* Thanks to Mike Haertel and Jim Avera for this test.
20478    Here is a matrix of mmap possibilities:
20479         mmap private not fixed
20480         mmap private fixed at somewhere currently unmapped
20481         mmap private fixed at somewhere already mapped
20482         mmap shared not fixed
20483         mmap shared fixed at somewhere currently unmapped
20484         mmap shared fixed at somewhere already mapped
20485    For private mappings, we should verify that changes cannot be read()
20486    back from the file, nor mmap's back from the file at a different
20487    address.  (There have been systems where private was not correctly
20488    implemented like the infamous i386 svr4.0, and systems where the
20489    VM page cache was not coherent with the file system buffer cache
20490    like early versions of FreeBSD and possibly contemporary NetBSD.)
20491    For shared mappings, we should conversely verify that changes get
20492    propagated back to all the places they're supposed to be.
20493
20494    Grep wants private fixed already mapped.
20495    The main things grep needs to know about mmap are:
20496    * does it exist and is it safe to write into the mmap'd area
20497    * how to use it (BSD variants)  */
20498
20499 #include <fcntl.h>
20500 #include <sys/mman.h>
20501
20502 #if !STDC_HEADERS && !HAVE_STDLIB_H
20503 char *malloc ();
20504 #endif
20505
20506 /* This mess was copied from the GNU getpagesize.h.  */
20507 #if !HAVE_GETPAGESIZE
20508 /* Assume that all systems that can run configure have sys/param.h.  */
20509 # if !HAVE_SYS_PARAM_H
20510 #  define HAVE_SYS_PARAM_H 1
20511 # endif
20512
20513 # ifdef _SC_PAGESIZE
20514 #  define getpagesize() sysconf(_SC_PAGESIZE)
20515 # else /* no _SC_PAGESIZE */
20516 #  if HAVE_SYS_PARAM_H
20517 #   include <sys/param.h>
20518 #   ifdef EXEC_PAGESIZE
20519 #    define getpagesize() EXEC_PAGESIZE
20520 #   else /* no EXEC_PAGESIZE */
20521 #    ifdef NBPG
20522 #     define getpagesize() NBPG * CLSIZE
20523 #     ifndef CLSIZE
20524 #      define CLSIZE 1
20525 #     endif /* no CLSIZE */
20526 #    else /* no NBPG */
20527 #     ifdef NBPC
20528 #      define getpagesize() NBPC
20529 #     else /* no NBPC */
20530 #      ifdef PAGESIZE
20531 #       define getpagesize() PAGESIZE
20532 #      endif /* PAGESIZE */
20533 #     endif /* no NBPC */
20534 #    endif /* no NBPG */
20535 #   endif /* no EXEC_PAGESIZE */
20536 #  else /* no HAVE_SYS_PARAM_H */
20537 #   define getpagesize() 8192   /* punt totally */
20538 #  endif /* no HAVE_SYS_PARAM_H */
20539 # endif /* no _SC_PAGESIZE */
20540
20541 #endif /* no HAVE_GETPAGESIZE */
20542
20543 int
20544 main ()
20545 {
20546   char *data, *data2, *data3;
20547   int i, pagesize;
20548   int fd;
20549
20550   pagesize = getpagesize ();
20551
20552   /* First, make a file with some known garbage in it. */
20553   data = (char *) malloc (pagesize);
20554   if (!data)
20555     return 1;
20556   for (i = 0; i < pagesize; ++i)
20557     *(data + i) = rand ();
20558   umask (0);
20559   fd = creat ("conftest.mmap", 0600);
20560   if (fd < 0)
20561     return 1;
20562   if (write (fd, data, pagesize) != pagesize)
20563     return 1;
20564   close (fd);
20565
20566   /* Next, try to mmap the file at a fixed address which already has
20567      something else allocated at it.  If we can, also make sure that
20568      we see the same garbage.  */
20569   fd = open ("conftest.mmap", O_RDWR);
20570   if (fd < 0)
20571     return 1;
20572   data2 = (char *) malloc (2 * pagesize);
20573   if (!data2)
20574     return 1;
20575   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20576   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20577                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20578     return 1;
20579   for (i = 0; i < pagesize; ++i)
20580     if (*(data + i) != *(data2 + i))
20581       return 1;
20582
20583   /* Finally, make sure that changes to the mapped area do not
20584      percolate back to the file as seen by read().  (This is a bug on
20585      some variants of i386 svr4.0.)  */
20586   for (i = 0; i < pagesize; ++i)
20587     *(data2 + i) = *(data2 + i) + 1;
20588   data3 = (char *) malloc (pagesize);
20589   if (!data3)
20590     return 1;
20591   if (read (fd, data3, pagesize) != pagesize)
20592     return 1;
20593   for (i = 0; i < pagesize; ++i)
20594     if (*(data + i) != *(data3 + i))
20595       return 1;
20596   close (fd);
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_link") 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20611   { (case "(($ac_try" in
20612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613   *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616   (eval "$ac_try") 2>&5
20617   ac_status=$?
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); }; }; then
20620   ac_cv_func_mmap_fixed_mapped=yes
20621 else
20622   echo "$as_me: program exited with status $ac_status" >&5
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20625
20626 ( exit $ac_status )
20627 ac_cv_func_mmap_fixed_mapped=no
20628 fi
20629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20630 fi
20631
20632
20633 fi
20634 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20635 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20636 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20637
20638 cat >>confdefs.h <<\_ACEOF
20639 #define HAVE_MMAP 1
20640 _ACEOF
20641
20642 fi
20643 rm -f conftest.mmap
20644
20645   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20646 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20647 if test "${ac_cv_func_mmap_file+set}" = set; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650    ac_ext=c
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
20656   if test "$cross_compiling" = yes; then
20657   ac_cv_func_mmap_file=no
20658 else
20659   cat >conftest.$ac_ext <<_ACEOF
20660
20661     /* confdefs.h.  */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h.  */
20666
20667 #include <sys/types.h>
20668 #include <sys/mman.h>
20669 #include <fcntl.h>
20670
20671 int
20672 main ()
20673 {
20674
20675   int fd;
20676   fd = creat ("foo",0777);
20677   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20678   unlink ("foo");
20679   return (fd != (int) MAP_FAILED);
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 rm -f conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_link") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20695   { (case "(($ac_try" in
20696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697   *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700   (eval "$ac_try") 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); }; }; then
20704   ac_cv_func_mmap_file=yes
20705 else
20706   echo "$as_me: program exited with status $ac_status" >&5
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710 ( exit $ac_status )
20711 ac_cv_func_mmap_file=no
20712 fi
20713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20714 fi
20715
20716
20717   ac_ext=c
20718 ac_cpp='$CPP $CPPFLAGS'
20719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20722
20723
20724 fi
20725 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20726 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20727 if test "$ac_cv_func_mmap_file" = yes; then
20728
20729 cat >>confdefs.h <<\_ACEOF
20730 #define HAVE_MMAP_FILE
20731 _ACEOF
20732
20733    MMAP_FILE=yes
20734
20735 fi
20736
20737   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20738 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20739 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742   if test "$llvm_cv_os_type" = "Interix" ; then
20743    ac_cv_need_dev_zero_for_mmap=yes
20744  else
20745    ac_cv_need_dev_zero_for_mmap=no
20746  fi
20747
20748 fi
20749 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20750 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20751 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20752
20753 cat >>confdefs.h <<\_ACEOF
20754 #define NEED_DEV_ZERO_FOR_MMAP 1
20755 _ACEOF
20756
20757 fi
20758
20759   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20760   then
20761     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20762 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20763   fi
20764   if test "$ac_cv_func_mmap_file" = "no"
20765   then
20766     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20767 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20768   fi
20769 fi
20770
20771 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20772 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20773 ac_ext=cpp
20774 ac_cpp='$CXXCPP $CPPFLAGS'
20775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20778
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785 int main() {
20786         volatile unsigned long val = 1;
20787         __sync_synchronize();
20788         __sync_val_compare_and_swap(&val, 1, 0);
20789         __sync_add_and_fetch(&val, 1);
20790         __sync_sub_and_fetch(&val, 1);
20791         return 0;
20792       }
20793
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799   *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802   (eval "$ac_link") 2>conftest.er1
20803   ac_status=$?
20804   grep -v '^ *+' conftest.er1 >conftest.err
20805   rm -f conftest.er1
20806   cat conftest.err >&5
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); } &&
20809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20810   { (case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_try") 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; } &&
20819          { ac_try='test -s conftest$ac_exeext'
20820   { (case "(($ac_try" in
20821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822   *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825   (eval "$ac_try") 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; }; then
20829   ac_ext=c
20830 ac_cpp='$CPP $CPPFLAGS'
20831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20834
20835   { echo "$as_me:$LINENO: result: yes" >&5
20836 echo "${ECHO_T}yes" >&6; }
20837
20838 cat >>confdefs.h <<\_ACEOF
20839 #define LLVM_HAS_ATOMICS 1
20840 _ACEOF
20841
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846         { echo "$as_me:$LINENO: result: no" >&5
20847 echo "${ECHO_T}no" >&6; }
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define LLVM_HAS_ATOMICS 0
20851 _ACEOF
20852
20853   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20854 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20855 fi
20856
20857 rm -f core conftest.err conftest.$ac_objext \
20858       conftest$ac_exeext conftest.$ac_ext
20859
20860
20861 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20862   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20863 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20864 if test "${llvm_cv_linux_mixed+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867    ac_ext=c
20868 ac_cpp='$CPP $CPPFLAGS'
20869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20872
20873   cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 #ifndef __x86_64__
20880        error: Not x86-64 even if uname says so!
20881       #endif
20882
20883 int
20884 main ()
20885 {
20886
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (ac_try="$ac_compile"
20893 case "(($ac_try" in
20894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895   *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898   (eval "$ac_compile") 2>conftest.er1
20899   ac_status=$?
20900   grep -v '^ *+' conftest.er1 >conftest.err
20901   rm -f conftest.er1
20902   cat conftest.err >&5
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } &&
20905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20906   { (case "(($ac_try" in
20907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908   *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911   (eval "$ac_try") 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); }; } &&
20915          { ac_try='test -s conftest.$ac_objext'
20916   { (case "(($ac_try" in
20917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918   *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921   (eval "$ac_try") 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; }; then
20925   llvm_cv_linux_mixed=no
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         llvm_cv_linux_mixed=yes
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934   ac_ext=c
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939
20940
20941 fi
20942 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20943 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20944
20945   if test "$llvm_cv_linux_mixed" = "yes"; then
20946     llvm_cv_target_arch="x86"
20947     ARCH="x86"
20948   fi
20949 fi
20950
20951
20952 for ac_func in __dso_handle
20953 do
20954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20958   echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960   cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h.  */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h.  */
20966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20968 #define $ac_func innocuous_$ac_func
20969
20970 /* System header to define __stub macros and hopefully few prototypes,
20971     which can conflict with char $ac_func (); below.
20972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20973     <limits.h> exists even on freestanding compilers.  */
20974
20975 #ifdef __STDC__
20976 # include <limits.h>
20977 #else
20978 # include <assert.h>
20979 #endif
20980
20981 #undef $ac_func
20982
20983 /* Override any GCC internal prototype to avoid an error.
20984    Use char because int might match the return type of a GCC
20985    builtin and then its argument prototype would still apply.  */
20986 #ifdef __cplusplus
20987 extern "C"
20988 #endif
20989 char $ac_func ();
20990 /* The GNU C library defines this for functions which it implements
20991     to always fail with ENOSYS.  Some functions are actually named
20992     something starting with __ and the normal name is an alias.  */
20993 #if defined __stub_$ac_func || defined __stub___$ac_func
20994 choke me
20995 #endif
20996
20997 int
20998 main ()
20999 {
21000 return $ac_func ();
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_link") 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } &&
21019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020   { (case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_try") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest$ac_exeext'
21030   { (case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_try") 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }; then
21039   eval "$as_ac_var=yes"
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044         eval "$as_ac_var=no"
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext \
21048       conftest$ac_exeext conftest.$ac_ext
21049 fi
21050 ac_res=`eval echo '${'$as_ac_var'}'`
21051                { echo "$as_me:$LINENO: result: $ac_res" >&5
21052 echo "${ECHO_T}$ac_res" >&6; }
21053 if test `eval echo '${'$as_ac_var'}'` = yes; then
21054   cat >>confdefs.h <<_ACEOF
21055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21056 _ACEOF
21057
21058 fi
21059 done
21060
21061
21062 SHLIBEXT=$libltdl_cv_shlibext
21063
21064
21065 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21066
21067
21068 if test "${prefix}" = "NONE" ; then
21069   prefix="/usr/local"
21070 fi
21071 eval LLVM_PREFIX="${prefix}";
21072 eval LLVM_BINDIR="${prefix}/bin";
21073 eval LLVM_LIBDIR="${prefix}/lib";
21074 eval LLVM_DATADIR="${prefix}/share/llvm";
21075 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21076 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21077 eval LLVM_INCLUDEDIR="${prefix}/include";
21078 eval LLVM_INFODIR="${prefix}/info";
21079 eval LLVM_MANDIR="${prefix}/man";
21080 LLVM_CONFIGTIME=`date`
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21093   LLVM_CONFIGTIME="(timestamp not enabled)"
21094 fi
21095
21096
21097 cat >>confdefs.h <<_ACEOF
21098 #define LLVM_PREFIX "$LLVM_PREFIX"
21099 _ACEOF
21100
21101
21102 cat >>confdefs.h <<_ACEOF
21103 #define LLVM_BINDIR "$LLVM_BINDIR"
21104 _ACEOF
21105
21106
21107 cat >>confdefs.h <<_ACEOF
21108 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21109 _ACEOF
21110
21111
21112 cat >>confdefs.h <<_ACEOF
21113 #define LLVM_DATADIR "$LLVM_DATADIR"
21114 _ACEOF
21115
21116
21117 cat >>confdefs.h <<_ACEOF
21118 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21119 _ACEOF
21120
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21124 _ACEOF
21125
21126
21127 cat >>confdefs.h <<_ACEOF
21128 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21129 _ACEOF
21130
21131
21132 cat >>confdefs.h <<_ACEOF
21133 #define LLVM_INFODIR "$LLVM_INFODIR"
21134 _ACEOF
21135
21136
21137 cat >>confdefs.h <<_ACEOF
21138 #define LLVM_MANDIR "$LLVM_MANDIR"
21139 _ACEOF
21140
21141
21142 cat >>confdefs.h <<_ACEOF
21143 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21144 _ACEOF
21145
21146
21147 cat >>confdefs.h <<_ACEOF
21148 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21149 _ACEOF
21150
21151
21152 if test "$BINDINGS_TO_BUILD" = auto ; then
21153   BINDINGS_TO_BUILD=""
21154   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21155     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21156   fi
21157 fi
21158 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21159
21160
21161 ALL_BINDINGS=ocaml
21162
21163
21164 binding_prereqs_failed=0
21165 for a_binding in $BINDINGS_TO_BUILD ; do
21166   case "$a_binding" in
21167   ocaml)
21168     if test "x$OCAMLC" = x ; then
21169       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21170 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21171       binding_prereqs_failed=1
21172     fi
21173     if test "x$OCAMLDEP" = x ; then
21174       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21175 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21176       binding_prereqs_failed=1
21177     fi
21178     if test "x$OCAMLOPT" = x ; then
21179       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21180 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21181           fi
21182     if test "x$with_ocaml_libdir" != xauto ; then
21183       OCAML_LIBDIR=$with_ocaml_libdir
21184
21185     else
21186       ocaml_stdlib="`"$OCAMLC" -where`"
21187       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21188       then
21189         # ocaml stdlib is beneath our prefix; use stdlib
21190         OCAML_LIBDIR=$ocaml_stdlib
21191
21192       else
21193         # ocaml stdlib is outside our prefix; use libdir/ocaml
21194         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21195
21196       fi
21197     fi
21198     ;;
21199   esac
21200 done
21201 if test "$binding_prereqs_failed" = 1 ; then
21202   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21203 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21204    { (exit 1); exit 1; }; }
21205 fi
21206
21207 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21208 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21209 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21210   echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
21212    ac_ext=cpp
21213 ac_cpp='$CXXCPP $CPPFLAGS'
21214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21217
21218   oldcxxflags="$CXXFLAGS"
21219   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21220   cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21227 int
21228 main ()
21229 {
21230 X<int>().f();
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_compile") 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250   { (case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_try") 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; } &&
21259          { ac_try='test -s conftest.$ac_objext'
21260   { (case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265   (eval "$ac_try") 2>&5
21266   ac_status=$?
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); }; }; then
21269   llvm_cv_cxx_visibility_inlines_hidden=yes
21270 else
21271   echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274         llvm_cv_cxx_visibility_inlines_hidden=no
21275 fi
21276
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278   CXXFLAGS="$oldcxxflags"
21279   ac_ext=c
21280 ac_cpp='$CPP $CPPFLAGS'
21281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21284
21285
21286 fi
21287 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21288 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21289 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21290   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21291
21292 else
21293   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21294
21295 fi
21296
21297
21298 if test "$llvm_cv_link_use_r" = "yes" ; then
21299   RPATH="-Wl,-R"
21300 else
21301   RPATH="-Wl,-rpath"
21302 fi
21303
21304
21305 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21306   RDYNAMIC="-Wl,-export-dynamic"
21307 else
21308   RDYNAMIC=""
21309 fi
21310
21311
21312
21313 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21314
21315
21316
21317
21318
21319
21320 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21321
21322 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21323
21324 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21325
21326 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21327
21328 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21329
21330
21331 ac_config_files="$ac_config_files Makefile.config"
21332
21333
21334 ac_config_files="$ac_config_files llvm.spec"
21335
21336
21337 ac_config_files="$ac_config_files docs/doxygen.cfg"
21338
21339
21340 if test "${clang_src_root}" = ""; then
21341   clang_src_root="$srcdir/tools/clang"
21342 fi
21343 if test -f ${clang_src_root}/README.txt; then
21344     configh="include/clang/Config/config.h"
21345   doxy="docs/doxygen.cfg"
21346   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21347
21348   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21349
21350 fi
21351
21352 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21353
21354
21355 ac_config_commands="$ac_config_commands setup"
21356
21357 ac_config_commands="$ac_config_commands Makefile"
21358
21359
21360 ac_config_commands="$ac_config_commands Makefile.common"
21361
21362
21363 ac_config_commands="$ac_config_commands examples/Makefile"
21364
21365
21366 ac_config_commands="$ac_config_commands lib/Makefile"
21367
21368
21369 ac_config_commands="$ac_config_commands runtime/Makefile"
21370
21371
21372 ac_config_commands="$ac_config_commands test/Makefile"
21373
21374
21375 ac_config_commands="$ac_config_commands test/Makefile.tests"
21376
21377
21378 ac_config_commands="$ac_config_commands unittests/Makefile"
21379
21380
21381 ac_config_commands="$ac_config_commands tools/Makefile"
21382
21383
21384 ac_config_commands="$ac_config_commands utils/Makefile"
21385
21386
21387 ac_config_commands="$ac_config_commands projects/Makefile"
21388
21389
21390 ac_config_commands="$ac_config_commands bindings/Makefile"
21391
21392
21393 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21394
21395
21396
21397 cat >confcache <<\_ACEOF
21398 # This file is a shell script that caches the results of configure
21399 # tests run on this system so they can be shared between configure
21400 # scripts and configure runs, see configure's option --config-cache.
21401 # It is not useful on other systems.  If it contains results you don't
21402 # want to keep, you may remove or edit it.
21403 #
21404 # config.status only pays attention to the cache file if you give it
21405 # the --recheck option to rerun configure.
21406 #
21407 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21408 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21409 # following values.
21410
21411 _ACEOF
21412
21413 # The following way of writing the cache mishandles newlines in values,
21414 # but we know of no workaround that is simple, portable, and efficient.
21415 # So, we kill variables containing newlines.
21416 # Ultrix sh set writes to stderr and can't be redirected directly,
21417 # and sets the high bit in the cache file unless we assign to the vars.
21418 (
21419   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21420     eval ac_val=\$$ac_var
21421     case $ac_val in #(
21422     *${as_nl}*)
21423       case $ac_var in #(
21424       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21425 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21426       esac
21427       case $ac_var in #(
21428       _ | IFS | as_nl) ;; #(
21429       *) $as_unset $ac_var ;;
21430       esac ;;
21431     esac
21432   done
21433
21434   (set) 2>&1 |
21435     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21436     *${as_nl}ac_space=\ *)
21437       # `set' does not quote correctly, so add quotes (double-quote
21438       # substitution turns \\\\ into \\, and sed turns \\ into \).
21439       sed -n \
21440         "s/'/'\\\\''/g;
21441           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21442       ;; #(
21443     *)
21444       # `set' quotes correctly as required by POSIX, so do not add quotes.
21445       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21446       ;;
21447     esac |
21448     sort
21449 ) |
21450   sed '
21451      /^ac_cv_env_/b end
21452      t clear
21453      :clear
21454      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21455      t end
21456      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21457      :end' >>confcache
21458 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21459   if test -w "$cache_file"; then
21460     test "x$cache_file" != "x/dev/null" &&
21461       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21462 echo "$as_me: updating cache $cache_file" >&6;}
21463     cat confcache >$cache_file
21464   else
21465     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21466 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21467   fi
21468 fi
21469 rm -f confcache
21470
21471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21472 # Let make expand exec_prefix.
21473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21474
21475 DEFS=-DHAVE_CONFIG_H
21476
21477 ac_libobjs=
21478 ac_ltlibobjs=
21479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21480   # 1. Remove the extension, and $U if already installed.
21481   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21482   ac_i=`echo "$ac_i" | sed "$ac_script"`
21483   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21484   #    will be set to the directory where LIBOBJS objects are built.
21485   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21486   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21487 done
21488 LIBOBJS=$ac_libobjs
21489
21490 LTLIBOBJS=$ac_ltlibobjs
21491
21492
21493 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21494   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&5
21496 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21497 Usually this means the macro was only invoked conditionally." >&2;}
21498    { (exit 1); exit 1; }; }
21499 fi
21500 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21501   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&5
21503 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21504 Usually this means the macro was only invoked conditionally." >&2;}
21505    { (exit 1); exit 1; }; }
21506 fi
21507
21508 : ${CONFIG_STATUS=./config.status}
21509 ac_clean_files_save=$ac_clean_files
21510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21513 cat >$CONFIG_STATUS <<_ACEOF
21514 #! $SHELL
21515 # Generated by $as_me.
21516 # Run this file to recreate the current configuration.
21517 # Compiler output produced by configure, useful for debugging
21518 # configure, is in config.log if it exists.
21519
21520 debug=false
21521 ac_cs_recheck=false
21522 ac_cs_silent=false
21523 SHELL=\${CONFIG_SHELL-$SHELL}
21524 _ACEOF
21525
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 ## --------------------- ##
21528 ## M4sh Initialization.  ##
21529 ## --------------------- ##
21530
21531 # Be Bourne compatible
21532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21533   emulate sh
21534   NULLCMD=:
21535   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21536   # is contrary to our usage.  Disable this feature.
21537   alias -g '${1+"$@"}'='"$@"'
21538   setopt NO_GLOB_SUBST
21539 else
21540   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21541 fi
21542 BIN_SH=xpg4; export BIN_SH # for Tru64
21543 DUALCASE=1; export DUALCASE # for MKS sh
21544
21545
21546 # PATH needs CR
21547 # Avoid depending upon Character Ranges.
21548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21551 as_cr_digits='0123456789'
21552 as_cr_alnum=$as_cr_Letters$as_cr_digits
21553
21554 # The user is always right.
21555 if test "${PATH_SEPARATOR+set}" != set; then
21556   echo "#! /bin/sh" >conf$$.sh
21557   echo  "exit 0"   >>conf$$.sh
21558   chmod +x conf$$.sh
21559   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21560     PATH_SEPARATOR=';'
21561   else
21562     PATH_SEPARATOR=:
21563   fi
21564   rm -f conf$$.sh
21565 fi
21566
21567 # Support unset when possible.
21568 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21569   as_unset=unset
21570 else
21571   as_unset=false
21572 fi
21573
21574
21575 # IFS
21576 # We need space, tab and new line, in precisely that order.  Quoting is
21577 # there to prevent editors from complaining about space-tab.
21578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21579 # splitting by setting IFS to empty value.)
21580 as_nl='
21581 '
21582 IFS=" ""        $as_nl"
21583
21584 # Find who we are.  Look in the path if we contain no directory separator.
21585 case $0 in
21586   *[\\/]* ) as_myself=$0 ;;
21587   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21588 for as_dir in $PATH
21589 do
21590   IFS=$as_save_IFS
21591   test -z "$as_dir" && as_dir=.
21592   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21593 done
21594 IFS=$as_save_IFS
21595
21596      ;;
21597 esac
21598 # We did not find ourselves, most probably we were run as `sh COMMAND'
21599 # in which case we are not to be found in the path.
21600 if test "x$as_myself" = x; then
21601   as_myself=$0
21602 fi
21603 if test ! -f "$as_myself"; then
21604   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21605   { (exit 1); exit 1; }
21606 fi
21607
21608 # Work around bugs in pre-3.0 UWIN ksh.
21609 for as_var in ENV MAIL MAILPATH
21610 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21611 done
21612 PS1='$ '
21613 PS2='> '
21614 PS4='+ '
21615
21616 # NLS nuisances.
21617 for as_var in \
21618   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21619   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21620   LC_TELEPHONE LC_TIME
21621 do
21622   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21623     eval $as_var=C; export $as_var
21624   else
21625     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21626   fi
21627 done
21628
21629 # Required to use basename.
21630 if expr a : '\(a\)' >/dev/null 2>&1 &&
21631    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21632   as_expr=expr
21633 else
21634   as_expr=false
21635 fi
21636
21637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21638   as_basename=basename
21639 else
21640   as_basename=false
21641 fi
21642
21643
21644 # Name of the executable.
21645 as_me=`$as_basename -- "$0" ||
21646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21647          X"$0" : 'X\(//\)$' \| \
21648          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21649 echo X/"$0" |
21650     sed '/^.*\/\([^/][^/]*\)\/*$/{
21651             s//\1/
21652             q
21653           }
21654           /^X\/\(\/\/\)$/{
21655             s//\1/
21656             q
21657           }
21658           /^X\/\(\/\).*/{
21659             s//\1/
21660             q
21661           }
21662           s/.*/./; q'`
21663
21664 # CDPATH.
21665 $as_unset CDPATH
21666
21667
21668
21669   as_lineno_1=$LINENO
21670   as_lineno_2=$LINENO
21671   test "x$as_lineno_1" != "x$as_lineno_2" &&
21672   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21673
21674   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21675   # uniformly replaced by the line number.  The first 'sed' inserts a
21676   # line-number line after each line using $LINENO; the second 'sed'
21677   # does the real work.  The second script uses 'N' to pair each
21678   # line-number line with the line containing $LINENO, and appends
21679   # trailing '-' during substitution so that $LINENO is not a special
21680   # case at line end.
21681   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21682   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21683   # E. McMahon (1931-1989) for sed's syntax.  :-)
21684   sed -n '
21685     p
21686     /[$]LINENO/=
21687   ' <$as_myself |
21688     sed '
21689       s/[$]LINENO.*/&-/
21690       t lineno
21691       b
21692       :lineno
21693       N
21694       :loop
21695       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21696       t loop
21697       s/-\n.*//
21698     ' >$as_me.lineno &&
21699   chmod +x "$as_me.lineno" ||
21700     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21701    { (exit 1); exit 1; }; }
21702
21703   # Don't try to exec as it changes $[0], causing all sort of problems
21704   # (the dirname of $[0] is not the place where we might find the
21705   # original and so on.  Autoconf is especially sensitive to this).
21706   . "./$as_me.lineno"
21707   # Exit status is that of the last command.
21708   exit
21709 }
21710
21711
21712 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21713   as_dirname=dirname
21714 else
21715   as_dirname=false
21716 fi
21717
21718 ECHO_C= ECHO_N= ECHO_T=
21719 case `echo -n x` in
21720 -n*)
21721   case `echo 'x\c'` in
21722   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21723   *)   ECHO_C='\c';;
21724   esac;;
21725 *)
21726   ECHO_N='-n';;
21727 esac
21728
21729 if expr a : '\(a\)' >/dev/null 2>&1 &&
21730    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21731   as_expr=expr
21732 else
21733   as_expr=false
21734 fi
21735
21736 rm -f conf$$ conf$$.exe conf$$.file
21737 if test -d conf$$.dir; then
21738   rm -f conf$$.dir/conf$$.file
21739 else
21740   rm -f conf$$.dir
21741   mkdir conf$$.dir
21742 fi
21743 echo >conf$$.file
21744 if ln -s conf$$.file conf$$ 2>/dev/null; then
21745   as_ln_s='ln -s'
21746   # ... but there are two gotchas:
21747   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21748   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21749   # In both cases, we have to default to `cp -p'.
21750   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21751     as_ln_s='cp -p'
21752 elif ln conf$$.file conf$$ 2>/dev/null; then
21753   as_ln_s=ln
21754 else
21755   as_ln_s='cp -p'
21756 fi
21757 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21758 rmdir conf$$.dir 2>/dev/null
21759
21760 if mkdir -p . 2>/dev/null; then
21761   as_mkdir_p=:
21762 else
21763   test -d ./-p && rmdir ./-p
21764   as_mkdir_p=false
21765 fi
21766
21767 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21768 # systems may use methods other than mode bits to determine executability.
21769 cat >conf$$.file <<_ASEOF
21770 #! /bin/sh
21771 exit 0
21772 _ASEOF
21773 chmod +x conf$$.file
21774 if test -x conf$$.file >/dev/null 2>&1; then
21775   as_executable_p="test -x"
21776 else
21777   as_executable_p=:
21778 fi
21779 rm -f conf$$.file
21780
21781 # Sed expression to map a string onto a valid CPP name.
21782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21783
21784 # Sed expression to map a string onto a valid variable name.
21785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21786
21787
21788 exec 6>&1
21789
21790 # Save the log message, to keep $[0] and so on meaningful, and to
21791 # report actual input values of CONFIG_FILES etc. instead of their
21792 # values after options handling.
21793 ac_log="
21794 This file was extended by LLVM $as_me 3.2svn, which was
21795 generated by GNU Autoconf 2.60.  Invocation command line was
21796
21797   CONFIG_FILES    = $CONFIG_FILES
21798   CONFIG_HEADERS  = $CONFIG_HEADERS
21799   CONFIG_LINKS    = $CONFIG_LINKS
21800   CONFIG_COMMANDS = $CONFIG_COMMANDS
21801   $ $0 $@
21802
21803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21804 "
21805
21806 _ACEOF
21807
21808 cat >>$CONFIG_STATUS <<_ACEOF
21809 # Files that config.status was made for.
21810 config_files="$ac_config_files"
21811 config_headers="$ac_config_headers"
21812 config_commands="$ac_config_commands"
21813
21814 _ACEOF
21815
21816 cat >>$CONFIG_STATUS <<\_ACEOF
21817 ac_cs_usage="\
21818 \`$as_me' instantiates files from templates according to the
21819 current configuration.
21820
21821 Usage: $0 [OPTIONS] [FILE]...
21822
21823   -h, --help       print this help, then exit
21824   -V, --version    print version number, then exit
21825   -q, --quiet      do not print progress messages
21826   -d, --debug      don't remove temporary files
21827       --recheck    update $as_me by reconfiguring in the same conditions
21828   --file=FILE[:TEMPLATE]
21829                    instantiate the configuration file FILE
21830   --header=FILE[:TEMPLATE]
21831                    instantiate the configuration header FILE
21832
21833 Configuration files:
21834 $config_files
21835
21836 Configuration headers:
21837 $config_headers
21838
21839 Configuration commands:
21840 $config_commands
21841
21842 Report bugs to <bug-autoconf@gnu.org>."
21843
21844 _ACEOF
21845 cat >>$CONFIG_STATUS <<_ACEOF
21846 ac_cs_version="\\
21847 LLVM config.status 3.2svn
21848 configured by $0, generated by GNU Autoconf 2.60,
21849   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21850
21851 Copyright (C) 2006 Free Software Foundation, Inc.
21852 This config.status script is free software; the Free Software Foundation
21853 gives unlimited permission to copy, distribute and modify it."
21854
21855 ac_pwd='$ac_pwd'
21856 srcdir='$srcdir'
21857 INSTALL='$INSTALL'
21858 _ACEOF
21859
21860 cat >>$CONFIG_STATUS <<\_ACEOF
21861 # If no file are specified by the user, then we need to provide default
21862 # value.  By we need to know if files were specified by the user.
21863 ac_need_defaults=:
21864 while test $# != 0
21865 do
21866   case $1 in
21867   --*=*)
21868     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21869     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21870     ac_shift=:
21871     ;;
21872   *)
21873     ac_option=$1
21874     ac_optarg=$2
21875     ac_shift=shift
21876     ;;
21877   esac
21878
21879   case $ac_option in
21880   # Handling of the options.
21881   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21882     ac_cs_recheck=: ;;
21883   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21884     echo "$ac_cs_version"; exit ;;
21885   --debug | --debu | --deb | --de | --d | -d )
21886     debug=: ;;
21887   --file | --fil | --fi | --f )
21888     $ac_shift
21889     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21890     ac_need_defaults=false;;
21891   --header | --heade | --head | --hea )
21892     $ac_shift
21893     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21894     ac_need_defaults=false;;
21895   --he | --h)
21896     # Conflict between --help and --header
21897     { echo "$as_me: error: ambiguous option: $1
21898 Try \`$0 --help' for more information." >&2
21899    { (exit 1); exit 1; }; };;
21900   --help | --hel | -h )
21901     echo "$ac_cs_usage"; exit ;;
21902   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21903   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21904     ac_cs_silent=: ;;
21905
21906   # This is an error.
21907   -*) { echo "$as_me: error: unrecognized option: $1
21908 Try \`$0 --help' for more information." >&2
21909    { (exit 1); exit 1; }; } ;;
21910
21911   *) ac_config_targets="$ac_config_targets $1"
21912      ac_need_defaults=false ;;
21913
21914   esac
21915   shift
21916 done
21917
21918 ac_configure_extra_args=
21919
21920 if $ac_cs_silent; then
21921   exec 6>/dev/null
21922   ac_configure_extra_args="$ac_configure_extra_args --silent"
21923 fi
21924
21925 _ACEOF
21926 cat >>$CONFIG_STATUS <<_ACEOF
21927 if \$ac_cs_recheck; then
21928   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21929   CONFIG_SHELL=$SHELL
21930   export CONFIG_SHELL
21931   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21932 fi
21933
21934 _ACEOF
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21936 exec 5>>config.log
21937 {
21938   echo
21939   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21940 ## Running $as_me. ##
21941 _ASBOX
21942   echo "$ac_log"
21943 } >&5
21944
21945 _ACEOF
21946 cat >>$CONFIG_STATUS <<_ACEOF
21947 #
21948 # INIT-COMMANDS
21949 #
21950 llvm_src="${srcdir}"
21951
21952 _ACEOF
21953
21954 cat >>$CONFIG_STATUS <<\_ACEOF
21955
21956 # Handling of arguments.
21957 for ac_config_target in $ac_config_targets
21958 do
21959   case $ac_config_target in
21960     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21961     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21962     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21963     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21964     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21965     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21966     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21967     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21968     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21969     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21970     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21971     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21972     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21973     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21974     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21975     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21976     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21977     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21978     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21979     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21980     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21981     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21982     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21983     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21984     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21985     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21986     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21987
21988   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21990    { (exit 1); exit 1; }; };;
21991   esac
21992 done
21993
21994
21995 # If the user did not use the arguments to specify the items to instantiate,
21996 # then the envvar interface is used.  Set only those that are not.
21997 # We use the long form for the default assignment because of an extremely
21998 # bizarre bug on SunOS 4.1.3.
21999 if $ac_need_defaults; then
22000   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22001   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22002   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22003 fi
22004
22005 # Have a temporary directory for convenience.  Make it in the build tree
22006 # simply because there is no reason against having it here, and in addition,
22007 # creating and moving files from /tmp can sometimes cause problems.
22008 # Hook for its removal unless debugging.
22009 # Note that there is a small window in which the directory will not be cleaned:
22010 # after its creation but before its name has been assigned to `$tmp'.
22011 $debug ||
22012 {
22013   tmp=
22014   trap 'exit_status=$?
22015   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22016 ' 0
22017   trap '{ (exit 1); exit 1; }' 1 2 13 15
22018 }
22019 # Create a (secure) tmp directory for tmp files.
22020
22021 {
22022   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22023   test -n "$tmp" && test -d "$tmp"
22024 }  ||
22025 {
22026   tmp=./conf$$-$RANDOM
22027   (umask 077 && mkdir "$tmp")
22028 } ||
22029 {
22030    echo "$me: cannot create a temporary directory in ." >&2
22031    { (exit 1); exit 1; }
22032 }
22033
22034 #
22035 # Set up the sed scripts for CONFIG_FILES section.
22036 #
22037
22038 # No need to generate the scripts if there are no CONFIG_FILES.
22039 # This happens for instance when ./config.status config.h
22040 if test -n "$CONFIG_FILES"; then
22041
22042 _ACEOF
22043
22044
22045
22046 ac_delim='%!_!# '
22047 for ac_last_try in false false false false false :; do
22048   cat >conf$$subs.sed <<_ACEOF
22049 SHELL!$SHELL$ac_delim
22050 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22051 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22052 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22053 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22054 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22055 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22056 exec_prefix!$exec_prefix$ac_delim
22057 prefix!$prefix$ac_delim
22058 program_transform_name!$program_transform_name$ac_delim
22059 bindir!$bindir$ac_delim
22060 sbindir!$sbindir$ac_delim
22061 libexecdir!$libexecdir$ac_delim
22062 datarootdir!$datarootdir$ac_delim
22063 datadir!$datadir$ac_delim
22064 sysconfdir!$sysconfdir$ac_delim
22065 sharedstatedir!$sharedstatedir$ac_delim
22066 localstatedir!$localstatedir$ac_delim
22067 includedir!$includedir$ac_delim
22068 oldincludedir!$oldincludedir$ac_delim
22069 docdir!$docdir$ac_delim
22070 infodir!$infodir$ac_delim
22071 htmldir!$htmldir$ac_delim
22072 dvidir!$dvidir$ac_delim
22073 pdfdir!$pdfdir$ac_delim
22074 psdir!$psdir$ac_delim
22075 libdir!$libdir$ac_delim
22076 localedir!$localedir$ac_delim
22077 mandir!$mandir$ac_delim
22078 DEFS!$DEFS$ac_delim
22079 ECHO_C!$ECHO_C$ac_delim
22080 ECHO_N!$ECHO_N$ac_delim
22081 ECHO_T!$ECHO_T$ac_delim
22082 LIBS!$LIBS$ac_delim
22083 build_alias!$build_alias$ac_delim
22084 host_alias!$host_alias$ac_delim
22085 target_alias!$target_alias$ac_delim
22086 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22087 CC!$CC$ac_delim
22088 CFLAGS!$CFLAGS$ac_delim
22089 LDFLAGS!$LDFLAGS$ac_delim
22090 CPPFLAGS!$CPPFLAGS$ac_delim
22091 ac_ct_CC!$ac_ct_CC$ac_delim
22092 EXEEXT!$EXEEXT$ac_delim
22093 OBJEXT!$OBJEXT$ac_delim
22094 CXX!$CXX$ac_delim
22095 CXXFLAGS!$CXXFLAGS$ac_delim
22096 ac_ct_CXX!$ac_ct_CXX$ac_delim
22097 CPP!$CPP$ac_delim
22098 subdirs!$subdirs$ac_delim
22099 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22100 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22101 build!$build$ac_delim
22102 build_cpu!$build_cpu$ac_delim
22103 build_vendor!$build_vendor$ac_delim
22104 build_os!$build_os$ac_delim
22105 host!$host$ac_delim
22106 host_cpu!$host_cpu$ac_delim
22107 host_vendor!$host_vendor$ac_delim
22108 host_os!$host_os$ac_delim
22109 target!$target$ac_delim
22110 target_cpu!$target_cpu$ac_delim
22111 target_vendor!$target_vendor$ac_delim
22112 target_os!$target_os$ac_delim
22113 OS!$OS$ac_delim
22114 HOST_OS!$HOST_OS$ac_delim
22115 TARGET_OS!$TARGET_OS$ac_delim
22116 LINKALL!$LINKALL$ac_delim
22117 NOLINKALL!$NOLINKALL$ac_delim
22118 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22119 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22120 ARCH!$ARCH$ac_delim
22121 ENDIAN!$ENDIAN$ac_delim
22122 GREP!$GREP$ac_delim
22123 EGREP!$EGREP$ac_delim
22124 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22125 BUILD_CC!$BUILD_CC$ac_delim
22126 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22127 BUILD_CXX!$BUILD_CXX$ac_delim
22128 CVSBUILD!$CVSBUILD$ac_delim
22129 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22130 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22131 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22132 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22133 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22134 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22135 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22136 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22137 JIT!$JIT$ac_delim
22138 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22139 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22140 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22141 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22142 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22143 ENABLE_PIC!$ENABLE_PIC$ac_delim
22144 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22145 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22146 _ACEOF
22147
22148   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22149     break
22150   elif $ac_last_try; then
22151     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22152 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22153    { (exit 1); exit 1; }; }
22154   else
22155     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22156   fi
22157 done
22158
22159 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22160 if test -n "$ac_eof"; then
22161   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22162   ac_eof=`expr $ac_eof + 1`
22163 fi
22164
22165 cat >>$CONFIG_STATUS <<_ACEOF
22166 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22168 _ACEOF
22169 sed '
22170 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22171 s/^/s,@/; s/!/@,|#_!!_#|/
22172 :n
22173 t n
22174 s/'"$ac_delim"'$/,g/; t
22175 s/$/\\/; p
22176 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22177 ' >>$CONFIG_STATUS <conf$$subs.sed
22178 rm -f conf$$subs.sed
22179 cat >>$CONFIG_STATUS <<_ACEOF
22180 CEOF$ac_eof
22181 _ACEOF
22182
22183
22184 ac_delim='%!_!# '
22185 for ac_last_try in false false false false false :; do
22186   cat >conf$$subs.sed <<_ACEOF
22187 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22188 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22189 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22190 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22191 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22192 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22193 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22194 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22195 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22196 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22197 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22198 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22199 NM!$NM$ac_delim
22200 ifGNUmake!$ifGNUmake$ac_delim
22201 LN_S!$LN_S$ac_delim
22202 CMP!$CMP$ac_delim
22203 CP!$CP$ac_delim
22204 DATE!$DATE$ac_delim
22205 FIND!$FIND$ac_delim
22206 MKDIR!$MKDIR$ac_delim
22207 MV!$MV$ac_delim
22208 RANLIB!$RANLIB$ac_delim
22209 AR!$AR$ac_delim
22210 RM!$RM$ac_delim
22211 SED!$SED$ac_delim
22212 TAR!$TAR$ac_delim
22213 BINPWD!$BINPWD$ac_delim
22214 GRAPHVIZ!$GRAPHVIZ$ac_delim
22215 DOT!$DOT$ac_delim
22216 FDP!$FDP$ac_delim
22217 NEATO!$NEATO$ac_delim
22218 TWOPI!$TWOPI$ac_delim
22219 CIRCO!$CIRCO$ac_delim
22220 GV!$GV$ac_delim
22221 DOTTY!$DOTTY$ac_delim
22222 XDOT_PY!$XDOT_PY$ac_delim
22223 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22224 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22225 INSTALL_DATA!$INSTALL_DATA$ac_delim
22226 BZIP2!$BZIP2$ac_delim
22227 CAT!$CAT$ac_delim
22228 DOXYGEN!$DOXYGEN$ac_delim
22229 GROFF!$GROFF$ac_delim
22230 GZIPBIN!$GZIPBIN$ac_delim
22231 POD2HTML!$POD2HTML$ac_delim
22232 POD2MAN!$POD2MAN$ac_delim
22233 PDFROFF!$PDFROFF$ac_delim
22234 RUNTEST!$RUNTEST$ac_delim
22235 TCLSH!$TCLSH$ac_delim
22236 ZIP!$ZIP$ac_delim
22237 OCAMLC!$OCAMLC$ac_delim
22238 OCAMLOPT!$OCAMLOPT$ac_delim
22239 OCAMLDEP!$OCAMLDEP$ac_delim
22240 OCAMLDOC!$OCAMLDOC$ac_delim
22241 GAS!$GAS$ac_delim
22242 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22243 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22244 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22245 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22246 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22247 LIBADD_DL!$LIBADD_DL$ac_delim
22248 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22249 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22250 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22251 USE_UDIS86!$USE_UDIS86$ac_delim
22252 USE_OPROFILE!$USE_OPROFILE$ac_delim
22253 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22254 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22255 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22256 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22257 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22258 MMAP_FILE!$MMAP_FILE$ac_delim
22259 SHLIBEXT!$SHLIBEXT$ac_delim
22260 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22261 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22262 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22263 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22264 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22265 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22266 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22267 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22268 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22269 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22270 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22271 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22272 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22273 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22274 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22275 RPATH!$RPATH$ac_delim
22276 RDYNAMIC!$RDYNAMIC$ac_delim
22277 LIBOBJS!$LIBOBJS$ac_delim
22278 LTLIBOBJS!$LTLIBOBJS$ac_delim
22279 _ACEOF
22280
22281   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22282     break
22283   elif $ac_last_try; then
22284     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22285 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22286    { (exit 1); exit 1; }; }
22287   else
22288     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22289   fi
22290 done
22291
22292 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22293 if test -n "$ac_eof"; then
22294   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22295   ac_eof=`expr $ac_eof + 1`
22296 fi
22297
22298 cat >>$CONFIG_STATUS <<_ACEOF
22299 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22301 _ACEOF
22302 sed '
22303 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22304 s/^/s,@/; s/!/@,|#_!!_#|/
22305 :n
22306 t n
22307 s/'"$ac_delim"'$/,g/; t
22308 s/$/\\/; p
22309 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22310 ' >>$CONFIG_STATUS <conf$$subs.sed
22311 rm -f conf$$subs.sed
22312 cat >>$CONFIG_STATUS <<_ACEOF
22313 :end
22314 s/|#_!!_#|//g
22315 CEOF$ac_eof
22316 _ACEOF
22317
22318
22319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22321 # trailing colons and then remove the whole line if VPATH becomes empty
22322 # (actually we leave an empty line to preserve line numbers).
22323 if test "x$srcdir" = x.; then
22324   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22325 s/:*\$(srcdir):*/:/
22326 s/:*\${srcdir}:*/:/
22327 s/:*@srcdir@:*/:/
22328 s/^\([^=]*=[     ]*\):*/\1/
22329 s/:*$//
22330 s/^[^=]*=[       ]*$//
22331 }'
22332 fi
22333
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 fi # test -n "$CONFIG_FILES"
22336
22337
22338 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22339 do
22340   case $ac_tag in
22341   :[FHLC]) ac_mode=$ac_tag; continue;;
22342   esac
22343   case $ac_mode$ac_tag in
22344   :[FHL]*:*);;
22345   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22346 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22347    { (exit 1); exit 1; }; };;
22348   :[FH]-) ac_tag=-:-;;
22349   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22350   esac
22351   ac_save_IFS=$IFS
22352   IFS=:
22353   set x $ac_tag
22354   IFS=$ac_save_IFS
22355   shift
22356   ac_file=$1
22357   shift
22358
22359   case $ac_mode in
22360   :L) ac_source=$1;;
22361   :[FH])
22362     ac_file_inputs=
22363     for ac_f
22364     do
22365       case $ac_f in
22366       -) ac_f="$tmp/stdin";;
22367       *) # Look for the file first in the build tree, then in the source tree
22368          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22369          # because $ac_f cannot contain `:'.
22370          test -f "$ac_f" ||
22371            case $ac_f in
22372            [\\/$]*) false;;
22373            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22374            esac ||
22375            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22376 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22377    { (exit 1); exit 1; }; };;
22378       esac
22379       ac_file_inputs="$ac_file_inputs $ac_f"
22380     done
22381
22382     # Let's still pretend it is `configure' which instantiates (i.e., don't
22383     # use $as_me), people would be surprised to read:
22384     #    /* config.h.  Generated by config.status.  */
22385     configure_input="Generated from "`IFS=:
22386           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22387     if test x"$ac_file" != x-; then
22388       configure_input="$ac_file.  $configure_input"
22389       { echo "$as_me:$LINENO: creating $ac_file" >&5
22390 echo "$as_me: creating $ac_file" >&6;}
22391     fi
22392
22393     case $ac_tag in
22394     *:-:* | *:-) cat >"$tmp/stdin";;
22395     esac
22396     ;;
22397   esac
22398
22399   ac_dir=`$as_dirname -- "$ac_file" ||
22400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22401          X"$ac_file" : 'X\(//\)[^/]' \| \
22402          X"$ac_file" : 'X\(//\)$' \| \
22403          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22404 echo X"$ac_file" |
22405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22406             s//\1/
22407             q
22408           }
22409           /^X\(\/\/\)[^/].*/{
22410             s//\1/
22411             q
22412           }
22413           /^X\(\/\/\)$/{
22414             s//\1/
22415             q
22416           }
22417           /^X\(\/\).*/{
22418             s//\1/
22419             q
22420           }
22421           s/.*/./; q'`
22422   { as_dir="$ac_dir"
22423   case $as_dir in #(
22424   -*) as_dir=./$as_dir;;
22425   esac
22426   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22427     as_dirs=
22428     while :; do
22429       case $as_dir in #(
22430       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22431       *) as_qdir=$as_dir;;
22432       esac
22433       as_dirs="'$as_qdir' $as_dirs"
22434       as_dir=`$as_dirname -- "$as_dir" ||
22435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22436          X"$as_dir" : 'X\(//\)[^/]' \| \
22437          X"$as_dir" : 'X\(//\)$' \| \
22438          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22439 echo X"$as_dir" |
22440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22441             s//\1/
22442             q
22443           }
22444           /^X\(\/\/\)[^/].*/{
22445             s//\1/
22446             q
22447           }
22448           /^X\(\/\/\)$/{
22449             s//\1/
22450             q
22451           }
22452           /^X\(\/\).*/{
22453             s//\1/
22454             q
22455           }
22456           s/.*/./; q'`
22457       test -d "$as_dir" && break
22458     done
22459     test -z "$as_dirs" || eval "mkdir $as_dirs"
22460   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22461 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22462    { (exit 1); exit 1; }; }; }
22463   ac_builddir=.
22464
22465 case "$ac_dir" in
22466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22467 *)
22468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22469   # A ".." for each directory in $ac_dir_suffix.
22470   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22471   case $ac_top_builddir_sub in
22472   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22473   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22474   esac ;;
22475 esac
22476 ac_abs_top_builddir=$ac_pwd
22477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22478 # for backward compatibility:
22479 ac_top_builddir=$ac_top_build_prefix
22480
22481 case $srcdir in
22482   .)  # We are building in place.
22483     ac_srcdir=.
22484     ac_top_srcdir=$ac_top_builddir_sub
22485     ac_abs_top_srcdir=$ac_pwd ;;
22486   [\\/]* | ?:[\\/]* )  # Absolute name.
22487     ac_srcdir=$srcdir$ac_dir_suffix;
22488     ac_top_srcdir=$srcdir
22489     ac_abs_top_srcdir=$srcdir ;;
22490   *) # Relative name.
22491     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22492     ac_top_srcdir=$ac_top_build_prefix$srcdir
22493     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22494 esac
22495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22496
22497
22498   case $ac_mode in
22499   :F)
22500   #
22501   # CONFIG_FILE
22502   #
22503
22504   case $INSTALL in
22505   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22506   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22507   esac
22508 _ACEOF
22509
22510 cat >>$CONFIG_STATUS <<\_ACEOF
22511 # If the template does not know about datarootdir, expand it.
22512 # FIXME: This hack should be removed a few years after 2.60.
22513 ac_datarootdir_hack=; ac_datarootdir_seen=
22514
22515 case `sed -n '/datarootdir/ {
22516   p
22517   q
22518 }
22519 /@datadir@/p
22520 /@docdir@/p
22521 /@infodir@/p
22522 /@localedir@/p
22523 /@mandir@/p
22524 ' $ac_file_inputs` in
22525 *datarootdir*) ac_datarootdir_seen=yes;;
22526 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22527   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22528 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22529 _ACEOF
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531   ac_datarootdir_hack='
22532   s&@datadir@&$datadir&g
22533   s&@docdir@&$docdir&g
22534   s&@infodir@&$infodir&g
22535   s&@localedir@&$localedir&g
22536   s&@mandir@&$mandir&g
22537     s&\\\${datarootdir}&$datarootdir&g' ;;
22538 esac
22539 _ACEOF
22540
22541 # Neutralize VPATH when `$srcdir' = `.'.
22542 # Shell code in configure.ac might set extrasub.
22543 # FIXME: do we really want to maintain this feature?
22544 cat >>$CONFIG_STATUS <<_ACEOF
22545   sed "$ac_vpsub
22546 $extrasub
22547 _ACEOF
22548 cat >>$CONFIG_STATUS <<\_ACEOF
22549 :t
22550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22551 s&@configure_input@&$configure_input&;t t
22552 s&@top_builddir@&$ac_top_builddir_sub&;t t
22553 s&@srcdir@&$ac_srcdir&;t t
22554 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22555 s&@top_srcdir@&$ac_top_srcdir&;t t
22556 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22557 s&@builddir@&$ac_builddir&;t t
22558 s&@abs_builddir@&$ac_abs_builddir&;t t
22559 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22560 s&@INSTALL@&$ac_INSTALL&;t t
22561 $ac_datarootdir_hack
22562 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22563
22564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22565   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22566   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22567   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22568 which seems to be undefined.  Please make sure it is defined." >&5
22569 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22570 which seems to be undefined.  Please make sure it is defined." >&2;}
22571
22572   rm -f "$tmp/stdin"
22573   case $ac_file in
22574   -) cat "$tmp/out"; rm -f "$tmp/out";;
22575   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22576   esac
22577  ;;
22578   :H)
22579   #
22580   # CONFIG_HEADER
22581   #
22582 _ACEOF
22583
22584 # Transform confdefs.h into a sed script `conftest.defines', that
22585 # substitutes the proper values into config.h.in to produce config.h.
22586 rm -f conftest.defines conftest.tail
22587 # First, append a space to every undef/define line, to ease matching.
22588 echo 's/$/ /' >conftest.defines
22589 # Then, protect against being on the right side of a sed subst, or in
22590 # an unquoted here document, in config.status.  If some macros were
22591 # called several times there might be several #defines for the same
22592 # symbol, which is useless.  But do not sort them, since the last
22593 # AC_DEFINE must be honored.
22594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22595 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22596 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22597 # PARAMS is the parameter list in the macro definition--in most cases, it's
22598 # just an empty string.
22599 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22600 ac_dB='\\)[      (].*,\\1define\\2'
22601 ac_dC=' '
22602 ac_dD=' ,'
22603
22604 uniq confdefs.h |
22605   sed -n '
22606         t rset
22607         :rset
22608         s/^[     ]*#[    ]*define[       ][      ]*//
22609         t ok
22610         d
22611         :ok
22612         s/[\\&,]/\\&/g
22613         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22614         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22615   ' >>conftest.defines
22616
22617 # Remove the space that was appended to ease matching.
22618 # Then replace #undef with comments.  This is necessary, for
22619 # example, in the case of _POSIX_SOURCE, which is predefined and required
22620 # on some systems where configure will not decide to define it.
22621 # (The regexp can be short, since the line contains either #define or #undef.)
22622 echo 's/ $//
22623 s,^[     #]*u.*,/* & */,' >>conftest.defines
22624
22625 # Break up conftest.defines:
22626 ac_max_sed_lines=50
22627
22628 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22629 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22630 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22631 # et cetera.
22632 ac_in='$ac_file_inputs'
22633 ac_out='"$tmp/out1"'
22634 ac_nxt='"$tmp/out2"'
22635
22636 while :
22637 do
22638   # Write a here document:
22639     cat >>$CONFIG_STATUS <<_ACEOF
22640     # First, check the format of the line:
22641     cat >"\$tmp/defines.sed" <<\\CEOF
22642 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22643 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22644 b
22645 :def
22646 _ACEOF
22647   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22648   echo 'CEOF
22649     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22650   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22651   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22652   grep . conftest.tail >/dev/null || break
22653   rm -f conftest.defines
22654   mv conftest.tail conftest.defines
22655 done
22656 rm -f conftest.defines conftest.tail
22657
22658 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22659 cat >>$CONFIG_STATUS <<\_ACEOF
22660   if test x"$ac_file" != x-; then
22661     echo "/* $configure_input  */" >"$tmp/config.h"
22662     cat "$ac_result" >>"$tmp/config.h"
22663     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22664       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22665 echo "$as_me: $ac_file is unchanged" >&6;}
22666     else
22667       rm -f $ac_file
22668       mv "$tmp/config.h" $ac_file
22669     fi
22670   else
22671     echo "/* $configure_input  */"
22672     cat "$ac_result"
22673   fi
22674   rm -f "$tmp/out12"
22675  ;;
22676
22677   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22678 echo "$as_me: executing $ac_file commands" >&6;}
22679  ;;
22680   esac
22681
22682
22683   case $ac_file$ac_mode in
22684     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22685    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22686     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22687    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22688     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22689    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22690     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22691    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22692     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22693    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22694     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22695    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22696     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22697    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22698     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22699    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22700     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22701    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22702     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22703    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22704     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22705    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22706     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22707    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22708     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22709    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22710
22711   esac
22712 done # for ac_tag
22713
22714
22715 { (exit 0); exit 0; }
22716 _ACEOF
22717 chmod +x $CONFIG_STATUS
22718 ac_clean_files=$ac_clean_files_save
22719
22720
22721 # configure is writing to config.log, and then calls config.status.
22722 # config.status does its own redirection, appending to config.log.
22723 # Unfortunately, on DOS this fails, as config.log is still kept open
22724 # by configure, so config.status won't be able to write to it; its
22725 # output is simply discarded.  So we exec the FD to /dev/null,
22726 # effectively closing config.log, so it can be properly (re)opened and
22727 # appended to by config.status.  When coming back to configure, we
22728 # need to make the FD available again.
22729 if test "$no_create" != yes; then
22730   ac_cs_success=:
22731   ac_config_status_args=
22732   test "$silent" = yes &&
22733     ac_config_status_args="$ac_config_status_args --quiet"
22734   exec 5>/dev/null
22735   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22736   exec 5>>config.log
22737   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22738   # would make configure fail if this is the last instruction.
22739   $ac_cs_success || { (exit 1); exit 1; }
22740 fi
22741
22742 #
22743 # CONFIG_SUBDIRS section.
22744 #
22745 if test "$no_recursion" != yes; then
22746
22747   # Remove --cache-file and --srcdir arguments so they do not pile up.
22748   ac_sub_configure_args=
22749   ac_prev=
22750   eval "set x $ac_configure_args"
22751   shift
22752   for ac_arg
22753   do
22754     if test -n "$ac_prev"; then
22755       ac_prev=
22756       continue
22757     fi
22758     case $ac_arg in
22759     -cache-file | --cache-file | --cache-fil | --cache-fi \
22760     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22761       ac_prev=cache_file ;;
22762     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22763     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22764     | --c=*)
22765       ;;
22766     --config-cache | -C)
22767       ;;
22768     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22769       ac_prev=srcdir ;;
22770     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22771       ;;
22772     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22773       ac_prev=prefix ;;
22774     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22775       ;;
22776     *)
22777       case $ac_arg in
22778       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22779       esac
22780       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22781     esac
22782   done
22783
22784   # Always prepend --prefix to ensure using the same prefix
22785   # in subdir configurations.
22786   ac_arg="--prefix=$prefix"
22787   case $ac_arg in
22788   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22789   esac
22790   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22791
22792   ac_popdir=`pwd`
22793   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22794
22795     # Do not complain, so a configure script can configure whichever
22796     # parts of a large source tree are present.
22797     test -d "$srcdir/$ac_dir" || continue
22798
22799     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22800     echo "$as_me:$LINENO: $ac_msg" >&5
22801     echo "$ac_msg" >&6
22802     { as_dir="$ac_dir"
22803   case $as_dir in #(
22804   -*) as_dir=./$as_dir;;
22805   esac
22806   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22807     as_dirs=
22808     while :; do
22809       case $as_dir in #(
22810       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22811       *) as_qdir=$as_dir;;
22812       esac
22813       as_dirs="'$as_qdir' $as_dirs"
22814       as_dir=`$as_dirname -- "$as_dir" ||
22815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22816          X"$as_dir" : 'X\(//\)[^/]' \| \
22817          X"$as_dir" : 'X\(//\)$' \| \
22818          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22819 echo X"$as_dir" |
22820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22821             s//\1/
22822             q
22823           }
22824           /^X\(\/\/\)[^/].*/{
22825             s//\1/
22826             q
22827           }
22828           /^X\(\/\/\)$/{
22829             s//\1/
22830             q
22831           }
22832           /^X\(\/\).*/{
22833             s//\1/
22834             q
22835           }
22836           s/.*/./; q'`
22837       test -d "$as_dir" && break
22838     done
22839     test -z "$as_dirs" || eval "mkdir $as_dirs"
22840   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22841 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22842    { (exit 1); exit 1; }; }; }
22843     ac_builddir=.
22844
22845 case "$ac_dir" in
22846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22847 *)
22848   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22849   # A ".." for each directory in $ac_dir_suffix.
22850   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22851   case $ac_top_builddir_sub in
22852   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22854   esac ;;
22855 esac
22856 ac_abs_top_builddir=$ac_pwd
22857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22858 # for backward compatibility:
22859 ac_top_builddir=$ac_top_build_prefix
22860
22861 case $srcdir in
22862   .)  # We are building in place.
22863     ac_srcdir=.
22864     ac_top_srcdir=$ac_top_builddir_sub
22865     ac_abs_top_srcdir=$ac_pwd ;;
22866   [\\/]* | ?:[\\/]* )  # Absolute name.
22867     ac_srcdir=$srcdir$ac_dir_suffix;
22868     ac_top_srcdir=$srcdir
22869     ac_abs_top_srcdir=$srcdir ;;
22870   *) # Relative name.
22871     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22872     ac_top_srcdir=$ac_top_build_prefix$srcdir
22873     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22874 esac
22875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22876
22877
22878     cd "$ac_dir"
22879
22880     # Check for guested configure; otherwise get Cygnus style configure.
22881     if test -f "$ac_srcdir/configure.gnu"; then
22882       ac_sub_configure=$ac_srcdir/configure.gnu
22883     elif test -f "$ac_srcdir/configure"; then
22884       ac_sub_configure=$ac_srcdir/configure
22885     elif test -f "$ac_srcdir/configure.in"; then
22886       # This should be Cygnus configure.
22887       ac_sub_configure=$ac_aux_dir/configure
22888     else
22889       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22890 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22891       ac_sub_configure=
22892     fi
22893
22894     # The recursion is here.
22895     if test -n "$ac_sub_configure"; then
22896       # Make the cache file name correct relative to the subdirectory.
22897       case $cache_file in
22898       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22899       *) # Relative name.
22900         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22901       esac
22902
22903       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22904 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22905       # The eval makes quoting arguments work.
22906       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22907            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22908         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22909 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22910    { (exit 1); exit 1; }; }
22911     fi
22912
22913     cd "$ac_popdir"
22914   done
22915 fi
22916