OSDN Git Service

Add a check to configure that the libstdc++ selected by Clang isn't
[android-x86/external-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.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/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 HOST_ARCH
678 LLVM_CROSS_COMPILING
679 BUILD_CC
680 BUILD_EXEEXT
681 BUILD_CXX
682 CVSBUILD
683 ENABLE_LIBCPP
684 ENABLE_CXX11
685 ENABLE_SPLIT_DWARF
686 ENABLE_CLANG_ARCMT
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
689 ENABLE_OPTIMIZED
690 ENABLE_PROFILING
691 DISABLE_ASSERTIONS
692 ENABLE_WERROR
693 ENABLE_EXPENSIVE_CHECKS
694 EXPENSIVE_CHECKS
695 DEBUG_RUNTIME
696 DEBUG_SYMBOLS
697 KEEP_SYMBOLS
698 JIT
699 TARGET_HAS_JIT
700 ENABLE_DOCS
701 ENABLE_DOXYGEN
702 LLVM_ENABLE_THREADS
703 ENABLE_PTHREADS
704 LLVM_ENABLE_ZLIB
705 ENABLE_PIC
706 ENABLE_SHARED
707 ENABLE_EMBED_STDCXX
708 ENABLE_TIMESTAMPS
709 TARGETS_TO_BUILD
710 LLVM_ENUM_TARGETS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
714 OPTIMIZE_OPTION
715 EXTRA_OPTIONS
716 EXTRA_LD_OPTIONS
717 CLANG_SRC_ROOT
718 BINUTILS_INCDIR
719 INTERNAL_PREFIX
720 NM
721 ifGNUmake
722 LN_S
723 CMP
724 CP
725 DATE
726 FIND
727 GREP
728 MKDIR
729 MV
730 RANLIB
731 AR
732 RM
733 SED
734 TAR
735 BINPWD
736 GRAPHVIZ
737 DOT
738 FDP
739 NEATO
740 TWOPI
741 CIRCO
742 GV
743 DOTTY
744 XDOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 CXXCPP
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 CXXCPP'
817 ac_subdirs_all='projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/safecode
823 tools/polly'
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875   # If the previous option needs an argument, assign it.
876   if test -n "$ac_prev"; then
877     eval $ac_prev=\$ac_option
878     ac_prev=
879     continue
880   fi
881
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949    { (exit 1); exit 1; }; }
950     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951     eval enable_$ac_feature=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package| sed 's/-/_/g'`
1148     eval with_$ac_package=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package | sed 's/-/_/g'`
1157     eval with_$ac_package=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187    { (exit 1); exit 1; }; }
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   { echo "$as_me: error: missing argument to $ac_option" >&2
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Be sure to have absolute directory names.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { echo "$as_me: error: Working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$0" : 'X\(//\)[^/]' \| \
1264          X"$0" : 'X\(//\)$' \| \
1265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 echo X"$0" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR           user executables [EPREFIX/bin]
1360   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR       program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR           object code libraries [EPREFIX/lib]
1366   --includedir=DIR       C header files [PREFIX/include]
1367   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR          info documentation [DATAROOTDIR/info]
1371   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR           man documentation [DATAROOTDIR/man]
1373   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1374   --htmldir=DIR          html documentation [DOCDIR]
1375   --dvidir=DIR           dvi documentation [DOCDIR]
1376   --pdfdir=DIR           pdf documentation [DOCDIR]
1377   --psdir=DIR            ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385   --target=TARGET   configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-compiler-version-checks
1399                           Check the version of the host compiler (default is
1400                           YES)
1401   --enable-polly          Use polly if available (default is YES)
1402   --enable-libcpp         Use libc++ if available (default is NO)
1403   --enable-cxx11          Use c++11 if available (default is NO)
1404   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1405   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1406   --enable-clang-static-analyzer
1407                           Enable building of clang Static Analyzer (default is
1408                           YES)
1409   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410   --enable-optimized      Compile with optimizations enabled (default is NO)
1411   --enable-profiling      Compile with profiling enabled (default is NO)
1412   --enable-assertions     Compile with assertion checks enabled (default is
1413                           YES)
1414   --enable-werror         Compile with -Werror enabled (default is NO)
1415   --enable-expensive-checks
1416                           Compile with expensive debug checks enabled (default
1417                           is NO)
1418   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1419                           NO)
1420   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1421                           optimization is on and YES if it's off)
1422   --enable-keep-symbols   Do not strip installed executables)
1423   --enable-jit            Enable Just In Time Compiling (default is YES)
1424   --enable-docs           Build documents (default is YES)
1425   --enable-doxygen        Build doxygen documentation (default is NO)
1426   --enable-threads        Use threads if available (default is YES)
1427   --enable-pthreads       Use pthreads if available (default is YES)
1428   --enable-zlib           Use zlib for compression/decompression if available
1429                           (default is YES)
1430   --enable-pic            Build LLVM with Position Independent Code (default
1431                           is YES)
1432   --enable-shared         Build a shared library and link tools against it
1433                           (default is NO)
1434   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1435                           Win32 DLL (default is NO)
1436   --enable-timestamps     Enable embedding timestamp information in build
1437                           (default is YES)
1438   --enable-backtraces     Enable embedding backtraces on crash (default is
1439                           YES)
1440   --enable-crash-overrides
1441                           Enable crash handling overrides (default is YES)
1442   --enable-targets        Build specific host targets: all or
1443                           target1,target2,... Valid targets are: host, x86,
1444                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1445                           xcore, msp430, nvptx, systemz, r600, and cpp
1446                           (default=all)
1447   --enable-experimental-targets
1448                           Build experimental host targets: disable or
1449                           target1,target2,... (default=disable)
1450   --enable-bindings       Build specific language bindings:
1451                           all,auto,none,{binding-name} (default=auto)
1452   --enable-terminfo       Query the terminfo database if available (default is
1453                           YES)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.5svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.5svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 5
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 : ${CFLAGS=}
1991 : ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3581 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3582 ac_ext=cpp
3583 ac_cpp='$CXXCPP $CPPFLAGS'
3584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3587
3588 llvm_cv_cxx_compiler=unknown
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 #if ! __clang__
3596                                     #error
3597                                     #endif
3598
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } &&
3614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3615   { (case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_try") 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   llvm_cv_cxx_compiler=clang
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639         cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #if ! __GNUC__
3646                                                        #error
3647                                                        #endif
3648
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } &&
3664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665   { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; } &&
3674          { ac_try='test -s conftest.$ac_objext'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; }; then
3684   llvm_cv_cxx_compiler=gcc
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689
3690 fi
3691
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3703 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3704
3705 # Check whether --enable-compiler-version-checks was given.
3706 if test "${enable_compiler_version_checks+set}" = set; then
3707   enableval=$enable_compiler_version_checks;
3708 else
3709   enableval=default
3710 fi
3711
3712 case "$enableval" in
3713   no)
3714     ;;
3715   yes|default)
3716     ac_ext=cpp
3717 ac_cpp='$CXXCPP $CPPFLAGS'
3718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3721
3722     case "$llvm_cv_cxx_compiler" in
3723     clang)
3724       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3725 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3726       cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732
3733 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3734 #error This version of Clang is too old to build LLVM
3735 #endif
3736
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_compile") 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3753   { (case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758   (eval "$ac_try") 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); }; } &&
3762          { ac_try='test -s conftest.$ac_objext'
3763   { (case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768   (eval "$ac_try") 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }; }; then
3772   { echo "$as_me:$LINENO: result: yes" >&5
3773 echo "${ECHO_T}yes" >&6; }
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778         { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3780            { { echo "$as_me:$LINENO: error:
3781 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3782 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3783 bypass these sanity checks." >&5
3784 echo "$as_me: error:
3785 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3786 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3787 bypass these sanity checks." >&2;}
3788    { (exit 1); exit 1; }; }
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792
3793                               { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
3794 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
3795       llvm_cv_old_cxxflags="$CXXFLAGS"
3796       CXXFLAGS="$CXXFLAGS -std=c++0x"
3797       cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803
3804 #include <atomic>
3805 std::atomic<float> x(0.0f);
3806 int main() { return (float)x; }
3807
3808 _ACEOF
3809 rm -f conftest.$ac_objext conftest$ac_exeext
3810 if { (ac_try="$ac_link"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816   (eval "$ac_link") 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } &&
3823          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3824   { (case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829   (eval "$ac_try") 2>&5
3830   ac_status=$?
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); }; } &&
3833          { ac_try='test -s conftest$ac_exeext'
3834   { (case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_try") 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; }; then
3843   { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849         { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3851            { { echo "$as_me:$LINENO: error:
3852 We detected a missing feature in the standard C++ library that was known to be
3853 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
3854 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
3855 than 4.7. You will need to update your system and ensure Clang uses the newer
3856 standard library.
3857
3858 If this error is incorrect or you need to force things to work, you may pass
3859 '--disable-compiler-version-checks' to configure to bypass this test." >&5
3860 echo "$as_me: error:
3861 We detected a missing feature in the standard C++ library that was known to be
3862 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
3863 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
3864 than 4.7. You will need to update your system and ensure Clang uses the newer
3865 standard library.
3866
3867 If this error is incorrect or you need to force things to work, you may pass
3868 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
3869    { (exit 1); exit 1; }; }
3870 fi
3871
3872 rm -f core conftest.err conftest.$ac_objext \
3873       conftest$ac_exeext conftest.$ac_ext
3874       ;;
3875     gcc)
3876       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3877 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3878       cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884
3885 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3886 #error This version of GCC is too old to build LLVM
3887 #endif
3888
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897   (eval "$ac_compile") 2>conftest.er1
3898   ac_status=$?
3899   grep -v '^ *+' conftest.er1 >conftest.err
3900   rm -f conftest.er1
3901   cat conftest.err >&5
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } &&
3904          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3905   { (case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_try") 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; } &&
3914          { ac_try='test -s conftest.$ac_objext'
3915   { (case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920   (eval "$ac_try") 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   { echo "$as_me:$LINENO: result: yes" >&5
3925 echo "${ECHO_T}yes" >&6; }
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930         { echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6; }
3932            { { echo "$as_me:$LINENO: error:
3933 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3934 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3935 bypass these sanity checks." >&5
3936 echo "$as_me: error:
3937 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3938 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3939 bypass these sanity checks." >&2;}
3940    { (exit 1); exit 1; }; }
3941 fi
3942
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944       ;;
3945     unknown)
3946       ;;
3947     esac
3948     ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953
3954     ;;
3955   *)
3956     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3957 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3958    { (exit 1); exit 1; }; }
3959     ;;
3960 esac
3961
3962
3963
3964 if test -d ${srcdir}/projects/test-suite ; then
3965   subdirs="$subdirs projects/test-suite"
3966
3967 fi
3968
3969 if test -d ${srcdir}/projects/llvm-test ; then
3970   subdirs="$subdirs projects/llvm-test"
3971
3972 fi
3973
3974 if test -d ${srcdir}/projects/poolalloc ; then
3975   subdirs="$subdirs projects/poolalloc"
3976
3977 fi
3978
3979 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3980   subdirs="$subdirs projects/llvm-poolalloc"
3981
3982 fi
3983
3984 for i in `ls ${srcdir}/projects`
3985 do
3986   if test -d ${srcdir}/projects/${i} ; then
3987     case ${i} in
3988       sample)       subdirs="$subdirs projects/sample"
3989     ;;
3990       safecode)     subdirs="$subdirs projects/safecode"
3991  ;;
3992       compiler-rt)       ;;
3993       test-suite)     ;;
3994       llvm-test)      ;;
3995       poolalloc)      ;;
3996       llvm-poolalloc) ;;
3997       *)
3998         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3999 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
4000         ;;
4001     esac
4002   fi
4003 done
4004
4005 # Check whether --enable-polly was given.
4006 if test "${enable_polly+set}" = set; then
4007   enableval=$enable_polly;
4008 else
4009   enableval=default
4010 fi
4011
4012 case "$enableval" in
4013   yes) ENABLE_POLLY=1
4014  ;;
4015   no)  ENABLE_POLLY=0
4016  ;;
4017   default) ENABLE_POLLY=1
4018  ;;
4019   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
4020 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
4021    { (exit 1); exit 1; }; } ;;
4022 esac
4023
4024
4025 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
4026   LLVM_HAS_POLLY=1
4027
4028   subdirs="$subdirs tools/polly"
4029
4030 fi
4031
4032
4033 # Make sure we can run config.sub.
4034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4035   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4037    { (exit 1); exit 1; }; }
4038
4039 { echo "$as_me:$LINENO: checking build system type" >&5
4040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4041 if test "${ac_cv_build+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   ac_build_alias=$build_alias
4045 test "x$ac_build_alias" = x &&
4046   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4047 test "x$ac_build_alias" = x &&
4048   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4050    { (exit 1); exit 1; }; }
4051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4052   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4054    { (exit 1); exit 1; }; }
4055
4056 fi
4057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4058 echo "${ECHO_T}$ac_cv_build" >&6; }
4059 case $ac_cv_build in
4060 *-*-*) ;;
4061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4062 echo "$as_me: error: invalid value of canonical build" >&2;}
4063    { (exit 1); exit 1; }; };;
4064 esac
4065 build=$ac_cv_build
4066 ac_save_IFS=$IFS; IFS='-'
4067 set x $ac_cv_build
4068 shift
4069 build_cpu=$1
4070 build_vendor=$2
4071 shift; shift
4072 # Remember, the first character of IFS is used to create $*,
4073 # except with old shells:
4074 build_os=$*
4075 IFS=$ac_save_IFS
4076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4077
4078
4079 { echo "$as_me:$LINENO: checking host system type" >&5
4080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4081 if test "${ac_cv_host+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   if test "x$host_alias" = x; then
4085   ac_cv_host=$ac_cv_build
4086 else
4087   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4088     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4090    { (exit 1); exit 1; }; }
4091 fi
4092
4093 fi
4094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4095 echo "${ECHO_T}$ac_cv_host" >&6; }
4096 case $ac_cv_host in
4097 *-*-*) ;;
4098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4099 echo "$as_me: error: invalid value of canonical host" >&2;}
4100    { (exit 1); exit 1; }; };;
4101 esac
4102 host=$ac_cv_host
4103 ac_save_IFS=$IFS; IFS='-'
4104 set x $ac_cv_host
4105 shift
4106 host_cpu=$1
4107 host_vendor=$2
4108 shift; shift
4109 # Remember, the first character of IFS is used to create $*,
4110 # except with old shells:
4111 host_os=$*
4112 IFS=$ac_save_IFS
4113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4114
4115
4116 { echo "$as_me:$LINENO: checking target system type" >&5
4117 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4118 if test "${ac_cv_target+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   if test "x$target_alias" = x; then
4122   ac_cv_target=$ac_cv_host
4123 else
4124   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4125     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4127    { (exit 1); exit 1; }; }
4128 fi
4129
4130 fi
4131 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4132 echo "${ECHO_T}$ac_cv_target" >&6; }
4133 case $ac_cv_target in
4134 *-*-*) ;;
4135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4136 echo "$as_me: error: invalid value of canonical target" >&2;}
4137    { (exit 1); exit 1; }; };;
4138 esac
4139 target=$ac_cv_target
4140 ac_save_IFS=$IFS; IFS='-'
4141 set x $ac_cv_target
4142 shift
4143 target_cpu=$1
4144 target_vendor=$2
4145 shift; shift
4146 # Remember, the first character of IFS is used to create $*,
4147 # except with old shells:
4148 target_os=$*
4149 IFS=$ac_save_IFS
4150 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4151
4152
4153 # The aliases save the names the user supplied, while $host etc.
4154 # will get canonicalized.
4155 test -n "$target_alias" &&
4156   test "$program_prefix$program_suffix$program_transform_name" = \
4157     NONENONEs,x,x, &&
4158   program_prefix=${target_alias}-
4159
4160 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4161 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4162 if test "${llvm_cv_os_type+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   case $host in
4166   *-*-aix*)
4167     llvm_cv_link_all_option="-Wl,--whole-archive"
4168     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4169     llvm_cv_os_type="AIX"
4170     llvm_cv_platform_type="Unix" ;;
4171   *-*-irix*)
4172     llvm_cv_link_all_option="-Wl,--whole-archive"
4173     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4174     llvm_cv_os_type="IRIX"
4175     llvm_cv_platform_type="Unix" ;;
4176   *-*-cygwin*)
4177     llvm_cv_link_all_option="-Wl,--whole-archive"
4178     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4179     llvm_cv_os_type="Cygwin"
4180     llvm_cv_platform_type="Unix" ;;
4181   *-*-darwin*)
4182     llvm_cv_link_all_option="-Wl,-all_load"
4183     llvm_cv_no_link_all_option="-Wl,-noall_load"
4184     llvm_cv_os_type="Darwin"
4185     llvm_cv_platform_type="Unix" ;;
4186   *-*-minix*)
4187     llvm_cv_link_all_option="-Wl,-all_load"
4188     llvm_cv_no_link_all_option="-Wl,-noall_load"
4189     llvm_cv_os_type="Minix"
4190     llvm_cv_platform_type="Unix" ;;
4191   *-*-freebsd*)
4192     llvm_cv_link_all_option="-Wl,--whole-archive"
4193     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4194     llvm_cv_os_type="FreeBSD"
4195     llvm_cv_platform_type="Unix" ;;
4196   *-*-kfreebsd-gnu)
4197     llvm_cv_link_all_option="-Wl,--whole-archive"
4198     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4199     llvm_cv_os_type="GNU/kFreeBSD"
4200     llvm_cv_platform_type="Unix" ;;
4201   *-*-openbsd*)
4202     llvm_cv_link_all_option="-Wl,--whole-archive"
4203     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4204     llvm_cv_os_type="OpenBSD"
4205     llvm_cv_platform_type="Unix" ;;
4206   *-*-netbsd*)
4207     llvm_cv_link_all_option="-Wl,--whole-archive"
4208     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4209     llvm_cv_os_type="NetBSD"
4210     llvm_cv_platform_type="Unix" ;;
4211   *-*-dragonfly*)
4212     llvm_cv_link_all_option="-Wl,--whole-archive"
4213     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4214     llvm_cv_os_type="DragonFly"
4215     llvm_cv_platform_type="Unix" ;;
4216   *-*-hpux*)
4217     llvm_cv_link_all_option="-Wl,--whole-archive"
4218     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4219     llvm_cv_os_type="HP-UX"
4220     llvm_cv_platform_type="Unix" ;;
4221   *-*-interix*)
4222     llvm_cv_link_all_option="-Wl,--whole-archive"
4223     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4224     llvm_cv_os_type="Interix"
4225     llvm_cv_platform_type="Unix" ;;
4226   *-*-linux*)
4227     llvm_cv_link_all_option="-Wl,--whole-archive"
4228     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4229     llvm_cv_os_type="Linux"
4230     llvm_cv_platform_type="Unix" ;;
4231   *-*-gnu*)
4232     llvm_cv_link_all_option="-Wl,--whole-archive"
4233     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4234     llvm_cv_os_type="GNU"
4235     llvm_cv_platform_type="Unix" ;;
4236   *-*-solaris*)
4237     llvm_cv_link_all_option="-Wl,-z,allextract"
4238     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4239     llvm_cv_os_type="SunOS"
4240     llvm_cv_platform_type="Unix" ;;
4241   *-*-auroraux*)
4242     llvm_cv_link_all_option="-Wl,-z,allextract"
4243     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4244     llvm_cv_os_type="AuroraUX"
4245     llvm_cv_platform_type="Unix" ;;
4246   *-*-win32*)
4247     llvm_cv_link_all_option="-Wl,--whole-archive"
4248     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4249     llvm_cv_os_type="Win32"
4250     llvm_cv_platform_type="Win32" ;;
4251   *-*-mingw*)
4252     llvm_cv_link_all_option="-Wl,--whole-archive"
4253     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4254     llvm_cv_os_type="MingW"
4255     llvm_cv_platform_type="Win32" ;;
4256   *-*-haiku*)
4257     llvm_cv_link_all_option="-Wl,--whole-archive"
4258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4259     llvm_cv_os_type="Haiku"
4260     llvm_cv_platform_type="Unix" ;;
4261   *-unknown-eabi*)
4262     llvm_cv_link_all_option="-Wl,--whole-archive"
4263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4264     llvm_cv_os_type="Freestanding"
4265     llvm_cv_platform_type="Unix" ;;
4266   *-unknown-elf*)
4267     llvm_cv_link_all_option="-Wl,--whole-archive"
4268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4269     llvm_cv_os_type="Freestanding"
4270     llvm_cv_platform_type="Unix" ;;
4271   *)
4272     llvm_cv_link_all_option=""
4273     llvm_cv_no_link_all_option=""
4274     llvm_cv_os_type="Unknown"
4275     llvm_cv_platform_type="Unknown" ;;
4276 esac
4277 fi
4278 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4279 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4280
4281 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4282 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4283 if test "${llvm_cv_target_os_type+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   case $target in
4287   *-*-aix*)
4288     llvm_cv_target_os_type="AIX" ;;
4289   *-*-irix*)
4290     llvm_cv_target_os_type="IRIX" ;;
4291   *-*-cygwin*)
4292     llvm_cv_target_os_type="Cygwin" ;;
4293   *-*-darwin*)
4294     llvm_cv_target_os_type="Darwin" ;;
4295   *-*-minix*)
4296     llvm_cv_target_os_type="Minix" ;;
4297   *-*-freebsd*)
4298     llvm_cv_target_os_type="FreeBSD" ;;
4299   *-*-kfreebsd-gnu)
4300     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4301   *-*-openbsd*)
4302     llvm_cv_target_os_type="OpenBSD" ;;
4303   *-*-netbsd*)
4304     llvm_cv_target_os_type="NetBSD" ;;
4305   *-*-dragonfly*)
4306     llvm_cv_target_os_type="DragonFly" ;;
4307   *-*-hpux*)
4308     llvm_cv_target_os_type="HP-UX" ;;
4309   *-*-interix*)
4310     llvm_cv_target_os_type="Interix" ;;
4311   *-*-linux*)
4312     llvm_cv_target_os_type="Linux" ;;
4313   *-*-gnu*)
4314     llvm_cv_target_os_type="GNU" ;;
4315   *-*-solaris*)
4316     llvm_cv_target_os_type="SunOS" ;;
4317   *-*-auroraux*)
4318     llvm_cv_target_os_type="AuroraUX" ;;
4319   *-*-win32*)
4320     llvm_cv_target_os_type="Win32" ;;
4321   *-*-mingw*)
4322     llvm_cv_target_os_type="MingW" ;;
4323   *-*-haiku*)
4324     llvm_cv_target_os_type="Haiku" ;;
4325   *-*-rtems*)
4326     llvm_cv_target_os_type="RTEMS" ;;
4327   *-*-nacl*)
4328     llvm_cv_target_os_type="NativeClient" ;;
4329   *-unknown-eabi*)
4330     llvm_cv_target_os_type="Freestanding" ;;
4331   *)
4332     llvm_cv_target_os_type="Unknown" ;;
4333 esac
4334 fi
4335 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4336 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4337
4338 if test "$llvm_cv_os_type" = "Unknown" ; then
4339   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4340 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4341    { (exit 1); exit 1; }; }
4342 fi
4343
4344 OS=$llvm_cv_os_type
4345
4346 HOST_OS=$llvm_cv_os_type
4347
4348 TARGET_OS=$llvm_cv_target_os_type
4349
4350
4351 LINKALL=$llvm_cv_link_all_option
4352
4353 NOLINKALL=$llvm_cv_no_link_all_option
4354
4355
4356 case $llvm_cv_platform_type in
4357   Unix)
4358
4359 cat >>confdefs.h <<\_ACEOF
4360 #define LLVM_ON_UNIX 1
4361 _ACEOF
4362
4363     LLVM_ON_UNIX=1
4364
4365     LLVM_ON_WIN32=0
4366
4367     ;;
4368   Win32)
4369
4370 cat >>confdefs.h <<\_ACEOF
4371 #define LLVM_ON_WIN32 1
4372 _ACEOF
4373
4374     LLVM_ON_UNIX=0
4375
4376     LLVM_ON_WIN32=1
4377
4378     ;;
4379 esac
4380
4381 { echo "$as_me:$LINENO: checking target architecture" >&5
4382 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4383 if test "${llvm_cv_target_arch+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   case $target in
4387   i?86-*)                 llvm_cv_target_arch="x86" ;;
4388   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4389   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4390   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4391   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4392   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4393   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4394   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4395   xcore-*)                llvm_cv_target_arch="XCore" ;;
4396   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4397   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4398   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4399   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4400   *)                      llvm_cv_target_arch="Unknown" ;;
4401 esac
4402 fi
4403 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4404 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4405
4406 if test "$llvm_cv_target_arch" = "Unknown" ; then
4407   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4408 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4409 fi
4410
4411 case "$llvm_cv_target_arch" in
4412     x86)     LLVM_NATIVE_ARCH="X86" ;;
4413     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4414     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4415 esac
4416
4417 ARCH=$llvm_cv_target_arch
4418
4419
4420 case $host in
4421   i?86-*)                 host_arch="x86" ;;
4422   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4423   sparc*-*)               host_arch="Sparc" ;;
4424   powerpc*-*)             host_arch="PowerPC" ;;
4425   arm*-*)                 host_arch="ARM" ;;
4426   aarch64*-*)             host_arch="AArch64" ;;
4427   mips-* | mips64-*)      host_arch="Mips" ;;
4428   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4429   xcore-*)                host_arch="XCore" ;;
4430   msp430-*)               host_arch="MSP430" ;;
4431   hexagon-*)              host_arch="Hexagon" ;;
4432   s390x-*)                host_arch="SystemZ" ;;
4433   *)                      host_arch="Unknown" ;;
4434 esac
4435
4436 if test "$host_arch" = "Unknown" ; then
4437   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4438 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4439 fi
4440
4441 HOST_ARCH=$host_arch
4442
4443
4444 if test "$cross_compiling" = yes; then
4445   LLVM_CROSS_COMPILING=1
4446
4447
4448 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4449 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4450 if test "${ac_cv_build_exeext+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4454   ac_cv_build_exeext=.exe
4455 else
4456   ac_build_prefix=${build_alias}-
4457
4458   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4459 set dummy ${ac_build_prefix}gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$BUILD_CC"; then
4466   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4475     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 BUILD_CC=$ac_cv_prog_BUILD_CC
4486 if test -n "$BUILD_CC"; then
4487   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4488 echo "${ECHO_T}$BUILD_CC" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4492 fi
4493
4494
4495   if test -z "$BUILD_CC"; then
4496      # Extract the first word of "gcc", so it can be a program name with args.
4497 set dummy gcc; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$BUILD_CC"; then
4504   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4513     ac_cv_prog_BUILD_CC="gcc"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521 fi
4522 fi
4523 BUILD_CC=$ac_cv_prog_BUILD_CC
4524 if test -n "$BUILD_CC"; then
4525   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526 echo "${ECHO_T}$BUILD_CC" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532
4533      if test -z "$BUILD_CC"; then
4534        # Extract the first word of "cc", so it can be a program name with args.
4535 set dummy cc; ac_word=$2
4536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$BUILD_CC"; then
4542   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4543 else
4544   ac_prog_rejected=no
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4552     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4553        ac_prog_rejected=yes
4554        continue
4555      fi
4556     ac_cv_prog_BUILD_CC="cc"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 if test $ac_prog_rejected = yes; then
4565   # We found a bogon in the path, so make sure we never use it.
4566   set dummy $ac_cv_prog_BUILD_CC
4567   shift
4568   if test $# != 0; then
4569     # We chose a different compiler from the bogus one.
4570     # However, it has the same basename, so the bogon will be chosen
4571     # first if we set BUILD_CC to just the basename; use the full file name.
4572     shift
4573     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4574   fi
4575 fi
4576 fi
4577 fi
4578 BUILD_CC=$ac_cv_prog_BUILD_CC
4579 if test -n "$BUILD_CC"; then
4580   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4581 echo "${ECHO_T}$BUILD_CC" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588      fi
4589   fi
4590   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4591 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4592    { (exit 1); exit 1; }; }
4593   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4594   rm -f conftest*
4595   echo 'int main () { return 0; }' > conftest.$ac_ext
4596   ac_cv_build_exeext=
4597   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4598   (eval $ac_build_link) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; then
4602     for file in conftest.*; do
4603       case $file in
4604       *.c | *.o | *.obj | *.dSYM) ;;
4605       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4606       esac
4607     done
4608   else
4609     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4610 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4611    { (exit 1); exit 1; }; }
4612   fi
4613   rm -f conftest*
4614   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4615 fi
4616 fi
4617
4618 BUILD_EXEEXT=""
4619 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4620 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4621 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4622 ac_build_exeext=$BUILD_EXEEXT
4623
4624   ac_build_prefix=${build_alias}-
4625   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4626 set dummy ${ac_build_prefix}g++; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   if test -n "$BUILD_CXX"; then
4633   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4653 if test -n "$BUILD_CXX"; then
4654   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4655 echo "${ECHO_T}$BUILD_CXX" >&6; }
4656 else
4657   { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4659 fi
4660
4661
4662   if test -z "$BUILD_CXX"; then
4663      # Extract the first word of "g++", so it can be a program name with args.
4664 set dummy g++; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   if test -n "$BUILD_CXX"; then
4671   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4680     ac_cv_prog_BUILD_CXX="g++"
4681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691 if test -n "$BUILD_CXX"; then
4692   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693 echo "${ECHO_T}$BUILD_CXX" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700      if test -z "$BUILD_CXX"; then
4701        # Extract the first word of "c++", so it can be a program name with args.
4702 set dummy c++; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   if test -n "$BUILD_CXX"; then
4709   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4710 else
4711   ac_prog_rejected=no
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   for ac_exec_ext in '' $ac_executable_extensions; do
4718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4719     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4720        ac_prog_rejected=yes
4721        continue
4722      fi
4723     ac_cv_prog_BUILD_CXX="c++"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 if test $ac_prog_rejected = yes; then
4732   # We found a bogon in the path, so make sure we never use it.
4733   set dummy $ac_cv_prog_BUILD_CXX
4734   shift
4735   if test $# != 0; then
4736     # We chose a different compiler from the bogus one.
4737     # However, it has the same basename, so the bogon will be chosen
4738     # first if we set BUILD_CXX to just the basename; use the full file name.
4739     shift
4740     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4741   fi
4742 fi
4743 fi
4744 fi
4745 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4746 if test -n "$BUILD_CXX"; then
4747   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4748 echo "${ECHO_T}$BUILD_CXX" >&6; }
4749 else
4750   { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 fi
4753
4754
4755      fi
4756   fi
4757 else
4758   LLVM_CROSS_COMPILING=0
4759
4760 fi
4761
4762 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4763   cvsbuild="yes"
4764   optimize="no"
4765   CVSBUILD=CVSBUILD=1
4766
4767 else
4768   cvsbuild="no"
4769   optimize="yes"
4770 fi
4771
4772
4773 # Check whether --enable-libcpp was given.
4774 if test "${enable_libcpp+set}" = set; then
4775   enableval=$enable_libcpp;
4776 else
4777   enableval=default
4778 fi
4779
4780 case "$enableval" in
4781   yes) ENABLE_LIBCPP=1
4782  ;;
4783   no)  ENABLE_LIBCPP=0
4784  ;;
4785   default) ENABLE_LIBCPP=0
4786 ;;
4787   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4788 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4789    { (exit 1); exit 1; }; } ;;
4790 esac
4791
4792 # Check whether --enable-cxx11 was given.
4793 if test "${enable_cxx11+set}" = set; then
4794   enableval=$enable_cxx11;
4795 else
4796   enableval=default
4797 fi
4798
4799 case "$enableval" in
4800   yes) ENABLE_CXX11=1
4801  ;;
4802   no)  ENABLE_CXX11=0
4803  ;;
4804   default) ENABLE_CXX11=0
4805 ;;
4806   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4807 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4808    { (exit 1); exit 1; }; } ;;
4809 esac
4810
4811 # Check whether --enable-split-dwarf was given.
4812 if test "${enable_split_dwarf+set}" = set; then
4813   enableval=$enable_split_dwarf;
4814 else
4815   enableval=default
4816 fi
4817
4818 case "$enableval" in
4819   yes) ENABLE_SPLIT_DWARF=1
4820  ;;
4821   no)  ENABLE_SPLIT_DWARF=0
4822  ;;
4823   default) ENABLE_SPLIT_DWARF=0
4824 ;;
4825   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4826 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4827    { (exit 1); exit 1; }; } ;;
4828 esac
4829
4830 clang_arcmt="yes"
4831 # Check whether --enable-clang-arcmt was given.
4832 if test "${enable_clang_arcmt+set}" = set; then
4833   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4834 else
4835   enableval="yes"
4836 fi
4837
4838 case "$enableval" in
4839   yes) ENABLE_CLANG_ARCMT=1
4840  ;;
4841   no)  ENABLE_CLANG_ARCMT=0
4842  ;;
4843   default) ENABLE_CLANG_ARCMT=1
4844 ;;
4845   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4846 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4847    { (exit 1); exit 1; }; } ;;
4848 esac
4849
4850 clang_static_analyzer="yes"
4851 # Check whether --enable-clang-static-analyzer was given.
4852 if test "${enable_clang_static_analyzer+set}" = set; then
4853   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4854 else
4855   enableval="yes"
4856 fi
4857
4858 case "$enableval" in
4859   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4860  ;;
4861   no)
4862     if test ${clang_arcmt} != "no" ; then
4863       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4864 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4865    { (exit 1); exit 1; }; }
4866     fi
4867     ENABLE_CLANG_STATIC_ANALYZER=0
4868
4869     ;;
4870   default) ENABLE_CLANG_STATIC_ANALYZER=1
4871 ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 # Check whether --enable-clang-rewriter was given.
4878 if test "${enable_clang_rewriter+set}" = set; then
4879   enableval=$enable_clang_rewriter;
4880 else
4881   enableval="yes"
4882 fi
4883
4884 case "$enableval" in
4885   yes) ENABLE_CLANG_REWRITER=1
4886  ;;
4887   no)
4888     if test ${clang_arcmt} != "no" ; then
4889       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4890 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4891    { (exit 1); exit 1; }; }
4892     fi
4893     if test ${clang_static_analyzer} != "no" ; then
4894       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4895 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4896    { (exit 1); exit 1; }; }
4897     fi
4898     ENABLE_CLANG_REWRITER=0
4899
4900     ;;
4901   default) ENABLE_CLANG_REWRITER=1
4902 ;;
4903   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4904 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4905    { (exit 1); exit 1; }; } ;;
4906 esac
4907
4908 # Check whether --enable-optimized was given.
4909 if test "${enable_optimized+set}" = set; then
4910   enableval=$enable_optimized;
4911 else
4912   enableval=$optimize
4913 fi
4914
4915 if test ${enableval} = "no" ; then
4916   ENABLE_OPTIMIZED=
4917
4918 else
4919   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4920
4921 fi
4922
4923 # Check whether --enable-profiling was given.
4924 if test "${enable_profiling+set}" = set; then
4925   enableval=$enable_profiling;
4926 else
4927   enableval="no"
4928 fi
4929
4930 if test ${enableval} = "no" ; then
4931   ENABLE_PROFILING=
4932
4933 else
4934   ENABLE_PROFILING=ENABLE_PROFILING=1
4935
4936 fi
4937
4938 # Check whether --enable-assertions was given.
4939 if test "${enable_assertions+set}" = set; then
4940   enableval=$enable_assertions;
4941 else
4942   enableval="yes"
4943 fi
4944
4945 if test ${enableval} = "yes" ; then
4946   DISABLE_ASSERTIONS=
4947
4948 else
4949   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4950
4951 fi
4952
4953 # Check whether --enable-werror was given.
4954 if test "${enable_werror+set}" = set; then
4955   enableval=$enable_werror;
4956 else
4957   enableval="no"
4958 fi
4959
4960 case "$enableval" in
4961   yes) ENABLE_WERROR=1
4962  ;;
4963   no)  ENABLE_WERROR=0
4964  ;;
4965   default) ENABLE_WERROR=0
4966 ;;
4967   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4969    { (exit 1); exit 1; }; } ;;
4970 esac
4971
4972 # Check whether --enable-expensive-checks was given.
4973 if test "${enable_expensive_checks+set}" = set; then
4974   enableval=$enable_expensive_checks;
4975 else
4976   enableval="no"
4977 fi
4978
4979 if test ${enableval} = "yes" ; then
4980   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4981
4982   EXPENSIVE_CHECKS=yes
4983
4984 else
4985   ENABLE_EXPENSIVE_CHECKS=
4986
4987   EXPENSIVE_CHECKS=no
4988
4989 fi
4990
4991 # Check whether --enable-debug-runtime was given.
4992 if test "${enable_debug_runtime+set}" = set; then
4993   enableval=$enable_debug_runtime;
4994 else
4995   enableval=no
4996 fi
4997
4998 if test ${enableval} = "no" ; then
4999   DEBUG_RUNTIME=
5000
5001 else
5002   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5003
5004 fi
5005
5006 # Check whether --enable-debug-symbols was given.
5007 if test "${enable_debug_symbols+set}" = set; then
5008   enableval=$enable_debug_symbols;
5009 else
5010   enableval=no
5011 fi
5012
5013 if test ${enableval} = "no" ; then
5014   DEBUG_SYMBOLS=
5015
5016 else
5017   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5018
5019 fi
5020
5021 # Check whether --enable-keep-symbols was given.
5022 if test "${enable_keep_symbols+set}" = set; then
5023   enableval=$enable_keep_symbols;
5024 else
5025   enableval=no
5026 fi
5027
5028 if test ${enableval} = "no" ; then
5029   KEEP_SYMBOLS=
5030
5031 else
5032   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5033
5034 fi
5035
5036 # Check whether --enable-jit was given.
5037 if test "${enable_jit+set}" = set; then
5038   enableval=$enable_jit;
5039 else
5040   enableval=default
5041 fi
5042
5043 if test ${enableval} = "no"
5044 then
5045   JIT=
5046
5047 else
5048   case "$llvm_cv_target_arch" in
5049     x86)         TARGET_HAS_JIT=1
5050  ;;
5051     Sparc)       TARGET_HAS_JIT=0
5052  ;;
5053     PowerPC)     TARGET_HAS_JIT=1
5054  ;;
5055     x86_64)      TARGET_HAS_JIT=1
5056  ;;
5057     ARM)         TARGET_HAS_JIT=1
5058  ;;
5059     AArch64)     TARGET_HAS_JIT=0
5060  ;;
5061     Mips)        TARGET_HAS_JIT=1
5062  ;;
5063     XCore)       TARGET_HAS_JIT=0
5064  ;;
5065     MSP430)      TARGET_HAS_JIT=0
5066  ;;
5067     Hexagon)     TARGET_HAS_JIT=0
5068  ;;
5069     NVPTX)       TARGET_HAS_JIT=0
5070  ;;
5071     SystemZ)     TARGET_HAS_JIT=1
5072  ;;
5073     *)           TARGET_HAS_JIT=0
5074  ;;
5075   esac
5076 fi
5077
5078 # Check whether --enable-docs was given.
5079 if test "${enable_docs+set}" = set; then
5080   enableval=$enable_docs;
5081 else
5082   enableval=default
5083 fi
5084
5085 case "$enableval" in
5086   yes) ENABLE_DOCS=1
5087  ;;
5088   no)  ENABLE_DOCS=0
5089  ;;
5090   default) ENABLE_DOCS=1
5091  ;;
5092   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5093 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5094    { (exit 1); exit 1; }; } ;;
5095 esac
5096
5097 # Check whether --enable-doxygen was given.
5098 if test "${enable_doxygen+set}" = set; then
5099   enableval=$enable_doxygen;
5100 else
5101   enableval=default
5102 fi
5103
5104 case "$enableval" in
5105   yes) ENABLE_DOXYGEN=1
5106  ;;
5107   no)  ENABLE_DOXYGEN=0
5108  ;;
5109   default) ENABLE_DOXYGEN=0
5110  ;;
5111   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5113    { (exit 1); exit 1; }; } ;;
5114 esac
5115
5116 # Check whether --enable-threads was given.
5117 if test "${enable_threads+set}" = set; then
5118   enableval=$enable_threads;
5119 else
5120   enableval=default
5121 fi
5122
5123 case "$enableval" in
5124   yes) LLVM_ENABLE_THREADS=1
5125  ;;
5126   no)  LLVM_ENABLE_THREADS=0
5127  ;;
5128   default) LLVM_ENABLE_THREADS=1
5129  ;;
5130   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5132    { (exit 1); exit 1; }; } ;;
5133 esac
5134
5135 cat >>confdefs.h <<_ACEOF
5136 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5137 _ACEOF
5138
5139
5140 # Check whether --enable-pthreads was given.
5141 if test "${enable_pthreads+set}" = set; then
5142   enableval=$enable_pthreads;
5143 else
5144   enableval=default
5145 fi
5146
5147 case "$enableval" in
5148   yes) ENABLE_PTHREADS=1
5149  ;;
5150   no)  ENABLE_PTHREADS=0
5151  ;;
5152   default) ENABLE_PTHREADS=1
5153  ;;
5154   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5156    { (exit 1); exit 1; }; } ;;
5157 esac
5158
5159 # Check whether --enable-zlib was given.
5160 if test "${enable_zlib+set}" = set; then
5161   enableval=$enable_zlib;
5162 else
5163   enableval=default
5164 fi
5165
5166 case "$enableval" in
5167   yes) LLVM_ENABLE_ZLIB=1
5168  ;;
5169   no)  LLVM_ENABLE_ZLIB=0
5170  ;;
5171   default) LLVM_ENABLE_ZLIB=1
5172  ;;
5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5175    { (exit 1); exit 1; }; } ;;
5176 esac
5177
5178 cat >>confdefs.h <<_ACEOF
5179 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5180 _ACEOF
5181
5182
5183 # Check whether --enable-pic was given.
5184 if test "${enable_pic+set}" = set; then
5185   enableval=$enable_pic;
5186 else
5187   enableval=default
5188 fi
5189
5190 case "$enableval" in
5191   yes) ENABLE_PIC=1
5192  ;;
5193   no)  ENABLE_PIC=0
5194  ;;
5195   default) ENABLE_PIC=1
5196  ;;
5197   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5199    { (exit 1); exit 1; }; } ;;
5200 esac
5201
5202 cat >>confdefs.h <<_ACEOF
5203 #define ENABLE_PIC $ENABLE_PIC
5204 _ACEOF
5205
5206
5207 # Check whether --enable-shared was given.
5208 if test "${enable_shared+set}" = set; then
5209   enableval=$enable_shared;
5210 else
5211   enableval=default
5212 fi
5213
5214 case "$enableval" in
5215   yes) ENABLE_SHARED=1
5216  ;;
5217   no)  ENABLE_SHARED=0
5218  ;;
5219   default) ENABLE_SHARED=0
5220  ;;
5221   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5223    { (exit 1); exit 1; }; } ;;
5224 esac
5225
5226 # Check whether --enable-embed-stdcxx was given.
5227 if test "${enable_embed_stdcxx+set}" = set; then
5228   enableval=$enable_embed_stdcxx;
5229 else
5230   enableval=default
5231 fi
5232
5233 case "$enableval" in
5234   yes) ENABLE_EMBED_STDCXX=1
5235  ;;
5236   no)  ENABLE_EMBED_STDCXX=0
5237  ;;
5238   default) ENABLE_EMBED_STDCXX=0
5239  ;;
5240   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5241 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5242    { (exit 1); exit 1; }; } ;;
5243 esac
5244
5245 # Check whether --enable-timestamps was given.
5246 if test "${enable_timestamps+set}" = set; then
5247   enableval=$enable_timestamps;
5248 else
5249   enableval=default
5250 fi
5251
5252 case "$enableval" in
5253   yes) ENABLE_TIMESTAMPS=1
5254  ;;
5255   no)  ENABLE_TIMESTAMPS=0
5256  ;;
5257   default) ENABLE_TIMESTAMPS=1
5258  ;;
5259   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5260 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5261    { (exit 1); exit 1; }; } ;;
5262 esac
5263
5264 cat >>confdefs.h <<_ACEOF
5265 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5266 _ACEOF
5267
5268
5269 # Check whether --enable-backtraces was given.
5270 if test "${enable_backtraces+set}" = set; then
5271   enableval=$enable_backtraces; case "$enableval" in
5272     yes) llvm_cv_enable_backtraces="yes" ;;
5273     no)  llvm_cv_enable_backtraces="no"  ;;
5274     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5275 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5276    { (exit 1); exit 1; }; } ;;
5277   esac
5278 else
5279   llvm_cv_enable_backtraces="yes"
5280 fi
5281
5282 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5283
5284 cat >>confdefs.h <<\_ACEOF
5285 #define ENABLE_BACKTRACES 1
5286 _ACEOF
5287
5288 fi
5289
5290 # Check whether --enable-crash-overrides was given.
5291 if test "${enable_crash_overrides+set}" = set; then
5292   enableval=$enable_crash_overrides; case "$enableval" in
5293     yes) llvm_cv_enable_crash_overrides="yes" ;;
5294     no)  llvm_cv_enable_crash_overrides="no"  ;;
5295     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5296 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5297    { (exit 1); exit 1; }; } ;;
5298   esac
5299 else
5300   llvm_cv_enable_crash_overrides="yes"
5301 fi
5302
5303 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5304
5305 cat >>confdefs.h <<\_ACEOF
5306 #define ENABLE_CRASH_OVERRIDES 1
5307 _ACEOF
5308
5309 fi
5310
5311 TARGETS_TO_BUILD=""
5312 # Check whether --enable-targets was given.
5313 if test "${enable_targets+set}" = set; then
5314   enableval=$enable_targets;
5315 else
5316   enableval=all
5317 fi
5318
5319 if test "$enableval" = host-only ; then
5320   enableval=host
5321 fi
5322 case "$enableval" in
5323   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5324   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5325       case "$a_target" in
5326         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5339         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5340         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5341         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5342         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5343         host) case "$llvm_cv_target_arch" in
5344             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5345             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5347             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5348             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5349             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5350             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5351             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5352             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5353             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5355             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5356             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5357 echo "$as_me: error: Can not set target to build" >&2;}
5358    { (exit 1); exit 1; }; } ;;
5359           esac ;;
5360         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5361 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5362    { (exit 1); exit 1; }; } ;;
5363       esac
5364   done
5365   ;;
5366 esac
5367
5368 # Check whether --enable-experimental-targets was given.
5369 if test "${enable_experimental_targets+set}" = set; then
5370   enableval=$enable_experimental_targets;
5371 else
5372   enableval=disable
5373 fi
5374
5375
5376 if test ${enableval} != "disable"
5377 then
5378   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5379 fi
5380
5381 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5382
5383
5384 for a_target in $TARGETS_TO_BUILD; do
5385   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5389 _ACEOF
5390
5391     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5392     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5393     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5394     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5395     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5397     fi
5398     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5400     fi
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5404 _ACEOF
5405
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5409 _ACEOF
5410
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5414 _ACEOF
5415
5416
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5419 _ACEOF
5420
5421     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5425 _ACEOF
5426
5427     fi
5428     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5429
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5432 _ACEOF
5433
5434     fi
5435   fi
5436 done
5437
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5446   fi
5447   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5449   fi
5450   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5452   fi
5453 done
5454
5455
5456
5457
5458
5459
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462   withval=$with_optimize_option;
5463 else
5464   withval=default
5465 fi
5466
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5469 case "$withval" in
5470   default)
5471     case "$llvm_cv_os_type" in
5472     FreeBSD) optimize_option=-O2 ;;
5473     MingW) optimize_option=-O2 ;;
5474     *)     optimize_option=-O3 ;;
5475     esac ;;
5476   *) optimize_option="$withval" ;;
5477 esac
5478 OPTIMIZE_OPTION=$optimize_option
5479
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5482
5483
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486   withval=$with_extra_options;
5487 else
5488   withval=default
5489 fi
5490
5491 case "$withval" in
5492   default) EXTRA_OPTIONS= ;;
5493   *) EXTRA_OPTIONS=$withval ;;
5494 esac
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5496
5497
5498
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501   withval=$with_extra_ld_options;
5502 else
5503   withval=default
5504 fi
5505
5506 case "$withval" in
5507   default) EXTRA_LD_OPTIONS= ;;
5508   *) EXTRA_LD_OPTIONS=$withval ;;
5509 esac
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5511
5512
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515   enableval=$enable_bindings;
5516 else
5517   enableval=default
5518 fi
5519
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523   all ) BINDINGS_TO_BUILD="ocaml" ;;
5524   none | no) BINDINGS_TO_BUILD="" ;;
5525   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526       case "$a_binding" in
5527         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531       esac
5532   done
5533   ;;
5534 esac
5535
5536
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539   withval=$with_ocaml_libdir;
5540 else
5541   withval=auto
5542 fi
5543
5544 case "$withval" in
5545   auto) with_ocaml_libdir="$withval" ;;
5546   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549    { (exit 1); exit 1; }; } ;;
5550 esac
5551
5552
5553 # Check whether --with-clang-srcdir was given.
5554 if test "${with_clang_srcdir+set}" = set; then
5555   withval=$with_clang_srcdir;
5556 else
5557   withval="-"
5558 fi
5559
5560 case "$withval" in
5561   -) clang_src_root="" ;;
5562   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5563   *) clang_src_root="$ac_pwd/$withval" ;;
5564 esac
5565 CLANG_SRC_ROOT=$clang_src_root
5566
5567
5568
5569 # Check whether --with-clang-resource-dir was given.
5570 if test "${with_clang_resource_dir+set}" = set; then
5571   withval=$with_clang_resource_dir;
5572 else
5573   withval=""
5574 fi
5575
5576
5577 cat >>confdefs.h <<_ACEOF
5578 #define CLANG_RESOURCE_DIR "$withval"
5579 _ACEOF
5580
5581
5582
5583 # Check whether --with-c-include-dirs was given.
5584 if test "${with_c_include_dirs+set}" = set; then
5585   withval=$with_c_include_dirs;
5586 else
5587   withval=""
5588 fi
5589
5590
5591 cat >>confdefs.h <<_ACEOF
5592 #define C_INCLUDE_DIRS "$withval"
5593 _ACEOF
5594
5595
5596 # Clang normally uses the system c++ headers and libraries. With this option,
5597 # clang will use the ones provided by a gcc installation instead. This option should
5598 # be passed the same value that was used with --prefix when configuring gcc.
5599
5600 # Check whether --with-gcc-toolchain was given.
5601 if test "${with_gcc_toolchain+set}" = set; then
5602   withval=$with_gcc_toolchain;
5603 else
5604   withval=""
5605 fi
5606
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define GCC_INSTALL_PREFIX "$withval"
5610 _ACEOF
5611
5612
5613
5614 # Check whether --with-default-sysroot was given.
5615 if test "${with_default_sysroot+set}" = set; then
5616   withval=$with_default_sysroot;
5617 else
5618   withval=""
5619 fi
5620
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define DEFAULT_SYSROOT "$withval"
5624 _ACEOF
5625
5626
5627
5628 # Check whether --with-binutils-include was given.
5629 if test "${with_binutils_include+set}" = set; then
5630   withval=$with_binutils_include;
5631 else
5632   withval=default
5633 fi
5634
5635 case "$withval" in
5636   default) WITH_BINUTILS_INCDIR=default ;;
5637   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5638   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640    { (exit 1); exit 1; }; } ;;
5641 esac
5642 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5644
5645   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5647      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649    { (exit 1); exit 1; }; };
5650   fi
5651 fi
5652
5653
5654 # Check whether --with-bug-report-url was given.
5655 if test "${with_bug_report_url+set}" = set; then
5656   withval=$with_bug_report_url;
5657 else
5658   withval="http://llvm.org/bugs/"
5659 fi
5660
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define BUG_REPORT_URL "$withval"
5664 _ACEOF
5665
5666
5667 # Check whether --enable-terminfo was given.
5668 if test "${enable_terminfo+set}" = set; then
5669   enableval=$enable_terminfo; case "$enableval" in
5670     yes) llvm_cv_enable_terminfo="yes" ;;
5671     no)  llvm_cv_enable_terminfo="no"  ;;
5672     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5673 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5674    { (exit 1); exit 1; }; } ;;
5675   esac
5676 else
5677   llvm_cv_enable_terminfo="yes"
5678 fi
5679
5680
5681 # Check whether --enable-libffi was given.
5682 if test "${enable_libffi+set}" = set; then
5683   enableval=$enable_libffi; case "$enableval" in
5684     yes) llvm_cv_enable_libffi="yes" ;;
5685     no)  llvm_cv_enable_libffi="no"  ;;
5686     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5687 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5688    { (exit 1); exit 1; }; } ;;
5689   esac
5690 else
5691   llvm_cv_enable_libffi=no
5692 fi
5693
5694
5695
5696 # Check whether --with-internal-prefix was given.
5697 if test "${with_internal_prefix+set}" = set; then
5698   withval=$with_internal_prefix;
5699 else
5700   withval=""
5701 fi
5702
5703 INTERNAL_PREFIX=$withval
5704
5705
5706
5707 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5708 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5709 if test "${lt_cv_path_NM+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   if test -n "$NM"; then
5713   # Let the user override the test.
5714   lt_cv_path_NM="$NM"
5715 else
5716   lt_nm_to_check="${ac_tool_prefix}nm"
5717   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5718     lt_nm_to_check="$lt_nm_to_check nm"
5719   fi
5720   for lt_tmp_nm in $lt_nm_to_check; do
5721     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5722     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5723       IFS="$lt_save_ifs"
5724       test -z "$ac_dir" && ac_dir=.
5725       tmp_nm="$ac_dir/$lt_tmp_nm"
5726       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5727         # Check to see if the nm accepts a BSD-compat flag.
5728         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5729         #   nm: unknown option "B" ignored
5730         # Tru64's nm complains that /dev/null is an invalid object file
5731         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5732         */dev/null* | *'Invalid file or object type'*)
5733           lt_cv_path_NM="$tmp_nm -B"
5734           break
5735           ;;
5736         *)
5737           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5738           */dev/null*)
5739             lt_cv_path_NM="$tmp_nm -p"
5740             break
5741             ;;
5742           *)
5743             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5744             continue # so that we can try to find one that supports BSD flags
5745             ;;
5746           esac
5747           ;;
5748         esac
5749       fi
5750     done
5751     IFS="$lt_save_ifs"
5752   done
5753   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5754 fi
5755 fi
5756 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5757 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5758 NM="$lt_cv_path_NM"
5759
5760
5761
5762 { echo "$as_me:$LINENO: checking for GNU make" >&5
5763 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5764 if test "${llvm_cv_gnu_make_command+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   llvm_cv_gnu_make_command=''
5768  for a in "$MAKE" make gmake gnumake ; do
5769   if test -z "$a" ; then continue ; fi ;
5770   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5771   then
5772    llvm_cv_gnu_make_command=$a ;
5773    break;
5774   fi
5775  done
5776 fi
5777 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5778 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5779  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5780    ifGNUmake='' ;
5781  else
5782    ifGNUmake='#' ;
5783    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5784 echo "${ECHO_T}\"Not found\"" >&6; };
5785  fi
5786
5787
5788 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5790 LN_S=$as_ln_s
5791 if test "$LN_S" = "ln -s"; then
5792   { echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6; }
5794 else
5795   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5796 echo "${ECHO_T}no, using $LN_S" >&6; }
5797 fi
5798
5799 # Extract the first word of "cmp", so it can be a program name with args.
5800 set dummy cmp; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_CMP+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   case $CMP in
5807   [\\/]* | ?:[\\/]*)
5808   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5809   ;;
5810   *)
5811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5827   ;;
5828 esac
5829 fi
5830 CMP=$ac_cv_path_CMP
5831 if test -n "$CMP"; then
5832   { echo "$as_me:$LINENO: result: $CMP" >&5
5833 echo "${ECHO_T}$CMP" >&6; }
5834 else
5835   { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5837 fi
5838
5839
5840 # Extract the first word of "cp", so it can be a program name with args.
5841 set dummy cp; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_CP+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   case $CP in
5848   [\\/]* | ?:[\\/]*)
5849   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5850   ;;
5851   *)
5852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5868   ;;
5869 esac
5870 fi
5871 CP=$ac_cv_path_CP
5872 if test -n "$CP"; then
5873   { echo "$as_me:$LINENO: result: $CP" >&5
5874 echo "${ECHO_T}$CP" >&6; }
5875 else
5876   { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5878 fi
5879
5880
5881 # Extract the first word of "date", so it can be a program name with args.
5882 set dummy date; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_DATE+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   case $DATE in
5889   [\\/]* | ?:[\\/]*)
5890   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5891   ;;
5892   *)
5893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5909   ;;
5910 esac
5911 fi
5912 DATE=$ac_cv_path_DATE
5913 if test -n "$DATE"; then
5914   { echo "$as_me:$LINENO: result: $DATE" >&5
5915 echo "${ECHO_T}$DATE" >&6; }
5916 else
5917   { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5919 fi
5920
5921
5922 # Extract the first word of "find", so it can be a program name with args.
5923 set dummy find; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_FIND+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case $FIND in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5950   ;;
5951 esac
5952 fi
5953 FIND=$ac_cv_path_FIND
5954 if test -n "$FIND"; then
5955   { echo "$as_me:$LINENO: result: $FIND" >&5
5956 echo "${ECHO_T}$FIND" >&6; }
5957 else
5958   { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5960 fi
5961
5962
5963 # Extract the first word of "grep", so it can be a program name with args.
5964 set dummy grep; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_GREP+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   case $GREP in
5971   [\\/]* | ?:[\\/]*)
5972   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5973   ;;
5974   *)
5975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5991   ;;
5992 esac
5993 fi
5994 GREP=$ac_cv_path_GREP
5995 if test -n "$GREP"; then
5996   { echo "$as_me:$LINENO: result: $GREP" >&5
5997 echo "${ECHO_T}$GREP" >&6; }
5998 else
5999   { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004 # Extract the first word of "mkdir", so it can be a program name with args.
6005 set dummy mkdir; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MKDIR+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   case $MKDIR in
6012   [\\/]* | ?:[\\/]*)
6013   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6014   ;;
6015   *)
6016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021   for ac_exec_ext in '' $ac_executable_extensions; do
6022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6032   ;;
6033 esac
6034 fi
6035 MKDIR=$ac_cv_path_MKDIR
6036 if test -n "$MKDIR"; then
6037   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6038 echo "${ECHO_T}$MKDIR" >&6; }
6039 else
6040   { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042 fi
6043
6044
6045 # Extract the first word of "mv", so it can be a program name with args.
6046 set dummy mv; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_path_MV+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   case $MV in
6053   [\\/]* | ?:[\\/]*)
6054   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6055   ;;
6056   *)
6057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6073   ;;
6074 esac
6075 fi
6076 MV=$ac_cv_path_MV
6077 if test -n "$MV"; then
6078   { echo "$as_me:$LINENO: result: $MV" >&5
6079 echo "${ECHO_T}$MV" >&6; }
6080 else
6081   { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6083 fi
6084
6085
6086 if test -n "$ac_tool_prefix"; then
6087   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_RANLIB+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$RANLIB"; then
6095   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 RANLIB=$ac_cv_prog_RANLIB
6115 if test -n "$RANLIB"; then
6116   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6117 echo "${ECHO_T}$RANLIB" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123
6124 fi
6125 if test -z "$ac_cv_prog_RANLIB"; then
6126   ac_ct_RANLIB=$RANLIB
6127   # Extract the first word of "ranlib", so it can be a program name with args.
6128 set dummy ranlib; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$ac_ct_RANLIB"; then
6135   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_ac_ct_RANLIB="ranlib"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6155 if test -n "$ac_ct_RANLIB"; then
6156   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6157 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163   if test "x$ac_ct_RANLIB" = x; then
6164     RANLIB=":"
6165   else
6166     case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6169 whose name does not start with the host triplet.  If you think this
6170 configuration is useful to you, please write to autoconf@gnu.org." >&5
6171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6172 whose name does not start with the host triplet.  If you think this
6173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176     RANLIB=$ac_ct_RANLIB
6177   fi
6178 else
6179   RANLIB="$ac_cv_prog_RANLIB"
6180 fi
6181
6182 if test -n "$ac_tool_prefix"; then
6183   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}ar; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_AR+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   if test -n "$AR"; then
6191   ac_cv_prog_AR="$AR" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196   IFS=$as_save_IFS
6197   test -z "$as_dir" && as_dir=.
6198   for ac_exec_ext in '' $ac_executable_extensions; do
6199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200     ac_cv_prog_AR="${ac_tool_prefix}ar"
6201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202     break 2
6203   fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 AR=$ac_cv_prog_AR
6211 if test -n "$AR"; then
6212   { echo "$as_me:$LINENO: result: $AR" >&5
6213 echo "${ECHO_T}$AR" >&6; }
6214 else
6215   { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_AR"; then
6222   ac_ct_AR=$AR
6223   # Extract the first word of "ar", so it can be a program name with args.
6224 set dummy ar; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   if test -n "$ac_ct_AR"; then
6231   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238   for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_ac_ct_AR="ar"
6241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6251 if test -n "$ac_ct_AR"; then
6252   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6253 echo "${ECHO_T}$ac_ct_AR" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259   if test "x$ac_ct_AR" = x; then
6260     AR="false"
6261   else
6262     case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6265 whose name does not start with the host triplet.  If you think this
6266 configuration is useful to you, please write to autoconf@gnu.org." >&5
6267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6268 whose name does not start with the host triplet.  If you think this
6269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272     AR=$ac_ct_AR
6273   fi
6274 else
6275   AR="$ac_cv_prog_AR"
6276 fi
6277
6278 # Extract the first word of "rm", so it can be a program name with args.
6279 set dummy rm; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_path_RM+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   case $RM in
6286   [\\/]* | ?:[\\/]*)
6287   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6288   ;;
6289   *)
6290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295   for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6306   ;;
6307 esac
6308 fi
6309 RM=$ac_cv_path_RM
6310 if test -n "$RM"; then
6311   { echo "$as_me:$LINENO: result: $RM" >&5
6312 echo "${ECHO_T}$RM" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6316 fi
6317
6318
6319 # Extract the first word of "sed", so it can be a program name with args.
6320 set dummy sed; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_path_SED+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   case $SED in
6327   [\\/]* | ?:[\\/]*)
6328   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6329   ;;
6330   *)
6331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336   for ac_exec_ext in '' $ac_executable_extensions; do
6337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6338     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6347   ;;
6348 esac
6349 fi
6350 SED=$ac_cv_path_SED
6351 if test -n "$SED"; then
6352   { echo "$as_me:$LINENO: result: $SED" >&5
6353 echo "${ECHO_T}$SED" >&6; }
6354 else
6355   { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6357 fi
6358
6359
6360 # Extract the first word of "tar", so it can be a program name with args.
6361 set dummy tar; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_TAR+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $TAR in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6388   ;;
6389 esac
6390 fi
6391 TAR=$ac_cv_path_TAR
6392 if test -n "$TAR"; then
6393   { echo "$as_me:$LINENO: result: $TAR" >&5
6394 echo "${ECHO_T}$TAR" >&6; }
6395 else
6396   { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 fi
6399
6400
6401 # Extract the first word of "pwd", so it can be a program name with args.
6402 set dummy pwd; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_BINPWD+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   case $BINPWD in
6409   [\\/]* | ?:[\\/]*)
6410   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6411   ;;
6412   *)
6413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418   for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425 done
6426 IFS=$as_save_IFS
6427
6428   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6429   ;;
6430 esac
6431 fi
6432 BINPWD=$ac_cv_path_BINPWD
6433 if test -n "$BINPWD"; then
6434   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6435 echo "${ECHO_T}$BINPWD" >&6; }
6436 else
6437   { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6439 fi
6440
6441
6442
6443 # Extract the first word of "Graphviz", so it can be a program name with args.
6444 set dummy Graphviz; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   case $GRAPHVIZ in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460   for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6471   ;;
6472 esac
6473 fi
6474 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6475 if test -n "$GRAPHVIZ"; then
6476   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6477 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6485
6486 cat >>confdefs.h <<\_ACEOF
6487 #define HAVE_GRAPHVIZ 1
6488 _ACEOF
6489
6490     if test "$llvm_cv_os_type" = "MingW" ; then
6491     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6492   fi
6493
6494 cat >>confdefs.h <<_ACEOF
6495 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6496 _ACEOF
6497
6498 fi
6499 # Extract the first word of "dot", so it can be a program name with args.
6500 set dummy dot; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_DOT+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   case $DOT in
6507   [\\/]* | ?:[\\/]*)
6508   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6509   ;;
6510   *)
6511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516   for ac_exec_ext in '' $ac_executable_extensions; do
6517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6527   ;;
6528 esac
6529 fi
6530 DOT=$ac_cv_path_DOT
6531 if test -n "$DOT"; then
6532   { echo "$as_me:$LINENO: result: $DOT" >&5
6533 echo "${ECHO_T}$DOT" >&6; }
6534 else
6535   { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6537 fi
6538
6539
6540 if test "$DOT" != "echo dot" ; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define HAVE_DOT 1
6544 _ACEOF
6545
6546     if test "$llvm_cv_os_type" = "MingW" ; then
6547     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6548   fi
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6552 _ACEOF
6553
6554 fi
6555 # Extract the first word of "fdp", so it can be a program name with args.
6556 set dummy fdp; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_path_FDP+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   case $FDP in
6563   [\\/]* | ?:[\\/]*)
6564   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6565   ;;
6566   *)
6567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572   for ac_exec_ext in '' $ac_executable_extensions; do
6573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6574     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579 done
6580 IFS=$as_save_IFS
6581
6582   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6583   ;;
6584 esac
6585 fi
6586 FDP=$ac_cv_path_FDP
6587 if test -n "$FDP"; then
6588   { echo "$as_me:$LINENO: result: $FDP" >&5
6589 echo "${ECHO_T}$FDP" >&6; }
6590 else
6591   { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6593 fi
6594
6595
6596 if test "$FDP" != "echo fdp" ; then
6597
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_FDP 1
6600 _ACEOF
6601
6602     if test "$llvm_cv_os_type" = "MingW" ; then
6603     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6604   fi
6605
6606 cat >>confdefs.h <<_ACEOF
6607 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6608 _ACEOF
6609
6610 fi
6611 # Extract the first word of "neato", so it can be a program name with args.
6612 set dummy neato; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_path_NEATO+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   case $NEATO in
6619   [\\/]* | ?:[\\/]*)
6620   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6621   ;;
6622   *)
6623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628   for ac_exec_ext in '' $ac_executable_extensions; do
6629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6630     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6639   ;;
6640 esac
6641 fi
6642 NEATO=$ac_cv_path_NEATO
6643 if test -n "$NEATO"; then
6644   { echo "$as_me:$LINENO: result: $NEATO" >&5
6645 echo "${ECHO_T}$NEATO" >&6; }
6646 else
6647   { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6649 fi
6650
6651
6652 if test "$NEATO" != "echo neato" ; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_NEATO 1
6656 _ACEOF
6657
6658     if test "$llvm_cv_os_type" = "MingW" ; then
6659     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6660   fi
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6664 _ACEOF
6665
6666 fi
6667 # Extract the first word of "twopi", so it can be a program name with args.
6668 set dummy twopi; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_TWOPI+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   case $TWOPI in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6695   ;;
6696 esac
6697 fi
6698 TWOPI=$ac_cv_path_TWOPI
6699 if test -n "$TWOPI"; then
6700   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6701 echo "${ECHO_T}$TWOPI" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707
6708 if test "$TWOPI" != "echo twopi" ; then
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_TWOPI 1
6712 _ACEOF
6713
6714     if test "$llvm_cv_os_type" = "MingW" ; then
6715     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6716   fi
6717
6718 cat >>confdefs.h <<_ACEOF
6719 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6720 _ACEOF
6721
6722 fi
6723 # Extract the first word of "circo", so it can be a program name with args.
6724 set dummy circo; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_CIRCO+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $CIRCO in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6751   ;;
6752 esac
6753 fi
6754 CIRCO=$ac_cv_path_CIRCO
6755 if test -n "$CIRCO"; then
6756   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6757 echo "${ECHO_T}$CIRCO" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 if test "$CIRCO" != "echo circo" ; then
6765
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_CIRCO 1
6768 _ACEOF
6769
6770     if test "$llvm_cv_os_type" = "MingW" ; then
6771     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6772   fi
6773
6774 cat >>confdefs.h <<_ACEOF
6775 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6776 _ACEOF
6777
6778 fi
6779 for ac_prog in gv gsview32
6780 do
6781   # Extract the first word of "$ac_prog", so it can be a program name with args.
6782 set dummy $ac_prog; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_GV+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $GV in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   ;;
6809 esac
6810 fi
6811 GV=$ac_cv_path_GV
6812 if test -n "$GV"; then
6813   { echo "$as_me:$LINENO: result: $GV" >&5
6814 echo "${ECHO_T}$GV" >&6; }
6815 else
6816   { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6818 fi
6819
6820
6821   test -n "$GV" && break
6822 done
6823 test -n "$GV" || GV="echo gv"
6824
6825 if test "$GV" != "echo gv" ; then
6826
6827 cat >>confdefs.h <<\_ACEOF
6828 #define HAVE_GV 1
6829 _ACEOF
6830
6831     if test "$llvm_cv_os_type" = "MingW" ; then
6832     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6833   fi
6834
6835 cat >>confdefs.h <<_ACEOF
6836 #define LLVM_PATH_GV "$GV${EXEEXT}"
6837 _ACEOF
6838
6839 fi
6840 # Extract the first word of "dotty", so it can be a program name with args.
6841 set dummy dotty; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_DOTTY+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   case $DOTTY in
6848   [\\/]* | ?:[\\/]*)
6849   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6850   ;;
6851   *)
6852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857   for ac_exec_ext in '' $ac_executable_extensions; do
6858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6868   ;;
6869 esac
6870 fi
6871 DOTTY=$ac_cv_path_DOTTY
6872 if test -n "$DOTTY"; then
6873   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6874 echo "${ECHO_T}$DOTTY" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880
6881 if test "$DOTTY" != "echo dotty" ; then
6882
6883 cat >>confdefs.h <<\_ACEOF
6884 #define HAVE_DOTTY 1
6885 _ACEOF
6886
6887     if test "$llvm_cv_os_type" = "MingW" ; then
6888     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6889   fi
6890
6891 cat >>confdefs.h <<_ACEOF
6892 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6893 _ACEOF
6894
6895 fi
6896 for ac_prog in xdot xdot.py
6897 do
6898   # Extract the first word of "$ac_prog", so it can be a program name with args.
6899 set dummy $ac_prog; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_XDOT+set}" = set; then
6903   echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905   case $XDOT in
6906   [\\/]* | ?:[\\/]*)
6907   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6908   ;;
6909   *)
6910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915   for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925   ;;
6926 esac
6927 fi
6928 XDOT=$ac_cv_path_XDOT
6929 if test -n "$XDOT"; then
6930   { echo "$as_me:$LINENO: result: $XDOT" >&5
6931 echo "${ECHO_T}$XDOT" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937
6938   test -n "$XDOT" && break
6939 done
6940 test -n "$XDOT" || XDOT="echo xdot"
6941
6942 if test "$XDOT" != "echo xdot" ; then
6943
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_XDOT 1
6946 _ACEOF
6947
6948     if test "$llvm_cv_os_type" = "MingW" ; then
6949     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6950   fi
6951
6952 cat >>confdefs.h <<_ACEOF
6953 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6954 _ACEOF
6955
6956 fi
6957
6958 # Find a good install program.  We prefer a C program (faster),
6959 # so one script is as good as another.  But avoid the broken or
6960 # incompatible versions:
6961 # SysV /etc/install, /usr/sbin/install
6962 # SunOS /usr/etc/install
6963 # IRIX /sbin/install
6964 # AIX /bin/install
6965 # AmigaOS /C/install, which installs bootblocks on floppy discs
6966 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6967 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6968 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6969 # OS/2's system install, which has a completely different semantic
6970 # ./install, which can be erroneously created by make from ./install.sh.
6971 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6972 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6973 if test -z "$INSTALL"; then
6974 if test "${ac_cv_path_install+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   # Account for people who put trailing slashes in PATH elements.
6983 case $as_dir/ in
6984   ./ | .// | /cC/* | \
6985   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6986   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6987   /usr/ucb/* ) ;;
6988   *)
6989     # OSF1 and SCO ODT 3.0 have their own names for install.
6990     # Don't use installbsd from OSF since it installs stuff as root
6991     # by default.
6992     for ac_prog in ginstall scoinst install; do
6993       for ac_exec_ext in '' $ac_executable_extensions; do
6994         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6995           if test $ac_prog = install &&
6996             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6997             # AIX install.  It has an incompatible calling convention.
6998             :
6999           elif test $ac_prog = install &&
7000             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7001             # program-specific install script used by HP pwplus--don't use.
7002             :
7003           else
7004             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7005             break 3
7006           fi
7007         fi
7008       done
7009     done
7010     ;;
7011 esac
7012 done
7013 IFS=$as_save_IFS
7014
7015
7016 fi
7017   if test "${ac_cv_path_install+set}" = set; then
7018     INSTALL=$ac_cv_path_install
7019   else
7020     # As a last resort, use the slow shell script.  Don't cache a
7021     # value for INSTALL within a source directory, because that will
7022     # break other packages using the cache if that directory is
7023     # removed, or if the value is a relative name.
7024     INSTALL=$ac_install_sh
7025   fi
7026 fi
7027 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7028 echo "${ECHO_T}$INSTALL" >&6; }
7029
7030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7031 # It thinks the first close brace ends the variable substitution.
7032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7033
7034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7035
7036 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7037
7038 case "$INSTALL" in
7039  [\\/$]* | ?:[\\/]* ) ;;
7040  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7041 esac
7042
7043 # Extract the first word of "bzip2", so it can be a program name with args.
7044 set dummy bzip2; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_BZIP2+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   case $BZIP2 in
7051   [\\/]* | ?:[\\/]*)
7052   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7053   ;;
7054   *)
7055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070   ;;
7071 esac
7072 fi
7073 BZIP2=$ac_cv_path_BZIP2
7074 if test -n "$BZIP2"; then
7075   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7076 echo "${ECHO_T}$BZIP2" >&6; }
7077 else
7078   { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7081
7082
7083 # Extract the first word of "cat", so it can be a program name with args.
7084 set dummy cat; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_CAT+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   case $CAT in
7091   [\\/]* | ?:[\\/]*)
7092   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7093   ;;
7094   *)
7095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110   ;;
7111 esac
7112 fi
7113 CAT=$ac_cv_path_CAT
7114 if test -n "$CAT"; then
7115   { echo "$as_me:$LINENO: result: $CAT" >&5
7116 echo "${ECHO_T}$CAT" >&6; }
7117 else
7118   { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7120 fi
7121
7122
7123 # Extract the first word of "doxygen", so it can be a program name with args.
7124 set dummy doxygen; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $DOXYGEN in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 DOXYGEN=$ac_cv_path_DOXYGEN
7154 if test -n "$DOXYGEN"; then
7155   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7156 echo "${ECHO_T}$DOXYGEN" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163 # Extract the first word of "groff", so it can be a program name with args.
7164 set dummy groff; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_GROFF+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $GROFF in
7171   [\\/]* | ?:[\\/]*)
7172   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7173   ;;
7174   *)
7175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190   ;;
7191 esac
7192 fi
7193 GROFF=$ac_cv_path_GROFF
7194 if test -n "$GROFF"; then
7195   { echo "$as_me:$LINENO: result: $GROFF" >&5
7196 echo "${ECHO_T}$GROFF" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203 # Extract the first word of "gzip", so it can be a program name with args.
7204 set dummy gzip; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $GZIPBIN in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   ;;
7231 esac
7232 fi
7233 GZIPBIN=$ac_cv_path_GZIPBIN
7234 if test -n "$GZIPBIN"; then
7235   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7236 echo "${ECHO_T}$GZIPBIN" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 # Extract the first word of "pdfroff", so it can be a program name with args.
7244 set dummy pdfroff; ac_word=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_PDFROFF+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   case $PDFROFF in
7251   [\\/]* | ?:[\\/]*)
7252   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7253   ;;
7254   *)
7255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260   for ac_exec_ext in '' $ac_executable_extensions; do
7261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270   ;;
7271 esac
7272 fi
7273 PDFROFF=$ac_cv_path_PDFROFF
7274 if test -n "$PDFROFF"; then
7275   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7276 echo "${ECHO_T}$PDFROFF" >&6; }
7277 else
7278   { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7280 fi
7281
7282
7283 # Extract the first word of "zip", so it can be a program name with args.
7284 set dummy zip; ac_word=$2
7285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7287 if test "${ac_cv_path_ZIP+set}" = set; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   case $ZIP in
7291   [\\/]* | ?:[\\/]*)
7292   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7293   ;;
7294   *)
7295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310   ;;
7311 esac
7312 fi
7313 ZIP=$ac_cv_path_ZIP
7314 if test -n "$ZIP"; then
7315   { echo "$as_me:$LINENO: result: $ZIP" >&5
7316 echo "${ECHO_T}$ZIP" >&6; }
7317 else
7318   { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7320 fi
7321
7322
7323 for ac_prog in ocamlc
7324 do
7325   # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy $ac_prog; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_OCAMLC+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   case $OCAMLC in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342   for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352   ;;
7353 esac
7354 fi
7355 OCAMLC=$ac_cv_path_OCAMLC
7356 if test -n "$OCAMLC"; then
7357   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7358 echo "${ECHO_T}$OCAMLC" >&6; }
7359 else
7360   { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7362 fi
7363
7364
7365   test -n "$OCAMLC" && break
7366 done
7367
7368 for ac_prog in ocamlopt
7369 do
7370   # Extract the first word of "$ac_prog", so it can be a program name with args.
7371 set dummy $ac_prog; ac_word=$2
7372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   case $OCAMLOPT in
7378   [\\/]* | ?:[\\/]*)
7379   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7380   ;;
7381   *)
7382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397   ;;
7398 esac
7399 fi
7400 OCAMLOPT=$ac_cv_path_OCAMLOPT
7401 if test -n "$OCAMLOPT"; then
7402   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7403 echo "${ECHO_T}$OCAMLOPT" >&6; }
7404 else
7405   { echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6; }
7407 fi
7408
7409
7410   test -n "$OCAMLOPT" && break
7411 done
7412
7413 for ac_prog in ocamldep
7414 do
7415   # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   case $OCAMLDEP in
7423   [\\/]* | ?:[\\/]*)
7424   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7425   ;;
7426   *)
7427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442   ;;
7443 esac
7444 fi
7445 OCAMLDEP=$ac_cv_path_OCAMLDEP
7446 if test -n "$OCAMLDEP"; then
7447   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7448 echo "${ECHO_T}$OCAMLDEP" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7453
7454
7455   test -n "$OCAMLDEP" && break
7456 done
7457
7458 for ac_prog in ocamldoc
7459 do
7460   # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy $ac_prog; ac_word=$2
7462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   case $OCAMLDOC in
7468   [\\/]* | ?:[\\/]*)
7469   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7470   ;;
7471   *)
7472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477   for ac_exec_ext in '' $ac_executable_extensions; do
7478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487   ;;
7488 esac
7489 fi
7490 OCAMLDOC=$ac_cv_path_OCAMLDOC
7491 if test -n "$OCAMLDOC"; then
7492   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7493 echo "${ECHO_T}$OCAMLDOC" >&6; }
7494 else
7495   { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7497 fi
7498
7499
7500   test -n "$OCAMLDOC" && break
7501 done
7502
7503 for ac_prog in gas as
7504 do
7505   # Extract the first word of "$ac_prog", so it can be a program name with args.
7506 set dummy $ac_prog; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_path_GAS+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   case $GAS in
7513   [\\/]* | ?:[\\/]*)
7514   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7515   ;;
7516   *)
7517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522   for ac_exec_ext in '' $ac_executable_extensions; do
7523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7524     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532   ;;
7533 esac
7534 fi
7535 GAS=$ac_cv_path_GAS
7536 if test -n "$GAS"; then
7537   { echo "$as_me:$LINENO: result: $GAS" >&5
7538 echo "${ECHO_T}$GAS" >&6; }
7539 else
7540   { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7542 fi
7543
7544
7545   test -n "$GAS" && break
7546 done
7547
7548
7549 { echo "$as_me:$LINENO: checking for linker version" >&5
7550 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7551 if test "${llvm_cv_link_version+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554
7555    version_string="$(ld -v 2>&1 | head -1)"
7556
7557    # Check for ld64.
7558    if (echo "$version_string" | grep -q "ld64"); then
7559      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7560    else
7561      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7562    fi
7563
7564 fi
7565 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7566 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7567
7568 cat >>confdefs.h <<_ACEOF
7569 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7570 _ACEOF
7571
7572
7573
7574
7575 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7576 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7577 if test "${llvm_cv_link_use_r+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580    ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586   oldcflags="$CFLAGS"
7587   CFLAGS="$CFLAGS -Wl,-R."
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594
7595 int
7596 main ()
7597 {
7598
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607   *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610   (eval "$ac_link") 2>conftest.er1
7611   ac_status=$?
7612   grep -v '^ *+' conftest.er1 >conftest.err
7613   rm -f conftest.er1
7614   cat conftest.err >&5
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); } &&
7617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7618   { (case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623   (eval "$ac_try") 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; } &&
7627          { ac_try='test -s conftest$ac_exeext'
7628   { (case "(($ac_try" in
7629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630   *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633   (eval "$ac_try") 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   llvm_cv_link_use_r=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642         llvm_cv_link_use_r=no
7643 fi
7644
7645 rm -f core conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647   CFLAGS="$oldcflags"
7648   ac_ext=c
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7653
7654
7655 fi
7656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7657 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7658 if test "$llvm_cv_link_use_r" = yes ; then
7659
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_LINK_R 1
7662 _ACEOF
7663
7664   fi
7665
7666
7667 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7668 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7669 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672    ac_ext=c
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7677
7678   oldcflags="$CFLAGS"
7679   CFLAGS="$CFLAGS -rdynamic"
7680   cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686
7687 int
7688 main ()
7689 {
7690
7691   ;
7692   return 0;
7693 }
7694 _ACEOF
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (ac_try="$ac_link"
7697 case "(($ac_try" in
7698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699   *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702   (eval "$ac_link") 2>conftest.er1
7703   ac_status=$?
7704   grep -v '^ *+' conftest.er1 >conftest.err
7705   rm -f conftest.er1
7706   cat conftest.err >&5
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } &&
7709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7710   { (case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715   (eval "$ac_try") 2>&5
7716   ac_status=$?
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); }; } &&
7719          { ac_try='test -s conftest$ac_exeext'
7720   { (case "(($ac_try" in
7721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722   *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725   (eval "$ac_try") 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   llvm_cv_link_use_export_dynamic=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734         llvm_cv_link_use_export_dynamic=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext \
7738       conftest$ac_exeext conftest.$ac_ext
7739   CFLAGS="$oldcflags"
7740   ac_ext=c
7741 ac_cpp='$CPP $CPPFLAGS'
7742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745
7746
7747 fi
7748 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7749 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7750 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7751
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_LINK_EXPORT_DYNAMIC 1
7754 _ACEOF
7755
7756   fi
7757
7758
7759 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7760 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7761 if test "${llvm_cv_link_use_version_script+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764    ac_ext=c
7765 ac_cpp='$CPP $CPPFLAGS'
7766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7769
7770   oldcflags="$CFLAGS"
7771
7772   # The following code is from the autoconf manual,
7773   # "11.13: Limitations of Usual Tools".
7774   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7775   # Use mktemp if possible; otherwise fall back on mkdir,
7776   # with $RANDOM to make collisions less likely.
7777   : ${TMPDIR=/tmp}
7778   {
7779     tmp=`
7780       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7781     ` &&
7782     test -n "$tmp" && test -d "$tmp"
7783   } || {
7784     tmp=$TMPDIR/foo$$-$RANDOM
7785     (umask 077 && mkdir "$tmp")
7786   } || exit $?
7787
7788   echo "{" > "$tmp/export.map"
7789   echo "  global: main;" >> "$tmp/export.map"
7790   echo "  local: *;" >> "$tmp/export.map"
7791   echo "};" >> "$tmp/export.map"
7792
7793   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7794   cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800
7801 int
7802 main ()
7803 {
7804
7805   ;
7806   return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7811 case "(($ac_try" in
7812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813   *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816   (eval "$ac_link") 2>conftest.er1
7817   ac_status=$?
7818   grep -v '^ *+' conftest.er1 >conftest.err
7819   rm -f conftest.er1
7820   cat conftest.err >&5
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } &&
7823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7824   { (case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829   (eval "$ac_try") 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; } &&
7833          { ac_try='test -s conftest$ac_exeext'
7834   { (case "(($ac_try" in
7835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836   *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839   (eval "$ac_try") 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; }; then
7843   llvm_cv_link_use_version_script=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848         llvm_cv_link_use_version_script=no
7849 fi
7850
7851 rm -f core conftest.err conftest.$ac_objext \
7852       conftest$ac_exeext conftest.$ac_ext
7853   rm "$tmp/export.map"
7854   rmdir "$tmp"
7855   CFLAGS="$oldcflags"
7856   ac_ext=c
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862
7863 fi
7864 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7865 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7866 if test "$llvm_cv_link_use_version_script" = yes ; then
7867   HAVE_LINK_VERSION_SCRIPT=1
7868
7869   fi
7870
7871
7872
7873
7874 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7875 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7876 if test "${ac_cv_c_const+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 int
7887 main ()
7888 {
7889 /* FIXME: Include the comments suggested by Paul. */
7890 #ifndef __cplusplus
7891   /* Ultrix mips cc rejects this.  */
7892   typedef int charset[2];
7893   const charset x;
7894   /* SunOS 4.1.1 cc rejects this.  */
7895   char const *const *ccp;
7896   char **p;
7897   /* NEC SVR4.0.2 mips cc rejects this.  */
7898   struct point {int x, y;};
7899   static struct point const zero = {0,0};
7900   /* AIX XL C 1.02.0.0 rejects this.
7901      It does not let you subtract one const X* pointer from another in
7902      an arm of an if-expression whose if-part is not a constant
7903      expression */
7904   const char *g = "string";
7905   ccp = &g + (g ? g-g : 0);
7906   /* HPUX 7.0 cc rejects these. */
7907   ++ccp;
7908   p = (char**) ccp;
7909   ccp = (char const *const *) p;
7910   { /* SCO 3.2v4 cc rejects this.  */
7911     char *t;
7912     char const *s = 0 ? (char *) 0 : (char const *) 0;
7913
7914     *t++ = 0;
7915     if (s) return 0;
7916   }
7917   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7918     int x[] = {25, 17};
7919     const int *foo = &x[0];
7920     ++foo;
7921   }
7922   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7923     typedef const int *iptr;
7924     iptr p = 0;
7925     ++p;
7926   }
7927   { /* AIX XL C 1.02.0.0 rejects this saying
7928        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7929     struct s { int j; const int *ap[3]; };
7930     struct s *b; b->j = 5;
7931   }
7932   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7933     const int foo = 10;
7934     if (!foo) return 0;
7935   }
7936   return !x[0] && !zero.x;
7937 #endif
7938
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947   *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950   (eval "$ac_compile") 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958   { (case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_try") 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; } &&
7967          { ac_try='test -s conftest.$ac_objext'
7968   { (case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_try") 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; }; then
7977   ac_cv_c_const=yes
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982         ac_cv_c_const=no
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 fi
7987 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7988 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7989 if test $ac_cv_c_const = no; then
7990
7991 cat >>confdefs.h <<\_ACEOF
7992 #define const
7993 _ACEOF
7994
7995 fi
7996
7997
7998 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7999 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8000 if test "${ac_cv_path_GREP+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   # Extract the first word of "grep ggrep" to use in msg output
8004 if test -z "$GREP"; then
8005 set dummy grep ggrep; ac_prog_name=$2
8006 if test "${ac_cv_path_GREP+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   ac_path_GREP_found=false
8010 # Loop through the user's path and test for each of PROGNAME-LIST
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   for ac_prog in grep ggrep; do
8017   for ac_exec_ext in '' $ac_executable_extensions; do
8018     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8019     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8020     # Check for GNU ac_path_GREP and select it if it is found.
8021   # Check for GNU $ac_path_GREP
8022 case `"$ac_path_GREP" --version 2>&1` in
8023 *GNU*)
8024   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8025 *)
8026   ac_count=0
8027   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8028   while :
8029   do
8030     cat "conftest.in" "conftest.in" >"conftest.tmp"
8031     mv "conftest.tmp" "conftest.in"
8032     cp "conftest.in" "conftest.nl"
8033     echo 'GREP' >> "conftest.nl"
8034     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8036     ac_count=`expr $ac_count + 1`
8037     if test $ac_count -gt ${ac_path_GREP_max-0}; then
8038       # Best one so far, save it but keep looking for a better one
8039       ac_cv_path_GREP="$ac_path_GREP"
8040       ac_path_GREP_max=$ac_count
8041     fi
8042     # 10*(2^10) chars as input seems more than enough
8043     test $ac_count -gt 10 && break
8044   done
8045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8046 esac
8047
8048
8049     $ac_path_GREP_found && break 3
8050   done
8051 done
8052
8053 done
8054 IFS=$as_save_IFS
8055
8056
8057 fi
8058
8059 GREP="$ac_cv_path_GREP"
8060 if test -z "$GREP"; then
8061   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8063    { (exit 1); exit 1; }; }
8064 fi
8065
8066 else
8067   ac_cv_path_GREP=$GREP
8068 fi
8069
8070
8071 fi
8072 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8073 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8074  GREP="$ac_cv_path_GREP"
8075
8076
8077 { echo "$as_me:$LINENO: checking for egrep" >&5
8078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8079 if test "${ac_cv_path_EGREP+set}" = set; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8083    then ac_cv_path_EGREP="$GREP -E"
8084    else
8085      # Extract the first word of "egrep" to use in msg output
8086 if test -z "$EGREP"; then
8087 set dummy egrep; ac_prog_name=$2
8088 if test "${ac_cv_path_EGREP+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   ac_path_EGREP_found=false
8092 # Loop through the user's path and test for each of PROGNAME-LIST
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8095 do
8096   IFS=$as_save_IFS
8097   test -z "$as_dir" && as_dir=.
8098   for ac_prog in egrep; do
8099   for ac_exec_ext in '' $ac_executable_extensions; do
8100     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8101     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8102     # Check for GNU ac_path_EGREP and select it if it is found.
8103   # Check for GNU $ac_path_EGREP
8104 case `"$ac_path_EGREP" --version 2>&1` in
8105 *GNU*)
8106   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8107 *)
8108   ac_count=0
8109   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8110   while :
8111   do
8112     cat "conftest.in" "conftest.in" >"conftest.tmp"
8113     mv "conftest.tmp" "conftest.in"
8114     cp "conftest.in" "conftest.nl"
8115     echo 'EGREP' >> "conftest.nl"
8116     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8117     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8118     ac_count=`expr $ac_count + 1`
8119     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8120       # Best one so far, save it but keep looking for a better one
8121       ac_cv_path_EGREP="$ac_path_EGREP"
8122       ac_path_EGREP_max=$ac_count
8123     fi
8124     # 10*(2^10) chars as input seems more than enough
8125     test $ac_count -gt 10 && break
8126   done
8127   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8128 esac
8129
8130
8131     $ac_path_EGREP_found && break 3
8132   done
8133 done
8134
8135 done
8136 IFS=$as_save_IFS
8137
8138
8139 fi
8140
8141 EGREP="$ac_cv_path_EGREP"
8142 if test -z "$EGREP"; then
8143   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8144 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8145    { (exit 1); exit 1; }; }
8146 fi
8147
8148 else
8149   ac_cv_path_EGREP=$EGREP
8150 fi
8151
8152
8153    fi
8154 fi
8155 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8156 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8157  EGREP="$ac_cv_path_EGREP"
8158
8159
8160 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8162 if test "${ac_cv_header_stdc+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171 #include <stdlib.h>
8172 #include <stdarg.h>
8173 #include <string.h>
8174 #include <float.h>
8175
8176 int
8177 main ()
8178 {
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191   (eval "$ac_compile") 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8199   { (case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_try") 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; } &&
8208          { ac_try='test -s conftest.$ac_objext'
8209   { (case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_try") 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; }; then
8218   ac_cv_header_stdc=yes
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8222
8223         ac_cv_header_stdc=no
8224 fi
8225
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227
8228 if test $ac_cv_header_stdc = yes; then
8229   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 #include <string.h>
8237
8238 _ACEOF
8239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8240   $EGREP "memchr" >/dev/null 2>&1; then
8241   :
8242 else
8243   ac_cv_header_stdc=no
8244 fi
8245 rm -f conftest*
8246
8247 fi
8248
8249 if test $ac_cv_header_stdc = yes; then
8250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8251   cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 #include <stdlib.h>
8258
8259 _ACEOF
8260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8261   $EGREP "free" >/dev/null 2>&1; then
8262   :
8263 else
8264   ac_cv_header_stdc=no
8265 fi
8266 rm -f conftest*
8267
8268 fi
8269
8270 if test $ac_cv_header_stdc = yes; then
8271   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8272   if test "$cross_compiling" = yes; then
8273   :
8274 else
8275   cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281 #include <ctype.h>
8282 #include <stdlib.h>
8283 #if ((' ' & 0x0FF) == 0x020)
8284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8286 #else
8287 # define ISLOWER(c) \
8288                    (('a' <= (c) && (c) <= 'i') \
8289                      || ('j' <= (c) && (c) <= 'r') \
8290                      || ('s' <= (c) && (c) <= 'z'))
8291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8292 #endif
8293
8294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8295 int
8296 main ()
8297 {
8298   int i;
8299   for (i = 0; i < 256; i++)
8300     if (XOR (islower (i), ISLOWER (i))
8301         || toupper (i) != TOUPPER (i))
8302       return 2;
8303   return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest$ac_exeext
8307 if { (ac_try="$ac_link"
8308 case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_link") 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8317   { (case "(($ac_try" in
8318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319   *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322   (eval "$ac_try") 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; }; then
8326   :
8327 else
8328   echo "$as_me: program exited with status $ac_status" >&5
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332 ( exit $ac_status )
8333 ac_cv_header_stdc=no
8334 fi
8335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8336 fi
8337
8338
8339 fi
8340 fi
8341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8343 if test $ac_cv_header_stdc = yes; then
8344
8345 cat >>confdefs.h <<\_ACEOF
8346 #define STDC_HEADERS 1
8347 _ACEOF
8348
8349 fi
8350
8351
8352
8353
8354
8355
8356 ac_header_dirent=no
8357 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8358   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8359 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8360 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 #include <sys/types.h>
8371 #include <$ac_hdr>
8372
8373 int
8374 main ()
8375 {
8376 if ((DIR *) 0)
8377 return 0;
8378   ;
8379   return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext
8383 if { (ac_try="$ac_compile"
8384 case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_compile") 2>conftest.er1
8390   ac_status=$?
8391   grep -v '^ *+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397   { (case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_try") 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; } &&
8406          { ac_try='test -s conftest.$ac_objext'
8407   { (case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_try") 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; }; then
8416   eval "$as_ac_Header=yes"
8417 else
8418   echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421         eval "$as_ac_Header=no"
8422 fi
8423
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 fi
8426 ac_res=`eval echo '${'$as_ac_Header'}'`
8427                { echo "$as_me:$LINENO: result: $ac_res" >&5
8428 echo "${ECHO_T}$ac_res" >&6; }
8429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8430   cat >>confdefs.h <<_ACEOF
8431 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8432 _ACEOF
8433
8434 ac_header_dirent=$ac_hdr; break
8435 fi
8436
8437 done
8438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8439 if test $ac_header_dirent = dirent.h; then
8440   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8441 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8442 if test "${ac_cv_search_opendir+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_func_search_save_LIBS=$LIBS
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452
8453 /* Override any GCC internal prototype to avoid an error.
8454    Use char because int might match the return type of a GCC
8455    builtin and then its argument prototype would still apply.  */
8456 #ifdef __cplusplus
8457 extern "C"
8458 #endif
8459 char opendir ();
8460 int
8461 main ()
8462 {
8463 return opendir ();
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 for ac_lib in '' dir; do
8469   if test -z "$ac_lib"; then
8470     ac_res="none required"
8471   else
8472     ac_res=-l$ac_lib
8473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8474   fi
8475   rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (ac_try="$ac_link"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_link") 2>conftest.er1
8483   ac_status=$?
8484   grep -v '^ *+' conftest.er1 >conftest.err
8485   rm -f conftest.er1
8486   cat conftest.err >&5
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); } &&
8489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8490   { (case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495   (eval "$ac_try") 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); }; } &&
8499          { ac_try='test -s conftest$ac_exeext'
8500   { (case "(($ac_try" in
8501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502   *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505   (eval "$ac_try") 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; }; then
8509   ac_cv_search_opendir=$ac_res
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514
8515 fi
8516
8517 rm -f core conftest.err conftest.$ac_objext \
8518       conftest$ac_exeext
8519   if test "${ac_cv_search_opendir+set}" = set; then
8520   break
8521 fi
8522 done
8523 if test "${ac_cv_search_opendir+set}" = set; then
8524   :
8525 else
8526   ac_cv_search_opendir=no
8527 fi
8528 rm conftest.$ac_ext
8529 LIBS=$ac_func_search_save_LIBS
8530 fi
8531 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8532 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8533 ac_res=$ac_cv_search_opendir
8534 if test "$ac_res" != no; then
8535   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8536
8537 fi
8538
8539 else
8540   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8542 if test "${ac_cv_search_opendir+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   ac_func_search_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552
8553 /* Override any GCC internal prototype to avoid an error.
8554    Use char because int might match the return type of a GCC
8555    builtin and then its argument prototype would still apply.  */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 char opendir ();
8560 int
8561 main ()
8562 {
8563 return opendir ();
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 for ac_lib in '' x; do
8569   if test -z "$ac_lib"; then
8570     ac_res="none required"
8571   else
8572     ac_res=-l$ac_lib
8573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8574   fi
8575   rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (ac_try="$ac_link"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_link") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590   { (case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_try") 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest$ac_exeext'
8600   { (case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_try") 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_cv_search_opendir=$ac_res
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext \
8618       conftest$ac_exeext
8619   if test "${ac_cv_search_opendir+set}" = set; then
8620   break
8621 fi
8622 done
8623 if test "${ac_cv_search_opendir+set}" = set; then
8624   :
8625 else
8626   ac_cv_search_opendir=no
8627 fi
8628 rm conftest.$ac_ext
8629 LIBS=$ac_func_search_save_LIBS
8630 fi
8631 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8632 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8633 ac_res=$ac_cv_search_opendir
8634 if test "$ac_res" != no; then
8635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8636
8637 fi
8638
8639 fi
8640
8641 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8652                   inttypes.h stdint.h unistd.h
8653 do
8654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 $ac_includes_default
8667
8668 #include <$ac_header>
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674   *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677   (eval "$ac_compile") 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685   { (case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_try") 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_try") 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   eval "$as_ac_Header=yes"
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709         eval "$as_ac_Header=no"
8710 fi
8711
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 fi
8714 ac_res=`eval echo '${'$as_ac_Header'}'`
8715                { echo "$as_me:$LINENO: result: $ac_res" >&5
8716 echo "${ECHO_T}$ac_res" >&6; }
8717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8718   cat >>confdefs.h <<_ACEOF
8719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 _ACEOF
8721
8722 fi
8723
8724 done
8725
8726
8727
8728 for ac_header in dlfcn.h
8729 do
8730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8732   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 fi
8737 ac_res=`eval echo '${'$as_ac_Header'}'`
8738                { echo "$as_me:$LINENO: result: $ac_res" >&5
8739 echo "${ECHO_T}$ac_res" >&6; }
8740 else
8741   # Is the header compilable?
8742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750 $ac_includes_default
8751 #include <$ac_header>
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (ac_try="$ac_compile"
8755 case "(($ac_try" in
8756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757   *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760   (eval "$ac_compile") 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8768   { (case "(($ac_try" in
8769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770   *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773   (eval "$ac_try") 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest.$ac_objext'
8778   { (case "(($ac_try" in
8779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780   *) ac_try_echo=$ac_try;;
8781 esac
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783   (eval "$ac_try") 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_header_compiler=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792         ac_header_compiler=no
8793 fi
8794
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8797 echo "${ECHO_T}$ac_header_compiler" >&6; }
8798
8799 # Is the header present?
8800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 #include <$ac_header>
8809 _ACEOF
8810 if { (ac_try="$ac_cpp conftest.$ac_ext"
8811 case "(($ac_try" in
8812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813   *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } >/dev/null; then
8823   if test -s conftest.err; then
8824     ac_cpp_err=$ac_c_preproc_warn_flag
8825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8826   else
8827     ac_cpp_err=
8828   fi
8829 else
8830   ac_cpp_err=yes
8831 fi
8832 if test -z "$ac_cpp_err"; then
8833   ac_header_preproc=yes
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838   ac_header_preproc=no
8839 fi
8840
8841 rm -f conftest.err conftest.$ac_ext
8842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8843 echo "${ECHO_T}$ac_header_preproc" >&6; }
8844
8845 # So?  What about this header?
8846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8847   yes:no: )
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8852     ac_header_preproc=yes
8853     ;;
8854   no:yes:* )
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8867     ( cat <<\_ASBOX
8868 ## ------------------------------------ ##
8869 ## Report this to http://llvm.org/bugs/ ##
8870 ## ------------------------------------ ##
8871 _ASBOX
8872      ) | sed "s/^/$as_me: WARNING:     /" >&2
8873     ;;
8874 esac
8875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   eval "$as_ac_Header=\$ac_header_preproc"
8881 fi
8882 ac_res=`eval echo '${'$as_ac_Header'}'`
8883                { echo "$as_me:$LINENO: result: $ac_res" >&5
8884 echo "${ECHO_T}$ac_res" >&6; }
8885
8886 fi
8887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8888   cat >>confdefs.h <<_ACEOF
8889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8890 _ACEOF
8891
8892 fi
8893
8894 done
8895
8896 # Check whether --enable-ltdl-install was given.
8897 if test "${enable_ltdl_install+set}" = set; then
8898   enableval=$enable_ltdl_install;
8899 fi
8900
8901
8902
8903
8904 if test x"${enable_ltdl_install-no}" != xno; then
8905   INSTALL_LTDL_TRUE=
8906   INSTALL_LTDL_FALSE='#'
8907 else
8908   INSTALL_LTDL_TRUE='#'
8909   INSTALL_LTDL_FALSE=
8910 fi
8911
8912
8913
8914 if test x"${enable_ltdl_convenience-no}" != xno; then
8915   CONVENIENCE_LTDL_TRUE=
8916   CONVENIENCE_LTDL_FALSE='#'
8917 else
8918   CONVENIENCE_LTDL_TRUE='#'
8919   CONVENIENCE_LTDL_FALSE=
8920 fi
8921
8922
8923 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8925 library_names_spec=
8926 libname_spec='lib$name'
8927 soname_spec=
8928 shrext_cmds=".so"
8929 postinstall_cmds=
8930 postuninstall_cmds=
8931 finish_cmds=
8932 finish_eval=
8933 shlibpath_var=
8934 shlibpath_overrides_runpath=unknown
8935 version_type=none
8936 dynamic_linker="$host_os ld.so"
8937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8938 if test "$GCC" = yes; then
8939   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8940   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8941     # if the path contains ";" then we assume it to be the separator
8942     # otherwise default to the standard path separator (i.e. ":") - it is
8943     # assumed that no part of a normal pathname contains ";" but that should
8944     # okay in the real world where ";" in dirpaths is itself problematic.
8945     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8946   else
8947     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8948   fi
8949 else
8950   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8951 fi
8952 need_lib_prefix=unknown
8953 hardcode_into_libs=no
8954
8955 # when you set need_version to no, make sure it does not cause -set_version
8956 # flags to be left without arguments
8957 need_version=unknown
8958
8959 case $host_os in
8960 aix3*)
8961   version_type=linux
8962   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8963   shlibpath_var=LIBPATH
8964
8965   # AIX 3 has no versioning support, so we append a major version to the name.
8966   soname_spec='${libname}${release}${shared_ext}$major'
8967   ;;
8968
8969 aix4* | aix5*)
8970   version_type=linux
8971   need_lib_prefix=no
8972   need_version=no
8973   hardcode_into_libs=yes
8974   if test "$host_cpu" = ia64; then
8975     # AIX 5 supports IA64
8976     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8977     shlibpath_var=LD_LIBRARY_PATH
8978   else
8979     # With GCC up to 2.95.x, collect2 would create an import file
8980     # for dependence libraries.  The import file would start with
8981     # the line `#! .'.  This would cause the generated library to
8982     # depend on `.', always an invalid library.  This was fixed in
8983     # development snapshots of GCC prior to 3.0.
8984     case $host_os in
8985       aix4 | aix4.[01] | aix4.[01].*)
8986       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8987            echo ' yes '
8988            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8989         :
8990       else
8991         can_build_shared=no
8992       fi
8993       ;;
8994     esac
8995     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8996     # soname into executable. Probably we can add versioning support to
8997     # collect2, so additional links can be useful in future.
8998     if test "$aix_use_runtimelinking" = yes; then
8999       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9000       # instead of lib<name>.a to let people know that these are not
9001       # typical AIX shared libraries.
9002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003     else
9004       # We preserve .a as extension for shared libraries through AIX4.2
9005       # and later when we are not doing run time linking.
9006       library_names_spec='${libname}${release}.a $libname.a'
9007       soname_spec='${libname}${release}${shared_ext}$major'
9008     fi
9009     shlibpath_var=LIBPATH
9010   fi
9011   ;;
9012
9013 amigaos*)
9014   library_names_spec='$libname.ixlibrary $libname.a'
9015   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9016   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'
9017   ;;
9018
9019 beos*)
9020   library_names_spec='${libname}${shared_ext}'
9021   dynamic_linker="$host_os ld.so"
9022   shlibpath_var=LIBRARY_PATH
9023   ;;
9024
9025 bsdi[45]*)
9026   version_type=linux
9027   need_version=no
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029   soname_spec='${libname}${release}${shared_ext}$major'
9030   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9031   shlibpath_var=LD_LIBRARY_PATH
9032   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9033   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9034   # the default ld.so.conf also contains /usr/contrib/lib and
9035   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9036   # libtool to hard-code these into programs
9037   ;;
9038
9039 cygwin* | mingw* | pw32*)
9040   version_type=windows
9041   shrext_cmds=".dll"
9042   need_version=no
9043   need_lib_prefix=no
9044
9045   case $GCC,$host_os in
9046   yes,cygwin* | yes,mingw* | yes,pw32*)
9047     library_names_spec='$libname.dll.a'
9048     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9049     postinstall_cmds='base_file=`basename \${file}`~
9050       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9051       dldir=$destdir/`dirname \$dlpath`~
9052       test -d \$dldir || mkdir -p \$dldir~
9053       $install_prog $dir/$dlname \$dldir/$dlname~
9054       chmod a+x \$dldir/$dlname'
9055     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9056       dlpath=$dir/\$dldll~
9057        $rm \$dlpath'
9058     shlibpath_overrides_runpath=yes
9059
9060     case $host_os in
9061     cygwin*)
9062       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9063       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9064       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9065       ;;
9066     mingw*)
9067       # MinGW DLLs use traditional 'lib' prefix
9068       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9071         # It is most probably a Windows format PATH printed by
9072         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9073         # path with ; separators, and with drive letters. We can handle the
9074         # drive letters (cygwin fileutils understands them), so leave them,
9075         # especially as we might pass files found there to a mingw objdump,
9076         # which wouldn't understand a cygwinified path. Ahh.
9077         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9078       else
9079         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9080       fi
9081       ;;
9082     pw32*)
9083       # pw32 DLLs use 'pw' prefix rather than 'lib'
9084       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9085       ;;
9086     esac
9087     ;;
9088
9089   *)
9090     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9091     ;;
9092   esac
9093   dynamic_linker='Win32 ld.exe'
9094   # FIXME: first we should search . and the directory the executable is in
9095   shlibpath_var=PATH
9096   ;;
9097
9098 darwin* | rhapsody*)
9099   dynamic_linker="$host_os dyld"
9100   version_type=darwin
9101   need_lib_prefix=no
9102   need_version=no
9103   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9104   soname_spec='${libname}${release}${major}$shared_ext'
9105   shlibpath_overrides_runpath=yes
9106   shlibpath_var=DYLD_LIBRARY_PATH
9107   shrext_cmds='.dylib'
9108   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9109   if test "$GCC" = yes; then
9110     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"`
9111   else
9112     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9113   fi
9114   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9115   ;;
9116
9117 dgux*)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   ;;
9125
9126 freebsd1.*)
9127   dynamic_linker=no
9128   ;;
9129
9130 kfreebsd*-gnu)
9131   version_type=linux
9132   need_lib_prefix=no
9133   need_version=no
9134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9135   soname_spec='${libname}${release}${shared_ext}$major'
9136   shlibpath_var=LD_LIBRARY_PATH
9137   shlibpath_overrides_runpath=no
9138   hardcode_into_libs=yes
9139   dynamic_linker='GNU ld.so'
9140   ;;
9141
9142 freebsd* | dragonfly*)
9143   # DragonFly does not have aout.  When/if they implement a new
9144   # versioning mechanism, adjust this.
9145   if test -x /usr/bin/objformat; then
9146     objformat=`/usr/bin/objformat`
9147   else
9148     case $host_os in
9149     freebsd[123].*) objformat=aout ;;
9150     *) objformat=elf ;;
9151     esac
9152   fi
9153   version_type=freebsd-$objformat
9154   case $version_type in
9155     freebsd-elf*)
9156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157       need_version=no
9158       need_lib_prefix=no
9159       ;;
9160     freebsd-*)
9161       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9162       need_version=yes
9163       ;;
9164   esac
9165   shlibpath_var=LD_LIBRARY_PATH
9166   case $host_os in
9167   freebsd2.*)
9168     shlibpath_overrides_runpath=yes
9169     ;;
9170   freebsd3.[01]* | freebsdelf3.[01]*)
9171     shlibpath_overrides_runpath=yes
9172     hardcode_into_libs=yes
9173     ;;
9174   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9175   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9176     shlibpath_overrides_runpath=no
9177     hardcode_into_libs=yes
9178     ;;
9179   freebsd*) # from 4.6 on
9180     shlibpath_overrides_runpath=yes
9181     hardcode_into_libs=yes
9182     ;;
9183   esac
9184   ;;
9185
9186 gnu*)
9187   version_type=linux
9188   need_lib_prefix=no
9189   need_version=no
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   shlibpath_var=LD_LIBRARY_PATH
9193   hardcode_into_libs=yes
9194   ;;
9195
9196 hpux9* | hpux10* | hpux11*)
9197   # Give a soname corresponding to the major version so that dld.sl refuses to
9198   # link against other versions.
9199   version_type=sunos
9200   need_lib_prefix=no
9201   need_version=no
9202   case $host_cpu in
9203   ia64*)
9204     shrext_cmds='.so'
9205     hardcode_into_libs=yes
9206     dynamic_linker="$host_os dld.so"
9207     shlibpath_var=LD_LIBRARY_PATH
9208     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210     soname_spec='${libname}${release}${shared_ext}$major'
9211     if test "X$HPUX_IA64_MODE" = X32; then
9212       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9213     else
9214       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9215     fi
9216     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9217     ;;
9218    hppa*64*)
9219      shrext_cmds='.sl'
9220      hardcode_into_libs=yes
9221      dynamic_linker="$host_os dld.sl"
9222      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9223      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225      soname_spec='${libname}${release}${shared_ext}$major'
9226      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9227      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9228      ;;
9229    *)
9230     shrext_cmds='.sl'
9231     dynamic_linker="$host_os dld.sl"
9232     shlibpath_var=SHLIB_PATH
9233     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235     soname_spec='${libname}${release}${shared_ext}$major'
9236     ;;
9237   esac
9238   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9239   postinstall_cmds='chmod 555 $lib'
9240   ;;
9241
9242 interix3*)
9243   version_type=linux
9244   need_lib_prefix=no
9245   need_version=no
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247   soname_spec='${libname}${release}${shared_ext}$major'
9248   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9249   shlibpath_var=LD_LIBRARY_PATH
9250   shlibpath_overrides_runpath=no
9251   hardcode_into_libs=yes
9252   ;;
9253
9254 irix5* | irix6* | nonstopux*)
9255   case $host_os in
9256     nonstopux*) version_type=nonstopux ;;
9257     *)
9258         if test "$lt_cv_prog_gnu_ld" = yes; then
9259                 version_type=linux
9260         else
9261                 version_type=irix
9262         fi ;;
9263   esac
9264   need_lib_prefix=no
9265   need_version=no
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9268   case $host_os in
9269   irix5* | nonstopux*)
9270     libsuff= shlibsuff=
9271     ;;
9272   *)
9273     case $LD in # libtool.m4 will add one of these switches to LD
9274     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9275       libsuff= shlibsuff= libmagic=32-bit;;
9276     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9277       libsuff=32 shlibsuff=N32 libmagic=N32;;
9278     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9279       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9280     *) libsuff= shlibsuff= libmagic=never-match;;
9281     esac
9282     ;;
9283   esac
9284   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9285   shlibpath_overrides_runpath=no
9286   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9287   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9288   hardcode_into_libs=yes
9289   ;;
9290
9291 # No shared lib support for Linux oldld, aout, or coff.
9292 linux*oldld* | linux*aout* | linux*coff*)
9293   dynamic_linker=no
9294   ;;
9295
9296 # This must be Linux ELF.
9297 linux*)
9298   version_type=linux
9299   need_lib_prefix=no
9300   need_version=no
9301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302   soname_spec='${libname}${release}${shared_ext}$major'
9303   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=no
9306   # This implies no fast_install, which is unacceptable.
9307   # Some rework will be needed to allow for fast_install
9308   # before this can be enabled.
9309   hardcode_into_libs=yes
9310
9311   # Append ld.so.conf contents to the search path
9312   if test -f /etc/ld.so.conf; then
9313     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' ' '`
9314     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9315   fi
9316
9317   # We used to test for /lib/ld.so.1 and disable shared libraries on
9318   # powerpc, because MkLinux only supported shared libraries with the
9319   # GNU dynamic linker.  Since this was broken with cross compilers,
9320   # most powerpc-linux boxes support dynamic linking these days and
9321   # people can always --disable-shared, the test was removed, and we
9322   # assume the GNU/Linux dynamic linker is in use.
9323   dynamic_linker='GNU/Linux ld.so'
9324   ;;
9325
9326 knetbsd*-gnu)
9327   version_type=linux
9328   need_lib_prefix=no
9329   need_version=no
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9331   soname_spec='${libname}${release}${shared_ext}$major'
9332   shlibpath_var=LD_LIBRARY_PATH
9333   shlibpath_overrides_runpath=no
9334   hardcode_into_libs=yes
9335   dynamic_linker='GNU ld.so'
9336   ;;
9337
9338 netbsd*)
9339   version_type=sunos
9340   need_lib_prefix=no
9341   need_version=no
9342   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345     dynamic_linker='NetBSD (a.out) ld.so'
9346   else
9347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9348     soname_spec='${libname}${release}${shared_ext}$major'
9349     dynamic_linker='NetBSD ld.elf_so'
9350   fi
9351   shlibpath_var=LD_LIBRARY_PATH
9352   shlibpath_overrides_runpath=yes
9353   hardcode_into_libs=yes
9354   ;;
9355
9356 newsos6)
9357   version_type=linux
9358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   shlibpath_overrides_runpath=yes
9361   ;;
9362
9363 nto-qnx*)
9364   version_type=linux
9365   need_lib_prefix=no
9366   need_version=no
9367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368   soname_spec='${libname}${release}${shared_ext}$major'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   shlibpath_overrides_runpath=yes
9371   ;;
9372
9373 openbsd* | bitrig*)
9374   version_type=sunos
9375   sys_lib_dlsearch_path_spec="/usr/lib"
9376   need_lib_prefix=no
9377   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9378   case $host_os in
9379     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9380     *)                         need_version=no  ;;
9381   esac
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9386     case $host_os in
9387       openbsd2.[89] | openbsd2.[89].*)
9388         shlibpath_overrides_runpath=no
9389         ;;
9390       *)
9391         shlibpath_overrides_runpath=yes
9392         ;;
9393       esac
9394   else
9395     shlibpath_overrides_runpath=yes
9396   fi
9397   ;;
9398
9399 os2*)
9400   libname_spec='$name'
9401   shrext_cmds=".dll"
9402   need_lib_prefix=no
9403   library_names_spec='$libname${shared_ext} $libname.a'
9404   dynamic_linker='OS/2 ld.exe'
9405   shlibpath_var=LIBPATH
9406   ;;
9407
9408 osf3* | osf4* | osf5*)
9409   version_type=osf
9410   need_lib_prefix=no
9411   need_version=no
9412   soname_spec='${libname}${release}${shared_ext}$major'
9413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414   shlibpath_var=LD_LIBRARY_PATH
9415   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9416   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9417   ;;
9418
9419 solaris*)
9420   version_type=linux
9421   need_lib_prefix=no
9422   need_version=no
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424   soname_spec='${libname}${release}${shared_ext}$major'
9425   shlibpath_var=LD_LIBRARY_PATH
9426   shlibpath_overrides_runpath=yes
9427   hardcode_into_libs=yes
9428   # ldd complains unless libraries are executable
9429   postinstall_cmds='chmod +x $lib'
9430   ;;
9431
9432 sunos4*)
9433   version_type=sunos
9434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9435   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9436   shlibpath_var=LD_LIBRARY_PATH
9437   shlibpath_overrides_runpath=yes
9438   if test "$with_gnu_ld" = yes; then
9439     need_lib_prefix=no
9440   fi
9441   need_version=yes
9442   ;;
9443
9444 sysv4 | sysv4.3*)
9445   version_type=linux
9446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447   soname_spec='${libname}${release}${shared_ext}$major'
9448   shlibpath_var=LD_LIBRARY_PATH
9449   case $host_vendor in
9450     sni)
9451       shlibpath_overrides_runpath=no
9452       need_lib_prefix=no
9453       export_dynamic_flag_spec='${wl}-Blargedynsym'
9454       runpath_var=LD_RUN_PATH
9455       ;;
9456     siemens)
9457       need_lib_prefix=no
9458       ;;
9459     motorola)
9460       need_lib_prefix=no
9461       need_version=no
9462       shlibpath_overrides_runpath=no
9463       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9464       ;;
9465   esac
9466   ;;
9467
9468 sysv4*MP*)
9469   if test -d /usr/nec ;then
9470     version_type=linux
9471     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9472     soname_spec='$libname${shared_ext}.$major'
9473     shlibpath_var=LD_LIBRARY_PATH
9474   fi
9475   ;;
9476
9477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9478   version_type=freebsd-elf
9479   need_lib_prefix=no
9480   need_version=no
9481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9482   soname_spec='${libname}${release}${shared_ext}$major'
9483   shlibpath_var=LD_LIBRARY_PATH
9484   hardcode_into_libs=yes
9485   if test "$with_gnu_ld" = yes; then
9486     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9487     shlibpath_overrides_runpath=no
9488   else
9489     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9490     shlibpath_overrides_runpath=yes
9491     case $host_os in
9492       sco3.2v5*)
9493         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9494         ;;
9495     esac
9496   fi
9497   sys_lib_dlsearch_path_spec='/usr/lib'
9498   ;;
9499
9500 uts4*)
9501   version_type=linux
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503   soname_spec='${libname}${release}${shared_ext}$major'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   ;;
9506
9507 *)
9508   dynamic_linker=no
9509   ;;
9510 esac
9511 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9512 echo "${ECHO_T}$dynamic_linker" >&6; }
9513 test "$dynamic_linker" = no && can_build_shared=no
9514
9515 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9516 if test "$GCC" = yes; then
9517   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9518 fi
9519
9520
9521 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9522 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9523 if test "${libltdl_cv_shlibext+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526
9527 module=yes
9528 eval libltdl_cv_shlibext=$shrext_cmds
9529
9530 fi
9531 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9532 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9533 if test -n "$libltdl_cv_shlibext"; then
9534
9535 cat >>confdefs.h <<_ACEOF
9536 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9537 _ACEOF
9538
9539 fi
9540
9541
9542 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9543 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9544 if test "${libltdl_cv_sys_search_path+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9548 fi
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9550 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9551 if test -n "$libltdl_cv_sys_search_path"; then
9552   sys_search_path=
9553   for dir in $libltdl_cv_sys_search_path; do
9554     if test -z "$sys_search_path"; then
9555       sys_search_path="$dir"
9556     else
9557       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9558     fi
9559   done
9560
9561 cat >>confdefs.h <<_ACEOF
9562 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9563 _ACEOF
9564
9565 fi
9566
9567 { echo "$as_me:$LINENO: checking for objdir" >&5
9568 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9569 if test "${libltdl_cv_objdir+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   libltdl_cv_objdir="$objdir"
9573   if test -n "$objdir"; then
9574     :
9575   else
9576     rm -f .libs 2>/dev/null
9577     mkdir .libs 2>/dev/null
9578     if test -d .libs; then
9579       libltdl_cv_objdir=.libs
9580     else
9581       # MS-DOS does not allow filenames that begin with a dot.
9582       libltdl_cv_objdir=_libs
9583     fi
9584   rmdir .libs 2>/dev/null
9585   fi
9586
9587 fi
9588 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9589 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9590
9591 cat >>confdefs.h <<_ACEOF
9592 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9593 _ACEOF
9594
9595
9596
9597
9598
9599
9600 # Check for command to grab the raw symbol name followed by C symbol from nm.
9601 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9602 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606
9607 # These are sane defaults that work on at least a few old systems.
9608 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9609
9610 # Character class describing NM global symbol codes.
9611 symcode='[BCDEGRST]'
9612
9613 # Regexp to match symbols that can be accessed directly from C.
9614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9615
9616 # Transform an extracted symbol line into a proper C declaration
9617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9618
9619 # Transform an extracted symbol line into symbol name and symbol address
9620 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'"
9621
9622 # Define system-specific variables.
9623 case $host_os in
9624 aix*)
9625   symcode='[BCDT]'
9626   ;;
9627 cygwin* | mingw* | pw32*)
9628   symcode='[ABCDGISTW]'
9629   ;;
9630 hpux*) # Its linker distinguishes data from code symbols
9631   if test "$host_cpu" = ia64; then
9632     symcode='[ABCDEGRST]'
9633   fi
9634   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9635   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'"
9636   ;;
9637 linux*)
9638   if test "$host_cpu" = ia64; then
9639     symcode='[ABCDGIRSTW]'
9640     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9641     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'"
9642   fi
9643   ;;
9644 irix* | nonstopux*)
9645   symcode='[BCDEGRST]'
9646   ;;
9647 osf*)
9648   symcode='[BCDEGQRST]'
9649   ;;
9650 solaris*)
9651   symcode='[BDRT]'
9652   ;;
9653 sco3.2v5*)
9654   symcode='[DT]'
9655   ;;
9656 sysv4.2uw2*)
9657   symcode='[DT]'
9658   ;;
9659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9660   symcode='[ABDT]'
9661   ;;
9662 sysv4)
9663   symcode='[DFNSTU]'
9664   ;;
9665 esac
9666
9667 # Handle CRLF in mingw tool chain
9668 opt_cr=
9669 case $build_os in
9670 mingw*)
9671   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9672   ;;
9673 esac
9674
9675 # If we're using GNU nm, then use its standard symbol codes.
9676 case `$NM -V 2>&1` in
9677 *GNU* | *'with BFD'*)
9678   symcode='[ABCDGIRSTW]' ;;
9679 esac
9680
9681 # Try without a prefix undercore, then with it.
9682 for ac_symprfx in "" "_"; do
9683
9684   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9685   symxfrm="\\1 $ac_symprfx\\2 \\2"
9686
9687   # Write the raw and C identifiers.
9688   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9689
9690   # Check to see that the pipe works correctly.
9691   pipe_works=no
9692
9693   rm -f conftest*
9694   cat > conftest.$ac_ext <<EOF
9695 #ifdef __cplusplus
9696 extern "C" {
9697 #endif
9698 char nm_test_var;
9699 void nm_test_func(){}
9700 #ifdef __cplusplus
9701 }
9702 #endif
9703 int main(){nm_test_var='a';nm_test_func();return(0);}
9704 EOF
9705
9706   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707   (eval $ac_compile) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; then
9711     # Now try to grab the symbols.
9712     nlist=conftest.nm
9713     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9714   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } && test -s "$nlist"; then
9718       # Try sorting and uniquifying the output.
9719       if sort "$nlist" | uniq > "$nlist"T; then
9720         mv -f "$nlist"T "$nlist"
9721       else
9722         rm -f "$nlist"T
9723       fi
9724
9725       # Make sure that we snagged all the symbols we need.
9726       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9727         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9728           cat <<EOF > conftest.$ac_ext
9729 #ifdef __cplusplus
9730 extern "C" {
9731 #endif
9732
9733 EOF
9734           # Now generate the symbol file.
9735           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9736
9737           cat <<EOF >> conftest.$ac_ext
9738 #if defined (__STDC__) && __STDC__
9739 # define lt_ptr_t void *
9740 #else
9741 # define lt_ptr_t char *
9742 # define const
9743 #endif
9744
9745 /* The mapping between symbol names and symbols. */
9746 const struct {
9747   const char *name;
9748   lt_ptr_t address;
9749 }
9750 lt_preloaded_symbols[] =
9751 {
9752 EOF
9753           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9754           cat <<\EOF >> conftest.$ac_ext
9755   {0, (lt_ptr_t) 0}
9756 };
9757
9758 #ifdef __cplusplus
9759 }
9760 #endif
9761 EOF
9762           # Now try linking the two files.
9763           mv conftest.$ac_objext conftstm.$ac_objext
9764           lt_save_LIBS="$LIBS"
9765           lt_save_CFLAGS="$CFLAGS"
9766           LIBS="conftstm.$ac_objext"
9767           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9768           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9773             pipe_works=yes
9774           fi
9775           LIBS="$lt_save_LIBS"
9776           CFLAGS="$lt_save_CFLAGS"
9777         else
9778           echo "cannot find nm_test_func in $nlist" >&5
9779         fi
9780       else
9781         echo "cannot find nm_test_var in $nlist" >&5
9782       fi
9783     else
9784       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9785     fi
9786   else
9787     echo "$progname: failed program was:" >&5
9788     cat conftest.$ac_ext >&5
9789   fi
9790   rm -f conftest* conftst*
9791
9792   # Do not use the global_symbol_pipe unless it works.
9793   if test "$pipe_works" = yes; then
9794     break
9795   else
9796     lt_cv_sys_global_symbol_pipe=
9797   fi
9798 done
9799
9800 fi
9801
9802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9803   lt_cv_sys_global_symbol_to_cdecl=
9804 fi
9805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9806   { echo "$as_me:$LINENO: result: failed" >&5
9807 echo "${ECHO_T}failed" >&6; }
9808 else
9809   { echo "$as_me:$LINENO: result: ok" >&5
9810 echo "${ECHO_T}ok" >&6; }
9811 fi
9812
9813
9814 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9815 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9816 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9820     libltdl_cv_preloaded_symbols=yes
9821   else
9822     libltdl_cv_preloaded_symbols=no
9823   fi
9824
9825 fi
9826 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9827 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9828 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9829
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_PRELOADED_SYMBOLS 1
9832 _ACEOF
9833
9834 fi
9835
9836 LIBADD_DL=
9837
9838 ac_ext=c
9839 ac_cpp='$CPP $CPPFLAGS'
9840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9843
9844
9845 { echo "$as_me:$LINENO: checking for shl_load" >&5
9846 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_shl_load+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9858 #define shl_load innocuous_shl_load
9859
9860 /* System header to define __stub macros and hopefully few prototypes,
9861     which can conflict with char shl_load (); below.
9862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863     <limits.h> exists even on freestanding compilers.  */
9864
9865 #ifdef __STDC__
9866 # include <limits.h>
9867 #else
9868 # include <assert.h>
9869 #endif
9870
9871 #undef shl_load
9872
9873 /* Override any GCC internal prototype to avoid an error.
9874    Use char because int might match the return type of a GCC
9875    builtin and then its argument prototype would still apply.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char shl_load ();
9880 /* The GNU C library defines this for functions which it implements
9881     to always fail with ENOSYS.  Some functions are actually named
9882     something starting with __ and the normal name is an alias.  */
9883 #if defined __stub_shl_load || defined __stub___shl_load
9884 choke me
9885 #endif
9886
9887 int
9888 main ()
9889 {
9890 return shl_load ();
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_link") 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910   { (case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_try") 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_try") 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_cv_func_shl_load=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934         ac_cv_func_shl_load=no
9935 fi
9936
9937 rm -f core conftest.err conftest.$ac_objext \
9938       conftest$ac_exeext conftest.$ac_ext
9939 fi
9940 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9941 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9942 if test $ac_cv_func_shl_load = yes; then
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_SHL_LOAD 1
9946 _ACEOF
9947
9948 else
9949   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9950 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-ldld  $LIBS"
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962
9963 /* Override any GCC internal prototype to avoid an error.
9964    Use char because int might match the return type of a GCC
9965    builtin and then its argument prototype would still apply.  */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 char shl_load ();
9970 int
9971 main ()
9972 {
9973 return shl_load ();
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; } &&
10002          { ac_try='test -s conftest$ac_exeext'
10003   { (case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_try") 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; }; then
10012   ac_cv_lib_dld_shl_load=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017         ac_cv_lib_dld_shl_load=no
10018 fi
10019
10020 rm -f core conftest.err conftest.$ac_objext \
10021       conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10025 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10026 if test $ac_cv_lib_dld_shl_load = yes; then
10027
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_SHL_LOAD 1
10030 _ACEOF
10031
10032         LIBADD_DL="$LIBADD_DL -ldld"
10033 else
10034   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   ac_check_lib_save_LIBS=$LIBS
10040 LIBS="-ldl  $LIBS"
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047
10048 /* Override any GCC internal prototype to avoid an error.
10049    Use char because int might match the return type of a GCC
10050    builtin and then its argument prototype would still apply.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 char dlopen ();
10055 int
10056 main ()
10057 {
10058 return dlopen ();
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10071   ac_status=$?
10072   grep -v '^ *+' conftest.er1 >conftest.err
10073   rm -f conftest.er1
10074   cat conftest.err >&5
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } &&
10077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10078   { (case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_try") 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; } &&
10087          { ac_try='test -s conftest$ac_exeext'
10088   { (case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_try") 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   ac_cv_lib_dl_dlopen=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102         ac_cv_lib_dl_dlopen=no
10103 fi
10104
10105 rm -f core conftest.err conftest.$ac_objext \
10106       conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10108 fi
10109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10111 if test $ac_cv_lib_dl_dlopen = yes; then
10112
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_LIBDL 1
10115 _ACEOF
10116
10117                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125 #if HAVE_DLFCN_H
10126 #  include <dlfcn.h>
10127 #endif
10128
10129 int
10130 main ()
10131 {
10132 dlopen(0, 0);
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (ac_try="$ac_link"
10139 case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_link") 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10152   { (case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157   (eval "$ac_try") 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; } &&
10161          { ac_try='test -s conftest$ac_exeext'
10162   { (case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_try") 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); }; }; then
10171
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_LIBDL 1
10174 _ACEOF
10175  libltdl_cv_func_dlopen="yes"
10176 else
10177   echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10181 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185   ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-lsvld  $LIBS"
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195    Use char because int might match the return type of a GCC
10196    builtin and then its argument prototype would still apply.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char dlopen ();
10201 int
10202 main ()
10203 {
10204 return dlopen ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213   *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216   (eval "$ac_link") 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10224   { (case "(($ac_try" in
10225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226   *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229   (eval "$ac_try") 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; } &&
10233          { ac_try='test -s conftest$ac_exeext'
10234   { (case "(($ac_try" in
10235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236   *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239   (eval "$ac_try") 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ac_cv_lib_svld_dlopen=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248         ac_cv_lib_svld_dlopen=no
10249 fi
10250
10251 rm -f core conftest.err conftest.$ac_objext \
10252       conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10254 fi
10255 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10256 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10257 if test $ac_cv_lib_svld_dlopen = yes; then
10258
10259 cat >>confdefs.h <<\_ACEOF
10260 #define HAVE_LIBDL 1
10261 _ACEOF
10262
10263                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10264 else
10265   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10266 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10267 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-ldld  $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h.  */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h.  */
10278
10279 /* Override any GCC internal prototype to avoid an error.
10280    Use char because int might match the return type of a GCC
10281    builtin and then its argument prototype would still apply.  */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 char dld_link ();
10286 int
10287 main ()
10288 {
10289 return dld_link ();
10290   ;
10291   return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_link") 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } &&
10308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309   { (case "(($ac_try" in
10310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311   *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314   (eval "$ac_try") 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_try") 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; }; then
10328   ac_cv_lib_dld_dld_link=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333         ac_cv_lib_dld_dld_link=no
10334 fi
10335
10336 rm -f core conftest.err conftest.$ac_objext \
10337       conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_DLD 1
10346 _ACEOF
10347
10348                 LIBADD_DL="$LIBADD_DL -ldld"
10349 else
10350   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10351 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10352 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10363 #define _dyld_func_lookup innocuous__dyld_func_lookup
10364
10365 /* System header to define __stub macros and hopefully few prototypes,
10366     which can conflict with char _dyld_func_lookup (); below.
10367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368     <limits.h> exists even on freestanding compilers.  */
10369
10370 #ifdef __STDC__
10371 # include <limits.h>
10372 #else
10373 # include <assert.h>
10374 #endif
10375
10376 #undef _dyld_func_lookup
10377
10378 /* Override any GCC internal prototype to avoid an error.
10379    Use char because int might match the return type of a GCC
10380    builtin and then its argument prototype would still apply.  */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char _dyld_func_lookup ();
10385 /* The GNU C library defines this for functions which it implements
10386     to always fail with ENOSYS.  Some functions are actually named
10387     something starting with __ and the normal name is an alias.  */
10388 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10389 choke me
10390 #endif
10391
10392 int
10393 main ()
10394 {
10395 return _dyld_func_lookup ();
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404   *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407   (eval "$ac_link") 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415   { (case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420   (eval "$ac_try") 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_try") 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   ac_cv_func__dyld_func_lookup=yes
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         ac_cv_func__dyld_func_lookup=no
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext \
10443       conftest$ac_exeext conftest.$ac_ext
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10446 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10447 if test $ac_cv_func__dyld_func_lookup = yes; then
10448
10449 cat >>confdefs.h <<\_ACEOF
10450 #define HAVE_DYLD 1
10451 _ACEOF
10452
10453 fi
10454
10455
10456 fi
10457
10458
10459 fi
10460
10461
10462 fi
10463
10464 rm -f core conftest.err conftest.$ac_objext \
10465       conftest$ac_exeext conftest.$ac_ext
10466
10467 fi
10468
10469
10470 fi
10471
10472
10473 fi
10474
10475
10476 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10477 then
10478   lt_save_LIBS="$LIBS"
10479   LIBS="$LIBS $LIBADD_DL"
10480
10481 for ac_func in dlerror
10482 do
10483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h.  */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h.  */
10495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10497 #define $ac_func innocuous_$ac_func
10498
10499 /* System header to define __stub macros and hopefully few prototypes,
10500     which can conflict with char $ac_func (); below.
10501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502     <limits.h> exists even on freestanding compilers.  */
10503
10504 #ifdef __STDC__
10505 # include <limits.h>
10506 #else
10507 # include <assert.h>
10508 #endif
10509
10510 #undef $ac_func
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513    Use char because int might match the return type of a GCC
10514    builtin and then its argument prototype would still apply.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char $ac_func ();
10519 /* The GNU C library defines this for functions which it implements
10520     to always fail with ENOSYS.  Some functions are actually named
10521     something starting with __ and the normal name is an alias.  */
10522 #if defined __stub_$ac_func || defined __stub___$ac_func
10523 choke me
10524 #endif
10525
10526 int
10527 main ()
10528 {
10529 return $ac_func ();
10530   ;
10531   return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_link") 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549   { (case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_try") 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; } &&
10558          { ac_try='test -s conftest$ac_exeext'
10559   { (case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564   (eval "$ac_try") 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   eval "$as_ac_var=yes"
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573         eval "$as_ac_var=no"
10574 fi
10575
10576 rm -f core conftest.err conftest.$ac_objext \
10577       conftest$ac_exeext conftest.$ac_ext
10578 fi
10579 ac_res=`eval echo '${'$as_ac_var'}'`
10580                { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10582 if test `eval echo '${'$as_ac_var'}'` = yes; then
10583   cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10585 _ACEOF
10586
10587 fi
10588 done
10589
10590   LIBS="$lt_save_LIBS"
10591 fi
10592 ac_ext=c
10593 ac_cpp='$CPP $CPPFLAGS'
10594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10597
10598
10599
10600 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10601 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10602 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   ac_cv_sys_symbol_underscore=no
10606   cat > conftest.$ac_ext <<EOF
10607 void nm_test_func(){}
10608 int main(){nm_test_func;return 0;}
10609 EOF
10610   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; then
10615     # Now try to grab the symbols.
10616     ac_nlist=conftest.nm
10617     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10618   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } && test -s "$ac_nlist"; then
10622       # See whether the symbols have a leading underscore.
10623       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10624         ac_cv_sys_symbol_underscore=yes
10625       else
10626         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10627           :
10628         else
10629           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10630         fi
10631       fi
10632     else
10633       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10634     fi
10635   else
10636     echo "configure: failed program was:" >&5
10637     cat conftest.c >&5
10638   fi
10639   rm -rf conftest*
10640
10641 fi
10642 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10643 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10644
10645
10646 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10647   if test x"$libltdl_cv_func_dlopen" = xyes ||
10648      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10649         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10650 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10651 if test "${libltdl_cv_need_uscore+set}" = set; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   libltdl_cv_need_uscore=unknown
10655           save_LIBS="$LIBS"
10656           LIBS="$LIBS $LIBADD_DL"
10657           if test "$cross_compiling" = yes; then :
10658   libltdl_cv_need_uscore=cross
10659 else
10660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10661   lt_status=$lt_dlunknown
10662   cat > conftest.$ac_ext <<EOF
10663 #line 10663 "configure"
10664 #include "confdefs.h"
10665
10666 #if HAVE_DLFCN_H
10667 #include <dlfcn.h>
10668 #endif
10669
10670 #include <stdio.h>
10671
10672 #ifdef RTLD_GLOBAL
10673 #  define LT_DLGLOBAL           RTLD_GLOBAL
10674 #else
10675 #  ifdef DL_GLOBAL
10676 #    define LT_DLGLOBAL         DL_GLOBAL
10677 #  else
10678 #    define LT_DLGLOBAL         0
10679 #  endif
10680 #endif
10681
10682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10683    find out it does not work in some platform. */
10684 #ifndef LT_DLLAZY_OR_NOW
10685 #  ifdef RTLD_LAZY
10686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10687 #  else
10688 #    ifdef DL_LAZY
10689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10690 #    else
10691 #      ifdef RTLD_NOW
10692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10693 #      else
10694 #        ifdef DL_NOW
10695 #          define LT_DLLAZY_OR_NOW      DL_NOW
10696 #        else
10697 #          define LT_DLLAZY_OR_NOW      0
10698 #        endif
10699 #      endif
10700 #    endif
10701 #  endif
10702 #endif
10703
10704 #ifdef __cplusplus
10705 extern "C" void exit (int);
10706 #endif
10707
10708 void fnord() { int i=42;}
10709 int main ()
10710 {
10711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10712   int status = $lt_dlunknown;
10713
10714   if (self)
10715     {
10716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10717       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10718       /* dlclose (self); */
10719     }
10720   else
10721     puts (dlerror ());
10722
10723     exit (status);
10724 }
10725 EOF
10726   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727   (eval $ac_link) 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10731     (./conftest; exit; ) >&5 2>/dev/null
10732     lt_status=$?
10733     case x$lt_status in
10734       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10735       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10736       x$lt_dlunknown|x*)  ;;
10737     esac
10738   else :
10739     # compilation failed
10740
10741   fi
10742 fi
10743 rm -fr conftest*
10744
10745           LIBS="$save_LIBS"
10746
10747 fi
10748 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10749 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10750   fi
10751 fi
10752
10753 if test x"$libltdl_cv_need_uscore" = xyes; then
10754
10755 cat >>confdefs.h <<\_ACEOF
10756 #define NEED_USCORE 1
10757 _ACEOF
10758
10759 fi
10760
10761
10762 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10763 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10764 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767   # PORTME does your system automatically load deplibs for dlopen?
10768   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10769   # For now, we just catch OSes we know something about -- in the
10770   # future, we'll try test this programmatically.
10771   libltdl_cv_sys_dlopen_deplibs=unknown
10772   case "$host_os" in
10773   aix3*|aix4.1.*|aix4.2.*)
10774     # Unknown whether this is true for these versions of AIX, but
10775     # we want this `case' here to explicitly catch those versions.
10776     libltdl_cv_sys_dlopen_deplibs=unknown
10777     ;;
10778   aix[45]*)
10779     libltdl_cv_sys_dlopen_deplibs=yes
10780     ;;
10781   darwin*)
10782     # Assuming the user has installed a libdl from somewhere, this is true
10783     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10784     libltdl_cv_sys_dlopen_deplibs=yes
10785     ;;
10786   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10787     # GNU and its variants, using gnu ld.so (Glibc)
10788     libltdl_cv_sys_dlopen_deplibs=yes
10789     ;;
10790   hpux10*|hpux11*)
10791     libltdl_cv_sys_dlopen_deplibs=yes
10792     ;;
10793   interix*)
10794     libltdl_cv_sys_dlopen_deplibs=yes
10795     ;;
10796   irix[12345]*|irix6.[01]*)
10797     # Catch all versions of IRIX before 6.2, and indicate that we don't
10798     # know how it worked for any of those versions.
10799     libltdl_cv_sys_dlopen_deplibs=unknown
10800     ;;
10801   irix*)
10802     # The case above catches anything before 6.2, and it's known that
10803     # at 6.2 and later dlopen does load deplibs.
10804     libltdl_cv_sys_dlopen_deplibs=yes
10805     ;;
10806   netbsd*)
10807     libltdl_cv_sys_dlopen_deplibs=yes
10808     ;;
10809   openbsd*)
10810     libltdl_cv_sys_dlopen_deplibs=yes
10811     ;;
10812   osf[1234]*)
10813     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10814     # it did *not* use an RPATH in a shared library to find objects the
10815     # library depends on, so we explicitly say `no'.
10816     libltdl_cv_sys_dlopen_deplibs=no
10817     ;;
10818   osf5.0|osf5.0a|osf5.1)
10819     # dlopen *does* load deplibs and with the right loader patch applied
10820     # it even uses RPATH in a shared library to search for shared objects
10821     # that the library depends on, but there's no easy way to know if that
10822     # patch is installed.  Since this is the case, all we can really
10823     # say is unknown -- it depends on the patch being installed.  If
10824     # it is, this changes to `yes'.  Without it, it would be `no'.
10825     libltdl_cv_sys_dlopen_deplibs=unknown
10826     ;;
10827   osf*)
10828     # the two cases above should catch all versions of osf <= 5.1.  Read
10829     # the comments above for what we know about them.
10830     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10831     # is used to find them so we can finally say `yes'.
10832     libltdl_cv_sys_dlopen_deplibs=yes
10833     ;;
10834   solaris*)
10835     libltdl_cv_sys_dlopen_deplibs=yes
10836     ;;
10837   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10838     libltdl_cv_sys_dlopen_deplibs=yes
10839     ;;
10840   esac
10841
10842 fi
10843 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10844 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10845 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10846
10847 cat >>confdefs.h <<\_ACEOF
10848 #define LTDL_DLOPEN_DEPLIBS 1
10849 _ACEOF
10850
10851 fi
10852
10853
10854 for ac_header in argz.h
10855 do
10856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 fi
10863 ac_res=`eval echo '${'$as_ac_Header'}'`
10864                { echo "$as_me:$LINENO: result: $ac_res" >&5
10865 echo "${ECHO_T}$ac_res" >&6; }
10866 else
10867   # Is the header compilable?
10868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 $ac_includes_default
10877 #include <$ac_header>
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_compile") 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894   { (case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_try") 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest.$ac_objext'
10904   { (case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_try") 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   ac_header_compiler=yes
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918         ac_header_compiler=no
10919 fi
10920
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10923 echo "${ECHO_T}$ac_header_compiler" >&6; }
10924
10925 # Is the header present?
10926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10928 cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934 #include <$ac_header>
10935 _ACEOF
10936 if { (ac_try="$ac_cpp conftest.$ac_ext"
10937 case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } >/dev/null; then
10949   if test -s conftest.err; then
10950     ac_cpp_err=$ac_c_preproc_warn_flag
10951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10952   else
10953     ac_cpp_err=
10954   fi
10955 else
10956   ac_cpp_err=yes
10957 fi
10958 if test -z "$ac_cpp_err"; then
10959   ac_header_preproc=yes
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964   ac_header_preproc=no
10965 fi
10966
10967 rm -f conftest.err conftest.$ac_ext
10968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 echo "${ECHO_T}$ac_header_preproc" >&6; }
10970
10971 # So?  What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10973   yes:no: )
10974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978     ac_header_preproc=yes
10979     ;;
10980   no:yes:* )
10981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10993     ( cat <<\_ASBOX
10994 ## ------------------------------------ ##
10995 ## Report this to http://llvm.org/bugs/ ##
10996 ## ------------------------------------ ##
10997 _ASBOX
10998      ) | sed "s/^/$as_me: WARNING:     /" >&2
10999     ;;
11000 esac
11001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   eval "$as_ac_Header=\$ac_header_preproc"
11007 fi
11008 ac_res=`eval echo '${'$as_ac_Header'}'`
11009                { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11011
11012 fi
11013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11014   cat >>confdefs.h <<_ACEOF
11015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11016 _ACEOF
11017
11018 fi
11019
11020 done
11021
11022
11023 { echo "$as_me:$LINENO: checking for error_t" >&5
11024 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11025 if test "${ac_cv_type_error_t+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034 #if HAVE_ARGZ_H
11035 #  include <argz.h>
11036 #endif
11037
11038 typedef error_t ac__type_new_;
11039 int
11040 main ()
11041 {
11042 if ((ac__type_new_ *) 0)
11043   return 0;
11044 if (sizeof (ac__type_new_))
11045   return 0;
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065   { (case "(($ac_try" in
11066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067   *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070   (eval "$ac_try") 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; } &&
11074          { ac_try='test -s conftest.$ac_objext'
11075   { (case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_try") 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_cv_type_error_t=yes
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089         ac_cv_type_error_t=no
11090 fi
11091
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093 fi
11094 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11095 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11096 if test $ac_cv_type_error_t = yes; then
11097
11098 cat >>confdefs.h <<_ACEOF
11099 #define HAVE_ERROR_T 1
11100 _ACEOF
11101
11102
11103 else
11104
11105 cat >>confdefs.h <<\_ACEOF
11106 #define error_t int
11107 _ACEOF
11108
11109 fi
11110
11111
11112
11113
11114
11115
11116
11117 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11118 do
11119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11133 #define $ac_func innocuous_$ac_func
11134
11135 /* System header to define __stub macros and hopefully few prototypes,
11136     which can conflict with char $ac_func (); below.
11137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138     <limits.h> exists even on freestanding compilers.  */
11139
11140 #ifdef __STDC__
11141 # include <limits.h>
11142 #else
11143 # include <assert.h>
11144 #endif
11145
11146 #undef $ac_func
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149    Use char because int might match the return type of a GCC
11150    builtin and then its argument prototype would still apply.  */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char $ac_func ();
11155 /* The GNU C library defines this for functions which it implements
11156     to always fail with ENOSYS.  Some functions are actually named
11157     something starting with __ and the normal name is an alias.  */
11158 #if defined __stub_$ac_func || defined __stub___$ac_func
11159 choke me
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165 return $ac_func ();
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_link") 2>conftest.er1
11178   ac_status=$?
11179   grep -v '^ *+' conftest.er1 >conftest.err
11180   rm -f conftest.er1
11181   cat conftest.err >&5
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } &&
11184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11185   { (case "(($ac_try" in
11186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187   *) ac_try_echo=$ac_try;;
11188 esac
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190   (eval "$ac_try") 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; } &&
11194          { ac_try='test -s conftest$ac_exeext'
11195   { (case "(($ac_try" in
11196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197   *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200   (eval "$ac_try") 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; }; then
11204   eval "$as_ac_var=yes"
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209         eval "$as_ac_var=no"
11210 fi
11211
11212 rm -f core conftest.err conftest.$ac_objext \
11213       conftest$ac_exeext conftest.$ac_ext
11214 fi
11215 ac_res=`eval echo '${'$as_ac_var'}'`
11216                { echo "$as_me:$LINENO: result: $ac_res" >&5
11217 echo "${ECHO_T}$ac_res" >&6; }
11218 if test `eval echo '${'$as_ac_var'}'` = yes; then
11219   cat >>confdefs.h <<_ACEOF
11220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11221 _ACEOF
11222
11223 fi
11224 done
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248 for ac_header in errno.h malloc.h memory.h unistd.h
11249 do
11250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 fi
11257 ac_res=`eval echo '${'$as_ac_Header'}'`
11258                { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11260 else
11261   # Is the header compilable?
11262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 $ac_includes_default
11271 #include <$ac_header>
11272 _ACEOF
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_compile") 2>conftest.er1
11281   ac_status=$?
11282   grep -v '^ *+' conftest.er1 >conftest.err
11283   rm -f conftest.er1
11284   cat conftest.err >&5
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); } &&
11287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288   { (case "(($ac_try" in
11289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290   *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293   (eval "$ac_try") 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; } &&
11297          { ac_try='test -s conftest.$ac_objext'
11298   { (case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303   (eval "$ac_try") 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }; then
11307   ac_header_compiler=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312         ac_header_compiler=no
11313 fi
11314
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11318
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 #include <$ac_header>
11329 _ACEOF
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } >/dev/null; then
11343   if test -s conftest.err; then
11344     ac_cpp_err=$ac_c_preproc_warn_flag
11345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11346   else
11347     ac_cpp_err=
11348   fi
11349 else
11350   ac_cpp_err=yes
11351 fi
11352 if test -z "$ac_cpp_err"; then
11353   ac_header_preproc=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358   ac_header_preproc=no
11359 fi
11360
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11364
11365 # So?  What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11367   yes:no: )
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372     ac_header_preproc=yes
11373     ;;
11374   no:yes:* )
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11387     ( cat <<\_ASBOX
11388 ## ------------------------------------ ##
11389 ## Report this to http://llvm.org/bugs/ ##
11390 ## ------------------------------------ ##
11391 _ASBOX
11392      ) | sed "s/^/$as_me: WARNING:     /" >&2
11393     ;;
11394 esac
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   eval "$as_ac_Header=\$ac_header_preproc"
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403                { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405
11406 fi
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408   cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11410 _ACEOF
11411
11412 fi
11413
11414 done
11415
11416
11417 for ac_header in mach-o/dyld.h
11418 do
11419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11421   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 fi
11426 ac_res=`eval echo '${'$as_ac_Header'}'`
11427                { echo "$as_me:$LINENO: result: $ac_res" >&5
11428 echo "${ECHO_T}$ac_res" >&6; }
11429 else
11430   # Is the header compilable?
11431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h.  */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h.  */
11439 $ac_includes_default
11440 #include <$ac_header>
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_compile") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457   { (case "(($ac_try" in
11458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459   *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462   (eval "$ac_try") 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; } &&
11466          { ac_try='test -s conftest.$ac_objext'
11467   { (case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_try") 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   ac_header_compiler=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481         ac_header_compiler=no
11482 fi
11483
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11486 echo "${ECHO_T}$ac_header_compiler" >&6; }
11487
11488 # Is the header present?
11489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h.  */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h.  */
11497 #include <$ac_header>
11498 _ACEOF
11499 if { (ac_try="$ac_cpp conftest.$ac_ext"
11500 case "(($ac_try" in
11501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502   *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11506   ac_status=$?
11507   grep -v '^ *+' conftest.er1 >conftest.err
11508   rm -f conftest.er1
11509   cat conftest.err >&5
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); } >/dev/null; then
11512   if test -s conftest.err; then
11513     ac_cpp_err=$ac_c_preproc_warn_flag
11514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11515   else
11516     ac_cpp_err=
11517   fi
11518 else
11519   ac_cpp_err=yes
11520 fi
11521 if test -z "$ac_cpp_err"; then
11522   ac_header_preproc=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527   ac_header_preproc=no
11528 fi
11529
11530 rm -f conftest.err conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11532 echo "${ECHO_T}$ac_header_preproc" >&6; }
11533
11534 # So?  What about this header?
11535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11536   yes:no: )
11537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11541     ac_header_preproc=yes
11542     ;;
11543   no:yes:* )
11544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11556     ( cat <<\_ASBOX
11557 ## ------------------------------------ ##
11558 ## Report this to http://llvm.org/bugs/ ##
11559 ## ------------------------------------ ##
11560 _ASBOX
11561      ) | sed "s/^/$as_me: WARNING:     /" >&2
11562     ;;
11563 esac
11564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   eval "$as_ac_Header=\$ac_header_preproc"
11570 fi
11571 ac_res=`eval echo '${'$as_ac_Header'}'`
11572                { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574
11575 fi
11576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11577   cat >>confdefs.h <<_ACEOF
11578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11579 _ACEOF
11580
11581 fi
11582
11583 done
11584
11585
11586
11587
11588
11589 for ac_func in closedir opendir readdir
11590 do
11591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11605 #define $ac_func innocuous_$ac_func
11606
11607 /* System header to define __stub macros and hopefully few prototypes,
11608     which can conflict with char $ac_func (); below.
11609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11610     <limits.h> exists even on freestanding compilers.  */
11611
11612 #ifdef __STDC__
11613 # include <limits.h>
11614 #else
11615 # include <assert.h>
11616 #endif
11617
11618 #undef $ac_func
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621    Use char because int might match the return type of a GCC
11622    builtin and then its argument prototype would still apply.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char $ac_func ();
11627 /* The GNU C library defines this for functions which it implements
11628     to always fail with ENOSYS.  Some functions are actually named
11629     something starting with __ and the normal name is an alias.  */
11630 #if defined __stub_$ac_func || defined __stub___$ac_func
11631 choke me
11632 #endif
11633
11634 int
11635 main ()
11636 {
11637 return $ac_func ();
11638   ;
11639   return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649   (eval "$ac_link") 2>conftest.er1
11650   ac_status=$?
11651   grep -v '^ *+' conftest.er1 >conftest.err
11652   rm -f conftest.er1
11653   cat conftest.err >&5
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657   { (case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_try") 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; } &&
11666          { ac_try='test -s conftest$ac_exeext'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; }; then
11676   eval "$as_ac_var=yes"
11677 else
11678   echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11680
11681         eval "$as_ac_var=no"
11682 fi
11683
11684 rm -f core conftest.err conftest.$ac_objext \
11685       conftest$ac_exeext conftest.$ac_ext
11686 fi
11687 ac_res=`eval echo '${'$as_ac_var'}'`
11688                { echo "$as_me:$LINENO: result: $ac_res" >&5
11689 echo "${ECHO_T}$ac_res" >&6; }
11690 if test `eval echo '${'$as_ac_var'}'` = yes; then
11691   cat >>confdefs.h <<_ACEOF
11692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11693 _ACEOF
11694
11695 fi
11696 done
11697
11698
11699
11700 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11701 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11702
11703 ICC=no
11704 IXX=no
11705 case $CC in
11706   icc*|icpc*)
11707     ICC=yes
11708     IXX=yes
11709     ;;
11710    *)
11711     ;;
11712 esac
11713
11714 if test "$GCC" != "yes" && test "$ICC" != "yes"
11715 then
11716   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11717 echo "$as_me: error: gcc|icc required but not found" >&2;}
11718    { (exit 1); exit 1; }; }
11719 fi
11720
11721 if test "$GXX" != "yes" && test "$IXX" != "yes"
11722 then
11723   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11724 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11725    { (exit 1); exit 1; }; }
11726 fi
11727
11728 if test "$GCC" = "yes"
11729 then
11730   cat >conftest.$ac_ext <<_ACEOF
11731
11732   /* confdefs.h.  */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h.  */
11737
11738     #if !defined(__GNUC__) || __GNUC__ < 3
11739     #error Unsupported GCC version
11740     #endif
11741
11742
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (ac_try="$ac_compile"
11746 case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_compile") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759   { (case "(($ac_try" in
11760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761   *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764   (eval "$ac_try") 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest.$ac_objext'
11769   { (case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_try") 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   :
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11784 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11785    { (exit 1); exit 1; }; }
11786 fi
11787
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789 fi
11790
11791 if test -z "$llvm_cv_gnu_make_command"
11792 then
11793   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11794 echo "$as_me: error: GNU Make required but not found" >&2;}
11795    { (exit 1); exit 1; }; }
11796 fi
11797
11798 { echo "$as_me:$LINENO: result: ok" >&5
11799 echo "${ECHO_T}ok" >&6; }
11800
11801 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11802 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11803 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11804
11805 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11806
11807 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11808
11809
11810 NO_UNINITIALIZED=
11811 NO_MAYBE_UNINITIALIZED=
11812 if test "$GXX" = "yes"
11813 then
11814   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11815
11816         if test -z "$NO_MAYBE_UNINITIALIZED"
11817   then
11818     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11819
11820   fi
11821 fi
11822 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11823 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11824
11825
11826 # Check whether --with-python was given.
11827 if test "${with_python+set}" = set; then
11828   withval=$with_python; PYTHON="$withval"
11829 fi
11830
11831
11832 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11833   { echo "$as_me:$LINENO: checking for python" >&5
11834 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11835   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11836 echo "${ECHO_T}user defined: $with_python" >&6; }
11837 else
11838   if test -n "$PYTHON" ; then
11839     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11840 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11841   fi
11842
11843   # Extract the first word of "python python2 python26", so it can be a program name with args.
11844 set dummy python python2 python26; ac_word=$2
11845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11847 if test "${ac_cv_path_PYTHON+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   case $PYTHON in
11851   [\\/]* | ?:[\\/]*)
11852   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11853   ;;
11854   *)
11855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH
11857 do
11858   IFS=$as_save_IFS
11859   test -z "$as_dir" && as_dir=.
11860   for ac_exec_ext in '' $ac_executable_extensions; do
11861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11862     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11864     break 2
11865   fi
11866 done
11867 done
11868 IFS=$as_save_IFS
11869
11870   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11871 echo "${ECHO_T}not found" >&6; }
11872                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11873 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11874    { (exit 1); exit 1; }; }"
11875   ;;
11876 esac
11877 fi
11878 PYTHON=$ac_cv_path_PYTHON
11879 if test -n "$PYTHON"; then
11880   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11881 echo "${ECHO_T}$PYTHON" >&6; }
11882 else
11883   { echo "$as_me:$LINENO: result: no" >&5
11884 echo "${ECHO_T}no" >&6; }
11885 fi
11886
11887
11888 fi
11889
11890 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11891 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11892 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11893 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11894 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11895 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11896 if test "$ac_python_version_major" -gt "2" || \
11897    (test "$ac_python_version_major" -eq "2" && \
11898     test "$ac_python_version_minor" -ge "5") ; then
11899   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11900 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11901 else
11902   { echo "$as_me:$LINENO: result: not found" >&5
11903 echo "${ECHO_T}not found" >&6; }
11904   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11905 See \`config.log' for more details." >&5
11906 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11907 See \`config.log' for more details." >&2;}
11908    { (exit 1); exit 1; }; }
11909 fi
11910
11911
11912
11913 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11914 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11915 if test "${ac_cv_lib_m_sin+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-lm  $LIBS"
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926
11927 /* Override any GCC internal prototype to avoid an error.
11928    Use char because int might match the return type of a GCC
11929    builtin and then its argument prototype would still apply.  */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char sin ();
11934 int
11935 main ()
11936 {
11937 return sin ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_link") 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957   { (case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_try") 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_try") 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   ac_cv_lib_m_sin=yes
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981         ac_cv_lib_m_sin=no
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11989 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11990 if test $ac_cv_lib_m_sin = yes; then
11991   cat >>confdefs.h <<_ACEOF
11992 #define HAVE_LIBM 1
11993 _ACEOF
11994
11995   LIBS="-lm $LIBS"
11996
11997 fi
11998
11999 if test "$llvm_cv_os_type" = "MingW" ; then
12000
12001 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12002 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12003 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006   ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-limagehlp  $LIBS"
12008 cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014
12015
12016 int
12017 main ()
12018 {
12019 return main ();
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039   { (case "(($ac_try" in
12040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041   *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044   (eval "$ac_try") 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (case "(($ac_try" in
12050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051   *) ac_try_echo=$ac_try;;
12052 esac
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054   (eval "$ac_try") 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); }; }; then
12058   ac_cv_lib_imagehlp_main=yes
12059 else
12060   echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063         ac_cv_lib_imagehlp_main=no
12064 fi
12065
12066 rm -f core conftest.err conftest.$ac_objext \
12067       conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12069 fi
12070 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12071 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12072 if test $ac_cv_lib_imagehlp_main = yes; then
12073   cat >>confdefs.h <<_ACEOF
12074 #define HAVE_LIBIMAGEHLP 1
12075 _ACEOF
12076
12077   LIBS="-limagehlp $LIBS"
12078
12079 fi
12080
12081
12082 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12083 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12084 if test "${ac_cv_lib_psapi_main+set}" = set; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-lpsapi  $LIBS"
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095
12096
12097 int
12098 main ()
12099 {
12100 return main ();
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
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_link") 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_exeext'
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   ac_cv_lib_psapi_main=yes
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144         ac_cv_lib_psapi_main=no
12145 fi
12146
12147 rm -f core conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12152 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12153 if test $ac_cv_lib_psapi_main = yes; then
12154   cat >>confdefs.h <<_ACEOF
12155 #define HAVE_LIBPSAPI 1
12156 _ACEOF
12157
12158   LIBS="-lpsapi $LIBS"
12159
12160 fi
12161
12162
12163 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12164 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12165 if test "${ac_cv_lib_shell32_main+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-lshell32  $LIBS"
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176
12177
12178 int
12179 main ()
12180 {
12181 return main ();
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190   *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193   (eval "$ac_link") 2>conftest.er1
12194   ac_status=$?
12195   grep -v '^ *+' conftest.er1 >conftest.err
12196   rm -f conftest.er1
12197   cat conftest.err >&5
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201   { (case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_try") 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; } &&
12210          { ac_try='test -s conftest$ac_exeext'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_cv_lib_shell32_main=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225         ac_cv_lib_shell32_main=no
12226 fi
12227
12228 rm -f core conftest.err conftest.$ac_objext \
12229       conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12233 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12234 if test $ac_cv_lib_shell32_main = yes; then
12235   cat >>confdefs.h <<_ACEOF
12236 #define HAVE_LIBSHELL32 1
12237 _ACEOF
12238
12239   LIBS="-lshell32 $LIBS"
12240
12241 fi
12242
12243 fi
12244
12245 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12246 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12247 if test "${ac_cv_search_dlopen+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   ac_func_search_save_LIBS=$LIBS
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char dlopen ();
12265 int
12266 main ()
12267 {
12268 return dlopen ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 for ac_lib in '' dl; do
12274   if test -z "$ac_lib"; then
12275     ac_res="none required"
12276   else
12277     ac_res=-l$ac_lib
12278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12279   fi
12280   rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (ac_try="$ac_link"
12282 case "(($ac_try" in
12283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284   *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287   (eval "$ac_link") 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } &&
12294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295   { (case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_try") 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest$ac_exeext'
12305   { (case "(($ac_try" in
12306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307   *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310   (eval "$ac_try") 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; }; then
12314   ac_cv_search_dlopen=$ac_res
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319
12320 fi
12321
12322 rm -f core conftest.err conftest.$ac_objext \
12323       conftest$ac_exeext
12324   if test "${ac_cv_search_dlopen+set}" = set; then
12325   break
12326 fi
12327 done
12328 if test "${ac_cv_search_dlopen+set}" = set; then
12329   :
12330 else
12331   ac_cv_search_dlopen=no
12332 fi
12333 rm conftest.$ac_ext
12334 LIBS=$ac_func_search_save_LIBS
12335 fi
12336 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12337 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12338 ac_res=$ac_cv_search_dlopen
12339 if test "$ac_res" != no; then
12340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12341
12342 cat >>confdefs.h <<\_ACEOF
12343 #define HAVE_DLOPEN 1
12344 _ACEOF
12345
12346 else
12347   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12348 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12349 fi
12350
12351
12352 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12353 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12354 if test "${ac_cv_search_clock_gettime+set}" = set; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   ac_func_search_save_LIBS=$LIBS
12358 cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h.  */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h.  */
12364
12365 /* Override any GCC internal prototype to avoid an error.
12366    Use char because int might match the return type of a GCC
12367    builtin and then its argument prototype would still apply.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char clock_gettime ();
12372 int
12373 main ()
12374 {
12375 return clock_gettime ();
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 for ac_lib in '' rt; do
12381   if test -z "$ac_lib"; then
12382     ac_res="none required"
12383   else
12384     ac_res=-l$ac_lib
12385     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12386   fi
12387   rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (ac_try="$ac_link"
12389 case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_link") 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12402   { (case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_try") 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; } &&
12411          { ac_try='test -s conftest$ac_exeext'
12412   { (case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_try") 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; }; then
12421   ac_cv_search_clock_gettime=$ac_res
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426
12427 fi
12428
12429 rm -f core conftest.err conftest.$ac_objext \
12430       conftest$ac_exeext
12431   if test "${ac_cv_search_clock_gettime+set}" = set; then
12432   break
12433 fi
12434 done
12435 if test "${ac_cv_search_clock_gettime+set}" = set; then
12436   :
12437 else
12438   ac_cv_search_clock_gettime=no
12439 fi
12440 rm conftest.$ac_ext
12441 LIBS=$ac_func_search_save_LIBS
12442 fi
12443 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12444 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12445 ac_res=$ac_cv_search_clock_gettime
12446 if test "$ac_res" != no; then
12447   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12448
12449 fi
12450
12451
12452 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12453     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12454 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12455 if test "${ac_cv_search_setupterm+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   ac_func_search_save_LIBS=$LIBS
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467    Use char because int might match the return type of a GCC
12468    builtin and then its argument prototype would still apply.  */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char setupterm ();
12473 int
12474 main ()
12475 {
12476 return setupterm ();
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12482   if test -z "$ac_lib"; then
12483     ac_res="none required"
12484   else
12485     ac_res=-l$ac_lib
12486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12487   fi
12488   rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_link") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12503   { (case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508   (eval "$ac_try") 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; } &&
12512          { ac_try='test -s conftest$ac_exeext'
12513   { (case "(($ac_try" in
12514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515   *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518   (eval "$ac_try") 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; }; then
12522   ac_cv_search_setupterm=$ac_res
12523 else
12524   echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527
12528 fi
12529
12530 rm -f core conftest.err conftest.$ac_objext \
12531       conftest$ac_exeext
12532   if test "${ac_cv_search_setupterm+set}" = set; then
12533   break
12534 fi
12535 done
12536 if test "${ac_cv_search_setupterm+set}" = set; then
12537   :
12538 else
12539   ac_cv_search_setupterm=no
12540 fi
12541 rm conftest.$ac_ext
12542 LIBS=$ac_func_search_save_LIBS
12543 fi
12544 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12545 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12546 ac_res=$ac_cv_search_setupterm
12547 if test "$ac_res" != no; then
12548   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12549
12550 cat >>confdefs.h <<\_ACEOF
12551 #define HAVE_TERMINFO 1
12552 _ACEOF
12553
12554 fi
12555
12556 fi
12557
12558 if test "$llvm_cv_enable_libffi" = "yes" ; then
12559   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12560 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12561 if test "${ac_cv_search_ffi_call+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   ac_func_search_save_LIBS=$LIBS
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571
12572 /* Override any GCC internal prototype to avoid an error.
12573    Use char because int might match the return type of a GCC
12574    builtin and then its argument prototype would still apply.  */
12575 #ifdef __cplusplus
12576 extern "C"
12577 #endif
12578 char ffi_call ();
12579 int
12580 main ()
12581 {
12582 return ffi_call ();
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 for ac_lib in '' ffi; do
12588   if test -z "$ac_lib"; then
12589     ac_res="none required"
12590   else
12591     ac_res=-l$ac_lib
12592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12593   fi
12594   rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601   (eval "$ac_link") 2>conftest.er1
12602   ac_status=$?
12603   grep -v '^ *+' conftest.er1 >conftest.err
12604   rm -f conftest.er1
12605   cat conftest.err >&5
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); } &&
12608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12609   { (case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_try") 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; } &&
12618          { ac_try='test -s conftest$ac_exeext'
12619   { (case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_try") 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   ac_cv_search_ffi_call=$ac_res
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633
12634 fi
12635
12636 rm -f core conftest.err conftest.$ac_objext \
12637       conftest$ac_exeext
12638   if test "${ac_cv_search_ffi_call+set}" = set; then
12639   break
12640 fi
12641 done
12642 if test "${ac_cv_search_ffi_call+set}" = set; then
12643   :
12644 else
12645   ac_cv_search_ffi_call=no
12646 fi
12647 rm conftest.$ac_ext
12648 LIBS=$ac_func_search_save_LIBS
12649 fi
12650 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12651 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12652 ac_res=$ac_cv_search_ffi_call
12653 if test "$ac_res" != no; then
12654   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_FFI_CALL 1
12658 _ACEOF
12659
12660 else
12661   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12662 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12663    { (exit 1); exit 1; }; }
12664 fi
12665
12666 fi
12667
12668 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12669 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12670 if test "${ac_cv_search_mallinfo+set}" = set; then
12671   echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673   ac_func_search_save_LIBS=$LIBS
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682    Use char because int might match the return type of a GCC
12683    builtin and then its argument prototype would still apply.  */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char mallinfo ();
12688 int
12689 main ()
12690 {
12691 return mallinfo ();
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 for ac_lib in '' malloc; do
12697   if test -z "$ac_lib"; then
12698     ac_res="none required"
12699   else
12700     ac_res=-l$ac_lib
12701     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12702   fi
12703   rm -f conftest.$ac_objext conftest$ac_exeext
12704 if { (ac_try="$ac_link"
12705 case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_link") 2>conftest.er1
12711   ac_status=$?
12712   grep -v '^ *+' conftest.er1 >conftest.err
12713   rm -f conftest.er1
12714   cat conftest.err >&5
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } &&
12717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12718   { (case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723   (eval "$ac_try") 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; } &&
12727          { ac_try='test -s conftest$ac_exeext'
12728   { (case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733   (eval "$ac_try") 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737   ac_cv_search_mallinfo=$ac_res
12738 else
12739   echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742
12743 fi
12744
12745 rm -f core conftest.err conftest.$ac_objext \
12746       conftest$ac_exeext
12747   if test "${ac_cv_search_mallinfo+set}" = set; then
12748   break
12749 fi
12750 done
12751 if test "${ac_cv_search_mallinfo+set}" = set; then
12752   :
12753 else
12754   ac_cv_search_mallinfo=no
12755 fi
12756 rm conftest.$ac_ext
12757 LIBS=$ac_func_search_save_LIBS
12758 fi
12759 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12760 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12761 ac_res=$ac_cv_search_mallinfo
12762 if test "$ac_res" != no; then
12763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12764
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_MALLINFO 1
12767 _ACEOF
12768
12769 fi
12770
12771
12772 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12773
12774 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12775 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12776 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-lpthread  $LIBS"
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787
12788 /* Override any GCC internal prototype to avoid an error.
12789    Use char because int might match the return type of a GCC
12790    builtin and then its argument prototype would still apply.  */
12791 #ifdef __cplusplus
12792 extern "C"
12793 #endif
12794 char pthread_mutex_init ();
12795 int
12796 main ()
12797 {
12798 return pthread_mutex_init ();
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810   (eval "$ac_link") 2>conftest.er1
12811   ac_status=$?
12812   grep -v '^ *+' conftest.er1 >conftest.err
12813   rm -f conftest.er1
12814   cat conftest.err >&5
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818   { (case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823   (eval "$ac_try") 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; } &&
12827          { ac_try='test -s conftest$ac_exeext'
12828   { (case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_try") 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   ac_cv_lib_pthread_pthread_mutex_init=yes
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842         ac_cv_lib_pthread_pthread_mutex_init=no
12843 fi
12844
12845 rm -f core conftest.err conftest.$ac_objext \
12846       conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12850 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12851 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12852   cat >>confdefs.h <<_ACEOF
12853 #define HAVE_LIBPTHREAD 1
12854 _ACEOF
12855
12856   LIBS="-lpthread $LIBS"
12857
12858 fi
12859
12860   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12861 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12862 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   ac_func_search_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872
12873 /* Override any GCC internal prototype to avoid an error.
12874    Use char because int might match the return type of a GCC
12875    builtin and then its argument prototype would still apply.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 char pthread_mutex_lock ();
12880 int
12881 main ()
12882 {
12883 return pthread_mutex_lock ();
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 for ac_lib in '' pthread; do
12889   if test -z "$ac_lib"; then
12890     ac_res="none required"
12891   else
12892     ac_res=-l$ac_lib
12893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12894   fi
12895   rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_link") 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } &&
12909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910   { (case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915   (eval "$ac_try") 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest$ac_exeext'
12920   { (case "(($ac_try" in
12921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922   *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925   (eval "$ac_try") 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); }; }; then
12929   ac_cv_search_pthread_mutex_lock=$ac_res
12930 else
12931   echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934
12935 fi
12936
12937 rm -f core conftest.err conftest.$ac_objext \
12938       conftest$ac_exeext
12939   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12940   break
12941 fi
12942 done
12943 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12944   :
12945 else
12946   ac_cv_search_pthread_mutex_lock=no
12947 fi
12948 rm conftest.$ac_ext
12949 LIBS=$ac_func_search_save_LIBS
12950 fi
12951 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12952 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12953 ac_res=$ac_cv_search_pthread_mutex_lock
12954 if test "$ac_res" != no; then
12955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12956
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_PTHREAD_MUTEX_LOCK 1
12959 _ACEOF
12960
12961 fi
12962
12963   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12964 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12965 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12966   echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968   ac_func_search_save_LIBS=$LIBS
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975
12976 /* Override any GCC internal prototype to avoid an error.
12977    Use char because int might match the return type of a GCC
12978    builtin and then its argument prototype would still apply.  */
12979 #ifdef __cplusplus
12980 extern "C"
12981 #endif
12982 char pthread_rwlock_init ();
12983 int
12984 main ()
12985 {
12986 return pthread_rwlock_init ();
12987   ;
12988   return 0;
12989 }
12990 _ACEOF
12991 for ac_lib in '' pthread; do
12992   if test -z "$ac_lib"; then
12993     ac_res="none required"
12994   else
12995     ac_res=-l$ac_lib
12996     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12997   fi
12998   rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (ac_try="$ac_link"
13000 case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_link") 2>conftest.er1
13006   ac_status=$?
13007   grep -v '^ *+' conftest.er1 >conftest.err
13008   rm -f conftest.er1
13009   cat conftest.err >&5
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } &&
13012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013   { (case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018   (eval "$ac_try") 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; } &&
13022          { ac_try='test -s conftest$ac_exeext'
13023   { (case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_try") 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032   ac_cv_search_pthread_rwlock_init=$ac_res
13033 else
13034   echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037
13038 fi
13039
13040 rm -f core conftest.err conftest.$ac_objext \
13041       conftest$ac_exeext
13042   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13043   break
13044 fi
13045 done
13046 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13047   :
13048 else
13049   ac_cv_search_pthread_rwlock_init=no
13050 fi
13051 rm conftest.$ac_ext
13052 LIBS=$ac_func_search_save_LIBS
13053 fi
13054 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13055 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13056 ac_res=$ac_cv_search_pthread_rwlock_init
13057 if test "$ac_res" != no; then
13058   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13059
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_PTHREAD_RWLOCK_INIT 1
13062 _ACEOF
13063
13064 fi
13065
13066   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13067 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13068 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   ac_func_search_save_LIBS=$LIBS
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h.  */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h.  */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080    Use char because int might match the return type of a GCC
13081    builtin and then its argument prototype would still apply.  */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char pthread_getspecific ();
13086 int
13087 main ()
13088 {
13089 return pthread_getspecific ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 for ac_lib in '' pthread; do
13095   if test -z "$ac_lib"; then
13096     ac_res="none required"
13097   else
13098     ac_res=-l$ac_lib
13099     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13100   fi
13101   rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105   *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108   (eval "$ac_link") 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } &&
13115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116   { (case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_try") 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; } &&
13125          { ac_try='test -s conftest$ac_exeext'
13126   { (case "(($ac_try" in
13127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128   *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131   (eval "$ac_try") 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; }; then
13135   ac_cv_search_pthread_getspecific=$ac_res
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140
13141 fi
13142
13143 rm -f core conftest.err conftest.$ac_objext \
13144       conftest$ac_exeext
13145   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13146   break
13147 fi
13148 done
13149 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13150   :
13151 else
13152   ac_cv_search_pthread_getspecific=no
13153 fi
13154 rm conftest.$ac_ext
13155 LIBS=$ac_func_search_save_LIBS
13156 fi
13157 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13158 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13159 ac_res=$ac_cv_search_pthread_getspecific
13160 if test "$ac_res" != no; then
13161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13162
13163 cat >>confdefs.h <<\_ACEOF
13164 #define HAVE_PTHREAD_GETSPECIFIC 1
13165 _ACEOF
13166
13167 fi
13168
13169 fi
13170
13171 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13172
13173 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13174 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13175 if test "${ac_cv_lib_z_compress2+set}" = set; then
13176   echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178   ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-lz  $LIBS"
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h.  */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h.  */
13186
13187 /* Override any GCC internal prototype to avoid an error.
13188    Use char because int might match the return type of a GCC
13189    builtin and then its argument prototype would still apply.  */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 char compress2 ();
13194 int
13195 main ()
13196 {
13197 return compress2 ();
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (ac_try="$ac_link"
13204 case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209   (eval "$ac_link") 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217   { (case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_try") 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; } &&
13226          { ac_try='test -s conftest$ac_exeext'
13227   { (case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232   (eval "$ac_try") 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   ac_cv_lib_z_compress2=yes
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241         ac_cv_lib_z_compress2=no
13242 fi
13243
13244 rm -f core conftest.err conftest.$ac_objext \
13245       conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13247 fi
13248 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13249 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13250 if test $ac_cv_lib_z_compress2 = yes; then
13251   cat >>confdefs.h <<_ACEOF
13252 #define HAVE_LIBZ 1
13253 _ACEOF
13254
13255   LIBS="-lz $LIBS"
13256
13257 fi
13258
13259 fi
13260
13261
13262 # Check whether --with-udis86 was given.
13263 if test "${with_udis86+set}" = set; then
13264   withval=$with_udis86;
13265       USE_UDIS86=1
13266
13267       case "$withval" in
13268         /usr/lib|yes) ;;
13269         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13270       esac
13271
13272 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13273 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13274 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-ludis86  $LIBS"
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285
13286 /* Override any GCC internal prototype to avoid an error.
13287    Use char because int might match the return type of a GCC
13288    builtin and then its argument prototype would still apply.  */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 char ud_init ();
13293 int
13294 main ()
13295 {
13296 return ud_init ();
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_link") 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } &&
13315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; } &&
13325          { ac_try='test -s conftest$ac_exeext'
13326   { (case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_try") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_cv_lib_udis86_ud_init=yes
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340         ac_cv_lib_udis86_ud_init=no
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext \
13344       conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13346 fi
13347 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13348 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13349 if test $ac_cv_lib_udis86_ud_init = yes; then
13350   cat >>confdefs.h <<_ACEOF
13351 #define HAVE_LIBUDIS86 1
13352 _ACEOF
13353
13354   LIBS="-ludis86 $LIBS"
13355
13356 else
13357
13358         echo "Error! You need to have libudis86 around."
13359         exit -1
13360
13361 fi
13362
13363
13364 else
13365   USE_UDIS86=0
13366
13367 fi
13368
13369
13370 cat >>confdefs.h <<_ACEOF
13371 #define USE_UDIS86 $USE_UDIS86
13372 _ACEOF
13373
13374
13375
13376 # Check whether --with-oprofile was given.
13377 if test "${with_oprofile+set}" = set; then
13378   withval=$with_oprofile;
13379       USE_OPROFILE=1
13380
13381       case "$withval" in
13382         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13383         no) llvm_cv_oppath=
13384             USE_OPROFILE=0
13385  ;;
13386         *) llvm_cv_oppath="${withval}/lib/oprofile"
13387            CPPFLAGS="-I${withval}/include";;
13388       esac
13389       case $llvm_cv_os_type in
13390         Linux)
13391           if test -n "$llvm_cv_oppath" ; then
13392             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13393                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13394 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13395 if test "${ac_cv_search_bfd_init+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   ac_func_search_save_LIBS=$LIBS
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405
13406 /* Override any GCC internal prototype to avoid an error.
13407    Use char because int might match the return type of a GCC
13408    builtin and then its argument prototype would still apply.  */
13409 #ifdef __cplusplus
13410 extern "C"
13411 #endif
13412 char bfd_init ();
13413 int
13414 main ()
13415 {
13416 return bfd_init ();
13417   ;
13418   return 0;
13419 }
13420 _ACEOF
13421 for ac_lib in '' bfd; do
13422   if test -z "$ac_lib"; then
13423     ac_res="none required"
13424   else
13425     ac_res=-l$ac_lib
13426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13427   fi
13428   rm -f conftest.$ac_objext conftest$ac_exeext
13429 if { (ac_try="$ac_link"
13430 case "(($ac_try" in
13431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432   *) ac_try_echo=$ac_try;;
13433 esac
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435   (eval "$ac_link") 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13443   { (case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448   (eval "$ac_try") 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; } &&
13452          { ac_try='test -s conftest$ac_exeext'
13453   { (case "(($ac_try" in
13454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455   *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458   (eval "$ac_try") 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_search_bfd_init=$ac_res
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467
13468 fi
13469
13470 rm -f core conftest.err conftest.$ac_objext \
13471       conftest$ac_exeext
13472   if test "${ac_cv_search_bfd_init+set}" = set; then
13473   break
13474 fi
13475 done
13476 if test "${ac_cv_search_bfd_init+set}" = set; then
13477   :
13478 else
13479   ac_cv_search_bfd_init=no
13480 fi
13481 rm conftest.$ac_ext
13482 LIBS=$ac_func_search_save_LIBS
13483 fi
13484 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13485 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13486 ac_res=$ac_cv_search_bfd_init
13487 if test "$ac_res" != no; then
13488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13489
13490 fi
13491
13492             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13493 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13494 if test "${ac_cv_search_op_open_agent+set}" = set; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   ac_func_search_save_LIBS=$LIBS
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504
13505 /* Override any GCC internal prototype to avoid an error.
13506    Use char because int might match the return type of a GCC
13507    builtin and then its argument prototype would still apply.  */
13508 #ifdef __cplusplus
13509 extern "C"
13510 #endif
13511 char op_open_agent ();
13512 int
13513 main ()
13514 {
13515 return op_open_agent ();
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 for ac_lib in '' opagent; do
13521   if test -z "$ac_lib"; then
13522     ac_res="none required"
13523   else
13524     ac_res=-l$ac_lib
13525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13526   fi
13527   rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_link") 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13542   { (case "(($ac_try" in
13543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544   *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547   (eval "$ac_try") 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; } &&
13551          { ac_try='test -s conftest$ac_exeext'
13552   { (case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_try") 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; }; then
13561   ac_cv_search_op_open_agent=$ac_res
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566
13567 fi
13568
13569 rm -f core conftest.err conftest.$ac_objext \
13570       conftest$ac_exeext
13571   if test "${ac_cv_search_op_open_agent+set}" = set; then
13572   break
13573 fi
13574 done
13575 if test "${ac_cv_search_op_open_agent+set}" = set; then
13576   :
13577 else
13578   ac_cv_search_op_open_agent=no
13579 fi
13580 rm conftest.$ac_ext
13581 LIBS=$ac_func_search_save_LIBS
13582 fi
13583 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13584 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13585 ac_res=$ac_cv_search_op_open_agent
13586 if test "$ac_res" != no; then
13587   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13588
13589 else
13590
13591               echo "Error! You need to have libopagent around."
13592               exit -1
13593
13594 fi
13595
13596             if test "${ac_cv_header_opagent_h+set}" = set; then
13597   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13598 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13599 if test "${ac_cv_header_opagent_h+set}" = set; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 fi
13602 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13603 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13604 else
13605   # Is the header compilable?
13606 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13607 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614 $ac_includes_default
13615 #include <opagent.h>
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (ac_try="$ac_compile"
13619 case "(($ac_try" in
13620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621   *) ac_try_echo=$ac_try;;
13622 esac
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624   (eval "$ac_compile") 2>conftest.er1
13625   ac_status=$?
13626   grep -v '^ *+' conftest.er1 >conftest.err
13627   rm -f conftest.er1
13628   cat conftest.err >&5
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); } &&
13631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13632   { (case "(($ac_try" in
13633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634   *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637   (eval "$ac_try") 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; } &&
13641          { ac_try='test -s conftest.$ac_objext'
13642   { (case "(($ac_try" in
13643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644   *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647   (eval "$ac_try") 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; }; then
13651   ac_header_compiler=yes
13652 else
13653   echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656         ac_header_compiler=no
13657 fi
13658
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13661 echo "${ECHO_T}$ac_header_compiler" >&6; }
13662
13663 # Is the header present?
13664 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13665 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672 #include <opagent.h>
13673 _ACEOF
13674 if { (ac_try="$ac_cpp conftest.$ac_ext"
13675 case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13681   ac_status=$?
13682   grep -v '^ *+' conftest.er1 >conftest.err
13683   rm -f conftest.er1
13684   cat conftest.err >&5
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } >/dev/null; then
13687   if test -s conftest.err; then
13688     ac_cpp_err=$ac_c_preproc_warn_flag
13689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13690   else
13691     ac_cpp_err=
13692   fi
13693 else
13694   ac_cpp_err=yes
13695 fi
13696 if test -z "$ac_cpp_err"; then
13697   ac_header_preproc=yes
13698 else
13699   echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702   ac_header_preproc=no
13703 fi
13704
13705 rm -f conftest.err conftest.$ac_ext
13706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13707 echo "${ECHO_T}$ac_header_preproc" >&6; }
13708
13709 # So?  What about this header?
13710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13711   yes:no: )
13712     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13713 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13714     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13715 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13716     ac_header_preproc=yes
13717     ;;
13718   no:yes:* )
13719     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13720 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13721     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13722 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13723     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13724 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13725     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13726 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13727     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13728 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13729     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13730 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13731     ( cat <<\_ASBOX
13732 ## ------------------------------------ ##
13733 ## Report this to http://llvm.org/bugs/ ##
13734 ## ------------------------------------ ##
13735 _ASBOX
13736      ) | sed "s/^/$as_me: WARNING:     /" >&2
13737     ;;
13738 esac
13739 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13740 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13741 if test "${ac_cv_header_opagent_h+set}" = set; then
13742   echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744   ac_cv_header_opagent_h=$ac_header_preproc
13745 fi
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13748
13749 fi
13750 if test $ac_cv_header_opagent_h = yes; then
13751   :
13752 else
13753
13754               echo "Error! You need to have opagent.h around."
13755               exit -1
13756
13757 fi
13758
13759
13760           fi ;;
13761         *)
13762           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13763 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13764    { (exit 1); exit 1; }; } ;;
13765       esac
13766
13767 else
13768
13769       USE_OPROFILE=0
13770
13771
13772 fi
13773
13774
13775 cat >>confdefs.h <<_ACEOF
13776 #define LLVM_USE_OPROFILE $USE_OPROFILE
13777 _ACEOF
13778
13779
13780
13781 # Check whether --with-intel-jitevents was given.
13782 if test "${with_intel_jitevents+set}" = set; then
13783   withval=$with_intel_jitevents;
13784        case "$withval" in
13785           yes) USE_INTEL_JITEVENTS=1
13786 ;;
13787           no)  USE_INTEL_JITEVENTS=0
13788 ;;
13789           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13790 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13791    { (exit 1); exit 1; }; };;
13792        esac
13793
13794       case $llvm_cv_os_type in
13795         Linux|Win32|Cygwin|MingW) ;;
13796         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13797 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13798    { (exit 1); exit 1; }; };;
13799       esac
13800
13801       case "$llvm_cv_target_arch" in
13802         x86|x86_64) ;;
13803         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13804 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13805    { (exit 1); exit 1; }; };;
13806       esac
13807
13808 else
13809
13810       USE_INTEL_JITEVENTS=0
13811
13812
13813 fi
13814
13815
13816 cat >>confdefs.h <<_ACEOF
13817 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13818 _ACEOF
13819
13820
13821 for ac_prog in xml2-config
13822 do
13823   # Extract the first word of "$ac_prog", so it can be a program name with args.
13824 set dummy $ac_prog; ac_word=$2
13825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13827 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   if test -n "$XML2CONFIG"; then
13831   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836   IFS=$as_save_IFS
13837   test -z "$as_dir" && as_dir=.
13838   for ac_exec_ext in '' $ac_executable_extensions; do
13839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13840     ac_cv_prog_XML2CONFIG="$ac_prog"
13841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13842     break 2
13843   fi
13844 done
13845 done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13851 if test -n "$XML2CONFIG"; then
13852   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13853 echo "${ECHO_T}$XML2CONFIG" >&6; }
13854 else
13855   { echo "$as_me:$LINENO: result: no" >&5
13856 echo "${ECHO_T}no" >&6; }
13857 fi
13858
13859
13860   test -n "$XML2CONFIG" && break
13861 done
13862
13863
13864 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13865 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13866 if test "x$XML2CONFIG" = "x"; then
13867  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13868 echo "${ECHO_T}xml2-config not found" >&6; }
13869 else
13870  LIBXML2_INC=`$XML2CONFIG --cflags`
13871  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13872 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13873  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13874 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13875 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-lxml2  $LIBS"
13880 cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h.  */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h.  */
13886
13887 /* Override any GCC internal prototype to avoid an error.
13888    Use char because int might match the return type of a GCC
13889    builtin and then its argument prototype would still apply.  */
13890 #ifdef __cplusplus
13891 extern "C"
13892 #endif
13893 char xmlReadFile ();
13894 int
13895 main ()
13896 {
13897 return xmlReadFile ();
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (ac_try="$ac_link"
13904 case "(($ac_try" in
13905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906   *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909   (eval "$ac_link") 2>conftest.er1
13910   ac_status=$?
13911   grep -v '^ *+' conftest.er1 >conftest.err
13912   rm -f conftest.er1
13913   cat conftest.err >&5
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); } &&
13916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13917   { (case "(($ac_try" in
13918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919   *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922   (eval "$ac_try") 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; } &&
13926          { ac_try='test -s conftest$ac_exeext'
13927   { (case "(($ac_try" in
13928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929   *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932   (eval "$ac_try") 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }; then
13936   ac_cv_lib_xml2_xmlReadFile=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941         ac_cv_lib_xml2_xmlReadFile=no
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext \
13945       conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13947 fi
13948 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13949 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13950 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13951
13952 cat >>confdefs.h <<\_ACEOF
13953 #define CLANG_HAVE_LIBXML 1
13954 _ACEOF
13955
13956                                 LIBXML2_LIBS="-lxml2"
13957 fi
13958
13959 fi
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969 ac_header_dirent=no
13970 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13971   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13972 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13973 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 #include <sys/types.h>
13984 #include <$ac_hdr>
13985
13986 int
13987 main ()
13988 {
13989 if ((DIR *) 0)
13990 return 0;
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_compile") 2>conftest.er1
14003   ac_status=$?
14004   grep -v '^ *+' conftest.er1 >conftest.err
14005   rm -f conftest.er1
14006   cat conftest.err >&5
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); } &&
14009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14010   { (case "(($ac_try" in
14011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012   *) ac_try_echo=$ac_try;;
14013 esac
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015   (eval "$ac_try") 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; } &&
14019          { ac_try='test -s conftest.$ac_objext'
14020   { (case "(($ac_try" in
14021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022   *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025   (eval "$ac_try") 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029   eval "$as_ac_Header=yes"
14030 else
14031   echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034         eval "$as_ac_Header=no"
14035 fi
14036
14037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14038 fi
14039 ac_res=`eval echo '${'$as_ac_Header'}'`
14040                { echo "$as_me:$LINENO: result: $ac_res" >&5
14041 echo "${ECHO_T}$ac_res" >&6; }
14042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043   cat >>confdefs.h <<_ACEOF
14044 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14045 _ACEOF
14046
14047 ac_header_dirent=$ac_hdr; break
14048 fi
14049
14050 done
14051 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14052 if test $ac_header_dirent = dirent.h; then
14053   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14055 if test "${ac_cv_search_opendir+set}" = set; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058   ac_func_search_save_LIBS=$LIBS
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065
14066 /* Override any GCC internal prototype to avoid an error.
14067    Use char because int might match the return type of a GCC
14068    builtin and then its argument prototype would still apply.  */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char opendir ();
14073 int
14074 main ()
14075 {
14076 return opendir ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 for ac_lib in '' dir; do
14082   if test -z "$ac_lib"; then
14083     ac_res="none required"
14084   else
14085     ac_res=-l$ac_lib
14086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14087   fi
14088   rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (ac_try="$ac_link"
14090 case "(($ac_try" in
14091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092   *) ac_try_echo=$ac_try;;
14093 esac
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095   (eval "$ac_link") 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } &&
14102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14103   { (case "(($ac_try" in
14104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105   *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108   (eval "$ac_try") 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; } &&
14112          { ac_try='test -s conftest$ac_exeext'
14113   { (case "(($ac_try" in
14114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115   *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118   (eval "$ac_try") 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   ac_cv_search_opendir=$ac_res
14123 else
14124   echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127
14128 fi
14129
14130 rm -f core conftest.err conftest.$ac_objext \
14131       conftest$ac_exeext
14132   if test "${ac_cv_search_opendir+set}" = set; then
14133   break
14134 fi
14135 done
14136 if test "${ac_cv_search_opendir+set}" = set; then
14137   :
14138 else
14139   ac_cv_search_opendir=no
14140 fi
14141 rm conftest.$ac_ext
14142 LIBS=$ac_func_search_save_LIBS
14143 fi
14144 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14145 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14146 ac_res=$ac_cv_search_opendir
14147 if test "$ac_res" != no; then
14148   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14149
14150 fi
14151
14152 else
14153   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14154 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14155 if test "${ac_cv_search_opendir+set}" = set; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158   ac_func_search_save_LIBS=$LIBS
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165
14166 /* Override any GCC internal prototype to avoid an error.
14167    Use char because int might match the return type of a GCC
14168    builtin and then its argument prototype would still apply.  */
14169 #ifdef __cplusplus
14170 extern "C"
14171 #endif
14172 char opendir ();
14173 int
14174 main ()
14175 {
14176 return opendir ();
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 for ac_lib in '' x; do
14182   if test -z "$ac_lib"; then
14183     ac_res="none required"
14184   else
14185     ac_res=-l$ac_lib
14186     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14187   fi
14188   rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (ac_try="$ac_link"
14190 case "(($ac_try" in
14191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192   *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195   (eval "$ac_link") 2>conftest.er1
14196   ac_status=$?
14197   grep -v '^ *+' conftest.er1 >conftest.err
14198   rm -f conftest.er1
14199   cat conftest.err >&5
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); } &&
14202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14203   { (case "(($ac_try" in
14204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205   *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208   (eval "$ac_try") 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; } &&
14212          { ac_try='test -s conftest$ac_exeext'
14213   { (case "(($ac_try" in
14214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215   *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218   (eval "$ac_try") 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; }; then
14222   ac_cv_search_opendir=$ac_res
14223 else
14224   echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227
14228 fi
14229
14230 rm -f core conftest.err conftest.$ac_objext \
14231       conftest$ac_exeext
14232   if test "${ac_cv_search_opendir+set}" = set; then
14233   break
14234 fi
14235 done
14236 if test "${ac_cv_search_opendir+set}" = set; then
14237   :
14238 else
14239   ac_cv_search_opendir=no
14240 fi
14241 rm conftest.$ac_ext
14242 LIBS=$ac_func_search_save_LIBS
14243 fi
14244 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14245 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14246 ac_res=$ac_cv_search_opendir
14247 if test "$ac_res" != no; then
14248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14249
14250 fi
14251
14252 fi
14253
14254 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14255 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14256 if test "${ac_cv_header_mmap_anon+set}" = set; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259    ac_ext=c
14260 ac_cpp='$CPP $CPPFLAGS'
14261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14264
14265   cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h.  */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h.  */
14271 #include <sys/mman.h>
14272 #include <unistd.h>
14273 #include <fcntl.h>
14274 int
14275 main ()
14276 {
14277 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14278   ;
14279   return 0;
14280 }
14281 _ACEOF
14282 rm -f conftest.$ac_objext
14283 if { (ac_try="$ac_compile"
14284 case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_compile") 2>conftest.er1
14290   ac_status=$?
14291   grep -v '^ *+' conftest.er1 >conftest.err
14292   rm -f conftest.er1
14293   cat conftest.err >&5
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297   { (case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_try") 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; } &&
14306          { ac_try='test -s conftest.$ac_objext'
14307   { (case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_try") 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   ac_cv_header_mmap_anon=yes
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321         ac_cv_header_mmap_anon=no
14322 fi
14323
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325   ac_ext=c
14326 ac_cpp='$CPP $CPPFLAGS'
14327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14330
14331
14332 fi
14333 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14334 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14335 if test "$ac_cv_header_mmap_anon" = yes; then
14336
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_MMAP_ANONYMOUS 1
14339 _ACEOF
14340
14341 fi
14342
14343 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14344 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14345 if test "${ac_cv_header_stat_broken+set}" = set; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348   cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h.  */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h.  */
14354 #include <sys/types.h>
14355 #include <sys/stat.h>
14356
14357 #if defined S_ISBLK && defined S_IFDIR
14358 # if S_ISBLK (S_IFDIR)
14359 You lose.
14360 # endif
14361 #endif
14362
14363 #if defined S_ISBLK && defined S_IFCHR
14364 # if S_ISBLK (S_IFCHR)
14365 You lose.
14366 # endif
14367 #endif
14368
14369 #if defined S_ISLNK && defined S_IFREG
14370 # if S_ISLNK (S_IFREG)
14371 You lose.
14372 # endif
14373 #endif
14374
14375 #if defined S_ISSOCK && defined S_IFREG
14376 # if S_ISSOCK (S_IFREG)
14377 You lose.
14378 # endif
14379 #endif
14380
14381 _ACEOF
14382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14383   $EGREP "You lose" >/dev/null 2>&1; then
14384   ac_cv_header_stat_broken=yes
14385 else
14386   ac_cv_header_stat_broken=no
14387 fi
14388 rm -f conftest*
14389
14390 fi
14391 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14392 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14393 if test $ac_cv_header_stat_broken = yes; then
14394
14395 cat >>confdefs.h <<\_ACEOF
14396 #define STAT_MACROS_BROKEN 1
14397 _ACEOF
14398
14399 fi
14400
14401 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14402 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14403 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 #include <sys/types.h>
14413 #include <sys/wait.h>
14414 #ifndef WEXITSTATUS
14415 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14416 #endif
14417 #ifndef WIFEXITED
14418 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14419 #endif
14420
14421 int
14422 main ()
14423 {
14424   int s;
14425   wait (&s);
14426   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (ac_try="$ac_compile"
14433 case "(($ac_try" in
14434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435   *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438   (eval "$ac_compile") 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } &&
14445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; } &&
14455          { ac_try='test -s conftest.$ac_objext'
14456   { (case "(($ac_try" in
14457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458   *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461   (eval "$ac_try") 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; }; then
14465   ac_cv_header_sys_wait_h=yes
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470         ac_cv_header_sys_wait_h=no
14471 fi
14472
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 fi
14475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14476 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14477 if test $ac_cv_header_sys_wait_h = yes; then
14478
14479 cat >>confdefs.h <<\_ACEOF
14480 #define HAVE_SYS_WAIT_H 1
14481 _ACEOF
14482
14483 fi
14484
14485 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14486 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14487 if test "${ac_cv_header_time+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 #include <sys/types.h>
14497 #include <sys/time.h>
14498 #include <time.h>
14499
14500 int
14501 main ()
14502 {
14503 if ((struct tm *) 0)
14504 return 0;
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (ac_try="$ac_compile"
14511 case "(($ac_try" in
14512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513   *) ac_try_echo=$ac_try;;
14514 esac
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516   (eval "$ac_compile") 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } &&
14523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; } &&
14533          { ac_try='test -s conftest.$ac_objext'
14534   { (case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_try") 2>&5
14540   ac_status=$?
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); }; }; then
14543   ac_cv_header_time=yes
14544 else
14545   echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548         ac_cv_header_time=no
14549 fi
14550
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14554 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14555 if test $ac_cv_header_time = yes; then
14556
14557 cat >>confdefs.h <<\_ACEOF
14558 #define TIME_WITH_SYS_TIME 1
14559 _ACEOF
14560
14561 fi
14562
14563
14564 ac_ext=cpp
14565 ac_cpp='$CXXCPP $CPPFLAGS'
14566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14569
14570 ac_ext=cpp
14571 ac_cpp='$CXXCPP $CPPFLAGS'
14572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14575 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14576 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14577 if test -z "$CXXCPP"; then
14578   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581       # Double quotes because CXXCPP needs to be expanded
14582     for CXXCPP in "$CXX -E" "/lib/cpp"
14583     do
14584       ac_preproc_ok=false
14585 for ac_cxx_preproc_warn_flag in '' yes
14586 do
14587   # Use a header file that comes with gcc, so configuring glibc
14588   # with a fresh cross-compiler works.
14589   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14590   # <limits.h> exists even on freestanding compilers.
14591   # On the NeXT, cc -E runs the code through the compiler's parser,
14592   # not just through cpp. "Syntax error" is here to catch this case.
14593   cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 #ifdef __STDC__
14600 # include <limits.h>
14601 #else
14602 # include <assert.h>
14603 #endif
14604                      Syntax error
14605 _ACEOF
14606 if { (ac_try="$ac_cpp conftest.$ac_ext"
14607 case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14613   ac_status=$?
14614   grep -v '^ *+' conftest.er1 >conftest.err
14615   rm -f conftest.er1
14616   cat conftest.err >&5
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); } >/dev/null; then
14619   if test -s conftest.err; then
14620     ac_cpp_err=$ac_cxx_preproc_warn_flag
14621     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14622   else
14623     ac_cpp_err=
14624   fi
14625 else
14626   ac_cpp_err=yes
14627 fi
14628 if test -z "$ac_cpp_err"; then
14629   :
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634   # Broken: fails on valid input.
14635 continue
14636 fi
14637
14638 rm -f conftest.err conftest.$ac_ext
14639
14640   # OK, works on sane cases.  Now check whether nonexistent headers
14641   # can be detected and how.
14642   cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h.  */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h.  */
14648 #include <ac_nonexistent.h>
14649 _ACEOF
14650 if { (ac_try="$ac_cpp conftest.$ac_ext"
14651 case "(($ac_try" in
14652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653   *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14657   ac_status=$?
14658   grep -v '^ *+' conftest.er1 >conftest.err
14659   rm -f conftest.er1
14660   cat conftest.err >&5
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); } >/dev/null; then
14663   if test -s conftest.err; then
14664     ac_cpp_err=$ac_cxx_preproc_warn_flag
14665     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14666   else
14667     ac_cpp_err=
14668   fi
14669 else
14670   ac_cpp_err=yes
14671 fi
14672 if test -z "$ac_cpp_err"; then
14673   # Broken: success on invalid input.
14674 continue
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679   # Passes both tests.
14680 ac_preproc_ok=:
14681 break
14682 fi
14683
14684 rm -f conftest.err conftest.$ac_ext
14685
14686 done
14687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14688 rm -f conftest.err conftest.$ac_ext
14689 if $ac_preproc_ok; then
14690   break
14691 fi
14692
14693     done
14694     ac_cv_prog_CXXCPP=$CXXCPP
14695
14696 fi
14697   CXXCPP=$ac_cv_prog_CXXCPP
14698 else
14699   ac_cv_prog_CXXCPP=$CXXCPP
14700 fi
14701 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14702 echo "${ECHO_T}$CXXCPP" >&6; }
14703 ac_preproc_ok=false
14704 for ac_cxx_preproc_warn_flag in '' yes
14705 do
14706   # Use a header file that comes with gcc, so configuring glibc
14707   # with a fresh cross-compiler works.
14708   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709   # <limits.h> exists even on freestanding compilers.
14710   # On the NeXT, cc -E runs the code through the compiler's parser,
14711   # not just through cpp. "Syntax error" is here to catch this case.
14712   cat >conftest.$ac_ext <<_ACEOF
14713 /* confdefs.h.  */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h.  */
14718 #ifdef __STDC__
14719 # include <limits.h>
14720 #else
14721 # include <assert.h>
14722 #endif
14723                      Syntax error
14724 _ACEOF
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } >/dev/null; then
14738   if test -s conftest.err; then
14739     ac_cpp_err=$ac_cxx_preproc_warn_flag
14740     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14741   else
14742     ac_cpp_err=
14743   fi
14744 else
14745   ac_cpp_err=yes
14746 fi
14747 if test -z "$ac_cpp_err"; then
14748   :
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753   # Broken: fails on valid input.
14754 continue
14755 fi
14756
14757 rm -f conftest.err conftest.$ac_ext
14758
14759   # OK, works on sane cases.  Now check whether nonexistent headers
14760   # can be detected and how.
14761   cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 #include <ac_nonexistent.h>
14768 _ACEOF
14769 if { (ac_try="$ac_cpp conftest.$ac_ext"
14770 case "(($ac_try" in
14771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772   *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14776   ac_status=$?
14777   grep -v '^ *+' conftest.er1 >conftest.err
14778   rm -f conftest.er1
14779   cat conftest.err >&5
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } >/dev/null; then
14782   if test -s conftest.err; then
14783     ac_cpp_err=$ac_cxx_preproc_warn_flag
14784     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14785   else
14786     ac_cpp_err=
14787   fi
14788 else
14789   ac_cpp_err=yes
14790 fi
14791 if test -z "$ac_cpp_err"; then
14792   # Broken: success on invalid input.
14793 continue
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798   # Passes both tests.
14799 ac_preproc_ok=:
14800 break
14801 fi
14802
14803 rm -f conftest.err conftest.$ac_ext
14804
14805 done
14806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14807 rm -f conftest.err conftest.$ac_ext
14808 if $ac_preproc_ok; then
14809   :
14810 else
14811   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14812 See \`config.log' for more details." >&5
14813 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14814 See \`config.log' for more details." >&2;}
14815    { (exit 1); exit 1; }; }
14816 fi
14817
14818 ac_ext=cpp
14819 ac_cpp='$CXXCPP $CPPFLAGS'
14820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14823
14824
14825
14826 for ac_header in cxxabi.h
14827 do
14828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14830   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 fi
14835 ac_res=`eval echo '${'$as_ac_Header'}'`
14836                { echo "$as_me:$LINENO: result: $ac_res" >&5
14837 echo "${ECHO_T}$ac_res" >&6; }
14838 else
14839   # Is the header compilable?
14840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h.  */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h.  */
14848 $ac_includes_default
14849 #include <$ac_header>
14850 _ACEOF
14851 rm -f conftest.$ac_objext
14852 if { (ac_try="$ac_compile"
14853 case "(($ac_try" in
14854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855   *) ac_try_echo=$ac_try;;
14856 esac
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858   (eval "$ac_compile") 2>conftest.er1
14859   ac_status=$?
14860   grep -v '^ *+' conftest.er1 >conftest.err
14861   rm -f conftest.er1
14862   cat conftest.err >&5
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } &&
14865          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14866   { (case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_try") 2>&5
14872   ac_status=$?
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); }; } &&
14875          { ac_try='test -s conftest.$ac_objext'
14876   { (case "(($ac_try" in
14877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878   *) ac_try_echo=$ac_try;;
14879 esac
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881   (eval "$ac_try") 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; }; then
14885   ac_header_compiler=yes
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890         ac_header_compiler=no
14891 fi
14892
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14896
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 #include <$ac_header>
14907 _ACEOF
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911   *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14915   ac_status=$?
14916   grep -v '^ *+' conftest.er1 >conftest.err
14917   rm -f conftest.er1
14918   cat conftest.err >&5
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } >/dev/null; then
14921   if test -s conftest.err; then
14922     ac_cpp_err=$ac_cxx_preproc_warn_flag
14923     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14924   else
14925     ac_cpp_err=
14926   fi
14927 else
14928   ac_cpp_err=yes
14929 fi
14930 if test -z "$ac_cpp_err"; then
14931   ac_header_preproc=yes
14932 else
14933   echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14935
14936   ac_header_preproc=no
14937 fi
14938
14939 rm -f conftest.err conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14941 echo "${ECHO_T}$ac_header_preproc" >&6; }
14942
14943 # So?  What about this header?
14944 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14945   yes:no: )
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14950     ac_header_preproc=yes
14951     ;;
14952   no:yes:* )
14953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14965     ( cat <<\_ASBOX
14966 ## ------------------------------------ ##
14967 ## Report this to http://llvm.org/bugs/ ##
14968 ## ------------------------------------ ##
14969 _ASBOX
14970      ) | sed "s/^/$as_me: WARNING:     /" >&2
14971     ;;
14972 esac
14973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14976   echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978   eval "$as_ac_Header=\$ac_header_preproc"
14979 fi
14980 ac_res=`eval echo '${'$as_ac_Header'}'`
14981                { echo "$as_me:$LINENO: result: $ac_res" >&5
14982 echo "${ECHO_T}$ac_res" >&6; }
14983
14984 fi
14985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14986   cat >>confdefs.h <<_ACEOF
14987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988 _ACEOF
14989
14990 fi
14991
14992 done
14993
14994 ac_ext=c
14995 ac_cpp='$CPP $CPPFLAGS'
14996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14999
15000
15001
15002
15003
15004
15005 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15006 do
15007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15009   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 fi
15014 ac_res=`eval echo '${'$as_ac_Header'}'`
15015                { echo "$as_me:$LINENO: result: $ac_res" >&5
15016 echo "${ECHO_T}$ac_res" >&6; }
15017 else
15018   # Is the header compilable?
15019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h.  */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h.  */
15027 $ac_includes_default
15028 #include <$ac_header>
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034   *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037   (eval "$ac_compile") 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } &&
15044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045   { (case "(($ac_try" in
15046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047   *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050   (eval "$ac_try") 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; } &&
15054          { ac_try='test -s conftest.$ac_objext'
15055   { (case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_try") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; }; then
15064   ac_header_compiler=yes
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069         ac_header_compiler=no
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15074 echo "${ECHO_T}$ac_header_compiler" >&6; }
15075
15076 # Is the header present?
15077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15079 cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 #include <$ac_header>
15086 _ACEOF
15087 if { (ac_try="$ac_cpp conftest.$ac_ext"
15088 case "(($ac_try" in
15089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090   *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15094   ac_status=$?
15095   grep -v '^ *+' conftest.er1 >conftest.err
15096   rm -f conftest.er1
15097   cat conftest.err >&5
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); } >/dev/null; then
15100   if test -s conftest.err; then
15101     ac_cpp_err=$ac_c_preproc_warn_flag
15102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15103   else
15104     ac_cpp_err=
15105   fi
15106 else
15107   ac_cpp_err=yes
15108 fi
15109 if test -z "$ac_cpp_err"; then
15110   ac_header_preproc=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115   ac_header_preproc=no
15116 fi
15117
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15121
15122 # So?  What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15124   yes:no: )
15125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15129     ac_header_preproc=yes
15130     ;;
15131   no:yes:* )
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15144     ( cat <<\_ASBOX
15145 ## ------------------------------------ ##
15146 ## Report this to http://llvm.org/bugs/ ##
15147 ## ------------------------------------ ##
15148 _ASBOX
15149      ) | sed "s/^/$as_me: WARNING:     /" >&2
15150     ;;
15151 esac
15152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   eval "$as_ac_Header=\$ac_header_preproc"
15158 fi
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160                { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162
15163 fi
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165   cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167 _ACEOF
15168
15169 fi
15170
15171 done
15172
15173
15174
15175
15176
15177
15178
15179 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15180 do
15181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 fi
15188 ac_res=`eval echo '${'$as_ac_Header'}'`
15189                { echo "$as_me:$LINENO: result: $ac_res" >&5
15190 echo "${ECHO_T}$ac_res" >&6; }
15191 else
15192   # Is the header compilable?
15193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201 $ac_includes_default
15202 #include <$ac_header>
15203 _ACEOF
15204 rm -f conftest.$ac_objext
15205 if { (ac_try="$ac_compile"
15206 case "(($ac_try" in
15207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208   *) ac_try_echo=$ac_try;;
15209 esac
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211   (eval "$ac_compile") 2>conftest.er1
15212   ac_status=$?
15213   grep -v '^ *+' conftest.er1 >conftest.err
15214   rm -f conftest.er1
15215   cat conftest.err >&5
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); } &&
15218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219   { (case "(($ac_try" in
15220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221   *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224   (eval "$ac_try") 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; } &&
15228          { ac_try='test -s conftest.$ac_objext'
15229   { (case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_try") 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; }; then
15238   ac_header_compiler=yes
15239 else
15240   echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243         ac_header_compiler=no
15244 fi
15245
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248 echo "${ECHO_T}$ac_header_compiler" >&6; }
15249
15250 # Is the header present?
15251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 #include <$ac_header>
15260 _ACEOF
15261 if { (ac_try="$ac_cpp conftest.$ac_ext"
15262 case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } >/dev/null; then
15274   if test -s conftest.err; then
15275     ac_cpp_err=$ac_c_preproc_warn_flag
15276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15277   else
15278     ac_cpp_err=
15279   fi
15280 else
15281   ac_cpp_err=yes
15282 fi
15283 if test -z "$ac_cpp_err"; then
15284   ac_header_preproc=yes
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289   ac_header_preproc=no
15290 fi
15291
15292 rm -f conftest.err conftest.$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15294 echo "${ECHO_T}$ac_header_preproc" >&6; }
15295
15296 # So?  What about this header?
15297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15298   yes:no: )
15299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15303     ac_header_preproc=yes
15304     ;;
15305   no:yes:* )
15306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15318     ( cat <<\_ASBOX
15319 ## ------------------------------------ ##
15320 ## Report this to http://llvm.org/bugs/ ##
15321 ## ------------------------------------ ##
15322 _ASBOX
15323      ) | sed "s/^/$as_me: WARNING:     /" >&2
15324     ;;
15325 esac
15326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331   eval "$as_ac_Header=\$ac_header_preproc"
15332 fi
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334                { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336
15337 fi
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339   cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344
15345 done
15346
15347
15348 for ac_header in utime.h
15349 do
15350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 fi
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358                { echo "$as_me:$LINENO: result: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15360 else
15361   # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370 $ac_includes_default
15371 #include <$ac_header>
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_compile") 2>conftest.er1
15381   ac_status=$?
15382   grep -v '^ *+' conftest.er1 >conftest.err
15383   rm -f conftest.er1
15384   cat conftest.err >&5
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); } &&
15387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388   { (case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393   (eval "$ac_try") 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; } &&
15397          { ac_try='test -s conftest.$ac_objext'
15398   { (case "(($ac_try" in
15399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400   *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403   (eval "$ac_try") 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407   ac_header_compiler=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412         ac_header_compiler=no
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6; }
15418
15419 # Is the header present?
15420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428 #include <$ac_header>
15429 _ACEOF
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15437   ac_status=$?
15438   grep -v '^ *+' conftest.er1 >conftest.err
15439   rm -f conftest.er1
15440   cat conftest.err >&5
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } >/dev/null; then
15443   if test -s conftest.err; then
15444     ac_cpp_err=$ac_c_preproc_warn_flag
15445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15446   else
15447     ac_cpp_err=
15448   fi
15449 else
15450   ac_cpp_err=yes
15451 fi
15452 if test -z "$ac_cpp_err"; then
15453   ac_header_preproc=yes
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458   ac_header_preproc=no
15459 fi
15460
15461 rm -f conftest.err conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6; }
15464
15465 # So?  What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467   yes:no: )
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472     ac_header_preproc=yes
15473     ;;
15474   no:yes:* )
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15487     ( cat <<\_ASBOX
15488 ## ------------------------------------ ##
15489 ## Report this to http://llvm.org/bugs/ ##
15490 ## ------------------------------------ ##
15491 _ASBOX
15492      ) | sed "s/^/$as_me: WARNING:     /" >&2
15493     ;;
15494 esac
15495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   eval "$as_ac_Header=\$ac_header_preproc"
15501 fi
15502 ac_res=`eval echo '${'$as_ac_Header'}'`
15503                { echo "$as_me:$LINENO: result: $ac_res" >&5
15504 echo "${ECHO_T}$ac_res" >&6; }
15505
15506 fi
15507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15508   cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15510 _ACEOF
15511
15512 fi
15513
15514 done
15515
15516
15517
15518
15519
15520
15521 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15522 do
15523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528   echo $ECHO_N "(cached) $ECHO_C" >&6
15529 fi
15530 ac_res=`eval echo '${'$as_ac_Header'}'`
15531                { echo "$as_me:$LINENO: result: $ac_res" >&5
15532 echo "${ECHO_T}$ac_res" >&6; }
15533 else
15534   # Is the header compilable?
15535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 $ac_includes_default
15544 #include <$ac_header>
15545 _ACEOF
15546 rm -f conftest.$ac_objext
15547 if { (ac_try="$ac_compile"
15548 case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_compile") 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } &&
15560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15561   { (case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_try") 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; } &&
15570          { ac_try='test -s conftest.$ac_objext'
15571   { (case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576   (eval "$ac_try") 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; }; then
15580   ac_header_compiler=yes
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585         ac_header_compiler=no
15586 fi
15587
15588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15590 echo "${ECHO_T}$ac_header_compiler" >&6; }
15591
15592 # Is the header present?
15593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601 #include <$ac_header>
15602 _ACEOF
15603 if { (ac_try="$ac_cpp conftest.$ac_ext"
15604 case "(($ac_try" in
15605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606   *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } >/dev/null; then
15616   if test -s conftest.err; then
15617     ac_cpp_err=$ac_c_preproc_warn_flag
15618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15619   else
15620     ac_cpp_err=
15621   fi
15622 else
15623   ac_cpp_err=yes
15624 fi
15625 if test -z "$ac_cpp_err"; then
15626   ac_header_preproc=yes
15627 else
15628   echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15630
15631   ac_header_preproc=no
15632 fi
15633
15634 rm -f conftest.err conftest.$ac_ext
15635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15636 echo "${ECHO_T}$ac_header_preproc" >&6; }
15637
15638 # So?  What about this header?
15639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15640   yes:no: )
15641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15645     ac_header_preproc=yes
15646     ;;
15647   no:yes:* )
15648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15660     ( cat <<\_ASBOX
15661 ## ------------------------------------ ##
15662 ## Report this to http://llvm.org/bugs/ ##
15663 ## ------------------------------------ ##
15664 _ASBOX
15665      ) | sed "s/^/$as_me: WARNING:     /" >&2
15666     ;;
15667 esac
15668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671   echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673   eval "$as_ac_Header=\$ac_header_preproc"
15674 fi
15675 ac_res=`eval echo '${'$as_ac_Header'}'`
15676                { echo "$as_me:$LINENO: result: $ac_res" >&5
15677 echo "${ECHO_T}$ac_res" >&6; }
15678
15679 fi
15680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15681   cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15683 _ACEOF
15684
15685 fi
15686
15687 done
15688
15689
15690
15691
15692 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15693 do
15694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 fi
15701 ac_res=`eval echo '${'$as_ac_Header'}'`
15702                { echo "$as_me:$LINENO: result: $ac_res" >&5
15703 echo "${ECHO_T}$ac_res" >&6; }
15704 else
15705   # Is the header compilable?
15706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714 $ac_includes_default
15715 #include <$ac_header>
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724   (eval "$ac_compile") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732   { (case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_try") 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); }; } &&
15741          { ac_try='test -s conftest.$ac_objext'
15742   { (case "(($ac_try" in
15743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744   *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747   (eval "$ac_try") 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }; then
15751   ac_header_compiler=yes
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756         ac_header_compiler=no
15757 fi
15758
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15761 echo "${ECHO_T}$ac_header_compiler" >&6; }
15762
15763 # Is the header present?
15764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772 #include <$ac_header>
15773 _ACEOF
15774 if { (ac_try="$ac_cpp conftest.$ac_ext"
15775 case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15781   ac_status=$?
15782   grep -v '^ *+' conftest.er1 >conftest.err
15783   rm -f conftest.er1
15784   cat conftest.err >&5
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } >/dev/null; then
15787   if test -s conftest.err; then
15788     ac_cpp_err=$ac_c_preproc_warn_flag
15789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15790   else
15791     ac_cpp_err=
15792   fi
15793 else
15794   ac_cpp_err=yes
15795 fi
15796 if test -z "$ac_cpp_err"; then
15797   ac_header_preproc=yes
15798 else
15799   echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802   ac_header_preproc=no
15803 fi
15804
15805 rm -f conftest.err conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15807 echo "${ECHO_T}$ac_header_preproc" >&6; }
15808
15809 # So?  What about this header?
15810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15811   yes:no: )
15812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15816     ac_header_preproc=yes
15817     ;;
15818   no:yes:* )
15819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15831     ( cat <<\_ASBOX
15832 ## ------------------------------------ ##
15833 ## Report this to http://llvm.org/bugs/ ##
15834 ## ------------------------------------ ##
15835 _ASBOX
15836      ) | sed "s/^/$as_me: WARNING:     /" >&2
15837     ;;
15838 esac
15839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   eval "$as_ac_Header=\$ac_header_preproc"
15845 fi
15846 ac_res=`eval echo '${'$as_ac_Header'}'`
15847                { echo "$as_me:$LINENO: result: $ac_res" >&5
15848 echo "${ECHO_T}$ac_res" >&6; }
15849
15850 fi
15851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15852   cat >>confdefs.h <<_ACEOF
15853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15854 _ACEOF
15855
15856 fi
15857
15858 done
15859
15860
15861 for ac_header in valgrind/valgrind.h
15862 do
15863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868   echo $ECHO_N "(cached) $ECHO_C" >&6
15869 fi
15870 ac_res=`eval echo '${'$as_ac_Header'}'`
15871                { echo "$as_me:$LINENO: result: $ac_res" >&5
15872 echo "${ECHO_T}$ac_res" >&6; }
15873 else
15874   # Is the header compilable?
15875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h.  */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h.  */
15883 $ac_includes_default
15884 #include <$ac_header>
15885 _ACEOF
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890   *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893   (eval "$ac_compile") 2>conftest.er1
15894   ac_status=$?
15895   grep -v '^ *+' conftest.er1 >conftest.err
15896   rm -f conftest.er1
15897   cat conftest.err >&5
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); } &&
15900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15901   { (case "(($ac_try" in
15902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903   *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906   (eval "$ac_try") 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; } &&
15910          { ac_try='test -s conftest.$ac_objext'
15911   { (case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_try") 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; }; then
15920   ac_header_compiler=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925         ac_header_compiler=no
15926 fi
15927
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15930 echo "${ECHO_T}$ac_header_compiler" >&6; }
15931
15932 # Is the header present?
15933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 #include <$ac_header>
15942 _ACEOF
15943 if { (ac_try="$ac_cpp conftest.$ac_ext"
15944 case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15950   ac_status=$?
15951   grep -v '^ *+' conftest.er1 >conftest.err
15952   rm -f conftest.er1
15953   cat conftest.err >&5
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } >/dev/null; then
15956   if test -s conftest.err; then
15957     ac_cpp_err=$ac_c_preproc_warn_flag
15958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15959   else
15960     ac_cpp_err=
15961   fi
15962 else
15963   ac_cpp_err=yes
15964 fi
15965 if test -z "$ac_cpp_err"; then
15966   ac_header_preproc=yes
15967 else
15968   echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971   ac_header_preproc=no
15972 fi
15973
15974 rm -f conftest.err conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15976 echo "${ECHO_T}$ac_header_preproc" >&6; }
15977
15978 # So?  What about this header?
15979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15980   yes:no: )
15981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15985     ac_header_preproc=yes
15986     ;;
15987   no:yes:* )
15988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16000     ( cat <<\_ASBOX
16001 ## ------------------------------------ ##
16002 ## Report this to http://llvm.org/bugs/ ##
16003 ## ------------------------------------ ##
16004 _ASBOX
16005      ) | sed "s/^/$as_me: WARNING:     /" >&2
16006     ;;
16007 esac
16008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011   echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013   eval "$as_ac_Header=\$ac_header_preproc"
16014 fi
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016                { echo "$as_me:$LINENO: result: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16018
16019 fi
16020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16021   cat >>confdefs.h <<_ACEOF
16022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16023 _ACEOF
16024
16025 fi
16026
16027 done
16028
16029
16030 for ac_header in fenv.h
16031 do
16032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037   echo $ECHO_N "(cached) $ECHO_C" >&6
16038 fi
16039 ac_res=`eval echo '${'$as_ac_Header'}'`
16040                { echo "$as_me:$LINENO: result: $ac_res" >&5
16041 echo "${ECHO_T}$ac_res" >&6; }
16042 else
16043   # Is the header compilable?
16044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052 $ac_includes_default
16053 #include <$ac_header>
16054 _ACEOF
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062   (eval "$ac_compile") 2>conftest.er1
16063   ac_status=$?
16064   grep -v '^ *+' conftest.er1 >conftest.err
16065   rm -f conftest.er1
16066   cat conftest.err >&5
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); } &&
16069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070   { (case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075   (eval "$ac_try") 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; } &&
16079          { ac_try='test -s conftest.$ac_objext'
16080   { (case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085   (eval "$ac_try") 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; }; then
16089   ac_header_compiler=yes
16090 else
16091   echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094         ac_header_compiler=no
16095 fi
16096
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16100
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110 #include <$ac_header>
16111 _ACEOF
16112 if { (ac_try="$ac_cpp conftest.$ac_ext"
16113 case "(($ac_try" in
16114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115   *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16119   ac_status=$?
16120   grep -v '^ *+' conftest.er1 >conftest.err
16121   rm -f conftest.er1
16122   cat conftest.err >&5
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); } >/dev/null; then
16125   if test -s conftest.err; then
16126     ac_cpp_err=$ac_c_preproc_warn_flag
16127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16128   else
16129     ac_cpp_err=
16130   fi
16131 else
16132   ac_cpp_err=yes
16133 fi
16134 if test -z "$ac_cpp_err"; then
16135   ac_header_preproc=yes
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140   ac_header_preproc=no
16141 fi
16142
16143 rm -f conftest.err conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145 echo "${ECHO_T}$ac_header_preproc" >&6; }
16146
16147 # So?  What about this header?
16148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16149   yes:no: )
16150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16154     ac_header_preproc=yes
16155     ;;
16156   no:yes:* )
16157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16169     ( cat <<\_ASBOX
16170 ## ------------------------------------ ##
16171 ## Report this to http://llvm.org/bugs/ ##
16172 ## ------------------------------------ ##
16173 _ASBOX
16174      ) | sed "s/^/$as_me: WARNING:     /" >&2
16175     ;;
16176 esac
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182   eval "$as_ac_Header=\$ac_header_preproc"
16183 fi
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185                { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187
16188 fi
16189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190   cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192 _ACEOF
16193
16194 fi
16195
16196 done
16197
16198 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16199 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16200 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209 #include <fenv.h>
16210
16211 int
16212 main ()
16213 {
16214 #ifndef FE_ALL_EXCEPT
16215   char *p = (char *) FE_ALL_EXCEPT;
16216   return !p;
16217 #endif
16218
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_compile") 2>conftest.er1
16231   ac_status=$?
16232   grep -v '^ *+' conftest.er1 >conftest.err
16233   rm -f conftest.er1
16234   cat conftest.err >&5
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } &&
16237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238   { (case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_try") 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; } &&
16247          { ac_try='test -s conftest.$ac_objext'
16248   { (case "(($ac_try" in
16249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250   *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253   (eval "$ac_try") 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262         ac_cv_have_decl_FE_ALL_EXCEPT=no
16263 fi
16264
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16268 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16269 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16270
16271 cat >>confdefs.h <<_ACEOF
16272 #define HAVE_DECL_FE_ALL_EXCEPT 1
16273 _ACEOF
16274
16275
16276 else
16277   cat >>confdefs.h <<_ACEOF
16278 #define HAVE_DECL_FE_ALL_EXCEPT 0
16279 _ACEOF
16280
16281
16282 fi
16283 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16284 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16285 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16286   echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288   cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 #include <fenv.h>
16295
16296 int
16297 main ()
16298 {
16299 #ifndef FE_INEXACT
16300   char *p = (char *) FE_INEXACT;
16301   return !p;
16302 #endif
16303
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_compile") 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323   { (case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_try") 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (case "(($ac_try" in
16334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335   *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338   (eval "$ac_try") 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342   ac_cv_have_decl_FE_INEXACT=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347         ac_cv_have_decl_FE_INEXACT=no
16348 fi
16349
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351 fi
16352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16353 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16354 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16355
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_DECL_FE_INEXACT 1
16358 _ACEOF
16359
16360
16361 else
16362   cat >>confdefs.h <<_ACEOF
16363 #define HAVE_DECL_FE_INEXACT 0
16364 _ACEOF
16365
16366
16367 fi
16368
16369
16370 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16371
16372 for ac_header in pthread.h
16373 do
16374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 fi
16381 ac_res=`eval echo '${'$as_ac_Header'}'`
16382                { echo "$as_me:$LINENO: result: $ac_res" >&5
16383 echo "${ECHO_T}$ac_res" >&6; }
16384 else
16385   # Is the header compilable?
16386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394 $ac_includes_default
16395 #include <$ac_header>
16396 _ACEOF
16397 rm -f conftest.$ac_objext
16398 if { (ac_try="$ac_compile"
16399 case "(($ac_try" in
16400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401   *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404   (eval "$ac_compile") 2>conftest.er1
16405   ac_status=$?
16406   grep -v '^ *+' conftest.er1 >conftest.err
16407   rm -f conftest.er1
16408   cat conftest.err >&5
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); } &&
16411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16412   { (case "(($ac_try" in
16413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414   *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417   (eval "$ac_try") 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; } &&
16421          { ac_try='test -s conftest.$ac_objext'
16422   { (case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_try") 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; }; then
16431   ac_header_compiler=yes
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436         ac_header_compiler=no
16437 fi
16438
16439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16441 echo "${ECHO_T}$ac_header_compiler" >&6; }
16442
16443 # Is the header present?
16444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 #include <$ac_header>
16453 _ACEOF
16454 if { (ac_try="$ac_cpp conftest.$ac_ext"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } >/dev/null; then
16467   if test -s conftest.err; then
16468     ac_cpp_err=$ac_c_preproc_warn_flag
16469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16470   else
16471     ac_cpp_err=
16472   fi
16473 else
16474   ac_cpp_err=yes
16475 fi
16476 if test -z "$ac_cpp_err"; then
16477   ac_header_preproc=yes
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482   ac_header_preproc=no
16483 fi
16484
16485 rm -f conftest.err conftest.$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16487 echo "${ECHO_T}$ac_header_preproc" >&6; }
16488
16489 # So?  What about this header?
16490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16491   yes:no: )
16492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16496     ac_header_preproc=yes
16497     ;;
16498   no:yes:* )
16499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16511     ( cat <<\_ASBOX
16512 ## ------------------------------------ ##
16513 ## Report this to http://llvm.org/bugs/ ##
16514 ## ------------------------------------ ##
16515 _ASBOX
16516      ) | sed "s/^/$as_me: WARNING:     /" >&2
16517     ;;
16518 esac
16519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   eval "$as_ac_Header=\$ac_header_preproc"
16525 fi
16526 ac_res=`eval echo '${'$as_ac_Header'}'`
16527                { echo "$as_me:$LINENO: result: $ac_res" >&5
16528 echo "${ECHO_T}$ac_res" >&6; }
16529
16530 fi
16531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16532   cat >>confdefs.h <<_ACEOF
16533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16534 _ACEOF
16535  HAVE_PTHREAD=1
16536
16537 else
16538   HAVE_PTHREAD=0
16539
16540 fi
16541
16542 done
16543
16544 else
16545   HAVE_PTHREAD=0
16546
16547 fi
16548 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16549
16550 for ac_header in zlib.h
16551 do
16552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 fi
16559 ac_res=`eval echo '${'$as_ac_Header'}'`
16560                { echo "$as_me:$LINENO: result: $ac_res" >&5
16561 echo "${ECHO_T}$ac_res" >&6; }
16562 else
16563   # Is the header compilable?
16564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16566 cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h.  */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h.  */
16572 $ac_includes_default
16573 #include <$ac_header>
16574 _ACEOF
16575 rm -f conftest.$ac_objext
16576 if { (ac_try="$ac_compile"
16577 case "(($ac_try" in
16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579   *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582   (eval "$ac_compile") 2>conftest.er1
16583   ac_status=$?
16584   grep -v '^ *+' conftest.er1 >conftest.err
16585   rm -f conftest.er1
16586   cat conftest.err >&5
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); } &&
16589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16590   { (case "(($ac_try" in
16591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592   *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595   (eval "$ac_try") 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); }; } &&
16599          { ac_try='test -s conftest.$ac_objext'
16600   { (case "(($ac_try" in
16601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602   *) ac_try_echo=$ac_try;;
16603 esac
16604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605   (eval "$ac_try") 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); }; }; then
16609   ac_header_compiler=yes
16610 else
16611   echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614         ac_header_compiler=no
16615 fi
16616
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16619 echo "${ECHO_T}$ac_header_compiler" >&6; }
16620
16621 # Is the header present?
16622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h.  */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h.  */
16630 #include <$ac_header>
16631 _ACEOF
16632 if { (ac_try="$ac_cpp conftest.$ac_ext"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16639   ac_status=$?
16640   grep -v '^ *+' conftest.er1 >conftest.err
16641   rm -f conftest.er1
16642   cat conftest.err >&5
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); } >/dev/null; then
16645   if test -s conftest.err; then
16646     ac_cpp_err=$ac_c_preproc_warn_flag
16647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16648   else
16649     ac_cpp_err=
16650   fi
16651 else
16652   ac_cpp_err=yes
16653 fi
16654 if test -z "$ac_cpp_err"; then
16655   ac_header_preproc=yes
16656 else
16657   echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660   ac_header_preproc=no
16661 fi
16662
16663 rm -f conftest.err conftest.$ac_ext
16664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16665 echo "${ECHO_T}$ac_header_preproc" >&6; }
16666
16667 # So?  What about this header?
16668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16669   yes:no: )
16670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16674     ac_header_preproc=yes
16675     ;;
16676   no:yes:* )
16677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16679     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16680 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16681     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16683     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16684 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16687     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16689     ( cat <<\_ASBOX
16690 ## ------------------------------------ ##
16691 ## Report this to http://llvm.org/bugs/ ##
16692 ## ------------------------------------ ##
16693 _ASBOX
16694      ) | sed "s/^/$as_me: WARNING:     /" >&2
16695     ;;
16696 esac
16697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   eval "$as_ac_Header=\$ac_header_preproc"
16703 fi
16704 ac_res=`eval echo '${'$as_ac_Header'}'`
16705                { echo "$as_me:$LINENO: result: $ac_res" >&5
16706 echo "${ECHO_T}$ac_res" >&6; }
16707
16708 fi
16709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16710   cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16712 _ACEOF
16713  HAVE_LIBZ=1
16714
16715 else
16716   HAVE_LIBZ=0
16717
16718 fi
16719
16720 done
16721
16722 else
16723   HAVE_LIBZ=0
16724
16725 fi
16726
16727 if test "$llvm_cv_enable_libffi" = "yes" ; then
16728
16729
16730 for ac_header in ffi.h ffi/ffi.h
16731 do
16732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 fi
16739 ac_res=`eval echo '${'$as_ac_Header'}'`
16740                { echo "$as_me:$LINENO: result: $ac_res" >&5
16741 echo "${ECHO_T}$ac_res" >&6; }
16742 else
16743   # Is the header compilable?
16744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h.  */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h.  */
16752 $ac_includes_default
16753 #include <$ac_header>
16754 _ACEOF
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_compile") 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770   { (case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_try") 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; } &&
16779          { ac_try='test -s conftest.$ac_objext'
16780   { (case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_try") 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; }; then
16789   ac_header_compiler=yes
16790 else
16791   echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794         ac_header_compiler=no
16795 fi
16796
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16799 echo "${ECHO_T}$ac_header_compiler" >&6; }
16800
16801 # Is the header present?
16802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h.  */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h.  */
16810 #include <$ac_header>
16811 _ACEOF
16812 if { (ac_try="$ac_cpp conftest.$ac_ext"
16813 case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16819   ac_status=$?
16820   grep -v '^ *+' conftest.er1 >conftest.err
16821   rm -f conftest.er1
16822   cat conftest.err >&5
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } >/dev/null; then
16825   if test -s conftest.err; then
16826     ac_cpp_err=$ac_c_preproc_warn_flag
16827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16828   else
16829     ac_cpp_err=
16830   fi
16831 else
16832   ac_cpp_err=yes
16833 fi
16834 if test -z "$ac_cpp_err"; then
16835   ac_header_preproc=yes
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840   ac_header_preproc=no
16841 fi
16842
16843 rm -f conftest.err conftest.$ac_ext
16844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16845 echo "${ECHO_T}$ac_header_preproc" >&6; }
16846
16847 # So?  What about this header?
16848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16849   yes:no: )
16850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16854     ac_header_preproc=yes
16855     ;;
16856   no:yes:* )
16857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16869     ( cat <<\_ASBOX
16870 ## ------------------------------------ ##
16871 ## Report this to http://llvm.org/bugs/ ##
16872 ## ------------------------------------ ##
16873 _ASBOX
16874      ) | sed "s/^/$as_me: WARNING:     /" >&2
16875     ;;
16876 esac
16877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16880   echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882   eval "$as_ac_Header=\$ac_header_preproc"
16883 fi
16884 ac_res=`eval echo '${'$as_ac_Header'}'`
16885                { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887
16888 fi
16889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16890   cat >>confdefs.h <<_ACEOF
16891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16892 _ACEOF
16893
16894 fi
16895
16896 done
16897
16898 fi
16899
16900
16901 for ac_header in CrashReporterClient.h
16902 do
16903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 fi
16910 ac_res=`eval echo '${'$as_ac_Header'}'`
16911                { echo "$as_me:$LINENO: result: $ac_res" >&5
16912 echo "${ECHO_T}$ac_res" >&6; }
16913 else
16914   # Is the header compilable?
16915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h.  */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h.  */
16923 $ac_includes_default
16924 #include <$ac_header>
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_compile") 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941   { (case "(($ac_try" in
16942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943   *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946   (eval "$ac_try") 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }; } &&
16950          { ac_try='test -s conftest.$ac_objext'
16951   { (case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_try") 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; }; then
16960   ac_header_compiler=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965         ac_header_compiler=no
16966 fi
16967
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16971
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 #include <$ac_header>
16982 _ACEOF
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } >/dev/null; then
16996   if test -s conftest.err; then
16997     ac_cpp_err=$ac_c_preproc_warn_flag
16998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16999   else
17000     ac_cpp_err=
17001   fi
17002 else
17003   ac_cpp_err=yes
17004 fi
17005 if test -z "$ac_cpp_err"; then
17006   ac_header_preproc=yes
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011   ac_header_preproc=no
17012 fi
17013
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17017
17018 # So?  What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020   yes:no: )
17021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17025     ac_header_preproc=yes
17026     ;;
17027   no:yes:* )
17028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17040     ( cat <<\_ASBOX
17041 ## ------------------------------------ ##
17042 ## Report this to http://llvm.org/bugs/ ##
17043 ## ------------------------------------ ##
17044 _ASBOX
17045      ) | sed "s/^/$as_me: WARNING:     /" >&2
17046     ;;
17047 esac
17048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   eval "$as_ac_Header=\$ac_header_preproc"
17054 fi
17055 ac_res=`eval echo '${'$as_ac_Header'}'`
17056                { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17058
17059 fi
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061   cat >>confdefs.h <<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17063 _ACEOF
17064
17065 fi
17066
17067 done
17068
17069
17070 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17071 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17072 cat >conftest.$ac_ext <<_ACEOF
17073
17074   /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079
17080     extern const char *__crashreporter_info__;
17081     int main() {
17082       __crashreporter_info__ = "test";
17083       return 0;
17084     }
17085
17086
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_link") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } &&
17102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17103   { (case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_try") 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; } &&
17112          { ac_try='test -s conftest$ac_exeext'
17113   { (case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_try") 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; }; then
17122
17123   { echo "$as_me:$LINENO: result: yes" >&5
17124 echo "${ECHO_T}yes" >&6; }
17125
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_CRASHREPORTER_INFO 1
17128 _ACEOF
17129
17130
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135
17136   { echo "$as_me:$LINENO: result: no" >&5
17137 echo "${ECHO_T}no" >&6; }
17138
17139 cat >>confdefs.h <<\_ACEOF
17140 #define HAVE_CRASHREPORTER_INFO 0
17141 _ACEOF
17142
17143
17144 fi
17145
17146 rm -f core conftest.err conftest.$ac_objext \
17147       conftest$ac_exeext conftest.$ac_ext
17148
17149
17150
17151   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17152 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17153 if test "${ac_cv_huge_val_sanity+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156
17157     ac_ext=cpp
17158 ac_cpp='$CXXCPP $CPPFLAGS'
17159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17162
17163     ac_save_CXXFLAGS=$CXXFLAGS
17164     CXXFLAGS="$CXXFLAGS -pedantic"
17165     if test "$cross_compiling" = yes; then
17166   ac_cv_huge_val_sanity=yes
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174 #include <math.h>
17175 int
17176 main ()
17177 {
17178 double x = HUGE_VAL; return x != x;
17179   ;
17180   return 0;
17181 }
17182 _ACEOF
17183 rm -f conftest$ac_exeext
17184 if { (ac_try="$ac_link"
17185 case "(($ac_try" in
17186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187   *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190   (eval "$ac_link") 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17194   { (case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199   (eval "$ac_try") 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; }; then
17203   ac_cv_huge_val_sanity=yes
17204 else
17205   echo "$as_me: program exited with status $ac_status" >&5
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209 ( exit $ac_status )
17210 ac_cv_huge_val_sanity=no
17211 fi
17212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17213 fi
17214
17215
17216     CXXFLAGS=$ac_save_CXXFLAGS
17217     ac_ext=c
17218 ac_cpp='$CPP $CPPFLAGS'
17219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17222
17223
17224 fi
17225 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17226 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17227   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17228
17229
17230 { echo "$as_me:$LINENO: checking for pid_t" >&5
17231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17232 if test "${ac_cv_type_pid_t+set}" = set; then
17233   echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235   cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241 $ac_includes_default
17242 typedef pid_t ac__type_new_;
17243 int
17244 main ()
17245 {
17246 if ((ac__type_new_ *) 0)
17247   return 0;
17248 if (sizeof (ac__type_new_))
17249   return 0;
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext
17255 if { (ac_try="$ac_compile"
17256 case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_compile") 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269   { (case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_try") 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest.$ac_objext'
17279   { (case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_try") 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   ac_cv_type_pid_t=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293         ac_cv_type_pid_t=no
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 fi
17298 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17299 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17300 if test $ac_cv_type_pid_t = yes; then
17301   :
17302 else
17303
17304 cat >>confdefs.h <<_ACEOF
17305 #define pid_t int
17306 _ACEOF
17307
17308 fi
17309
17310 { echo "$as_me:$LINENO: checking for size_t" >&5
17311 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17312 if test "${ac_cv_type_size_t+set}" = set; then
17313   echo $ECHO_N "(cached) $ECHO_C" >&6
17314 else
17315   cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h.  */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h.  */
17321 $ac_includes_default
17322 typedef size_t ac__type_new_;
17323 int
17324 main ()
17325 {
17326 if ((ac__type_new_ *) 0)
17327   return 0;
17328 if (sizeof (ac__type_new_))
17329   return 0;
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext
17335 if { (ac_try="$ac_compile"
17336 case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341   (eval "$ac_compile") 2>conftest.er1
17342   ac_status=$?
17343   grep -v '^ *+' conftest.er1 >conftest.err
17344   rm -f conftest.er1
17345   cat conftest.err >&5
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); } &&
17348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349   { (case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_try") 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; } &&
17358          { ac_try='test -s conftest.$ac_objext'
17359   { (case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_try") 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; }; then
17368   ac_cv_type_size_t=yes
17369 else
17370   echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17372
17373         ac_cv_type_size_t=no
17374 fi
17375
17376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17377 fi
17378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17380 if test $ac_cv_type_size_t = yes; then
17381   :
17382 else
17383
17384 cat >>confdefs.h <<_ACEOF
17385 #define size_t unsigned int
17386 _ACEOF
17387
17388 fi
17389
17390
17391 cat >>confdefs.h <<_ACEOF
17392 #define RETSIGTYPE void
17393 _ACEOF
17394
17395 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17396 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17397 if test "${ac_cv_struct_tm+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406 #include <sys/types.h>
17407 #include <time.h>
17408
17409 int
17410 main ()
17411 {
17412 struct tm *tp; tp->tm_sec;
17413   ;
17414   return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_compile") 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432   { (case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_try") 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; } &&
17441          { ac_try='test -s conftest.$ac_objext'
17442   { (case "(($ac_try" in
17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444   *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447   (eval "$ac_try") 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; }; then
17451   ac_cv_struct_tm=time.h
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456         ac_cv_struct_tm=sys/time.h
17457 fi
17458
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17462 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17463 if test $ac_cv_struct_tm = sys/time.h; then
17464
17465 cat >>confdefs.h <<\_ACEOF
17466 #define TM_IN_SYS_TIME 1
17467 _ACEOF
17468
17469 fi
17470
17471 { echo "$as_me:$LINENO: checking for int64_t" >&5
17472 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17473 if test "${ac_cv_type_int64_t+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482 $ac_includes_default
17483 typedef int64_t ac__type_new_;
17484 int
17485 main ()
17486 {
17487 if ((ac__type_new_ *) 0)
17488   return 0;
17489 if (sizeof (ac__type_new_))
17490   return 0;
17491   ;
17492   return 0;
17493 }
17494 _ACEOF
17495 rm -f conftest.$ac_objext
17496 if { (ac_try="$ac_compile"
17497 case "(($ac_try" in
17498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499   *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502   (eval "$ac_compile") 2>conftest.er1
17503   ac_status=$?
17504   grep -v '^ *+' conftest.er1 >conftest.err
17505   rm -f conftest.er1
17506   cat conftest.err >&5
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); } &&
17509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17510   { (case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515   (eval "$ac_try") 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; } &&
17519          { ac_try='test -s conftest.$ac_objext'
17520   { (case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_try") 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); }; }; then
17529   ac_cv_type_int64_t=yes
17530 else
17531   echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534         ac_cv_type_int64_t=no
17535 fi
17536
17537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17538 fi
17539 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17540 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17541 if test $ac_cv_type_int64_t = yes; then
17542
17543 cat >>confdefs.h <<_ACEOF
17544 #define HAVE_INT64_T 1
17545 _ACEOF
17546
17547
17548 else
17549   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17550 echo "$as_me: error: Type int64_t required but not found" >&2;}
17551    { (exit 1); exit 1; }; }
17552 fi
17553
17554 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17555 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17556 if test "${ac_cv_type_uint64_t+set}" = set; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559   cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h.  */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h.  */
17565 $ac_includes_default
17566 typedef uint64_t ac__type_new_;
17567 int
17568 main ()
17569 {
17570 if ((ac__type_new_ *) 0)
17571   return 0;
17572 if (sizeof (ac__type_new_))
17573   return 0;
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext
17579 if { (ac_try="$ac_compile"
17580 case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_compile") 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest.$ac_objext'
17603   { (case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_try") 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   ac_cv_type_uint64_t=yes
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         ac_cv_type_uint64_t=no
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621 fi
17622 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17623 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17624 if test $ac_cv_type_uint64_t = yes; then
17625
17626 cat >>confdefs.h <<_ACEOF
17627 #define HAVE_UINT64_T 1
17628 _ACEOF
17629
17630
17631 else
17632   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17633 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17634 if test "${ac_cv_type_u_int64_t+set}" = set; then
17635   echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637   cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 $ac_includes_default
17644 typedef u_int64_t ac__type_new_;
17645 int
17646 main ()
17647 {
17648 if ((ac__type_new_ *) 0)
17649   return 0;
17650 if (sizeof (ac__type_new_))
17651   return 0;
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_compile") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } &&
17670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17671   { (case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_try") 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; } &&
17680          { ac_try='test -s conftest.$ac_objext'
17681   { (case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_try") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_type_u_int64_t=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695         ac_cv_type_u_int64_t=no
17696 fi
17697
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 fi
17700 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17701 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17702 if test $ac_cv_type_u_int64_t = yes; then
17703
17704 cat >>confdefs.h <<_ACEOF
17705 #define HAVE_U_INT64_T 1
17706 _ACEOF
17707
17708
17709 else
17710   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17711 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17712    { (exit 1); exit 1; }; }
17713 fi
17714
17715 fi
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17727 do
17728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h.  */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h.  */
17740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17742 #define $ac_func innocuous_$ac_func
17743
17744 /* System header to define __stub macros and hopefully few prototypes,
17745     which can conflict with char $ac_func (); below.
17746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17747     <limits.h> exists even on freestanding compilers.  */
17748
17749 #ifdef __STDC__
17750 # include <limits.h>
17751 #else
17752 # include <assert.h>
17753 #endif
17754
17755 #undef $ac_func
17756
17757 /* Override any GCC internal prototype to avoid an error.
17758    Use char because int might match the return type of a GCC
17759    builtin and then its argument prototype would still apply.  */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 char $ac_func ();
17764 /* The GNU C library defines this for functions which it implements
17765     to always fail with ENOSYS.  Some functions are actually named
17766     something starting with __ and the normal name is an alias.  */
17767 #if defined __stub_$ac_func || defined __stub___$ac_func
17768 choke me
17769 #endif
17770
17771 int
17772 main ()
17773 {
17774 return $ac_func ();
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_link") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17794   { (case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799   (eval "$ac_try") 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; } &&
17803          { ac_try='test -s conftest$ac_exeext'
17804   { (case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809   (eval "$ac_try") 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   eval "$as_ac_var=yes"
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818         eval "$as_ac_var=no"
17819 fi
17820
17821 rm -f core conftest.err conftest.$ac_objext \
17822       conftest$ac_exeext conftest.$ac_ext
17823 fi
17824 ac_res=`eval echo '${'$as_ac_var'}'`
17825                { echo "$as_me:$LINENO: result: $ac_res" >&5
17826 echo "${ECHO_T}$ac_res" >&6; }
17827 if test `eval echo '${'$as_ac_var'}'` = yes; then
17828   cat >>confdefs.h <<_ACEOF
17829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17830 _ACEOF
17831
17832 fi
17833 done
17834
17835
17836
17837
17838
17839 for ac_func in powf fmodf strtof round
17840 do
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17855 #define $ac_func innocuous_$ac_func
17856
17857 /* System header to define __stub macros and hopefully few prototypes,
17858     which can conflict with char $ac_func (); below.
17859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860     <limits.h> exists even on freestanding compilers.  */
17861
17862 #ifdef __STDC__
17863 # include <limits.h>
17864 #else
17865 # include <assert.h>
17866 #endif
17867
17868 #undef $ac_func
17869
17870 /* Override any GCC internal prototype to avoid an error.
17871    Use char because int might match the return type of a GCC
17872    builtin and then its argument prototype would still apply.  */
17873 #ifdef __cplusplus
17874 extern "C"
17875 #endif
17876 char $ac_func ();
17877 /* The GNU C library defines this for functions which it implements
17878     to always fail with ENOSYS.  Some functions are actually named
17879     something starting with __ and the normal name is an alias.  */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17881 choke me
17882 #endif
17883
17884 int
17885 main ()
17886 {
17887 return $ac_func ();
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_link") 2>conftest.er1
17900   ac_status=$?
17901   grep -v '^ *+' conftest.er1 >conftest.err
17902   rm -f conftest.er1
17903   cat conftest.err >&5
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); } &&
17906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907   { (case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912   (eval "$ac_try") 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s 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   eval "$as_ac_var=yes"
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931         eval "$as_ac_var=no"
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext \
17935       conftest$ac_exeext conftest.$ac_ext
17936 fi
17937 ac_res=`eval echo '${'$as_ac_var'}'`
17938                { echo "$as_me:$LINENO: result: $ac_res" >&5
17939 echo "${ECHO_T}$ac_res" >&6; }
17940 if test `eval echo '${'$as_ac_var'}'` = yes; then
17941   cat >>confdefs.h <<_ACEOF
17942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17943 _ACEOF
17944
17945 fi
17946 done
17947
17948
17949
17950
17951
17952
17953 for ac_func in log log2 log10 exp exp2
17954 do
17955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h.  */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h.  */
17967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17969 #define $ac_func innocuous_$ac_func
17970
17971 /* System header to define __stub macros and hopefully few prototypes,
17972     which can conflict with char $ac_func (); below.
17973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17974     <limits.h> exists even on freestanding compilers.  */
17975
17976 #ifdef __STDC__
17977 # include <limits.h>
17978 #else
17979 # include <assert.h>
17980 #endif
17981
17982 #undef $ac_func
17983
17984 /* Override any GCC internal prototype to avoid an error.
17985    Use char because int might match the return type of a GCC
17986    builtin and then its argument prototype would still apply.  */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 char $ac_func ();
17991 /* The GNU C library defines this for functions which it implements
17992     to always fail with ENOSYS.  Some functions are actually named
17993     something starting with __ and the normal name is an alias.  */
17994 #if defined __stub_$ac_func || defined __stub___$ac_func
17995 choke me
17996 #endif
17997
17998 int
17999 main ()
18000 {
18001 return $ac_func ();
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest$ac_exeext'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040   eval "$as_ac_var=yes"
18041 else
18042   echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045         eval "$as_ac_var=no"
18046 fi
18047
18048 rm -f core conftest.err conftest.$ac_objext \
18049       conftest$ac_exeext conftest.$ac_ext
18050 fi
18051 ac_res=`eval echo '${'$as_ac_var'}'`
18052                { echo "$as_me:$LINENO: result: $ac_res" >&5
18053 echo "${ECHO_T}$ac_res" >&6; }
18054 if test `eval echo '${'$as_ac_var'}'` = yes; then
18055   cat >>confdefs.h <<_ACEOF
18056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18057 _ACEOF
18058
18059 fi
18060 done
18061
18062
18063
18064
18065
18066
18067 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18068 do
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18083 #define $ac_func innocuous_$ac_func
18084
18085 /* System header to define __stub macros and hopefully few prototypes,
18086     which can conflict with char $ac_func (); below.
18087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088     <limits.h> exists even on freestanding compilers.  */
18089
18090 #ifdef __STDC__
18091 # include <limits.h>
18092 #else
18093 # include <assert.h>
18094 #endif
18095
18096 #undef $ac_func
18097
18098 /* Override any GCC internal prototype to avoid an error.
18099    Use char because int might match the return type of a GCC
18100    builtin and then its argument prototype would still apply.  */
18101 #ifdef __cplusplus
18102 extern "C"
18103 #endif
18104 char $ac_func ();
18105 /* The GNU C library defines this for functions which it implements
18106     to always fail with ENOSYS.  Some functions are actually named
18107     something starting with __ and the normal name is an alias.  */
18108 #if defined __stub_$ac_func || defined __stub___$ac_func
18109 choke me
18110 #endif
18111
18112 int
18113 main ()
18114 {
18115 return $ac_func ();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_link") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } &&
18134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18135   { (case "(($ac_try" in
18136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137   *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140   (eval "$ac_try") 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; } &&
18144          { ac_try='test -s conftest$ac_exeext'
18145   { (case "(($ac_try" in
18146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147   *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150   (eval "$ac_try") 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; }; then
18154   eval "$as_ac_var=yes"
18155 else
18156   echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159         eval "$as_ac_var=no"
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext \
18163       conftest$ac_exeext conftest.$ac_ext
18164 fi
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166                { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169   cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18172
18173 fi
18174 done
18175
18176
18177
18178
18179 for ac_func in isatty mkdtemp mkstemp
18180 do
18181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18185   echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187   cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h.  */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h.  */
18193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18195 #define $ac_func innocuous_$ac_func
18196
18197 /* System header to define __stub macros and hopefully few prototypes,
18198     which can conflict with char $ac_func (); below.
18199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18200     <limits.h> exists even on freestanding compilers.  */
18201
18202 #ifdef __STDC__
18203 # include <limits.h>
18204 #else
18205 # include <assert.h>
18206 #endif
18207
18208 #undef $ac_func
18209
18210 /* Override any GCC internal prototype to avoid an error.
18211    Use char because int might match the return type of a GCC
18212    builtin and then its argument prototype would still apply.  */
18213 #ifdef __cplusplus
18214 extern "C"
18215 #endif
18216 char $ac_func ();
18217 /* The GNU C library defines this for functions which it implements
18218     to always fail with ENOSYS.  Some functions are actually named
18219     something starting with __ and the normal name is an alias.  */
18220 #if defined __stub_$ac_func || defined __stub___$ac_func
18221 choke me
18222 #endif
18223
18224 int
18225 main ()
18226 {
18227 return $ac_func ();
18228   ;
18229   return 0;
18230 }
18231 _ACEOF
18232 rm -f conftest.$ac_objext conftest$ac_exeext
18233 if { (ac_try="$ac_link"
18234 case "(($ac_try" in
18235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236   *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239   (eval "$ac_link") 2>conftest.er1
18240   ac_status=$?
18241   grep -v '^ *+' conftest.er1 >conftest.err
18242   rm -f conftest.er1
18243   cat conftest.err >&5
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); } &&
18246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18247   { (case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252   (eval "$ac_try") 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; } &&
18256          { ac_try='test -s conftest$ac_exeext'
18257   { (case "(($ac_try" in
18258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259   *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262   (eval "$ac_try") 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; }; then
18266   eval "$as_ac_var=yes"
18267 else
18268   echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18270
18271         eval "$as_ac_var=no"
18272 fi
18273
18274 rm -f core conftest.err conftest.$ac_objext \
18275       conftest$ac_exeext conftest.$ac_ext
18276 fi
18277 ac_res=`eval echo '${'$as_ac_var'}'`
18278                { echo "$as_me:$LINENO: result: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281   cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283 _ACEOF
18284
18285 fi
18286 done
18287
18288
18289
18290
18291
18292
18293
18294 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18295 do
18296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18300   echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302   cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18310 #define $ac_func innocuous_$ac_func
18311
18312 /* System header to define __stub macros and hopefully few prototypes,
18313     which can conflict with char $ac_func (); below.
18314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18315     <limits.h> exists even on freestanding compilers.  */
18316
18317 #ifdef __STDC__
18318 # include <limits.h>
18319 #else
18320 # include <assert.h>
18321 #endif
18322
18323 #undef $ac_func
18324
18325 /* Override any GCC internal prototype to avoid an error.
18326    Use char because int might match the return type of a GCC
18327    builtin and then its argument prototype would still apply.  */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char $ac_func ();
18332 /* The GNU C library defines this for functions which it implements
18333     to always fail with ENOSYS.  Some functions are actually named
18334     something starting with __ and the normal name is an alias.  */
18335 #if defined __stub_$ac_func || defined __stub___$ac_func
18336 choke me
18337 #endif
18338
18339 int
18340 main ()
18341 {
18342 return $ac_func ();
18343   ;
18344   return 0;
18345 }
18346 _ACEOF
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (ac_try="$ac_link"
18349 case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_link") 2>conftest.er1
18355   ac_status=$?
18356   grep -v '^ *+' conftest.er1 >conftest.err
18357   rm -f conftest.er1
18358   cat conftest.err >&5
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } &&
18361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; } &&
18371          { ac_try='test -s conftest$ac_exeext'
18372   { (case "(($ac_try" in
18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374   *) ac_try_echo=$ac_try;;
18375 esac
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377   (eval "$ac_try") 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   eval "$as_ac_var=yes"
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386         eval "$as_ac_var=no"
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext \
18390       conftest$ac_exeext conftest.$ac_ext
18391 fi
18392 ac_res=`eval echo '${'$as_ac_var'}'`
18393                { echo "$as_me:$LINENO: result: $ac_res" >&5
18394 echo "${ECHO_T}$ac_res" >&6; }
18395 if test `eval echo '${'$as_ac_var'}'` = yes; then
18396   cat >>confdefs.h <<_ACEOF
18397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18398 _ACEOF
18399
18400 fi
18401 done
18402
18403
18404
18405
18406
18407 for ac_func in strerror strerror_r setenv arc4random
18408 do
18409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18413   echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415   cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18423 #define $ac_func innocuous_$ac_func
18424
18425 /* System header to define __stub macros and hopefully few prototypes,
18426     which can conflict with char $ac_func (); below.
18427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428     <limits.h> exists even on freestanding compilers.  */
18429
18430 #ifdef __STDC__
18431 # include <limits.h>
18432 #else
18433 # include <assert.h>
18434 #endif
18435
18436 #undef $ac_func
18437
18438 /* Override any GCC internal prototype to avoid an error.
18439    Use char because int might match the return type of a GCC
18440    builtin and then its argument prototype would still apply.  */
18441 #ifdef __cplusplus
18442 extern "C"
18443 #endif
18444 char $ac_func ();
18445 /* The GNU C library defines this for functions which it implements
18446     to always fail with ENOSYS.  Some functions are actually named
18447     something starting with __ and the normal name is an alias.  */
18448 #if defined __stub_$ac_func || defined __stub___$ac_func
18449 choke me
18450 #endif
18451
18452 int
18453 main ()
18454 {
18455 return $ac_func ();
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (ac_try="$ac_link"
18462 case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_link") 2>conftest.er1
18468   ac_status=$?
18469   grep -v '^ *+' conftest.er1 >conftest.err
18470   rm -f conftest.er1
18471   cat conftest.err >&5
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); } &&
18474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18475   { (case "(($ac_try" in
18476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477   *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480   (eval "$ac_try") 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; } &&
18484          { ac_try='test -s conftest$ac_exeext'
18485   { (case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_try") 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; }; then
18494   eval "$as_ac_var=yes"
18495 else
18496   echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499         eval "$as_ac_var=no"
18500 fi
18501
18502 rm -f core conftest.err conftest.$ac_objext \
18503       conftest$ac_exeext conftest.$ac_ext
18504 fi
18505 ac_res=`eval echo '${'$as_ac_var'}'`
18506                { echo "$as_me:$LINENO: result: $ac_res" >&5
18507 echo "${ECHO_T}$ac_res" >&6; }
18508 if test `eval echo '${'$as_ac_var'}'` = yes; then
18509   cat >>confdefs.h <<_ACEOF
18510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18511 _ACEOF
18512
18513 fi
18514 done
18515
18516
18517
18518
18519
18520 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18521 do
18522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18526   echo $ECHO_N "(cached) $ECHO_C" >&6
18527 else
18528   cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h.  */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h.  */
18534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18536 #define $ac_func innocuous_$ac_func
18537
18538 /* System header to define __stub macros and hopefully few prototypes,
18539     which can conflict with char $ac_func (); below.
18540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18541     <limits.h> exists even on freestanding compilers.  */
18542
18543 #ifdef __STDC__
18544 # include <limits.h>
18545 #else
18546 # include <assert.h>
18547 #endif
18548
18549 #undef $ac_func
18550
18551 /* Override any GCC internal prototype to avoid an error.
18552    Use char because int might match the return type of a GCC
18553    builtin and then its argument prototype would still apply.  */
18554 #ifdef __cplusplus
18555 extern "C"
18556 #endif
18557 char $ac_func ();
18558 /* The GNU C library defines this for functions which it implements
18559     to always fail with ENOSYS.  Some functions are actually named
18560     something starting with __ and the normal name is an alias.  */
18561 #if defined __stub_$ac_func || defined __stub___$ac_func
18562 choke me
18563 #endif
18564
18565 int
18566 main ()
18567 {
18568 return $ac_func ();
18569   ;
18570   return 0;
18571 }
18572 _ACEOF
18573 rm -f conftest.$ac_objext conftest$ac_exeext
18574 if { (ac_try="$ac_link"
18575 case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580   (eval "$ac_link") 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } &&
18587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18588   { (case "(($ac_try" in
18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590   *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593   (eval "$ac_try") 2>&5
18594   ac_status=$?
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); }; } &&
18597          { ac_try='test -s conftest$ac_exeext'
18598   { (case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_try") 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; }; then
18607   eval "$as_ac_var=yes"
18608 else
18609   echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18611
18612         eval "$as_ac_var=no"
18613 fi
18614
18615 rm -f core conftest.err conftest.$ac_objext \
18616       conftest$ac_exeext conftest.$ac_ext
18617 fi
18618 ac_res=`eval echo '${'$as_ac_var'}'`
18619                { echo "$as_me:$LINENO: result: $ac_res" >&5
18620 echo "${ECHO_T}$ac_res" >&6; }
18621 if test `eval echo '${'$as_ac_var'}'` = yes; then
18622   cat >>confdefs.h <<_ACEOF
18623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18624 _ACEOF
18625
18626 fi
18627 done
18628
18629
18630
18631
18632
18633
18634 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18635 do
18636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18640   echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642   cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18650 #define $ac_func innocuous_$ac_func
18651
18652 /* System header to define __stub macros and hopefully few prototypes,
18653     which can conflict with char $ac_func (); below.
18654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18655     <limits.h> exists even on freestanding compilers.  */
18656
18657 #ifdef __STDC__
18658 # include <limits.h>
18659 #else
18660 # include <assert.h>
18661 #endif
18662
18663 #undef $ac_func
18664
18665 /* Override any GCC internal prototype to avoid an error.
18666    Use char because int might match the return type of a GCC
18667    builtin and then its argument prototype would still apply.  */
18668 #ifdef __cplusplus
18669 extern "C"
18670 #endif
18671 char $ac_func ();
18672 /* The GNU C library defines this for functions which it implements
18673     to always fail with ENOSYS.  Some functions are actually named
18674     something starting with __ and the normal name is an alias.  */
18675 #if defined __stub_$ac_func || defined __stub___$ac_func
18676 choke me
18677 #endif
18678
18679 int
18680 main ()
18681 {
18682 return $ac_func ();
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 rm -f conftest.$ac_objext conftest$ac_exeext
18688 if { (ac_try="$ac_link"
18689 case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_link") 2>conftest.er1
18695   ac_status=$?
18696   grep -v '^ *+' conftest.er1 >conftest.err
18697   rm -f conftest.er1
18698   cat conftest.err >&5
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } &&
18701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18702   { (case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_try") 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; } &&
18711          { ac_try='test -s conftest$ac_exeext'
18712   { (case "(($ac_try" in
18713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714   *) ac_try_echo=$ac_try;;
18715 esac
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717   (eval "$ac_try") 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   eval "$as_ac_var=yes"
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726         eval "$as_ac_var=no"
18727 fi
18728
18729 rm -f core conftest.err conftest.$ac_objext \
18730       conftest$ac_exeext conftest.$ac_ext
18731 fi
18732 ac_res=`eval echo '${'$as_ac_var'}'`
18733                { echo "$as_me:$LINENO: result: $ac_res" >&5
18734 echo "${ECHO_T}$ac_res" >&6; }
18735 if test `eval echo '${'$as_ac_var'}'` = yes; then
18736   cat >>confdefs.h <<_ACEOF
18737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18738 _ACEOF
18739
18740 fi
18741 done
18742
18743
18744
18745 for ac_func in futimes futimens
18746 do
18747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18761 #define $ac_func innocuous_$ac_func
18762
18763 /* System header to define __stub macros and hopefully few prototypes,
18764     which can conflict with char $ac_func (); below.
18765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766     <limits.h> exists even on freestanding compilers.  */
18767
18768 #ifdef __STDC__
18769 # include <limits.h>
18770 #else
18771 # include <assert.h>
18772 #endif
18773
18774 #undef $ac_func
18775
18776 /* Override any GCC internal prototype to avoid an error.
18777    Use char because int might match the return type of a GCC
18778    builtin and then its argument prototype would still apply.  */
18779 #ifdef __cplusplus
18780 extern "C"
18781 #endif
18782 char $ac_func ();
18783 /* The GNU C library defines this for functions which it implements
18784     to always fail with ENOSYS.  Some functions are actually named
18785     something starting with __ and the normal name is an alias.  */
18786 #if defined __stub_$ac_func || defined __stub___$ac_func
18787 choke me
18788 #endif
18789
18790 int
18791 main ()
18792 {
18793 return $ac_func ();
18794   ;
18795   return 0;
18796 }
18797 _ACEOF
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_link") 2>conftest.er1
18806   ac_status=$?
18807   grep -v '^ *+' conftest.er1 >conftest.err
18808   rm -f conftest.er1
18809   cat conftest.err >&5
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); } &&
18812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18813   { (case "(($ac_try" in
18814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815   *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818   (eval "$ac_try") 2>&5
18819   ac_status=$?
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); }; } &&
18822          { ac_try='test -s conftest$ac_exeext'
18823   { (case "(($ac_try" in
18824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825   *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828   (eval "$ac_try") 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); }; }; then
18832   eval "$as_ac_var=yes"
18833 else
18834   echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18836
18837         eval "$as_ac_var=no"
18838 fi
18839
18840 rm -f core conftest.err conftest.$ac_objext \
18841       conftest$ac_exeext conftest.$ac_ext
18842 fi
18843 ac_res=`eval echo '${'$as_ac_var'}'`
18844                { echo "$as_me:$LINENO: result: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18846 if test `eval echo '${'$as_ac_var'}'` = yes; then
18847   cat >>confdefs.h <<_ACEOF
18848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18849 _ACEOF
18850
18851 fi
18852 done
18853
18854 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18855 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18856 if test "${llvm_cv_c_printf_a+set}" = set; then
18857   echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859   ac_ext=c
18860 ac_cpp='$CPP $CPPFLAGS'
18861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18864
18865  if test "$cross_compiling" = yes; then
18866   llvmac_cv_c_printf_a=no
18867 else
18868   cat >conftest.$ac_ext <<_ACEOF
18869
18870   /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875
18876 #include <stdio.h>
18877 #include <stdlib.h>
18878
18879 int
18880 main ()
18881 {
18882
18883 volatile double A, B;
18884 char Buffer[100];
18885 A = 1;
18886 A /= 10.0;
18887 sprintf(Buffer, "%a", A);
18888 B = atof(Buffer);
18889 if (A != B)
18890   return (1);
18891 if (A != 0x1.999999999999ap-4)
18892   return (1);
18893 return (0);
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_link") 2>&5
18906   ac_status=$?
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18909   { (case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_try") 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); }; }; then
18918   llvm_cv_c_printf_a=yes
18919 else
18920   echo "$as_me: program exited with status $ac_status" >&5
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 ( exit $ac_status )
18925 llvmac_cv_c_printf_a=no
18926 fi
18927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18928 fi
18929
18930
18931  ac_ext=c
18932 ac_cpp='$CPP $CPPFLAGS'
18933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18936
18937 fi
18938 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18939 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18940  if test "$llvm_cv_c_printf_a" = "yes"; then
18941
18942 cat >>confdefs.h <<\_ACEOF
18943 #define HAVE_PRINTF_A 1
18944 _ACEOF
18945
18946  fi
18947
18948
18949
18950   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18951 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18952 if test "${ac_cv_func_rand48+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955
18956     ac_ext=cpp
18957 ac_cpp='$CXXCPP $CPPFLAGS'
18958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18961
18962     cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h.  */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h.  */
18968 #include <stdlib.h>
18969 int
18970 main ()
18971 {
18972 srand48(0);lrand48();drand48();
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext
18978 if { (ac_try="$ac_compile"
18979 case "(($ac_try" in
18980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981   *) ac_try_echo=$ac_try;;
18982 esac
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984   (eval "$ac_compile") 2>conftest.er1
18985   ac_status=$?
18986   grep -v '^ *+' conftest.er1 >conftest.err
18987   rm -f conftest.er1
18988   cat conftest.err >&5
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); } &&
18991          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18992   { (case "(($ac_try" in
18993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994   *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997   (eval "$ac_try") 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; } &&
19001          { ac_try='test -s conftest.$ac_objext'
19002   { (case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_try") 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; }; then
19011   ac_cv_func_rand48=yes
19012 else
19013   echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016         ac_cv_func_rand48=no
19017 fi
19018
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020     ac_ext=c
19021 ac_cpp='$CPP $CPPFLAGS'
19022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19025
19026
19027 fi
19028 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19029 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19030
19031 if test "$ac_cv_func_rand48" = "yes" ; then
19032
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE_RAND48 1
19035 _ACEOF
19036
19037 fi
19038
19039
19040 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19041 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19042 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 $ac_includes_default
19052 int
19053 main ()
19054 {
19055 #ifndef strerror_s
19056   char *p = (char *) strerror_s;
19057   return !p;
19058 #endif
19059
19060   ;
19061   return 0;
19062 }
19063 _ACEOF
19064 rm -f conftest.$ac_objext
19065 if { (ac_try="$ac_compile"
19066 case "(($ac_try" in
19067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068   *) ac_try_echo=$ac_try;;
19069 esac
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071   (eval "$ac_compile") 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } &&
19078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19079   { (case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_try") 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); }; } &&
19088          { ac_try='test -s conftest.$ac_objext'
19089   { (case "(($ac_try" in
19090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091   *) ac_try_echo=$ac_try;;
19092 esac
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094   (eval "$ac_try") 2>&5
19095   ac_status=$?
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); }; }; then
19098   ac_cv_have_decl_strerror_s=yes
19099 else
19100   echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103         ac_cv_have_decl_strerror_s=no
19104 fi
19105
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 fi
19108 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19109 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19110 if test $ac_cv_have_decl_strerror_s = yes; then
19111
19112 cat >>confdefs.h <<_ACEOF
19113 #define HAVE_DECL_STRERROR_S 1
19114 _ACEOF
19115
19116
19117 else
19118   cat >>confdefs.h <<_ACEOF
19119 #define HAVE_DECL_STRERROR_S 0
19120 _ACEOF
19121
19122
19123 fi
19124
19125
19126
19127 if test "$llvm_cv_os_type" = "MingW" ; then
19128   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19129 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19130 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19131   echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133   ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-lgcc  $LIBS"
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h.  */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h.  */
19141
19142 /* Override any GCC internal prototype to avoid an error.
19143    Use char because int might match the return type of a GCC
19144    builtin and then its argument prototype would still apply.  */
19145 #ifdef __cplusplus
19146 extern "C"
19147 #endif
19148 char _alloca ();
19149 int
19150 main ()
19151 {
19152 return _alloca ();
19153   ;
19154   return 0;
19155 }
19156 _ACEOF
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (ac_try="$ac_link"
19159 case "(($ac_try" in
19160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161   *) ac_try_echo=$ac_try;;
19162 esac
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164   (eval "$ac_link") 2>conftest.er1
19165   ac_status=$?
19166   grep -v '^ *+' conftest.er1 >conftest.err
19167   rm -f conftest.er1
19168   cat conftest.err >&5
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); } &&
19171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19172   { (case "(($ac_try" in
19173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174   *) ac_try_echo=$ac_try;;
19175 esac
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177   (eval "$ac_try") 2>&5
19178   ac_status=$?
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); }; } &&
19181          { ac_try='test -s conftest$ac_exeext'
19182   { (case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_try") 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; }; then
19191   ac_cv_lib_gcc__alloca=yes
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196         ac_cv_lib_gcc__alloca=no
19197 fi
19198
19199 rm -f core conftest.err conftest.$ac_objext \
19200       conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19202 fi
19203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19204 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19205 if test $ac_cv_lib_gcc__alloca = yes; then
19206
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE__ALLOCA 1
19209 _ACEOF
19210
19211 fi
19212
19213   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19214 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19215 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19216   echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218   ac_check_lib_save_LIBS=$LIBS
19219 LIBS="-lgcc  $LIBS"
19220 cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h.  */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h.  */
19226
19227 /* Override any GCC internal prototype to avoid an error.
19228    Use char because int might match the return type of a GCC
19229    builtin and then its argument prototype would still apply.  */
19230 #ifdef __cplusplus
19231 extern "C"
19232 #endif
19233 char __alloca ();
19234 int
19235 main ()
19236 {
19237 return __alloca ();
19238   ;
19239   return 0;
19240 }
19241 _ACEOF
19242 rm -f conftest.$ac_objext conftest$ac_exeext
19243 if { (ac_try="$ac_link"
19244 case "(($ac_try" in
19245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246   *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249   (eval "$ac_link") 2>conftest.er1
19250   ac_status=$?
19251   grep -v '^ *+' conftest.er1 >conftest.err
19252   rm -f conftest.er1
19253   cat conftest.err >&5
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); } &&
19256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19257   { (case "(($ac_try" in
19258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259   *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262   (eval "$ac_try") 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); }; } &&
19266          { ac_try='test -s conftest$ac_exeext'
19267   { (case "(($ac_try" in
19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269   *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272   (eval "$ac_try") 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; }; then
19276   ac_cv_lib_gcc___alloca=yes
19277 else
19278   echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281         ac_cv_lib_gcc___alloca=no
19282 fi
19283
19284 rm -f core conftest.err conftest.$ac_objext \
19285       conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19287 fi
19288 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19289 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19290 if test $ac_cv_lib_gcc___alloca = yes; then
19291
19292 cat >>confdefs.h <<\_ACEOF
19293 #define HAVE___ALLOCA 1
19294 _ACEOF
19295
19296 fi
19297
19298   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19299 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19300 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19301   echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303   ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-lgcc  $LIBS"
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h.  */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h.  */
19311
19312 /* Override any GCC internal prototype to avoid an error.
19313    Use char because int might match the return type of a GCC
19314    builtin and then its argument prototype would still apply.  */
19315 #ifdef __cplusplus
19316 extern "C"
19317 #endif
19318 char __chkstk ();
19319 int
19320 main ()
19321 {
19322 return __chkstk ();
19323   ;
19324   return 0;
19325 }
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (ac_try="$ac_link"
19329 case "(($ac_try" in
19330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331   *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334   (eval "$ac_link") 2>conftest.er1
19335   ac_status=$?
19336   grep -v '^ *+' conftest.er1 >conftest.err
19337   rm -f conftest.er1
19338   cat conftest.err >&5
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342   { (case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_try") 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; } &&
19351          { ac_try='test -s conftest$ac_exeext'
19352   { (case "(($ac_try" in
19353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354   *) ac_try_echo=$ac_try;;
19355 esac
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357   (eval "$ac_try") 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; }; then
19361   ac_cv_lib_gcc___chkstk=yes
19362 else
19363   echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366         ac_cv_lib_gcc___chkstk=no
19367 fi
19368
19369 rm -f core conftest.err conftest.$ac_objext \
19370       conftest$ac_exeext conftest.$ac_ext
19371 LIBS=$ac_check_lib_save_LIBS
19372 fi
19373 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19374 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19375 if test $ac_cv_lib_gcc___chkstk = yes; then
19376
19377 cat >>confdefs.h <<\_ACEOF
19378 #define HAVE___CHKSTK 1
19379 _ACEOF
19380
19381 fi
19382
19383   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19384 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19385 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19386   echo $ECHO_N "(cached) $ECHO_C" >&6
19387 else
19388   ac_check_lib_save_LIBS=$LIBS
19389 LIBS="-lgcc  $LIBS"
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396
19397 /* Override any GCC internal prototype to avoid an error.
19398    Use char because int might match the return type of a GCC
19399    builtin and then its argument prototype would still apply.  */
19400 #ifdef __cplusplus
19401 extern "C"
19402 #endif
19403 char ___chkstk ();
19404 int
19405 main ()
19406 {
19407 return ___chkstk ();
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_link") 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } &&
19426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19427   { (case "(($ac_try" in
19428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429   *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432   (eval "$ac_try") 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; } &&
19436          { ac_try='test -s conftest$ac_exeext'
19437   { (case "(($ac_try" in
19438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439   *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442   (eval "$ac_try") 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; }; then
19446   ac_cv_lib_gcc____chkstk=yes
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451         ac_cv_lib_gcc____chkstk=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext \
19455       conftest$ac_exeext conftest.$ac_ext
19456 LIBS=$ac_check_lib_save_LIBS
19457 fi
19458 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19459 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19460 if test $ac_cv_lib_gcc____chkstk = yes; then
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE____CHKSTK 1
19464 _ACEOF
19465
19466 fi
19467
19468
19469   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19470 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19471 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19472   echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474   ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lgcc  $LIBS"
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482
19483 /* Override any GCC internal prototype to avoid an error.
19484    Use char because int might match the return type of a GCC
19485    builtin and then its argument prototype would still apply.  */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 char __ashldi3 ();
19490 int
19491 main ()
19492 {
19493 return __ashldi3 ();
19494   ;
19495   return 0;
19496 }
19497 _ACEOF
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_link") 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } &&
19512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19513   { (case "(($ac_try" in
19514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515   *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518   (eval "$ac_try") 2>&5
19519   ac_status=$?
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); }; } &&
19522          { ac_try='test -s conftest$ac_exeext'
19523   { (case "(($ac_try" in
19524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525   *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528   (eval "$ac_try") 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   ac_cv_lib_gcc___ashldi3=yes
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537         ac_cv_lib_gcc___ashldi3=no
19538 fi
19539
19540 rm -f core conftest.err conftest.$ac_objext \
19541       conftest$ac_exeext conftest.$ac_ext
19542 LIBS=$ac_check_lib_save_LIBS
19543 fi
19544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19545 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19546 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19547
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE___ASHLDI3 1
19550 _ACEOF
19551
19552 fi
19553
19554   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19555 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19556 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19557   echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559   ac_check_lib_save_LIBS=$LIBS
19560 LIBS="-lgcc  $LIBS"
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567
19568 /* Override any GCC internal prototype to avoid an error.
19569    Use char because int might match the return type of a GCC
19570    builtin and then its argument prototype would still apply.  */
19571 #ifdef __cplusplus
19572 extern "C"
19573 #endif
19574 char __ashrdi3 ();
19575 int
19576 main ()
19577 {
19578 return __ashrdi3 ();
19579   ;
19580   return 0;
19581 }
19582 _ACEOF
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (ac_try="$ac_link"
19585 case "(($ac_try" in
19586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587   *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590   (eval "$ac_link") 2>conftest.er1
19591   ac_status=$?
19592   grep -v '^ *+' conftest.er1 >conftest.err
19593   rm -f conftest.er1
19594   cat conftest.err >&5
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); } &&
19597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598   { (case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_try") 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; } &&
19607          { ac_try='test -s conftest$ac_exeext'
19608   { (case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613   (eval "$ac_try") 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; }; then
19617   ac_cv_lib_gcc___ashrdi3=yes
19618 else
19619   echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622         ac_cv_lib_gcc___ashrdi3=no
19623 fi
19624
19625 rm -f core conftest.err conftest.$ac_objext \
19626       conftest$ac_exeext conftest.$ac_ext
19627 LIBS=$ac_check_lib_save_LIBS
19628 fi
19629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19630 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19631 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19632
19633 cat >>confdefs.h <<\_ACEOF
19634 #define HAVE___ASHRDI3 1
19635 _ACEOF
19636
19637 fi
19638
19639   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19640 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19641 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19642   echo $ECHO_N "(cached) $ECHO_C" >&6
19643 else
19644   ac_check_lib_save_LIBS=$LIBS
19645 LIBS="-lgcc  $LIBS"
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652
19653 /* Override any GCC internal prototype to avoid an error.
19654    Use char because int might match the return type of a GCC
19655    builtin and then its argument prototype would still apply.  */
19656 #ifdef __cplusplus
19657 extern "C"
19658 #endif
19659 char __divdi3 ();
19660 int
19661 main ()
19662 {
19663 return __divdi3 ();
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (ac_try="$ac_link"
19670 case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675   (eval "$ac_link") 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } &&
19682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19683   { (case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_try") 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; } &&
19692          { ac_try='test -s conftest$ac_exeext'
19693   { (case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_try") 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   ac_cv_lib_gcc___divdi3=yes
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19706
19707         ac_cv_lib_gcc___divdi3=no
19708 fi
19709
19710 rm -f core conftest.err conftest.$ac_objext \
19711       conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19713 fi
19714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19715 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19716 if test $ac_cv_lib_gcc___divdi3 = yes; then
19717
19718 cat >>confdefs.h <<\_ACEOF
19719 #define HAVE___DIVDI3 1
19720 _ACEOF
19721
19722 fi
19723
19724   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19725 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19726 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   ac_check_lib_save_LIBS=$LIBS
19730 LIBS="-lgcc  $LIBS"
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737
19738 /* Override any GCC internal prototype to avoid an error.
19739    Use char because int might match the return type of a GCC
19740    builtin and then its argument prototype would still apply.  */
19741 #ifdef __cplusplus
19742 extern "C"
19743 #endif
19744 char __fixdfdi ();
19745 int
19746 main ()
19747 {
19748 return __fixdfdi ();
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext conftest$ac_exeext
19754 if { (ac_try="$ac_link"
19755 case "(($ac_try" in
19756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757   *) ac_try_echo=$ac_try;;
19758 esac
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760   (eval "$ac_link") 2>conftest.er1
19761   ac_status=$?
19762   grep -v '^ *+' conftest.er1 >conftest.err
19763   rm -f conftest.er1
19764   cat conftest.err >&5
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); } &&
19767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19768   { (case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_try") 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; } &&
19777          { ac_try='test -s conftest$ac_exeext'
19778   { (case "(($ac_try" in
19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780   *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783   (eval "$ac_try") 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; }; then
19787   ac_cv_lib_gcc___fixdfdi=yes
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792         ac_cv_lib_gcc___fixdfdi=no
19793 fi
19794
19795 rm -f core conftest.err conftest.$ac_objext \
19796       conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19798 fi
19799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19800 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19801 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE___FIXDFDI 1
19805 _ACEOF
19806
19807 fi
19808
19809   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19810 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19811 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814   ac_check_lib_save_LIBS=$LIBS
19815 LIBS="-lgcc  $LIBS"
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h.  */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h.  */
19822
19823 /* Override any GCC internal prototype to avoid an error.
19824    Use char because int might match the return type of a GCC
19825    builtin and then its argument prototype would still apply.  */
19826 #ifdef __cplusplus
19827 extern "C"
19828 #endif
19829 char __fixsfdi ();
19830 int
19831 main ()
19832 {
19833 return __fixsfdi ();
19834   ;
19835   return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845   (eval "$ac_link") 2>conftest.er1
19846   ac_status=$?
19847   grep -v '^ *+' conftest.er1 >conftest.err
19848   rm -f conftest.er1
19849   cat conftest.err >&5
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } &&
19852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853   { (case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_try") 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; } &&
19862          { ac_try='test -s conftest$ac_exeext'
19863   { (case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_try") 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; }; then
19872   ac_cv_lib_gcc___fixsfdi=yes
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877         ac_cv_lib_gcc___fixsfdi=no
19878 fi
19879
19880 rm -f core conftest.err conftest.$ac_objext \
19881       conftest$ac_exeext conftest.$ac_ext
19882 LIBS=$ac_check_lib_save_LIBS
19883 fi
19884 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19885 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19886 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE___FIXSFDI 1
19890 _ACEOF
19891
19892 fi
19893
19894   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19895 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19896 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   ac_check_lib_save_LIBS=$LIBS
19900 LIBS="-lgcc  $LIBS"
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h.  */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h.  */
19907
19908 /* Override any GCC internal prototype to avoid an error.
19909    Use char because int might match the return type of a GCC
19910    builtin and then its argument prototype would still apply.  */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 char __floatdidf ();
19915 int
19916 main ()
19917 {
19918 return __floatdidf ();
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927   *) ac_try_echo=$ac_try;;
19928 esac
19929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930   (eval "$ac_link") 2>conftest.er1
19931   ac_status=$?
19932   grep -v '^ *+' conftest.er1 >conftest.err
19933   rm -f conftest.er1
19934   cat conftest.err >&5
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); } &&
19937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19938   { (case "(($ac_try" in
19939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940   *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943   (eval "$ac_try") 2>&5
19944   ac_status=$?
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); }; } &&
19947          { ac_try='test -s conftest$ac_exeext'
19948   { (case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_try") 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; }; then
19957   ac_cv_lib_gcc___floatdidf=yes
19958 else
19959   echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962         ac_cv_lib_gcc___floatdidf=no
19963 fi
19964
19965 rm -f core conftest.err conftest.$ac_objext \
19966       conftest$ac_exeext conftest.$ac_ext
19967 LIBS=$ac_check_lib_save_LIBS
19968 fi
19969 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19970 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19971 if test $ac_cv_lib_gcc___floatdidf = yes; then
19972
19973 cat >>confdefs.h <<\_ACEOF
19974 #define HAVE___FLOATDIDF 1
19975 _ACEOF
19976
19977 fi
19978
19979   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19980 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19981 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   ac_check_lib_save_LIBS=$LIBS
19985 LIBS="-lgcc  $LIBS"
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992
19993 /* Override any GCC internal prototype to avoid an error.
19994    Use char because int might match the return type of a GCC
19995    builtin and then its argument prototype would still apply.  */
19996 #ifdef __cplusplus
19997 extern "C"
19998 #endif
19999 char __lshrdi3 ();
20000 int
20001 main ()
20002 {
20003 return __lshrdi3 ();
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012   *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015   (eval "$ac_link") 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } &&
20022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20023   { (case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028   (eval "$ac_try") 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; } &&
20032          { ac_try='test -s conftest$ac_exeext'
20033   { (case "(($ac_try" in
20034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035   *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038   (eval "$ac_try") 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   ac_cv_lib_gcc___lshrdi3=yes
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047         ac_cv_lib_gcc___lshrdi3=no
20048 fi
20049
20050 rm -f core conftest.err conftest.$ac_objext \
20051       conftest$ac_exeext conftest.$ac_ext
20052 LIBS=$ac_check_lib_save_LIBS
20053 fi
20054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20055 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20056 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20057
20058 cat >>confdefs.h <<\_ACEOF
20059 #define HAVE___LSHRDI3 1
20060 _ACEOF
20061
20062 fi
20063
20064   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20065 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20066 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20067   echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069   ac_check_lib_save_LIBS=$LIBS
20070 LIBS="-lgcc  $LIBS"
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077
20078 /* Override any GCC internal prototype to avoid an error.
20079    Use char because int might match the return type of a GCC
20080    builtin and then its argument prototype would still apply.  */
20081 #ifdef __cplusplus
20082 extern "C"
20083 #endif
20084 char __moddi3 ();
20085 int
20086 main ()
20087 {
20088 return __moddi3 ();
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_link") 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } &&
20107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20108   { (case "(($ac_try" in
20109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110   *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113   (eval "$ac_try") 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); }; } &&
20117          { ac_try='test -s conftest$ac_exeext'
20118   { (case "(($ac_try" in
20119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120   *) ac_try_echo=$ac_try;;
20121 esac
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123   (eval "$ac_try") 2>&5
20124   ac_status=$?
20125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126   (exit $ac_status); }; }; then
20127   ac_cv_lib_gcc___moddi3=yes
20128 else
20129   echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132         ac_cv_lib_gcc___moddi3=no
20133 fi
20134
20135 rm -f core conftest.err conftest.$ac_objext \
20136       conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20138 fi
20139 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20140 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20141 if test $ac_cv_lib_gcc___moddi3 = yes; then
20142
20143 cat >>confdefs.h <<\_ACEOF
20144 #define HAVE___MODDI3 1
20145 _ACEOF
20146
20147 fi
20148
20149   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20150 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20151 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lgcc  $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162
20163 /* Override any GCC internal prototype to avoid an error.
20164    Use char because int might match the return type of a GCC
20165    builtin and then its argument prototype would still apply.  */
20166 #ifdef __cplusplus
20167 extern "C"
20168 #endif
20169 char __udivdi3 ();
20170 int
20171 main ()
20172 {
20173 return __udivdi3 ();
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185   (eval "$ac_link") 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest$ac_exeext'
20203   { (case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208   (eval "$ac_try") 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   ac_cv_lib_gcc___udivdi3=yes
20213 else
20214   echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217         ac_cv_lib_gcc___udivdi3=no
20218 fi
20219
20220 rm -f core conftest.err conftest.$ac_objext \
20221       conftest$ac_exeext conftest.$ac_ext
20222 LIBS=$ac_check_lib_save_LIBS
20223 fi
20224 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20225 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20226 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20227
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE___UDIVDI3 1
20230 _ACEOF
20231
20232 fi
20233
20234   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20235 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20236 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   ac_check_lib_save_LIBS=$LIBS
20240 LIBS="-lgcc  $LIBS"
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247
20248 /* Override any GCC internal prototype to avoid an error.
20249    Use char because int might match the return type of a GCC
20250    builtin and then its argument prototype would still apply.  */
20251 #ifdef __cplusplus
20252 extern "C"
20253 #endif
20254 char __umoddi3 ();
20255 int
20256 main ()
20257 {
20258 return __umoddi3 ();
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267   *) ac_try_echo=$ac_try;;
20268 esac
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270   (eval "$ac_link") 2>conftest.er1
20271   ac_status=$?
20272   grep -v '^ *+' conftest.er1 >conftest.err
20273   rm -f conftest.er1
20274   cat conftest.err >&5
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } &&
20277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20278   { (case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_try") 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; } &&
20287          { ac_try='test -s conftest$ac_exeext'
20288   { (case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293   (eval "$ac_try") 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_lib_gcc___umoddi3=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         ac_cv_lib_gcc___umoddi3=no
20303 fi
20304
20305 rm -f core conftest.err conftest.$ac_objext \
20306       conftest$ac_exeext conftest.$ac_ext
20307 LIBS=$ac_check_lib_save_LIBS
20308 fi
20309 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20310 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20311 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20312
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE___UMODDI3 1
20315 _ACEOF
20316
20317 fi
20318
20319
20320   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20321 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20322 if test "${ac_cv_lib_gcc___main+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   ac_check_lib_save_LIBS=$LIBS
20326 LIBS="-lgcc  $LIBS"
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333
20334 /* Override any GCC internal prototype to avoid an error.
20335    Use char because int might match the return type of a GCC
20336    builtin and then its argument prototype would still apply.  */
20337 #ifdef __cplusplus
20338 extern "C"
20339 #endif
20340 char __main ();
20341 int
20342 main ()
20343 {
20344 return __main ();
20345   ;
20346   return 0;
20347 }
20348 _ACEOF
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356   (eval "$ac_link") 2>conftest.er1
20357   ac_status=$?
20358   grep -v '^ *+' conftest.er1 >conftest.err
20359   rm -f conftest.er1
20360   cat conftest.err >&5
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); } &&
20363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20364   { (case "(($ac_try" in
20365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366   *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369   (eval "$ac_try") 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; } &&
20373          { ac_try='test -s conftest$ac_exeext'
20374   { (case "(($ac_try" in
20375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376   *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379   (eval "$ac_try") 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_cv_lib_gcc___main=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388         ac_cv_lib_gcc___main=no
20389 fi
20390
20391 rm -f core conftest.err conftest.$ac_objext \
20392       conftest$ac_exeext conftest.$ac_ext
20393 LIBS=$ac_check_lib_save_LIBS
20394 fi
20395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20396 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20397 if test $ac_cv_lib_gcc___main = yes; then
20398
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE___MAIN 1
20401 _ACEOF
20402
20403 fi
20404
20405   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20406 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20407 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lgcc  $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418
20419 /* Override any GCC internal prototype to avoid an error.
20420    Use char because int might match the return type of a GCC
20421    builtin and then its argument prototype would still apply.  */
20422 #ifdef __cplusplus
20423 extern "C"
20424 #endif
20425 char __cmpdi2 ();
20426 int
20427 main ()
20428 {
20429 return __cmpdi2 ();
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_link") 2>conftest.er1
20442   ac_status=$?
20443   grep -v '^ *+' conftest.er1 >conftest.err
20444   rm -f conftest.er1
20445   cat conftest.err >&5
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); } &&
20448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20449   { (case "(($ac_try" in
20450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451   *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454   (eval "$ac_try") 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); }; } &&
20458          { ac_try='test -s conftest$ac_exeext'
20459   { (case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_try") 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; }; then
20468   ac_cv_lib_gcc___cmpdi2=yes
20469 else
20470   echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473         ac_cv_lib_gcc___cmpdi2=no
20474 fi
20475
20476 rm -f core conftest.err conftest.$ac_objext \
20477       conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20479 fi
20480 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20481 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20482 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20483
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE___CMPDI2 1
20486 _ACEOF
20487
20488 fi
20489
20490 fi
20491
20492 if test "$llvm_cv_os_type" = "MingW" ; then
20493   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20494 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20495   cat >conftest.$ac_ext <<_ACEOF
20496
20497   /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502
20503     #include <windows.h>
20504     #include <imagehlp.h>
20505     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20506     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20507
20508
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_compile") 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } &&
20524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20525   { (case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_try") 2>&5
20531   ac_status=$?
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); }; } &&
20534          { ac_try='test -s conftest.$ac_objext'
20535   { (case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_try") 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544
20545   { echo "$as_me:$LINENO: result: yes" >&5
20546 echo "${ECHO_T}yes" >&6; }
20547   llvm_cv_win32_elmcb_pcstr="PCSTR"
20548
20549 else
20550   echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553
20554   { echo "$as_me:$LINENO: result: no" >&5
20555 echo "${ECHO_T}no" >&6; }
20556   llvm_cv_win32_elmcb_pcstr="PSTR"
20557
20558 fi
20559
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20564 _ACEOF
20565
20566 fi
20567
20568
20569
20570   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20571 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20572 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575
20576     ac_ext=cpp
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20581
20582     cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588 #include <math.h>
20589 int
20590 main ()
20591 {
20592 float f; isnan(f);
20593   ;
20594   return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601   *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604   (eval "$ac_compile") 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20612   { (case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_try") 2>&5
20618   ac_status=$?
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); }; } &&
20621          { ac_try='test -s conftest.$ac_objext'
20622   { (case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_try") 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_func_isnan_in_math_h=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636         ac_cv_func_isnan_in_math_h=no
20637 fi
20638
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640     ac_ext=c
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645
20646
20647 fi
20648 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20649 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20650
20651
20652 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20653
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_ISNAN_IN_MATH_H 1
20656 _ACEOF
20657
20658 fi
20659
20660
20661   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20662 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20663 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20664   echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666
20667     ac_ext=cpp
20668 ac_cpp='$CXXCPP $CPPFLAGS'
20669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20672
20673     cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 #include <cmath>
20680 int
20681 main ()
20682 {
20683 float f; isnan(f);
20684   ;
20685   return 0;
20686 }
20687 _ACEOF
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692   *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695   (eval "$ac_compile") 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } &&
20702          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_try") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; } &&
20712          { ac_try='test -s conftest.$ac_objext'
20713   { (case "(($ac_try" in
20714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715   *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718   (eval "$ac_try") 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; }; then
20722   ac_cv_func_isnan_in_cmath=yes
20723 else
20724   echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727         ac_cv_func_isnan_in_cmath=no
20728 fi
20729
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731     ac_ext=c
20732 ac_cpp='$CPP $CPPFLAGS'
20733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20736
20737
20738 fi
20739 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20740 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20741
20742 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20743
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_ISNAN_IN_CMATH 1
20746 _ACEOF
20747
20748 fi
20749
20750
20751   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20752 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20753 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20754   echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756
20757     ac_ext=cpp
20758 ac_cpp='$CXXCPP $CPPFLAGS'
20759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20762
20763     cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 #include <cmath>
20770 int
20771 main ()
20772 {
20773 float f; std::isnan(f);
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_compile") 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } &&
20792          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20793   { (case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_try") 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); }; } &&
20802          { ac_try='test -s conftest.$ac_objext'
20803   { (case "(($ac_try" in
20804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805   *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808   (eval "$ac_try") 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; }; then
20812   ac_cv_func_std_isnan_in_cmath=yes
20813 else
20814   echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817         ac_cv_func_std_isnan_in_cmath=no
20818 fi
20819
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821     ac_ext=c
20822 ac_cpp='$CPP $CPPFLAGS'
20823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20826
20827
20828 fi
20829 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20830 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20831
20832 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_STD_ISNAN_IN_CMATH 1
20836 _ACEOF
20837
20838 fi
20839
20840
20841
20842
20843   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20844 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20845 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20846   echo $ECHO_N "(cached) $ECHO_C" >&6
20847 else
20848
20849     ac_ext=cpp
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
20855     cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 #include <math.h>
20862 int
20863 main ()
20864 {
20865 float f; isinf(f);
20866   ;
20867   return 0;
20868 }
20869 _ACEOF
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874   *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877   (eval "$ac_compile") 2>conftest.er1
20878   ac_status=$?
20879   grep -v '^ *+' conftest.er1 >conftest.err
20880   rm -f conftest.er1
20881   cat conftest.err >&5
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } &&
20884          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20885   { (case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_try") 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; } &&
20894          { ac_try='test -s conftest.$ac_objext'
20895   { (case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_try") 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; }; then
20904   ac_cv_func_isinf_in_math_h=yes
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         ac_cv_func_isinf_in_math_h=no
20910 fi
20911
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913     ac_ext=c
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919
20920 fi
20921 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20922 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20923
20924 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20925
20926 cat >>confdefs.h <<\_ACEOF
20927 #define HAVE_ISINF_IN_MATH_H 1
20928 _ACEOF
20929
20930 fi
20931
20932
20933   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20934 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20935 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20936   echo $ECHO_N "(cached) $ECHO_C" >&6
20937 else
20938
20939     ac_ext=cpp
20940 ac_cpp='$CXXCPP $CPPFLAGS'
20941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20944
20945     cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h.  */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h.  */
20951 #include <cmath>
20952 int
20953 main ()
20954 {
20955 float f; isinf(f);
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_compile") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } &&
20974          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20975   { (case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980   (eval "$ac_try") 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; } &&
20984          { ac_try='test -s conftest.$ac_objext'
20985   { (case "(($ac_try" in
20986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987   *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990   (eval "$ac_try") 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; }; then
20994   ac_cv_func_isinf_in_cmath=yes
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999         ac_cv_func_isinf_in_cmath=no
21000 fi
21001
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003     ac_ext=c
21004 ac_cpp='$CPP $CPPFLAGS'
21005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010 fi
21011 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21012 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21013
21014 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21015
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_ISINF_IN_CMATH 1
21018 _ACEOF
21019
21020 fi
21021
21022
21023   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21024 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21025 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028
21029     ac_ext=cpp
21030 ac_cpp='$CXXCPP $CPPFLAGS'
21031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21034
21035     cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041 #include <cmath>
21042 int
21043 main ()
21044 {
21045 float f; std::isinf(f);
21046   ;
21047   return 0;
21048 }
21049 _ACEOF
21050 rm -f conftest.$ac_objext
21051 if { (ac_try="$ac_compile"
21052 case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_compile") 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21065   { (case "(($ac_try" in
21066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067   *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070   (eval "$ac_try") 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; } &&
21074          { ac_try='test -s conftest.$ac_objext'
21075   { (case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_try") 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; }; then
21084   ac_cv_func_std_isinf_in_cmath=yes
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089         ac_cv_func_std_isinf_in_cmath=no
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093     ac_ext=c
21094 ac_cpp='$CPP $CPPFLAGS'
21095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21098
21099
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21102 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21103
21104 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_STD_ISINF_IN_CMATH 1
21108 _ACEOF
21109
21110 fi
21111
21112
21113   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21114 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21115 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21116   echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118
21119     ac_ext=cpp
21120 ac_cpp='$CXXCPP $CPPFLAGS'
21121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21124
21125     cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21131 #include <ieeefp.h>
21132 int
21133 main ()
21134 {
21135 float f; finite(f);
21136   ;
21137   return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144   *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147   (eval "$ac_compile") 2>conftest.er1
21148   ac_status=$?
21149   grep -v '^ *+' conftest.er1 >conftest.err
21150   rm -f conftest.er1
21151   cat conftest.err >&5
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); } &&
21154          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21155   { (case "(($ac_try" in
21156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157   *) ac_try_echo=$ac_try;;
21158 esac
21159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160   (eval "$ac_try") 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); }; } &&
21164          { ac_try='test -s conftest.$ac_objext'
21165   { (case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170   (eval "$ac_try") 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   ac_cv_func_finite_in_ieeefp_h=yes
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179         ac_cv_func_finite_in_ieeefp_h=no
21180 fi
21181
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183     ac_ext=c
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188
21189
21190 fi
21191 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21192 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21193
21194 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21195
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_FINITE_IN_IEEEFP_H 1
21198 _ACEOF
21199
21200 fi
21201
21202
21203
21204 if test "$llvm_cv_platform_type" = "Unix" ; then
21205
21206
21207 for ac_header in stdlib.h unistd.h
21208 do
21209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21211   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 fi
21216 ac_res=`eval echo '${'$as_ac_Header'}'`
21217                { echo "$as_me:$LINENO: result: $ac_res" >&5
21218 echo "${ECHO_T}$ac_res" >&6; }
21219 else
21220   # Is the header compilable?
21221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 $ac_includes_default
21230 #include <$ac_header>
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_compile") 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } &&
21246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21247   { (case "(($ac_try" in
21248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249   *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252   (eval "$ac_try") 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; } &&
21256          { ac_try='test -s conftest.$ac_objext'
21257   { (case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_try") 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; }; then
21266   ac_header_compiler=yes
21267 else
21268   echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21270
21271         ac_header_compiler=no
21272 fi
21273
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21276 echo "${ECHO_T}$ac_header_compiler" >&6; }
21277
21278 # Is the header present?
21279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 #include <$ac_header>
21288 _ACEOF
21289 if { (ac_try="$ac_cpp conftest.$ac_ext"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21296   ac_status=$?
21297   grep -v '^ *+' conftest.er1 >conftest.err
21298   rm -f conftest.er1
21299   cat conftest.err >&5
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } >/dev/null; then
21302   if test -s conftest.err; then
21303     ac_cpp_err=$ac_c_preproc_warn_flag
21304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21305   else
21306     ac_cpp_err=
21307   fi
21308 else
21309   ac_cpp_err=yes
21310 fi
21311 if test -z "$ac_cpp_err"; then
21312   ac_header_preproc=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317   ac_header_preproc=no
21318 fi
21319
21320 rm -f conftest.err conftest.$ac_ext
21321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21322 echo "${ECHO_T}$ac_header_preproc" >&6; }
21323
21324 # So?  What about this header?
21325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21326   yes:no: )
21327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21331     ac_header_preproc=yes
21332     ;;
21333   no:yes:* )
21334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21346     ( cat <<\_ASBOX
21347 ## ------------------------------------ ##
21348 ## Report this to http://llvm.org/bugs/ ##
21349 ## ------------------------------------ ##
21350 _ASBOX
21351      ) | sed "s/^/$as_me: WARNING:     /" >&2
21352     ;;
21353 esac
21354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21357   echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359   eval "$as_ac_Header=\$ac_header_preproc"
21360 fi
21361 ac_res=`eval echo '${'$as_ac_Header'}'`
21362                { echo "$as_me:$LINENO: result: $ac_res" >&5
21363 echo "${ECHO_T}$ac_res" >&6; }
21364
21365 fi
21366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21367   cat >>confdefs.h <<_ACEOF
21368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21369 _ACEOF
21370
21371 fi
21372
21373 done
21374
21375
21376 for ac_func in getpagesize
21377 do
21378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21382   echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384   cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21392 #define $ac_func innocuous_$ac_func
21393
21394 /* System header to define __stub macros and hopefully few prototypes,
21395     which can conflict with char $ac_func (); below.
21396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21397     <limits.h> exists even on freestanding compilers.  */
21398
21399 #ifdef __STDC__
21400 # include <limits.h>
21401 #else
21402 # include <assert.h>
21403 #endif
21404
21405 #undef $ac_func
21406
21407 /* Override any GCC internal prototype to avoid an error.
21408    Use char because int might match the return type of a GCC
21409    builtin and then its argument prototype would still apply.  */
21410 #ifdef __cplusplus
21411 extern "C"
21412 #endif
21413 char $ac_func ();
21414 /* The GNU C library defines this for functions which it implements
21415     to always fail with ENOSYS.  Some functions are actually named
21416     something starting with __ and the normal name is an alias.  */
21417 #if defined __stub_$ac_func || defined __stub___$ac_func
21418 choke me
21419 #endif
21420
21421 int
21422 main ()
21423 {
21424 return $ac_func ();
21425   ;
21426   return 0;
21427 }
21428 _ACEOF
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (ac_try="$ac_link"
21431 case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_link") 2>conftest.er1
21437   ac_status=$?
21438   grep -v '^ *+' conftest.er1 >conftest.err
21439   rm -f conftest.er1
21440   cat conftest.err >&5
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } &&
21443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21444   { (case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_try") 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; } &&
21453          { ac_try='test -s conftest$ac_exeext'
21454   { (case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_try") 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; }; then
21463   eval "$as_ac_var=yes"
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468         eval "$as_ac_var=no"
21469 fi
21470
21471 rm -f core conftest.err conftest.$ac_objext \
21472       conftest$ac_exeext conftest.$ac_ext
21473 fi
21474 ac_res=`eval echo '${'$as_ac_var'}'`
21475                { echo "$as_me:$LINENO: result: $ac_res" >&5
21476 echo "${ECHO_T}$ac_res" >&6; }
21477 if test `eval echo '${'$as_ac_var'}'` = yes; then
21478   cat >>confdefs.h <<_ACEOF
21479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21480 _ACEOF
21481
21482 fi
21483 done
21484
21485 { echo "$as_me:$LINENO: checking for working mmap" >&5
21486 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21487 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21488   echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490   if test "$cross_compiling" = yes; then
21491   ac_cv_func_mmap_fixed_mapped=no
21492 else
21493   cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h.  */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h.  */
21499 $ac_includes_default
21500 /* malloc might have been renamed as rpl_malloc. */
21501 #undef malloc
21502
21503 /* Thanks to Mike Haertel and Jim Avera for this test.
21504    Here is a matrix of mmap possibilities:
21505         mmap private not fixed
21506         mmap private fixed at somewhere currently unmapped
21507         mmap private fixed at somewhere already mapped
21508         mmap shared not fixed
21509         mmap shared fixed at somewhere currently unmapped
21510         mmap shared fixed at somewhere already mapped
21511    For private mappings, we should verify that changes cannot be read()
21512    back from the file, nor mmap's back from the file at a different
21513    address.  (There have been systems where private was not correctly
21514    implemented like the infamous i386 svr4.0, and systems where the
21515    VM page cache was not coherent with the file system buffer cache
21516    like early versions of FreeBSD and possibly contemporary NetBSD.)
21517    For shared mappings, we should conversely verify that changes get
21518    propagated back to all the places they're supposed to be.
21519
21520    Grep wants private fixed already mapped.
21521    The main things grep needs to know about mmap are:
21522    * does it exist and is it safe to write into the mmap'd area
21523    * how to use it (BSD variants)  */
21524
21525 #include <fcntl.h>
21526 #include <sys/mman.h>
21527
21528 #if !STDC_HEADERS && !HAVE_STDLIB_H
21529 char *malloc ();
21530 #endif
21531
21532 /* This mess was copied from the GNU getpagesize.h.  */
21533 #if !HAVE_GETPAGESIZE
21534 /* Assume that all systems that can run configure have sys/param.h.  */
21535 # if !HAVE_SYS_PARAM_H
21536 #  define HAVE_SYS_PARAM_H 1
21537 # endif
21538
21539 # ifdef _SC_PAGESIZE
21540 #  define getpagesize() sysconf(_SC_PAGESIZE)
21541 # else /* no _SC_PAGESIZE */
21542 #  if HAVE_SYS_PARAM_H
21543 #   include <sys/param.h>
21544 #   ifdef EXEC_PAGESIZE
21545 #    define getpagesize() EXEC_PAGESIZE
21546 #   else /* no EXEC_PAGESIZE */
21547 #    ifdef NBPG
21548 #     define getpagesize() NBPG * CLSIZE
21549 #     ifndef CLSIZE
21550 #      define CLSIZE 1
21551 #     endif /* no CLSIZE */
21552 #    else /* no NBPG */
21553 #     ifdef NBPC
21554 #      define getpagesize() NBPC
21555 #     else /* no NBPC */
21556 #      ifdef PAGESIZE
21557 #       define getpagesize() PAGESIZE
21558 #      endif /* PAGESIZE */
21559 #     endif /* no NBPC */
21560 #    endif /* no NBPG */
21561 #   endif /* no EXEC_PAGESIZE */
21562 #  else /* no HAVE_SYS_PARAM_H */
21563 #   define getpagesize() 8192   /* punt totally */
21564 #  endif /* no HAVE_SYS_PARAM_H */
21565 # endif /* no _SC_PAGESIZE */
21566
21567 #endif /* no HAVE_GETPAGESIZE */
21568
21569 int
21570 main ()
21571 {
21572   char *data, *data2, *data3;
21573   int i, pagesize;
21574   int fd;
21575
21576   pagesize = getpagesize ();
21577
21578   /* First, make a file with some known garbage in it. */
21579   data = (char *) malloc (pagesize);
21580   if (!data)
21581     return 1;
21582   for (i = 0; i < pagesize; ++i)
21583     *(data + i) = rand ();
21584   umask (0);
21585   fd = creat ("conftest.mmap", 0600);
21586   if (fd < 0)
21587     return 1;
21588   if (write (fd, data, pagesize) != pagesize)
21589     return 1;
21590   close (fd);
21591
21592   /* Next, try to mmap the file at a fixed address which already has
21593      something else allocated at it.  If we can, also make sure that
21594      we see the same garbage.  */
21595   fd = open ("conftest.mmap", O_RDWR);
21596   if (fd < 0)
21597     return 1;
21598   data2 = (char *) malloc (2 * pagesize);
21599   if (!data2)
21600     return 1;
21601   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21602   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21603                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21604     return 1;
21605   for (i = 0; i < pagesize; ++i)
21606     if (*(data + i) != *(data2 + i))
21607       return 1;
21608
21609   /* Finally, make sure that changes to the mapped area do not
21610      percolate back to the file as seen by read().  (This is a bug on
21611      some variants of i386 svr4.0.)  */
21612   for (i = 0; i < pagesize; ++i)
21613     *(data2 + i) = *(data2 + i) + 1;
21614   data3 = (char *) malloc (pagesize);
21615   if (!data3)
21616     return 1;
21617   if (read (fd, data3, pagesize) != pagesize)
21618     return 1;
21619   for (i = 0; i < pagesize; ++i)
21620     if (*(data + i) != *(data3 + i))
21621       return 1;
21622   close (fd);
21623   return 0;
21624 }
21625 _ACEOF
21626 rm -f conftest$ac_exeext
21627 if { (ac_try="$ac_link"
21628 case "(($ac_try" in
21629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630   *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633   (eval "$ac_link") 2>&5
21634   ac_status=$?
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21637   { (case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_try") 2>&5
21643   ac_status=$?
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); }; }; then
21646   ac_cv_func_mmap_fixed_mapped=yes
21647 else
21648   echo "$as_me: program exited with status $ac_status" >&5
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21651
21652 ( exit $ac_status )
21653 ac_cv_func_mmap_fixed_mapped=no
21654 fi
21655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21656 fi
21657
21658
21659 fi
21660 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21661 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21663
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_MMAP 1
21666 _ACEOF
21667
21668 fi
21669 rm -f conftest.mmap
21670
21671   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21672 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21673 if test "${ac_cv_func_mmap_file+set}" = set; then
21674   echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676    ac_ext=c
21677 ac_cpp='$CPP $CPPFLAGS'
21678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21681
21682   if test "$cross_compiling" = yes; then
21683   ac_cv_func_mmap_file=no
21684 else
21685   cat >conftest.$ac_ext <<_ACEOF
21686
21687     /* confdefs.h.  */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h.  */
21692
21693 #include <sys/types.h>
21694 #include <sys/mman.h>
21695 #include <fcntl.h>
21696
21697 int
21698 main ()
21699 {
21700
21701   int fd;
21702   fd = creat ("foo",0777);
21703   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21704   unlink ("foo");
21705   return (fd != (int) MAP_FAILED);
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714   *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717   (eval "$ac_link") 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21721   { (case "(($ac_try" in
21722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723   *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726   (eval "$ac_try") 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }; }; then
21730   ac_cv_func_mmap_file=yes
21731 else
21732   echo "$as_me: program exited with status $ac_status" >&5
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ( exit $ac_status )
21737 ac_cv_func_mmap_file=no
21738 fi
21739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21740 fi
21741
21742
21743   ac_ext=c
21744 ac_cpp='$CPP $CPPFLAGS'
21745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21748
21749
21750 fi
21751 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21752 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21753 if test "$ac_cv_func_mmap_file" = yes; then
21754
21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_MMAP_FILE
21757 _ACEOF
21758
21759    MMAP_FILE=yes
21760
21761 fi
21762
21763   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21764 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21765 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21766   echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768   if test "$llvm_cv_os_type" = "Interix" ; then
21769    ac_cv_need_dev_zero_for_mmap=yes
21770  else
21771    ac_cv_need_dev_zero_for_mmap=no
21772  fi
21773
21774 fi
21775 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21776 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21777 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21778
21779 cat >>confdefs.h <<\_ACEOF
21780 #define NEED_DEV_ZERO_FOR_MMAP 1
21781 _ACEOF
21782
21783 fi
21784
21785   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21786   then
21787     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21788 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21789   fi
21790   if test "$ac_cv_func_mmap_file" = "no"
21791   then
21792     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21793 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21794   fi
21795 fi
21796
21797 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21798 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21799 ac_ext=cpp
21800 ac_cpp='$CXXCPP $CPPFLAGS'
21801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21804
21805 cat >conftest.$ac_ext <<_ACEOF
21806
21807   /* confdefs.h.  */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h.  */
21812
21813     int main() {
21814       volatile unsigned long val = 1;
21815       __sync_synchronize();
21816       __sync_val_compare_and_swap(&val, 1, 0);
21817       __sync_add_and_fetch(&val, 1);
21818       __sync_sub_and_fetch(&val, 1);
21819       return 0;
21820     }
21821
21822
21823 _ACEOF
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (ac_try="$ac_link"
21826 case "(($ac_try" in
21827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828   *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831   (eval "$ac_link") 2>conftest.er1
21832   ac_status=$?
21833   grep -v '^ *+' conftest.er1 >conftest.err
21834   rm -f conftest.er1
21835   cat conftest.err >&5
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); } &&
21838          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21839   { (case "(($ac_try" in
21840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841   *) ac_try_echo=$ac_try;;
21842 esac
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844   (eval "$ac_try") 2>&5
21845   ac_status=$?
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); }; } &&
21848          { ac_try='test -s conftest$ac_exeext'
21849   { (case "(($ac_try" in
21850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851   *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854   (eval "$ac_try") 2>&5
21855   ac_status=$?
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); }; }; then
21858
21859   { echo "$as_me:$LINENO: result: yes" >&5
21860 echo "${ECHO_T}yes" >&6; }
21861
21862 cat >>confdefs.h <<\_ACEOF
21863 #define LLVM_HAS_ATOMICS 1
21864 _ACEOF
21865
21866
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871
21872   { echo "$as_me:$LINENO: result: no" >&5
21873 echo "${ECHO_T}no" >&6; }
21874
21875 cat >>confdefs.h <<\_ACEOF
21876 #define LLVM_HAS_ATOMICS 0
21877 _ACEOF
21878
21879   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21880 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21881
21882 fi
21883
21884 rm -f core conftest.err conftest.$ac_objext \
21885       conftest$ac_exeext conftest.$ac_ext
21886 ac_ext=c
21887 ac_cpp='$CPP $CPPFLAGS'
21888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21891
21892
21893
21894 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21895   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21896 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21897 if test "${llvm_cv_linux_mixed+set}" = set; then
21898   echo $ECHO_N "(cached) $ECHO_C" >&6
21899 else
21900    ac_ext=c
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21905
21906   cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #ifndef __x86_64__
21913        error: Not x86-64 even if uname says so!
21914       #endif
21915
21916 int
21917 main ()
21918 {
21919
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931   (eval "$ac_compile") 2>conftest.er1
21932   ac_status=$?
21933   grep -v '^ *+' conftest.er1 >conftest.err
21934   rm -f conftest.er1
21935   cat conftest.err >&5
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } &&
21938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21939   { (case "(($ac_try" in
21940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941   *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944   (eval "$ac_try") 2>&5
21945   ac_status=$?
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); }; } &&
21948          { ac_try='test -s conftest.$ac_objext'
21949   { (case "(($ac_try" in
21950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951   *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954   (eval "$ac_try") 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; }; then
21958   llvm_cv_linux_mixed=no
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963         llvm_cv_linux_mixed=yes
21964 fi
21965
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967   ac_ext=c
21968 ac_cpp='$CPP $CPPFLAGS'
21969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21972
21973
21974 fi
21975 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21976 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21977
21978   if test "$llvm_cv_linux_mixed" = "yes"; then
21979     llvm_cv_target_arch="x86"
21980     ARCH="x86"
21981   fi
21982 fi
21983
21984
21985 for ac_func in __dso_handle
21986 do
21987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21991   echo $ECHO_N "(cached) $ECHO_C" >&6
21992 else
21993   cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22001 #define $ac_func innocuous_$ac_func
22002
22003 /* System header to define __stub macros and hopefully few prototypes,
22004     which can conflict with char $ac_func (); below.
22005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22006     <limits.h> exists even on freestanding compilers.  */
22007
22008 #ifdef __STDC__
22009 # include <limits.h>
22010 #else
22011 # include <assert.h>
22012 #endif
22013
22014 #undef $ac_func
22015
22016 /* Override any GCC internal prototype to avoid an error.
22017    Use char because int might match the return type of a GCC
22018    builtin and then its argument prototype would still apply.  */
22019 #ifdef __cplusplus
22020 extern "C"
22021 #endif
22022 char $ac_func ();
22023 /* The GNU C library defines this for functions which it implements
22024     to always fail with ENOSYS.  Some functions are actually named
22025     something starting with __ and the normal name is an alias.  */
22026 #if defined __stub_$ac_func || defined __stub___$ac_func
22027 choke me
22028 #endif
22029
22030 int
22031 main ()
22032 {
22033 return $ac_func ();
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 rm -f conftest.$ac_objext conftest$ac_exeext
22039 if { (ac_try="$ac_link"
22040 case "(($ac_try" in
22041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042   *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045   (eval "$ac_link") 2>conftest.er1
22046   ac_status=$?
22047   grep -v '^ *+' conftest.er1 >conftest.err
22048   rm -f conftest.er1
22049   cat conftest.err >&5
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } &&
22052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22053   { (case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_try") 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; } &&
22062          { ac_try='test -s conftest$ac_exeext'
22063   { (case "(($ac_try" in
22064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065   *) ac_try_echo=$ac_try;;
22066 esac
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068   (eval "$ac_try") 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); }; }; then
22072   eval "$as_ac_var=yes"
22073 else
22074   echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077         eval "$as_ac_var=no"
22078 fi
22079
22080 rm -f core conftest.err conftest.$ac_objext \
22081       conftest$ac_exeext conftest.$ac_ext
22082 fi
22083 ac_res=`eval echo '${'$as_ac_var'}'`
22084                { echo "$as_me:$LINENO: result: $ac_res" >&5
22085 echo "${ECHO_T}$ac_res" >&6; }
22086 if test `eval echo '${'$as_ac_var'}'` = yes; then
22087   cat >>confdefs.h <<_ACEOF
22088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22089 _ACEOF
22090
22091 fi
22092 done
22093
22094
22095 SHLIBEXT=$libltdl_cv_shlibext
22096
22097
22098 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22099
22100
22101 if test "${prefix}" = "NONE" ; then
22102   prefix="/usr/local"
22103 fi
22104 eval LLVM_PREFIX="${prefix}";
22105 eval LLVM_BINDIR="${prefix}/bin";
22106 eval LLVM_DATADIR="${prefix}/share/llvm";
22107 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22108 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22109 eval LLVM_INCLUDEDIR="${prefix}/include";
22110 eval LLVM_INFODIR="${prefix}/info";
22111 eval LLVM_MANDIR="${prefix}/man";
22112 LLVM_CONFIGTIME=`date`
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22124   LLVM_CONFIGTIME="(timestamp not enabled)"
22125 fi
22126
22127
22128 cat >>confdefs.h <<_ACEOF
22129 #define LLVM_PREFIX "$LLVM_PREFIX"
22130 _ACEOF
22131
22132
22133 cat >>confdefs.h <<_ACEOF
22134 #define LLVM_BINDIR "$LLVM_BINDIR"
22135 _ACEOF
22136
22137
22138 cat >>confdefs.h <<_ACEOF
22139 #define LLVM_DATADIR "$LLVM_DATADIR"
22140 _ACEOF
22141
22142
22143 cat >>confdefs.h <<_ACEOF
22144 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22145 _ACEOF
22146
22147
22148 cat >>confdefs.h <<_ACEOF
22149 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22150 _ACEOF
22151
22152
22153 cat >>confdefs.h <<_ACEOF
22154 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22155 _ACEOF
22156
22157
22158 cat >>confdefs.h <<_ACEOF
22159 #define LLVM_INFODIR "$LLVM_INFODIR"
22160 _ACEOF
22161
22162
22163 cat >>confdefs.h <<_ACEOF
22164 #define LLVM_MANDIR "$LLVM_MANDIR"
22165 _ACEOF
22166
22167
22168 cat >>confdefs.h <<_ACEOF
22169 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22170 _ACEOF
22171
22172
22173 cat >>confdefs.h <<_ACEOF
22174 #define LLVM_HOST_TRIPLE "$host"
22175 _ACEOF
22176
22177
22178 cat >>confdefs.h <<_ACEOF
22179 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22180 _ACEOF
22181
22182
22183 if test "$BINDINGS_TO_BUILD" = auto ; then
22184   BINDINGS_TO_BUILD=""
22185   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22186     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22187   fi
22188 fi
22189 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22190
22191
22192 ALL_BINDINGS=ocaml
22193
22194
22195 binding_prereqs_failed=0
22196 for a_binding in $BINDINGS_TO_BUILD ; do
22197   case "$a_binding" in
22198   ocaml)
22199     if test "x$OCAMLC" = x ; then
22200       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22201 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22202       binding_prereqs_failed=1
22203     fi
22204     if test "x$OCAMLDEP" = x ; then
22205       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22206 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22207       binding_prereqs_failed=1
22208     fi
22209     if test "x$OCAMLOPT" = x ; then
22210       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22211 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22212           fi
22213     if test "x$with_ocaml_libdir" != xauto ; then
22214       OCAML_LIBDIR=$with_ocaml_libdir
22215
22216     else
22217       ocaml_stdlib="`"$OCAMLC" -where`"
22218       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22219       then
22220         # ocaml stdlib is beneath our prefix; use stdlib
22221         OCAML_LIBDIR=$ocaml_stdlib
22222
22223       else
22224         # ocaml stdlib is outside our prefix; use libdir/ocaml
22225         OCAML_LIBDIR=${prefix}/lib/ocaml
22226
22227       fi
22228     fi
22229     ;;
22230   esac
22231 done
22232 if test "$binding_prereqs_failed" = 1 ; then
22233   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22234 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22235    { (exit 1); exit 1; }; }
22236 fi
22237
22238 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22239 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22240 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243    ac_ext=cpp
22244 ac_cpp='$CXXCPP $CPPFLAGS'
22245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22248
22249   oldcxxflags="$CXXFLAGS"
22250   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22251   cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22258 int
22259 main ()
22260 {
22261 X<int>().f();
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_compile") 2>conftest.er1
22274   ac_status=$?
22275   grep -v '^ *+' conftest.er1 >conftest.err
22276   rm -f conftest.er1
22277   cat conftest.err >&5
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } &&
22280          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22281   { (case "(($ac_try" in
22282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283   *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286   (eval "$ac_try") 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; } &&
22290          { ac_try='test -s conftest.$ac_objext'
22291   { (case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296   (eval "$ac_try") 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; }; then
22300   llvm_cv_cxx_visibility_inlines_hidden=yes
22301 else
22302   echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305         llvm_cv_cxx_visibility_inlines_hidden=no
22306 fi
22307
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309   CXXFLAGS="$oldcxxflags"
22310   ac_ext=c
22311 ac_cpp='$CPP $CPPFLAGS'
22312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22315
22316
22317 fi
22318 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22319 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22320 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22321   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22322
22323 else
22324   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22325
22326 fi
22327
22328
22329 if test "$llvm_cv_link_use_r" = "yes" ; then
22330   RPATH="-Wl,-R"
22331 else
22332   RPATH="-Wl,-rpath"
22333 fi
22334
22335
22336 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22337   RDYNAMIC="-rdynamic"
22338 else
22339   RDYNAMIC=""
22340 fi
22341
22342
22343
22344 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22345
22346
22347
22348
22349
22350
22351 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22352
22353 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22354
22355 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22356
22357 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22358
22359 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22360
22361
22362 ac_config_files="$ac_config_files Makefile.config"
22363
22364
22365 ac_config_files="$ac_config_files llvm.spec"
22366
22367
22368 ac_config_files="$ac_config_files docs/doxygen.cfg"
22369
22370
22371 if test "${clang_src_root}" = ""; then
22372   clang_src_root="$srcdir/tools/clang"
22373 fi
22374 if test -f ${clang_src_root}/README.txt; then
22375     configh="include/clang/Config/config.h"
22376   doxy="docs/doxygen.cfg"
22377   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22378
22379   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22380
22381 fi
22382
22383 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22384
22385
22386 test "x$program_prefix" = "xNONE" && program_prefix=""
22387
22388
22389
22390 ac_config_commands="$ac_config_commands setup"
22391
22392 ac_config_commands="$ac_config_commands Makefile"
22393
22394
22395 ac_config_commands="$ac_config_commands Makefile.common"
22396
22397
22398 ac_config_commands="$ac_config_commands examples/Makefile"
22399
22400
22401 ac_config_commands="$ac_config_commands lib/Makefile"
22402
22403
22404 ac_config_commands="$ac_config_commands test/Makefile"
22405
22406
22407 ac_config_commands="$ac_config_commands test/Makefile.tests"
22408
22409
22410 ac_config_commands="$ac_config_commands unittests/Makefile"
22411
22412
22413 ac_config_commands="$ac_config_commands tools/Makefile"
22414
22415
22416 ac_config_commands="$ac_config_commands utils/Makefile"
22417
22418
22419 ac_config_commands="$ac_config_commands projects/Makefile"
22420
22421
22422 ac_config_commands="$ac_config_commands bindings/Makefile"
22423
22424
22425 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22426
22427
22428
22429 cat >confcache <<\_ACEOF
22430 # This file is a shell script that caches the results of configure
22431 # tests run on this system so they can be shared between configure
22432 # scripts and configure runs, see configure's option --config-cache.
22433 # It is not useful on other systems.  If it contains results you don't
22434 # want to keep, you may remove or edit it.
22435 #
22436 # config.status only pays attention to the cache file if you give it
22437 # the --recheck option to rerun configure.
22438 #
22439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22441 # following values.
22442
22443 _ACEOF
22444
22445 # The following way of writing the cache mishandles newlines in values,
22446 # but we know of no workaround that is simple, portable, and efficient.
22447 # So, we kill variables containing newlines.
22448 # Ultrix sh set writes to stderr and can't be redirected directly,
22449 # and sets the high bit in the cache file unless we assign to the vars.
22450 (
22451   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22452     eval ac_val=\$$ac_var
22453     case $ac_val in #(
22454     *${as_nl}*)
22455       case $ac_var in #(
22456       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22457 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22458       esac
22459       case $ac_var in #(
22460       _ | IFS | as_nl) ;; #(
22461       *) $as_unset $ac_var ;;
22462       esac ;;
22463     esac
22464   done
22465
22466   (set) 2>&1 |
22467     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22468     *${as_nl}ac_space=\ *)
22469       # `set' does not quote correctly, so add quotes (double-quote
22470       # substitution turns \\\\ into \\, and sed turns \\ into \).
22471       sed -n \
22472         "s/'/'\\\\''/g;
22473           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22474       ;; #(
22475     *)
22476       # `set' quotes correctly as required by POSIX, so do not add quotes.
22477       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22478       ;;
22479     esac |
22480     sort
22481 ) |
22482   sed '
22483      /^ac_cv_env_/b end
22484      t clear
22485      :clear
22486      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22487      t end
22488      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22489      :end' >>confcache
22490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22491   if test -w "$cache_file"; then
22492     test "x$cache_file" != "x/dev/null" &&
22493       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22494 echo "$as_me: updating cache $cache_file" >&6;}
22495     cat confcache >$cache_file
22496   else
22497     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22498 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22499   fi
22500 fi
22501 rm -f confcache
22502
22503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22504 # Let make expand exec_prefix.
22505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22506
22507 DEFS=-DHAVE_CONFIG_H
22508
22509 ac_libobjs=
22510 ac_ltlibobjs=
22511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22512   # 1. Remove the extension, and $U if already installed.
22513   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22514   ac_i=`echo "$ac_i" | sed "$ac_script"`
22515   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22516   #    will be set to the directory where LIBOBJS objects are built.
22517   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22518   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22519 done
22520 LIBOBJS=$ac_libobjs
22521
22522 LTLIBOBJS=$ac_ltlibobjs
22523
22524
22525 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22526   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22527 Usually this means the macro was only invoked conditionally." >&5
22528 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22529 Usually this means the macro was only invoked conditionally." >&2;}
22530    { (exit 1); exit 1; }; }
22531 fi
22532 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22533   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22534 Usually this means the macro was only invoked conditionally." >&5
22535 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22536 Usually this means the macro was only invoked conditionally." >&2;}
22537    { (exit 1); exit 1; }; }
22538 fi
22539
22540 : ${CONFIG_STATUS=./config.status}
22541 ac_clean_files_save=$ac_clean_files
22542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22545 cat >$CONFIG_STATUS <<_ACEOF
22546 #! $SHELL
22547 # Generated by $as_me.
22548 # Run this file to recreate the current configuration.
22549 # Compiler output produced by configure, useful for debugging
22550 # configure, is in config.log if it exists.
22551
22552 debug=false
22553 ac_cs_recheck=false
22554 ac_cs_silent=false
22555 SHELL=\${CONFIG_SHELL-$SHELL}
22556 _ACEOF
22557
22558 cat >>$CONFIG_STATUS <<\_ACEOF
22559 ## --------------------- ##
22560 ## M4sh Initialization.  ##
22561 ## --------------------- ##
22562
22563 # Be Bourne compatible
22564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22565   emulate sh
22566   NULLCMD=:
22567   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22568   # is contrary to our usage.  Disable this feature.
22569   alias -g '${1+"$@"}'='"$@"'
22570   setopt NO_GLOB_SUBST
22571 else
22572   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22573 fi
22574 BIN_SH=xpg4; export BIN_SH # for Tru64
22575 DUALCASE=1; export DUALCASE # for MKS sh
22576
22577
22578 # PATH needs CR
22579 # Avoid depending upon Character Ranges.
22580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22583 as_cr_digits='0123456789'
22584 as_cr_alnum=$as_cr_Letters$as_cr_digits
22585
22586 # The user is always right.
22587 if test "${PATH_SEPARATOR+set}" != set; then
22588   echo "#! /bin/sh" >conf$$.sh
22589   echo  "exit 0"   >>conf$$.sh
22590   chmod +x conf$$.sh
22591   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22592     PATH_SEPARATOR=';'
22593   else
22594     PATH_SEPARATOR=:
22595   fi
22596   rm -f conf$$.sh
22597 fi
22598
22599 # Support unset when possible.
22600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22601   as_unset=unset
22602 else
22603   as_unset=false
22604 fi
22605
22606
22607 # IFS
22608 # We need space, tab and new line, in precisely that order.  Quoting is
22609 # there to prevent editors from complaining about space-tab.
22610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22611 # splitting by setting IFS to empty value.)
22612 as_nl='
22613 '
22614 IFS=" ""        $as_nl"
22615
22616 # Find who we are.  Look in the path if we contain no directory separator.
22617 case $0 in
22618   *[\\/]* ) as_myself=$0 ;;
22619   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22620 for as_dir in $PATH
22621 do
22622   IFS=$as_save_IFS
22623   test -z "$as_dir" && as_dir=.
22624   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22625 done
22626 IFS=$as_save_IFS
22627
22628      ;;
22629 esac
22630 # We did not find ourselves, most probably we were run as `sh COMMAND'
22631 # in which case we are not to be found in the path.
22632 if test "x$as_myself" = x; then
22633   as_myself=$0
22634 fi
22635 if test ! -f "$as_myself"; then
22636   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22637   { (exit 1); exit 1; }
22638 fi
22639
22640 # Work around bugs in pre-3.0 UWIN ksh.
22641 for as_var in ENV MAIL MAILPATH
22642 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22643 done
22644 PS1='$ '
22645 PS2='> '
22646 PS4='+ '
22647
22648 # NLS nuisances.
22649 for as_var in \
22650   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22651   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22652   LC_TELEPHONE LC_TIME
22653 do
22654   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22655     eval $as_var=C; export $as_var
22656   else
22657     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22658   fi
22659 done
22660
22661 # Required to use basename.
22662 if expr a : '\(a\)' >/dev/null 2>&1 &&
22663    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22664   as_expr=expr
22665 else
22666   as_expr=false
22667 fi
22668
22669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22670   as_basename=basename
22671 else
22672   as_basename=false
22673 fi
22674
22675
22676 # Name of the executable.
22677 as_me=`$as_basename -- "$0" ||
22678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22679          X"$0" : 'X\(//\)$' \| \
22680          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22681 echo X/"$0" |
22682     sed '/^.*\/\([^/][^/]*\)\/*$/{
22683             s//\1/
22684             q
22685           }
22686           /^X\/\(\/\/\)$/{
22687             s//\1/
22688             q
22689           }
22690           /^X\/\(\/\).*/{
22691             s//\1/
22692             q
22693           }
22694           s/.*/./; q'`
22695
22696 # CDPATH.
22697 $as_unset CDPATH
22698
22699
22700
22701   as_lineno_1=$LINENO
22702   as_lineno_2=$LINENO
22703   test "x$as_lineno_1" != "x$as_lineno_2" &&
22704   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22705
22706   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22707   # uniformly replaced by the line number.  The first 'sed' inserts a
22708   # line-number line after each line using $LINENO; the second 'sed'
22709   # does the real work.  The second script uses 'N' to pair each
22710   # line-number line with the line containing $LINENO, and appends
22711   # trailing '-' during substitution so that $LINENO is not a special
22712   # case at line end.
22713   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22714   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22715   # E. McMahon (1931-1989) for sed's syntax.  :-)
22716   sed -n '
22717     p
22718     /[$]LINENO/=
22719   ' <$as_myself |
22720     sed '
22721       s/[$]LINENO.*/&-/
22722       t lineno
22723       b
22724       :lineno
22725       N
22726       :loop
22727       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22728       t loop
22729       s/-\n.*//
22730     ' >$as_me.lineno &&
22731   chmod +x "$as_me.lineno" ||
22732     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22733    { (exit 1); exit 1; }; }
22734
22735   # Don't try to exec as it changes $[0], causing all sort of problems
22736   # (the dirname of $[0] is not the place where we might find the
22737   # original and so on.  Autoconf is especially sensitive to this).
22738   . "./$as_me.lineno"
22739   # Exit status is that of the last command.
22740   exit
22741 }
22742
22743
22744 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22745   as_dirname=dirname
22746 else
22747   as_dirname=false
22748 fi
22749
22750 ECHO_C= ECHO_N= ECHO_T=
22751 case `echo -n x` in
22752 -n*)
22753   case `echo 'x\c'` in
22754   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22755   *)   ECHO_C='\c';;
22756   esac;;
22757 *)
22758   ECHO_N='-n';;
22759 esac
22760
22761 if expr a : '\(a\)' >/dev/null 2>&1 &&
22762    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22763   as_expr=expr
22764 else
22765   as_expr=false
22766 fi
22767
22768 rm -f conf$$ conf$$.exe conf$$.file
22769 if test -d conf$$.dir; then
22770   rm -f conf$$.dir/conf$$.file
22771 else
22772   rm -f conf$$.dir
22773   mkdir conf$$.dir
22774 fi
22775 echo >conf$$.file
22776 if ln -s conf$$.file conf$$ 2>/dev/null; then
22777   as_ln_s='ln -s'
22778   # ... but there are two gotchas:
22779   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22780   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22781   # In both cases, we have to default to `cp -p'.
22782   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22783     as_ln_s='cp -p'
22784 elif ln conf$$.file conf$$ 2>/dev/null; then
22785   as_ln_s=ln
22786 else
22787   as_ln_s='cp -p'
22788 fi
22789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22790 rmdir conf$$.dir 2>/dev/null
22791
22792 if mkdir -p . 2>/dev/null; then
22793   as_mkdir_p=:
22794 else
22795   test -d ./-p && rmdir ./-p
22796   as_mkdir_p=false
22797 fi
22798
22799 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22800 # systems may use methods other than mode bits to determine executability.
22801 cat >conf$$.file <<_ASEOF
22802 #! /bin/sh
22803 exit 0
22804 _ASEOF
22805 chmod +x conf$$.file
22806 if test -x conf$$.file >/dev/null 2>&1; then
22807   as_executable_p="test -x"
22808 else
22809   as_executable_p=:
22810 fi
22811 rm -f conf$$.file
22812
22813 # Sed expression to map a string onto a valid CPP name.
22814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22815
22816 # Sed expression to map a string onto a valid variable name.
22817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22818
22819
22820 exec 6>&1
22821
22822 # Save the log message, to keep $[0] and so on meaningful, and to
22823 # report actual input values of CONFIG_FILES etc. instead of their
22824 # values after options handling.
22825 ac_log="
22826 This file was extended by LLVM $as_me 3.5svn, which was
22827 generated by GNU Autoconf 2.60.  Invocation command line was
22828
22829   CONFIG_FILES    = $CONFIG_FILES
22830   CONFIG_HEADERS  = $CONFIG_HEADERS
22831   CONFIG_LINKS    = $CONFIG_LINKS
22832   CONFIG_COMMANDS = $CONFIG_COMMANDS
22833   $ $0 $@
22834
22835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22836 "
22837
22838 _ACEOF
22839
22840 cat >>$CONFIG_STATUS <<_ACEOF
22841 # Files that config.status was made for.
22842 config_files="$ac_config_files"
22843 config_headers="$ac_config_headers"
22844 config_commands="$ac_config_commands"
22845
22846 _ACEOF
22847
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22849 ac_cs_usage="\
22850 \`$as_me' instantiates files from templates according to the
22851 current configuration.
22852
22853 Usage: $0 [OPTIONS] [FILE]...
22854
22855   -h, --help       print this help, then exit
22856   -V, --version    print version number, then exit
22857   -q, --quiet      do not print progress messages
22858   -d, --debug      don't remove temporary files
22859       --recheck    update $as_me by reconfiguring in the same conditions
22860   --file=FILE[:TEMPLATE]
22861                    instantiate the configuration file FILE
22862   --header=FILE[:TEMPLATE]
22863                    instantiate the configuration header FILE
22864
22865 Configuration files:
22866 $config_files
22867
22868 Configuration headers:
22869 $config_headers
22870
22871 Configuration commands:
22872 $config_commands
22873
22874 Report bugs to <bug-autoconf@gnu.org>."
22875
22876 _ACEOF
22877 cat >>$CONFIG_STATUS <<_ACEOF
22878 ac_cs_version="\\
22879 LLVM config.status 3.5svn
22880 configured by $0, generated by GNU Autoconf 2.60,
22881   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22882
22883 Copyright (C) 2006 Free Software Foundation, Inc.
22884 This config.status script is free software; the Free Software Foundation
22885 gives unlimited permission to copy, distribute and modify it."
22886
22887 ac_pwd='$ac_pwd'
22888 srcdir='$srcdir'
22889 INSTALL='$INSTALL'
22890 _ACEOF
22891
22892 cat >>$CONFIG_STATUS <<\_ACEOF
22893 # If no file are specified by the user, then we need to provide default
22894 # value.  By we need to know if files were specified by the user.
22895 ac_need_defaults=:
22896 while test $# != 0
22897 do
22898   case $1 in
22899   --*=*)
22900     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22901     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22902     ac_shift=:
22903     ;;
22904   *)
22905     ac_option=$1
22906     ac_optarg=$2
22907     ac_shift=shift
22908     ;;
22909   esac
22910
22911   case $ac_option in
22912   # Handling of the options.
22913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22914     ac_cs_recheck=: ;;
22915   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22916     echo "$ac_cs_version"; exit ;;
22917   --debug | --debu | --deb | --de | --d | -d )
22918     debug=: ;;
22919   --file | --fil | --fi | --f )
22920     $ac_shift
22921     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22922     ac_need_defaults=false;;
22923   --header | --heade | --head | --hea )
22924     $ac_shift
22925     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22926     ac_need_defaults=false;;
22927   --he | --h)
22928     # Conflict between --help and --header
22929     { echo "$as_me: error: ambiguous option: $1
22930 Try \`$0 --help' for more information." >&2
22931    { (exit 1); exit 1; }; };;
22932   --help | --hel | -h )
22933     echo "$ac_cs_usage"; exit ;;
22934   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22935   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22936     ac_cs_silent=: ;;
22937
22938   # This is an error.
22939   -*) { echo "$as_me: error: unrecognized option: $1
22940 Try \`$0 --help' for more information." >&2
22941    { (exit 1); exit 1; }; } ;;
22942
22943   *) ac_config_targets="$ac_config_targets $1"
22944      ac_need_defaults=false ;;
22945
22946   esac
22947   shift
22948 done
22949
22950 ac_configure_extra_args=
22951
22952 if $ac_cs_silent; then
22953   exec 6>/dev/null
22954   ac_configure_extra_args="$ac_configure_extra_args --silent"
22955 fi
22956
22957 _ACEOF
22958 cat >>$CONFIG_STATUS <<_ACEOF
22959 if \$ac_cs_recheck; then
22960   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22961   CONFIG_SHELL=$SHELL
22962   export CONFIG_SHELL
22963   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22964 fi
22965
22966 _ACEOF
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22968 exec 5>>config.log
22969 {
22970   echo
22971   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22972 ## Running $as_me. ##
22973 _ASBOX
22974   echo "$ac_log"
22975 } >&5
22976
22977 _ACEOF
22978 cat >>$CONFIG_STATUS <<_ACEOF
22979 #
22980 # INIT-COMMANDS
22981 #
22982 llvm_src="${srcdir}"
22983
22984 _ACEOF
22985
22986 cat >>$CONFIG_STATUS <<\_ACEOF
22987
22988 # Handling of arguments.
22989 for ac_config_target in $ac_config_targets
22990 do
22991   case $ac_config_target in
22992     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22993     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22994     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22995     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22996     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22997     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22998     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22999     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23000     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23001     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23002     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23003     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23004     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23005     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23006     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23007     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23008     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23009     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23010     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23011     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23012     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23013     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23014     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23015     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23016     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23017     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23018
23019   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23020 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23021    { (exit 1); exit 1; }; };;
23022   esac
23023 done
23024
23025
23026 # If the user did not use the arguments to specify the items to instantiate,
23027 # then the envvar interface is used.  Set only those that are not.
23028 # We use the long form for the default assignment because of an extremely
23029 # bizarre bug on SunOS 4.1.3.
23030 if $ac_need_defaults; then
23031   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23032   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23033   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23034 fi
23035
23036 # Have a temporary directory for convenience.  Make it in the build tree
23037 # simply because there is no reason against having it here, and in addition,
23038 # creating and moving files from /tmp can sometimes cause problems.
23039 # Hook for its removal unless debugging.
23040 # Note that there is a small window in which the directory will not be cleaned:
23041 # after its creation but before its name has been assigned to `$tmp'.
23042 $debug ||
23043 {
23044   tmp=
23045   trap 'exit_status=$?
23046   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23047 ' 0
23048   trap '{ (exit 1); exit 1; }' 1 2 13 15
23049 }
23050 # Create a (secure) tmp directory for tmp files.
23051
23052 {
23053   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23054   test -n "$tmp" && test -d "$tmp"
23055 }  ||
23056 {
23057   tmp=./conf$$-$RANDOM
23058   (umask 077 && mkdir "$tmp")
23059 } ||
23060 {
23061    echo "$me: cannot create a temporary directory in ." >&2
23062    { (exit 1); exit 1; }
23063 }
23064
23065 #
23066 # Set up the sed scripts for CONFIG_FILES section.
23067 #
23068
23069 # No need to generate the scripts if there are no CONFIG_FILES.
23070 # This happens for instance when ./config.status config.h
23071 if test -n "$CONFIG_FILES"; then
23072
23073 _ACEOF
23074
23075
23076
23077 ac_delim='%!_!# '
23078 for ac_last_try in false false false false false :; do
23079   cat >conf$$subs.sed <<_ACEOF
23080 SHELL!$SHELL$ac_delim
23081 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23082 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23083 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23084 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23085 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23086 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23087 exec_prefix!$exec_prefix$ac_delim
23088 prefix!$prefix$ac_delim
23089 program_transform_name!$program_transform_name$ac_delim
23090 bindir!$bindir$ac_delim
23091 sbindir!$sbindir$ac_delim
23092 libexecdir!$libexecdir$ac_delim
23093 datarootdir!$datarootdir$ac_delim
23094 datadir!$datadir$ac_delim
23095 sysconfdir!$sysconfdir$ac_delim
23096 sharedstatedir!$sharedstatedir$ac_delim
23097 localstatedir!$localstatedir$ac_delim
23098 includedir!$includedir$ac_delim
23099 oldincludedir!$oldincludedir$ac_delim
23100 docdir!$docdir$ac_delim
23101 infodir!$infodir$ac_delim
23102 htmldir!$htmldir$ac_delim
23103 dvidir!$dvidir$ac_delim
23104 pdfdir!$pdfdir$ac_delim
23105 psdir!$psdir$ac_delim
23106 libdir!$libdir$ac_delim
23107 localedir!$localedir$ac_delim
23108 mandir!$mandir$ac_delim
23109 DEFS!$DEFS$ac_delim
23110 ECHO_C!$ECHO_C$ac_delim
23111 ECHO_N!$ECHO_N$ac_delim
23112 ECHO_T!$ECHO_T$ac_delim
23113 LIBS!$LIBS$ac_delim
23114 build_alias!$build_alias$ac_delim
23115 host_alias!$host_alias$ac_delim
23116 target_alias!$target_alias$ac_delim
23117 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23118 CC!$CC$ac_delim
23119 CFLAGS!$CFLAGS$ac_delim
23120 LDFLAGS!$LDFLAGS$ac_delim
23121 CPPFLAGS!$CPPFLAGS$ac_delim
23122 ac_ct_CC!$ac_ct_CC$ac_delim
23123 EXEEXT!$EXEEXT$ac_delim
23124 OBJEXT!$OBJEXT$ac_delim
23125 CXX!$CXX$ac_delim
23126 CXXFLAGS!$CXXFLAGS$ac_delim
23127 ac_ct_CXX!$ac_ct_CXX$ac_delim
23128 CPP!$CPP$ac_delim
23129 subdirs!$subdirs$ac_delim
23130 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23131 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23132 build!$build$ac_delim
23133 build_cpu!$build_cpu$ac_delim
23134 build_vendor!$build_vendor$ac_delim
23135 build_os!$build_os$ac_delim
23136 host!$host$ac_delim
23137 host_cpu!$host_cpu$ac_delim
23138 host_vendor!$host_vendor$ac_delim
23139 host_os!$host_os$ac_delim
23140 target!$target$ac_delim
23141 target_cpu!$target_cpu$ac_delim
23142 target_vendor!$target_vendor$ac_delim
23143 target_os!$target_os$ac_delim
23144 OS!$OS$ac_delim
23145 HOST_OS!$HOST_OS$ac_delim
23146 TARGET_OS!$TARGET_OS$ac_delim
23147 LINKALL!$LINKALL$ac_delim
23148 NOLINKALL!$NOLINKALL$ac_delim
23149 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23150 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23151 ARCH!$ARCH$ac_delim
23152 HOST_ARCH!$HOST_ARCH$ac_delim
23153 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23154 BUILD_CC!$BUILD_CC$ac_delim
23155 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23156 BUILD_CXX!$BUILD_CXX$ac_delim
23157 CVSBUILD!$CVSBUILD$ac_delim
23158 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23159 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23160 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23161 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23162 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23163 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23164 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23165 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23166 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23167 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23168 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23169 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23170 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23171 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23172 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23173 JIT!$JIT$ac_delim
23174 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23175 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23176 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23177 _ACEOF
23178
23179   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23180     break
23181   elif $ac_last_try; then
23182     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23183 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23184    { (exit 1); exit 1; }; }
23185   else
23186     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23187   fi
23188 done
23189
23190 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23191 if test -n "$ac_eof"; then
23192   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23193   ac_eof=`expr $ac_eof + 1`
23194 fi
23195
23196 cat >>$CONFIG_STATUS <<_ACEOF
23197 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23199 _ACEOF
23200 sed '
23201 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23202 s/^/s,@/; s/!/@,|#_!!_#|/
23203 :n
23204 t n
23205 s/'"$ac_delim"'$/,g/; t
23206 s/$/\\/; p
23207 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23208 ' >>$CONFIG_STATUS <conf$$subs.sed
23209 rm -f conf$$subs.sed
23210 cat >>$CONFIG_STATUS <<_ACEOF
23211 CEOF$ac_eof
23212 _ACEOF
23213
23214
23215 ac_delim='%!_!# '
23216 for ac_last_try in false false false false false :; do
23217   cat >conf$$subs.sed <<_ACEOF
23218 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23219 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23220 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23221 ENABLE_PIC!$ENABLE_PIC$ac_delim
23222 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23223 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23224 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23225 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23226 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23227 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23228 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23229 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23230 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23231 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23232 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23233 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23234 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23235 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23236 NM!$NM$ac_delim
23237 ifGNUmake!$ifGNUmake$ac_delim
23238 LN_S!$LN_S$ac_delim
23239 CMP!$CMP$ac_delim
23240 CP!$CP$ac_delim
23241 DATE!$DATE$ac_delim
23242 FIND!$FIND$ac_delim
23243 GREP!$GREP$ac_delim
23244 MKDIR!$MKDIR$ac_delim
23245 MV!$MV$ac_delim
23246 RANLIB!$RANLIB$ac_delim
23247 AR!$AR$ac_delim
23248 RM!$RM$ac_delim
23249 SED!$SED$ac_delim
23250 TAR!$TAR$ac_delim
23251 BINPWD!$BINPWD$ac_delim
23252 GRAPHVIZ!$GRAPHVIZ$ac_delim
23253 DOT!$DOT$ac_delim
23254 FDP!$FDP$ac_delim
23255 NEATO!$NEATO$ac_delim
23256 TWOPI!$TWOPI$ac_delim
23257 CIRCO!$CIRCO$ac_delim
23258 GV!$GV$ac_delim
23259 DOTTY!$DOTTY$ac_delim
23260 XDOT!$XDOT$ac_delim
23261 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23262 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23263 INSTALL_DATA!$INSTALL_DATA$ac_delim
23264 BZIP2!$BZIP2$ac_delim
23265 CAT!$CAT$ac_delim
23266 DOXYGEN!$DOXYGEN$ac_delim
23267 GROFF!$GROFF$ac_delim
23268 GZIPBIN!$GZIPBIN$ac_delim
23269 PDFROFF!$PDFROFF$ac_delim
23270 ZIP!$ZIP$ac_delim
23271 OCAMLC!$OCAMLC$ac_delim
23272 OCAMLOPT!$OCAMLOPT$ac_delim
23273 OCAMLDEP!$OCAMLDEP$ac_delim
23274 OCAMLDOC!$OCAMLDOC$ac_delim
23275 GAS!$GAS$ac_delim
23276 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23277 EGREP!$EGREP$ac_delim
23278 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23279 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23280 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23281 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23282 LIBADD_DL!$LIBADD_DL$ac_delim
23283 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23284 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23285 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23286 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23287 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23288 PYTHON!$PYTHON$ac_delim
23289 USE_UDIS86!$USE_UDIS86$ac_delim
23290 USE_OPROFILE!$USE_OPROFILE$ac_delim
23291 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23292 XML2CONFIG!$XML2CONFIG$ac_delim
23293 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23294 LIBXML2_INC!$LIBXML2_INC$ac_delim
23295 CXXCPP!$CXXCPP$ac_delim
23296 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23297 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23298 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23299 MMAP_FILE!$MMAP_FILE$ac_delim
23300 SHLIBEXT!$SHLIBEXT$ac_delim
23301 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23302 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23303 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23304 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23305 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23306 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23307 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23308 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23309 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23310 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23311 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23312 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23313 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23314 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23315 _ACEOF
23316
23317   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23318     break
23319   elif $ac_last_try; then
23320     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23321 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23322    { (exit 1); exit 1; }; }
23323   else
23324     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23325   fi
23326 done
23327
23328 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23329 if test -n "$ac_eof"; then
23330   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23331   ac_eof=`expr $ac_eof + 1`
23332 fi
23333
23334 cat >>$CONFIG_STATUS <<_ACEOF
23335 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23337 _ACEOF
23338 sed '
23339 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23340 s/^/s,@/; s/!/@,|#_!!_#|/
23341 :n
23342 t n
23343 s/'"$ac_delim"'$/,g/; t
23344 s/$/\\/; p
23345 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23346 ' >>$CONFIG_STATUS <conf$$subs.sed
23347 rm -f conf$$subs.sed
23348 cat >>$CONFIG_STATUS <<_ACEOF
23349 CEOF$ac_eof
23350 _ACEOF
23351
23352
23353 ac_delim='%!_!# '
23354 for ac_last_try in false false false false false :; do
23355   cat >conf$$subs.sed <<_ACEOF
23356 RPATH!$RPATH$ac_delim
23357 RDYNAMIC!$RDYNAMIC$ac_delim
23358 program_prefix!$program_prefix$ac_delim
23359 LIBOBJS!$LIBOBJS$ac_delim
23360 LTLIBOBJS!$LTLIBOBJS$ac_delim
23361 _ACEOF
23362
23363   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23364     break
23365   elif $ac_last_try; then
23366     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23367 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23368    { (exit 1); exit 1; }; }
23369   else
23370     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23371   fi
23372 done
23373
23374 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23375 if test -n "$ac_eof"; then
23376   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23377   ac_eof=`expr $ac_eof + 1`
23378 fi
23379
23380 cat >>$CONFIG_STATUS <<_ACEOF
23381 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23383 _ACEOF
23384 sed '
23385 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23386 s/^/s,@/; s/!/@,|#_!!_#|/
23387 :n
23388 t n
23389 s/'"$ac_delim"'$/,g/; t
23390 s/$/\\/; p
23391 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23392 ' >>$CONFIG_STATUS <conf$$subs.sed
23393 rm -f conf$$subs.sed
23394 cat >>$CONFIG_STATUS <<_ACEOF
23395 :end
23396 s/|#_!!_#|//g
23397 CEOF$ac_eof
23398 _ACEOF
23399
23400
23401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23403 # trailing colons and then remove the whole line if VPATH becomes empty
23404 # (actually we leave an empty line to preserve line numbers).
23405 if test "x$srcdir" = x.; then
23406   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23407 s/:*\$(srcdir):*/:/
23408 s/:*\${srcdir}:*/:/
23409 s/:*@srcdir@:*/:/
23410 s/^\([^=]*=[     ]*\):*/\1/
23411 s/:*$//
23412 s/^[^=]*=[       ]*$//
23413 }'
23414 fi
23415
23416 cat >>$CONFIG_STATUS <<\_ACEOF
23417 fi # test -n "$CONFIG_FILES"
23418
23419
23420 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23421 do
23422   case $ac_tag in
23423   :[FHLC]) ac_mode=$ac_tag; continue;;
23424   esac
23425   case $ac_mode$ac_tag in
23426   :[FHL]*:*);;
23427   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23428 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23429    { (exit 1); exit 1; }; };;
23430   :[FH]-) ac_tag=-:-;;
23431   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23432   esac
23433   ac_save_IFS=$IFS
23434   IFS=:
23435   set x $ac_tag
23436   IFS=$ac_save_IFS
23437   shift
23438   ac_file=$1
23439   shift
23440
23441   case $ac_mode in
23442   :L) ac_source=$1;;
23443   :[FH])
23444     ac_file_inputs=
23445     for ac_f
23446     do
23447       case $ac_f in
23448       -) ac_f="$tmp/stdin";;
23449       *) # Look for the file first in the build tree, then in the source tree
23450          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23451          # because $ac_f cannot contain `:'.
23452          test -f "$ac_f" ||
23453            case $ac_f in
23454            [\\/$]*) false;;
23455            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23456            esac ||
23457            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23458 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23459    { (exit 1); exit 1; }; };;
23460       esac
23461       ac_file_inputs="$ac_file_inputs $ac_f"
23462     done
23463
23464     # Let's still pretend it is `configure' which instantiates (i.e., don't
23465     # use $as_me), people would be surprised to read:
23466     #    /* config.h.  Generated by config.status.  */
23467     configure_input="Generated from "`IFS=:
23468           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23469     if test x"$ac_file" != x-; then
23470       configure_input="$ac_file.  $configure_input"
23471       { echo "$as_me:$LINENO: creating $ac_file" >&5
23472 echo "$as_me: creating $ac_file" >&6;}
23473     fi
23474
23475     case $ac_tag in
23476     *:-:* | *:-) cat >"$tmp/stdin";;
23477     esac
23478     ;;
23479   esac
23480
23481   ac_dir=`$as_dirname -- "$ac_file" ||
23482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483          X"$ac_file" : 'X\(//\)[^/]' \| \
23484          X"$ac_file" : 'X\(//\)$' \| \
23485          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23486 echo X"$ac_file" |
23487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23488             s//\1/
23489             q
23490           }
23491           /^X\(\/\/\)[^/].*/{
23492             s//\1/
23493             q
23494           }
23495           /^X\(\/\/\)$/{
23496             s//\1/
23497             q
23498           }
23499           /^X\(\/\).*/{
23500             s//\1/
23501             q
23502           }
23503           s/.*/./; q'`
23504   { as_dir="$ac_dir"
23505   case $as_dir in #(
23506   -*) as_dir=./$as_dir;;
23507   esac
23508   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23509     as_dirs=
23510     while :; do
23511       case $as_dir in #(
23512       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23513       *) as_qdir=$as_dir;;
23514       esac
23515       as_dirs="'$as_qdir' $as_dirs"
23516       as_dir=`$as_dirname -- "$as_dir" ||
23517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23518          X"$as_dir" : 'X\(//\)[^/]' \| \
23519          X"$as_dir" : 'X\(//\)$' \| \
23520          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23521 echo X"$as_dir" |
23522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23523             s//\1/
23524             q
23525           }
23526           /^X\(\/\/\)[^/].*/{
23527             s//\1/
23528             q
23529           }
23530           /^X\(\/\/\)$/{
23531             s//\1/
23532             q
23533           }
23534           /^X\(\/\).*/{
23535             s//\1/
23536             q
23537           }
23538           s/.*/./; q'`
23539       test -d "$as_dir" && break
23540     done
23541     test -z "$as_dirs" || eval "mkdir $as_dirs"
23542   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23543 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23544    { (exit 1); exit 1; }; }; }
23545   ac_builddir=.
23546
23547 case "$ac_dir" in
23548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23549 *)
23550   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23551   # A ".." for each directory in $ac_dir_suffix.
23552   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23553   case $ac_top_builddir_sub in
23554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23556   esac ;;
23557 esac
23558 ac_abs_top_builddir=$ac_pwd
23559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23560 # for backward compatibility:
23561 ac_top_builddir=$ac_top_build_prefix
23562
23563 case $srcdir in
23564   .)  # We are building in place.
23565     ac_srcdir=.
23566     ac_top_srcdir=$ac_top_builddir_sub
23567     ac_abs_top_srcdir=$ac_pwd ;;
23568   [\\/]* | ?:[\\/]* )  # Absolute name.
23569     ac_srcdir=$srcdir$ac_dir_suffix;
23570     ac_top_srcdir=$srcdir
23571     ac_abs_top_srcdir=$srcdir ;;
23572   *) # Relative name.
23573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23574     ac_top_srcdir=$ac_top_build_prefix$srcdir
23575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23576 esac
23577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23578
23579
23580   case $ac_mode in
23581   :F)
23582   #
23583   # CONFIG_FILE
23584   #
23585
23586   case $INSTALL in
23587   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23588   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23589   esac
23590 _ACEOF
23591
23592 cat >>$CONFIG_STATUS <<\_ACEOF
23593 # If the template does not know about datarootdir, expand it.
23594 # FIXME: This hack should be removed a few years after 2.60.
23595 ac_datarootdir_hack=; ac_datarootdir_seen=
23596
23597 case `sed -n '/datarootdir/ {
23598   p
23599   q
23600 }
23601 /@datadir@/p
23602 /@docdir@/p
23603 /@infodir@/p
23604 /@localedir@/p
23605 /@mandir@/p
23606 ' $ac_file_inputs` in
23607 *datarootdir*) ac_datarootdir_seen=yes;;
23608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23609   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23610 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23611 _ACEOF
23612 cat >>$CONFIG_STATUS <<_ACEOF
23613   ac_datarootdir_hack='
23614   s&@datadir@&$datadir&g
23615   s&@docdir@&$docdir&g
23616   s&@infodir@&$infodir&g
23617   s&@localedir@&$localedir&g
23618   s&@mandir@&$mandir&g
23619     s&\\\${datarootdir}&$datarootdir&g' ;;
23620 esac
23621 _ACEOF
23622
23623 # Neutralize VPATH when `$srcdir' = `.'.
23624 # Shell code in configure.ac might set extrasub.
23625 # FIXME: do we really want to maintain this feature?
23626 cat >>$CONFIG_STATUS <<_ACEOF
23627   sed "$ac_vpsub
23628 $extrasub
23629 _ACEOF
23630 cat >>$CONFIG_STATUS <<\_ACEOF
23631 :t
23632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23633 s&@configure_input@&$configure_input&;t t
23634 s&@top_builddir@&$ac_top_builddir_sub&;t t
23635 s&@srcdir@&$ac_srcdir&;t t
23636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23637 s&@top_srcdir@&$ac_top_srcdir&;t t
23638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23639 s&@builddir@&$ac_builddir&;t t
23640 s&@abs_builddir@&$ac_abs_builddir&;t t
23641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23642 s&@INSTALL@&$ac_INSTALL&;t t
23643 $ac_datarootdir_hack
23644 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23645
23646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23647   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23648   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23649   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23650 which seems to be undefined.  Please make sure it is defined." >&5
23651 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23652 which seems to be undefined.  Please make sure it is defined." >&2;}
23653
23654   rm -f "$tmp/stdin"
23655   case $ac_file in
23656   -) cat "$tmp/out"; rm -f "$tmp/out";;
23657   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23658   esac
23659  ;;
23660   :H)
23661   #
23662   # CONFIG_HEADER
23663   #
23664 _ACEOF
23665
23666 # Transform confdefs.h into a sed script `conftest.defines', that
23667 # substitutes the proper values into config.h.in to produce config.h.
23668 rm -f conftest.defines conftest.tail
23669 # First, append a space to every undef/define line, to ease matching.
23670 echo 's/$/ /' >conftest.defines
23671 # Then, protect against being on the right side of a sed subst, or in
23672 # an unquoted here document, in config.status.  If some macros were
23673 # called several times there might be several #defines for the same
23674 # symbol, which is useless.  But do not sort them, since the last
23675 # AC_DEFINE must be honored.
23676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23677 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23678 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23679 # PARAMS is the parameter list in the macro definition--in most cases, it's
23680 # just an empty string.
23681 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23682 ac_dB='\\)[      (].*,\\1define\\2'
23683 ac_dC=' '
23684 ac_dD=' ,'
23685
23686 uniq confdefs.h |
23687   sed -n '
23688         t rset
23689         :rset
23690         s/^[     ]*#[    ]*define[       ][      ]*//
23691         t ok
23692         d
23693         :ok
23694         s/[\\&,]/\\&/g
23695         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23696         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23697   ' >>conftest.defines
23698
23699 # Remove the space that was appended to ease matching.
23700 # Then replace #undef with comments.  This is necessary, for
23701 # example, in the case of _POSIX_SOURCE, which is predefined and required
23702 # on some systems where configure will not decide to define it.
23703 # (The regexp can be short, since the line contains either #define or #undef.)
23704 echo 's/ $//
23705 s,^[     #]*u.*,/* & */,' >>conftest.defines
23706
23707 # Break up conftest.defines:
23708 ac_max_sed_lines=50
23709
23710 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23711 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23712 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23713 # et cetera.
23714 ac_in='$ac_file_inputs'
23715 ac_out='"$tmp/out1"'
23716 ac_nxt='"$tmp/out2"'
23717
23718 while :
23719 do
23720   # Write a here document:
23721     cat >>$CONFIG_STATUS <<_ACEOF
23722     # First, check the format of the line:
23723     cat >"\$tmp/defines.sed" <<\\CEOF
23724 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23725 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23726 b
23727 :def
23728 _ACEOF
23729   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23730   echo 'CEOF
23731     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23732   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23733   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23734   grep . conftest.tail >/dev/null || break
23735   rm -f conftest.defines
23736   mv conftest.tail conftest.defines
23737 done
23738 rm -f conftest.defines conftest.tail
23739
23740 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23741 cat >>$CONFIG_STATUS <<\_ACEOF
23742   if test x"$ac_file" != x-; then
23743     echo "/* $configure_input  */" >"$tmp/config.h"
23744     cat "$ac_result" >>"$tmp/config.h"
23745     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23746       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23747 echo "$as_me: $ac_file is unchanged" >&6;}
23748     else
23749       rm -f $ac_file
23750       mv "$tmp/config.h" $ac_file
23751     fi
23752   else
23753     echo "/* $configure_input  */"
23754     cat "$ac_result"
23755   fi
23756   rm -f "$tmp/out12"
23757  ;;
23758
23759   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23760 echo "$as_me: executing $ac_file commands" >&6;}
23761  ;;
23762   esac
23763
23764
23765   case $ac_file$ac_mode in
23766     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23767    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23768     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23769    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23770     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23771    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23772     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23773    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23774     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23775    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23776     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23777    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23778     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23779    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23780     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23781    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23782     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23783    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23784     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23785    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23786     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23787    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23788     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23789    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23790
23791   esac
23792 done # for ac_tag
23793
23794
23795 { (exit 0); exit 0; }
23796 _ACEOF
23797 chmod +x $CONFIG_STATUS
23798 ac_clean_files=$ac_clean_files_save
23799
23800
23801 # configure is writing to config.log, and then calls config.status.
23802 # config.status does its own redirection, appending to config.log.
23803 # Unfortunately, on DOS this fails, as config.log is still kept open
23804 # by configure, so config.status won't be able to write to it; its
23805 # output is simply discarded.  So we exec the FD to /dev/null,
23806 # effectively closing config.log, so it can be properly (re)opened and
23807 # appended to by config.status.  When coming back to configure, we
23808 # need to make the FD available again.
23809 if test "$no_create" != yes; then
23810   ac_cs_success=:
23811   ac_config_status_args=
23812   test "$silent" = yes &&
23813     ac_config_status_args="$ac_config_status_args --quiet"
23814   exec 5>/dev/null
23815   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23816   exec 5>>config.log
23817   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23818   # would make configure fail if this is the last instruction.
23819   $ac_cs_success || { (exit 1); exit 1; }
23820 fi
23821
23822 #
23823 # CONFIG_SUBDIRS section.
23824 #
23825 if test "$no_recursion" != yes; then
23826
23827   # Remove --cache-file and --srcdir arguments so they do not pile up.
23828   ac_sub_configure_args=
23829   ac_prev=
23830   eval "set x $ac_configure_args"
23831   shift
23832   for ac_arg
23833   do
23834     if test -n "$ac_prev"; then
23835       ac_prev=
23836       continue
23837     fi
23838     case $ac_arg in
23839     -cache-file | --cache-file | --cache-fil | --cache-fi \
23840     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23841       ac_prev=cache_file ;;
23842     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23843     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23844     | --c=*)
23845       ;;
23846     --config-cache | -C)
23847       ;;
23848     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23849       ac_prev=srcdir ;;
23850     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23851       ;;
23852     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23853       ac_prev=prefix ;;
23854     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23855       ;;
23856     *)
23857       case $ac_arg in
23858       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23859       esac
23860       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23861     esac
23862   done
23863
23864   # Always prepend --prefix to ensure using the same prefix
23865   # in subdir configurations.
23866   ac_arg="--prefix=$prefix"
23867   case $ac_arg in
23868   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23869   esac
23870   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23871
23872   ac_popdir=`pwd`
23873   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23874
23875     # Do not complain, so a configure script can configure whichever
23876     # parts of a large source tree are present.
23877     test -d "$srcdir/$ac_dir" || continue
23878
23879     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23880     echo "$as_me:$LINENO: $ac_msg" >&5
23881     echo "$ac_msg" >&6
23882     { as_dir="$ac_dir"
23883   case $as_dir in #(
23884   -*) as_dir=./$as_dir;;
23885   esac
23886   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23887     as_dirs=
23888     while :; do
23889       case $as_dir in #(
23890       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23891       *) as_qdir=$as_dir;;
23892       esac
23893       as_dirs="'$as_qdir' $as_dirs"
23894       as_dir=`$as_dirname -- "$as_dir" ||
23895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23896          X"$as_dir" : 'X\(//\)[^/]' \| \
23897          X"$as_dir" : 'X\(//\)$' \| \
23898          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23899 echo X"$as_dir" |
23900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23901             s//\1/
23902             q
23903           }
23904           /^X\(\/\/\)[^/].*/{
23905             s//\1/
23906             q
23907           }
23908           /^X\(\/\/\)$/{
23909             s//\1/
23910             q
23911           }
23912           /^X\(\/\).*/{
23913             s//\1/
23914             q
23915           }
23916           s/.*/./; q'`
23917       test -d "$as_dir" && break
23918     done
23919     test -z "$as_dirs" || eval "mkdir $as_dirs"
23920   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23921 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23922    { (exit 1); exit 1; }; }; }
23923     ac_builddir=.
23924
23925 case "$ac_dir" in
23926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23927 *)
23928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23929   # A ".." for each directory in $ac_dir_suffix.
23930   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23931   case $ac_top_builddir_sub in
23932   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23933   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23934   esac ;;
23935 esac
23936 ac_abs_top_builddir=$ac_pwd
23937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23938 # for backward compatibility:
23939 ac_top_builddir=$ac_top_build_prefix
23940
23941 case $srcdir in
23942   .)  # We are building in place.
23943     ac_srcdir=.
23944     ac_top_srcdir=$ac_top_builddir_sub
23945     ac_abs_top_srcdir=$ac_pwd ;;
23946   [\\/]* | ?:[\\/]* )  # Absolute name.
23947     ac_srcdir=$srcdir$ac_dir_suffix;
23948     ac_top_srcdir=$srcdir
23949     ac_abs_top_srcdir=$srcdir ;;
23950   *) # Relative name.
23951     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23952     ac_top_srcdir=$ac_top_build_prefix$srcdir
23953     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23954 esac
23955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23956
23957
23958     cd "$ac_dir"
23959
23960     # Check for guested configure; otherwise get Cygnus style configure.
23961     if test -f "$ac_srcdir/configure.gnu"; then
23962       ac_sub_configure=$ac_srcdir/configure.gnu
23963     elif test -f "$ac_srcdir/configure"; then
23964       ac_sub_configure=$ac_srcdir/configure
23965     elif test -f "$ac_srcdir/configure.in"; then
23966       # This should be Cygnus configure.
23967       ac_sub_configure=$ac_aux_dir/configure
23968     else
23969       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23971       ac_sub_configure=
23972     fi
23973
23974     # The recursion is here.
23975     if test -n "$ac_sub_configure"; then
23976       # Make the cache file name correct relative to the subdirectory.
23977       case $cache_file in
23978       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23979       *) # Relative name.
23980         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23981       esac
23982
23983       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23984 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23985       # The eval makes quoting arguments work.
23986       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23987            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23988         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23989 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23990    { (exit 1); exit 1; }; }
23991     fi
23992
23993     cd "$ac_popdir"
23994   done
23995 fi
23996