Try to fix the windows build. The comments in other files don't seem to
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.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 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 program_prefix
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP
817 CXXCPP'
818 ac_subdirs_all='projects/llvm-gcc
819 projects/test-suite
820 projects/llvm-test
821 projects/poolalloc
822 projects/llvm-poolalloc
823 projects/sample
824 projects/privbracket
825 projects/llvm-stacker
826 projects/llvm-reopt
827 projects/llvm-java
828 projects/llvm-tv
829 projects/safecode
830 projects/llvm-kernel
831 tools/polly'
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *)    ac_optarg=yes ;;
893   esac
894
895   # Accept the important Cygnus configure options, so we can diagnose typos.
896
897   case $ac_dashdash$ac_option in
898   --)
899     ac_dashdash=yes ;;
900
901   -bindir | --bindir | --bindi | --bind | --bin | --bi)
902     ac_prev=bindir ;;
903   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904     bindir=$ac_optarg ;;
905
906   -build | --build | --buil | --bui | --bu)
907     ac_prev=build_alias ;;
908   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909     build_alias=$ac_optarg ;;
910
911   -cache-file | --cache-file | --cache-fil | --cache-fi \
912   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913     ac_prev=cache_file ;;
914   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916     cache_file=$ac_optarg ;;
917
918   --config-cache | -C)
919     cache_file=config.cache ;;
920
921   -datadir | --datadir | --datadi | --datad)
922     ac_prev=datadir ;;
923   -datadir=* | --datadir=* | --datadi=* | --datad=*)
924     datadir=$ac_optarg ;;
925
926   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927   | --dataroo | --dataro | --datar)
928     ac_prev=datarootdir ;;
929   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931     datarootdir=$ac_optarg ;;
932
933   -disable-* | --disable-*)
934     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938    { (exit 1); exit 1; }; }
939     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940     eval enable_$ac_feature=no ;;
941
942   -docdir | --docdir | --docdi | --doc | --do)
943     ac_prev=docdir ;;
944   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945     docdir=$ac_optarg ;;
946
947   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948     ac_prev=dvidir ;;
949   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950     dvidir=$ac_optarg ;;
951
952   -enable-* | --enable-*)
953     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954     # Reject names that are not valid shell variable names.
955     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957    { (exit 1); exit 1; }; }
958     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959     eval enable_$ac_feature=\$ac_optarg ;;
960
961   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963   | --exec | --exe | --ex)
964     ac_prev=exec_prefix ;;
965   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967   | --exec=* | --exe=* | --ex=*)
968     exec_prefix=$ac_optarg ;;
969
970   -gas | --gas | --ga | --g)
971     # Obsolete; use --with-gas.
972     with_gas=yes ;;
973
974   -help | --help | --hel | --he | -h)
975     ac_init_help=long ;;
976   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977     ac_init_help=recursive ;;
978   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979     ac_init_help=short ;;
980
981   -host | --host | --hos | --ho)
982     ac_prev=host_alias ;;
983   -host=* | --host=* | --hos=* | --ho=*)
984     host_alias=$ac_optarg ;;
985
986   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987     ac_prev=htmldir ;;
988   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989   | --ht=*)
990     htmldir=$ac_optarg ;;
991
992   -includedir | --includedir | --includedi | --included | --include \
993   | --includ | --inclu | --incl | --inc)
994     ac_prev=includedir ;;
995   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996   | --includ=* | --inclu=* | --incl=* | --inc=*)
997     includedir=$ac_optarg ;;
998
999   -infodir | --infodir | --infodi | --infod | --info | --inf)
1000     ac_prev=infodir ;;
1001   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002     infodir=$ac_optarg ;;
1003
1004   -libdir | --libdir | --libdi | --libd)
1005     ac_prev=libdir ;;
1006   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007     libdir=$ac_optarg ;;
1008
1009   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010   | --libexe | --libex | --libe)
1011     ac_prev=libexecdir ;;
1012   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013   | --libexe=* | --libex=* | --libe=*)
1014     libexecdir=$ac_optarg ;;
1015
1016   -localedir | --localedir | --localedi | --localed | --locale)
1017     ac_prev=localedir ;;
1018   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019     localedir=$ac_optarg ;;
1020
1021   -localstatedir | --localstatedir | --localstatedi | --localstated \
1022   | --localstate | --localstat | --localsta | --localst | --locals)
1023     ac_prev=localstatedir ;;
1024   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026     localstatedir=$ac_optarg ;;
1027
1028   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029     ac_prev=mandir ;;
1030   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031     mandir=$ac_optarg ;;
1032
1033   -nfp | --nfp | --nf)
1034     # Obsolete; use --without-fp.
1035     with_fp=no ;;
1036
1037   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038   | --no-cr | --no-c | -n)
1039     no_create=yes ;;
1040
1041   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043     no_recursion=yes ;;
1044
1045   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047   | --oldin | --oldi | --old | --ol | --o)
1048     ac_prev=oldincludedir ;;
1049   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052     oldincludedir=$ac_optarg ;;
1053
1054   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055     ac_prev=prefix ;;
1056   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057     prefix=$ac_optarg ;;
1058
1059   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060   | --program-pre | --program-pr | --program-p)
1061     ac_prev=program_prefix ;;
1062   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064     program_prefix=$ac_optarg ;;
1065
1066   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067   | --program-suf | --program-su | --program-s)
1068     ac_prev=program_suffix ;;
1069   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071     program_suffix=$ac_optarg ;;
1072
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     ac_prev=program_transform_name ;;
1081   -program-transform-name=* | --program-transform-name=* \
1082   | --program-transform-nam=* | --program-transform-na=* \
1083   | --program-transform-n=* | --program-transform-=* \
1084   | --program-transform=* | --program-transfor=* \
1085   | --program-transfo=* | --program-transf=* \
1086   | --program-trans=* | --program-tran=* \
1087   | --progr-tra=* | --program-tr=* | --program-t=*)
1088     program_transform_name=$ac_optarg ;;
1089
1090   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091     ac_prev=pdfdir ;;
1092   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093     pdfdir=$ac_optarg ;;
1094
1095   -psdir | --psdir | --psdi | --psd | --ps)
1096     ac_prev=psdir ;;
1097   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098     psdir=$ac_optarg ;;
1099
1100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101   | -silent | --silent | --silen | --sile | --sil)
1102     silent=yes ;;
1103
1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105     ac_prev=sbindir ;;
1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107   | --sbi=* | --sb=*)
1108     sbindir=$ac_optarg ;;
1109
1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112   | --sharedst | --shareds | --shared | --share | --shar \
1113   | --sha | --sh)
1114     ac_prev=sharedstatedir ;;
1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118   | --sha=* | --sh=*)
1119     sharedstatedir=$ac_optarg ;;
1120
1121   -site | --site | --sit)
1122     ac_prev=site ;;
1123   -site=* | --site=* | --sit=*)
1124     site=$ac_optarg ;;
1125
1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127     ac_prev=srcdir ;;
1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129     srcdir=$ac_optarg ;;
1130
1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132   | --syscon | --sysco | --sysc | --sys | --sy)
1133     ac_prev=sysconfdir ;;
1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136     sysconfdir=$ac_optarg ;;
1137
1138   -target | --target | --targe | --targ | --tar | --ta | --t)
1139     ac_prev=target_alias ;;
1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141     target_alias=$ac_optarg ;;
1142
1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144     verbose=yes ;;
1145
1146   -version | --version | --versio | --versi | --vers | -V)
1147     ac_init_version=: ;;
1148
1149   -with-* | --with-*)
1150     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid package name: $ac_package" >&2
1154    { (exit 1); exit 1; }; }
1155     ac_package=`echo $ac_package| sed 's/-/_/g'`
1156     eval with_$ac_package=\$ac_optarg ;;
1157
1158   -without-* | --without-*)
1159     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162       { echo "$as_me: error: invalid package name: $ac_package" >&2
1163    { (exit 1); exit 1; }; }
1164     ac_package=`echo $ac_package | sed 's/-/_/g'`
1165     eval with_$ac_package=no ;;
1166
1167   --x)
1168     # Obsolete; use --with-x.
1169     with_x=yes ;;
1170
1171   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172   | --x-incl | --x-inc | --x-in | --x-i)
1173     ac_prev=x_includes ;;
1174   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176     x_includes=$ac_optarg ;;
1177
1178   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180     ac_prev=x_libraries ;;
1181   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183     x_libraries=$ac_optarg ;;
1184
1185   -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187    { (exit 1); exit 1; }; }
1188     ;;
1189
1190   *=*)
1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195    { (exit 1); exit 1; }; }
1196     eval $ac_envvar=\$ac_optarg
1197     export $ac_envvar ;;
1198
1199   *)
1200     # FIXME: should be removed in autoconf 3.0.
1201     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205     ;;
1206
1207   esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212   { echo "$as_me: error: missing argument to $ac_option" >&2
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 # Be sure to have absolute directory names.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228    { (exit 1); exit 1; }; }
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243     If a cross compiler is detected then cross compile mode will be used." >&2
1244   elif test "x$build_alias" != "x$host_alias"; then
1245     cross_compiling=yes
1246   fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258   { echo "$as_me: error: Working directory cannot be determined" >&2
1259    { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261   { echo "$as_me: error: pwd does not report name of working directory" >&2
1262    { (exit 1); exit 1; }; }
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267   ac_srcdir_defaulted=yes
1268   # Try the directory containing this script, then the parent directory.
1269   ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271          X"$0" : 'X\(//\)[^/]' \| \
1272          X"$0" : 'X\(//\)$' \| \
1273          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 echo X"$0" |
1275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)[^/].*/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)$/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\).*/{
1288             s//\1/
1289             q
1290           }
1291           s/.*/./; q'`
1292   srcdir=$ac_confdir
1293   if test ! -r "$srcdir/$ac_unique_file"; then
1294     srcdir=..
1295   fi
1296 else
1297   ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302    { (exit 1); exit 1; }; }
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307    { (exit 1); exit 1; }; }
1308         pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311   srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_env_${ac_var}_value=\$${ac_var}
1322   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330   # Omit some internal or obsolete options to make the list less imposing.
1331   # This message is too long to be a string in the A/UX 3.1 sh.
1332   cat <<_ACEOF
1333 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343   -h, --help              display this help and exit
1344       --help=short        display options specific to this package
1345       --help=recursive    display the short help of all the included packages
1346   -V, --version           display version information and exit
1347   -q, --quiet, --silent   do not print \`checking...' messages
1348       --cache-file=FILE   cache test results in FILE [disabled]
1349   -C, --config-cache      alias for \`--cache-file=config.cache'
1350   -n, --no-create         do not create output files
1351       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354   --prefix=PREFIX         install architecture-independent files in PREFIX
1355                           [$ac_default_prefix]
1356   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                           [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367   --bindir=DIR           user executables [EPREFIX/bin]
1368   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1369   --libexecdir=DIR       program executables [EPREFIX/libexec]
1370   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1371   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1372   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1373   --libdir=DIR           object code libraries [EPREFIX/lib]
1374   --includedir=DIR       C header files [PREFIX/include]
1375   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1376   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1377   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1378   --infodir=DIR          info documentation [DATAROOTDIR/info]
1379   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1380   --mandir=DIR           man documentation [DATAROOTDIR/man]
1381   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1382   --htmldir=DIR          html documentation [DOCDIR]
1383   --dvidir=DIR           dvi documentation [DOCDIR]
1384   --pdfdir=DIR           pdf documentation [DOCDIR]
1385   --psdir=DIR            ps documentation [DOCDIR]
1386 _ACEOF
1387
1388   cat <<\_ACEOF
1389
1390 System types:
1391   --build=BUILD     configure for building on BUILD [guessed]
1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393   --target=TARGET   configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398   case $ac_init_help in
1399      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1400    esac
1401   cat <<\_ACEOF
1402
1403 Optional Features:
1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406   --enable-polly          Use polly if available (default is YES)
1407   --enable-libcpp         Use libc++ if available (default is NO)
1408   --enable-cxx11          Use c++11 if available (default is NO)
1409   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1410   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1411   --enable-clang-static-analyzer
1412                           Enable building of clang Static Analyzer (default is
1413                           YES)
1414   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415   --enable-optimized      Compile with optimizations enabled (default is NO)
1416   --enable-profiling      Compile with profiling enabled (default is NO)
1417   --enable-assertions     Compile with assertion checks enabled (default is
1418                           YES)
1419   --enable-werror         Compile with -Werror enabled (default is NO)
1420   --enable-expensive-checks
1421                           Compile with expensive debug checks enabled (default
1422                           is NO)
1423   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1424                           NO)
1425   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1426                           optimization is on and YES if it's off)
1427   --enable-keep-symbols   Do not strip installed executables)
1428   --enable-jit            Enable Just In Time Compiling (default is YES)
1429   --enable-docs           Build documents (default is YES)
1430   --enable-doxygen        Build doxygen documentation (default is NO)
1431   --enable-threads        Use threads if available (default is YES)
1432   --enable-pthreads       Use pthreads if available (default is YES)
1433   --enable-zlib           Use zlib for compression/decompression if available
1434                           (default is YES)
1435   --enable-pic            Build LLVM with Position Independent Code (default
1436                           is YES)
1437   --enable-shared         Build a shared library and link tools against it
1438                           (default is NO)
1439   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1440                           Win32 DLL (default is NO)
1441   --enable-timestamps     Enable embedding timestamp information in build
1442                           (default is YES)
1443   --enable-backtraces     Enable embedding backtraces on crash (default is
1444                           YES)
1445   --enable-crash-overrides
1446                           Enable crash handling overrides (default is YES)
1447   --enable-targets        Build specific host targets: all or
1448                           target1,target2,... Valid targets are: host, x86,
1449                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1450                           xcore, msp430, nvptx, systemz, r600, and cpp
1451                           (default=all)
1452   --enable-experimental-targets
1453                           Build experimental host targets: disable or
1454                           target1,target2,... (default=disable)
1455   --enable-bindings       Build specific language bindings:
1456                           all,auto,none,{binding-name} (default=auto)
1457   --enable-terminfo       Query the terminfo database if available (default is
1458                           YES)
1459   --enable-libffi         Check for the presence of libffi (default is NO)
1460   --enable-ltdl-install   install libltdl
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --with-optimize-option  Select the compiler options to use for optimized
1466                           builds
1467   --with-extra-options    Specify additional options to compile LLVM with
1468   --with-extra-ld-options Specify additional options to link LLVM with
1469   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1470                           is stdlib)
1471   --with-clang-srcdir     Directory to the out-of-tree Clang source
1472   --with-clang-resource-dir
1473                           Relative directory from the Clang binary for
1474                           resource files
1475   --with-c-include-dirs   Colon separated list of directories clang will
1476                           search for headers
1477   --with-gcc-toolchain    Directory where gcc is installed.
1478   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1479   --with-binutils-include Specify path to binutils/include/ containing
1480                           plugin-api.h file for gold plugin.
1481   --with-bug-report-url   Specify the URL where bug reports should be
1482                           submitted (default=http://llvm.org/bugs/)
1483   --with-internal-prefix  Installation directory for internal files
1484   --with-python           path to python
1485   --with-udis86=<path>    Use udis86 external x86 disassembler library
1486   --with-oprofile=<prefix>
1487                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1488   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1489
1490
1491 Some influential environment variables:
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495               nonstandard directory <lib dir>
1496   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CXX         C++ compiler command
1499   CXXFLAGS    C++ compiler flags
1500   CPP         C preprocessor
1501   CXXCPP      C++ preprocessor
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <http://llvm.org/bugs/>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512   # If there are subdirs, report their specific --help.
1513   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514     test -d "$ac_dir" || continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 LLVM configure 3.5svn
1568 generated by GNU Autoconf 2.60
1569
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574
1575 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1576 _ACEOF
1577   exit
1578 fi
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1582
1583 It was created by LLVM $as_me 3.5svn, which was
1584 generated by GNU Autoconf 2.60.  Invocation command line was
1585
1586   $ $0 $@
1587
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1595
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1604
1605 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1606 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1609 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1610 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1611 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1612
1613 _ASUNAME
1614
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1623
1624 } >&5
1625
1626 cat >&5 <<_ACEOF
1627
1628
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1632
1633 _ACEOF
1634
1635
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647   for ac_arg
1648   do
1649     case $ac_arg in
1650     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652     | -silent | --silent | --silen | --sile | --sil)
1653       continue ;;
1654     *\'*)
1655       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656     esac
1657     case $ac_pass in
1658     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659     2)
1660       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661       if test $ac_must_keep_next = true; then
1662         ac_must_keep_next=false # Got value, back to normal.
1663       else
1664         case $ac_arg in
1665           *=* | --config-cache | -C | -disable-* | --disable-* \
1666           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668           | -with-* | --with-* | -without-* | --without-* | --x)
1669             case "$ac_configure_args0 " in
1670               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671             esac
1672             ;;
1673           -* ) ac_must_keep_next=true ;;
1674         esac
1675       fi
1676       ac_configure_args="$ac_configure_args '$ac_arg'"
1677       ;;
1678     esac
1679   done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log.  We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690   # Save into config.log some information that might help in debugging.
1691   {
1692     echo
1693
1694     cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699     echo
1700     # The following way of writing the cache mishandles newlines in values,
1701 (
1702   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703     eval ac_val=\$$ac_var
1704     case $ac_val in #(
1705     *${as_nl}*)
1706       case $ac_var in #(
1707       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709       esac
1710       case $ac_var in #(
1711       _ | IFS | as_nl) ;; #(
1712       *) $as_unset $ac_var ;;
1713       esac ;;
1714     esac
1715   done
1716   (set) 2>&1 |
1717     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718     *${as_nl}ac_space=\ *)
1719       sed -n \
1720         "s/'\''/'\''\\\\'\'''\''/g;
1721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722       ;; #(
1723     *)
1724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725       ;;
1726     esac |
1727     sort
1728 )
1729     echo
1730
1731     cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736     echo
1737     for ac_var in $ac_subst_vars
1738     do
1739       eval ac_val=\$$ac_var
1740       case $ac_val in
1741       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742       esac
1743       echo "$ac_var='\''$ac_val'\''"
1744     done | sort
1745     echo
1746
1747     if test -n "$ac_subst_files"; then
1748       cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753       echo
1754       for ac_var in $ac_subst_files
1755       do
1756         eval ac_val=\$$ac_var
1757         case $ac_val in
1758         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759         esac
1760         echo "$ac_var='\''$ac_val'\''"
1761       done | sort
1762       echo
1763     fi
1764
1765     if test -s confdefs.h; then
1766       cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771       echo
1772       cat confdefs.h
1773       echo
1774     fi
1775     test "$ac_signal" != 0 &&
1776       echo "$as_me: caught signal $ac_signal"
1777     echo "$as_me: exit $exit_status"
1778   } >&5
1779   rm -f core *.core core.conftest.* &&
1780     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781     exit $exit_status
1782 ' 0
1783 for ac_signal in 1 2 13 15; do
1784   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1787
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1790
1791 # Predefined preprocessor variables.
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1816
1817
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821   set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 else
1825   set x "$ac_default_prefix/share/config.site" \
1826         "$ac_default_prefix/etc/config.site"
1827 fi
1828 shift
1829 for ac_site_file
1830 do
1831   if test -r "$ac_site_file"; then
1832     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834     sed 's/^/| /' "$ac_site_file" >&5
1835     . "$ac_site_file"
1836   fi
1837 done
1838
1839 if test -r "$cache_file"; then
1840   # Some versions of bash will fail to source /dev/null (special
1841   # files actually), so we avoid doing that.
1842   if test -f "$cache_file"; then
1843     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1845     case $cache_file in
1846       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847       *)                      . "./$cache_file";;
1848     esac
1849   fi
1850 else
1851   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1853   >$cache_file
1854 fi
1855
1856 # Check that the precious variables saved in the cache have kept the same
1857 # value.
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861   eval ac_new_set=\$ac_env_${ac_var}_set
1862   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863   eval ac_new_val=\$ac_env_${ac_var}_value
1864   case $ac_old_set,$ac_new_set in
1865     set,)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,set)
1870       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872       ac_cache_corrupted=: ;;
1873     ,);;
1874     *)
1875       if test "x$ac_old_val" != "x$ac_new_val"; then
1876         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1879 echo "$as_me:   former value:  $ac_old_val" >&2;}
1880         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1881 echo "$as_me:   current value: $ac_new_val" >&2;}
1882         ac_cache_corrupted=:
1883       fi;;
1884   esac
1885   # Pass precious variables to config.status.
1886   if test "$ac_new_set" = set; then
1887     case $ac_new_val in
1888     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889     *) ac_arg=$ac_var=$ac_new_val ;;
1890     esac
1891     case " $ac_configure_args " in
1892       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1893       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894     esac
1895   fi
1896 done
1897 if $ac_cache_corrupted; then
1898   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902    { (exit 1); exit 1; }; }
1903 fi
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MAJOR 3
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<\_ACEOF
1943 #define LLVM_VERSION_MINOR 5
1944 _ACEOF
1945
1946
1947 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1948
1949
1950
1951
1952
1953
1954
1955 ac_aux_dir=
1956 for ac_dir in autoconf "$srcdir"/autoconf; do
1957   if test -f "$ac_dir/install-sh"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/install-sh -c"
1960     break
1961   elif test -f "$ac_dir/install.sh"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/install.sh -c"
1964     break
1965   elif test -f "$ac_dir/shtool"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/shtool install -c"
1968     break
1969   fi
1970 done
1971 if test -z "$ac_aux_dir"; then
1972   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984
1985
1986
1987 if test ${srcdir} != "." ; then
1988   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1989     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1990 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1991    { (exit 1); exit 1; }; }
1992   fi
1993 fi
1994
1995 : ${CFLAGS=}
1996 : ${CXXFLAGS=}
1997
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004   for ac_prog in clang llvm-gcc gcc
2005   do
2006     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$CC"; then
2014   ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035   { echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6; }
2037 else
2038   { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2041
2042
2043     test -n "$CC" && break
2044   done
2045 fi
2046 if test -z "$CC"; then
2047   ac_ct_CC=$CC
2048   for ac_prog in clang llvm-gcc gcc
2049 do
2050   # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$ac_ct_CC"; then
2058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2067     ac_cv_prog_ac_ct_CC="$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073 IFS=$as_save_IFS
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6; }
2081 else
2082   { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2084 fi
2085
2086
2087   test -n "$ac_ct_CC" && break
2088 done
2089
2090   if test "x$ac_ct_CC" = x; then
2091     CC=""
2092   else
2093     case $cross_compiling:$ac_tool_warned in
2094 yes:)
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet.  If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2102 esac
2103     CC=$ac_ct_CC
2104   fi
2105 fi
2106
2107
2108 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&2;}
2112    { (exit 1); exit 1; }; }
2113
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO: checking for C compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (ac_try="$ac_compiler --version >&5"
2118 case "(($ac_try" in
2119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120   *) ac_try_echo=$ac_try;;
2121 esac
2122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2123   (eval "$ac_compiler --version >&5") 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }
2127 { (ac_try="$ac_compiler -v >&5"
2128 case "(($ac_try" in
2129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130   *) ac_try_echo=$ac_try;;
2131 esac
2132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2133   (eval "$ac_compiler -v >&5") 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }
2137 { (ac_try="$ac_compiler -V >&5"
2138 case "(($ac_try" in
2139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140   *) ac_try_echo=$ac_try;;
2141 esac
2142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2143   (eval "$ac_compiler -V >&5") 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }
2147
2148 cat >conftest.$ac_ext <<_ACEOF
2149 /* confdefs.h.  */
2150 _ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h.  */
2154
2155 int
2156 main ()
2157 {
2158
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 ac_clean_files_save=$ac_clean_files
2164 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2165 # Try to create an executable without -o first, disregard a.out.
2166 # It will help us diagnose broken compilers, and finding out an intuition
2167 # of exeext.
2168 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2169 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2170 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2171 #
2172 # List of possible output files, starting from the most likely.
2173 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2174 # only as a last resort.  b.out is created by i960 compilers.
2175 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2176 #
2177 # The IRIX 6 linker writes into existing files which may not be
2178 # executable, retaining their permissions.  Remove them first so a
2179 # subsequent execution test works.
2180 ac_rmfiles=
2181 for ac_file in $ac_files
2182 do
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2185     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186   esac
2187 done
2188 rm -f $ac_rmfiles
2189
2190 if { (ac_try="$ac_link_default"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196   (eval "$ac_link_default") 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }; then
2200   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2202 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2203 # so that the user can short-circuit this test for compilers unknown to
2204 # Autoconf.
2205 for ac_file in $ac_files
2206 do
2207   test -f "$ac_file" || continue
2208   case $ac_file in
2209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2210         ;;
2211     [ab].out )
2212         # We found the default executable, but exeext='' is most
2213         # certainly right.
2214         break;;
2215     *.* )
2216         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2217         then :; else
2218            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219         fi
2220         # We set ac_cv_exeext here because the later test for it is not
2221         # safe: cross compilers may not add the suffix if given an `-o'
2222         # argument, so we may need to know it at that point already.
2223         # Even if this section looks crufty: it has the advantage of
2224         # actually working.
2225         break;;
2226     * )
2227         break;;
2228   esac
2229 done
2230 test "$ac_cv_exeext" = no && ac_cv_exeext=
2231
2232 else
2233   echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2235
2236 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&2;}
2240    { (exit 77); exit 77; }; }
2241 fi
2242
2243 ac_exeext=$ac_cv_exeext
2244 { echo "$as_me:$LINENO: result: $ac_file" >&5
2245 echo "${ECHO_T}$ac_file" >&6; }
2246
2247 # Check that the compiler produces executables we can run.  If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2250 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2251 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2252 # If not cross compiling, check that we can run a simple program.
2253 if test "$cross_compiling" != yes; then
2254   if { ac_try='./$ac_file'
2255   { (case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260   (eval "$ac_try") 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264     cross_compiling=no
2265   else
2266     if test "$cross_compiling" = maybe; then
2267         cross_compiling=yes
2268     else
2269         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276     fi
2277   fi
2278 fi
2279 { echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6; }
2281
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check that the compiler produces executables we can run.  If not, either
2285 # the compiler is broken, or we cross compile.
2286 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2288 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6; }
2290
2291 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2293 if { (ac_try="$ac_link"
2294 case "(($ac_try" in
2295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296   *) ac_try_echo=$ac_try;;
2297 esac
2298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2299   (eval "$ac_link") 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; then
2303   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2304 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2305 # work properly (i.e., refer to `conftest.exe'), while it won't with
2306 # `rm'.
2307 for ac_file in conftest.exe conftest conftest.*; do
2308   test -f "$ac_file" || continue
2309   case $ac_file in
2310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2311     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312           break;;
2313     * ) break;;
2314   esac
2315 done
2316 else
2317   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&2;}
2321    { (exit 1); exit 1; }; }
2322 fi
2323
2324 rm -f conftest$ac_cv_exeext
2325 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2326 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2327
2328 rm -f conftest.$ac_ext
2329 EXEEXT=$ac_cv_exeext
2330 ac_exeext=$EXEEXT
2331 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2332 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2333 if test "${ac_cv_objext+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342
2343 int
2344 main ()
2345 {
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.o conftest.obj
2352 if { (ac_try="$ac_compile"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_compile") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; then
2362   for ac_file in conftest.o conftest.obj conftest.*; do
2363   test -f "$ac_file" || continue;
2364   case $ac_file in
2365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2366     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367        break;;
2368   esac
2369 done
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&2;}
2378    { (exit 1); exit 1; }; }
2379 fi
2380
2381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2382 fi
2383 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2384 echo "${ECHO_T}$ac_cv_objext" >&6; }
2385 OBJEXT=$ac_cv_objext
2386 ac_objext=$OBJEXT
2387 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398
2399 int
2400 main ()
2401 {
2402 #ifndef __GNUC__
2403        choke me
2404 #endif
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (ac_try="$ac_compile"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_compile") 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2425   { (case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430   (eval "$ac_try") 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }; } &&
2434          { ac_try='test -s conftest.$ac_objext'
2435   { (case "(($ac_try" in
2436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437   *) ac_try_echo=$ac_try;;
2438 esac
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440   (eval "$ac_try") 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   ac_compiler_gnu=yes
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449         ac_compiler_gnu=no
2450 fi
2451
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455 fi
2456 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458 GCC=`test $ac_compiler_gnu = yes && echo yes`
2459 ac_test_CFLAGS=${CFLAGS+set}
2460 ac_save_CFLAGS=$CFLAGS
2461 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_cc_g+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   ac_save_c_werror_flag=$ac_c_werror_flag
2467    ac_c_werror_flag=yes
2468    ac_cv_prog_cc_g=no
2469    CFLAGS="-g"
2470    cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476
2477 int
2478 main ()
2479 {
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492   (eval "$ac_compile") 2>conftest.er1
2493   ac_status=$?
2494   grep -v '^ *+' conftest.er1 >conftest.err
2495   rm -f conftest.er1
2496   cat conftest.err >&5
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); } &&
2499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2500   { (case "(($ac_try" in
2501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502   *) ac_try_echo=$ac_try;;
2503 esac
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505   (eval "$ac_try") 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (case "(($ac_try" in
2511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512   *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515   (eval "$ac_try") 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_prog_cc_g=yes
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524         CFLAGS=""
2525       cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531
2532 int
2533 main ()
2534 {
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2542 case "(($ac_try" in
2543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544   *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547   (eval "$ac_compile") 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555   { (case "(($ac_try" in
2556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557   *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560   (eval "$ac_try") 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570   (eval "$ac_try") 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   :
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579         ac_c_werror_flag=$ac_save_c_werror_flag
2580          CFLAGS="-g"
2581          cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587
2588 int
2589 main ()
2590 {
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2598 case "(($ac_try" in
2599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600   *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603   (eval "$ac_compile") 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611   { (case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616   (eval "$ac_try") 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_try") 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   ac_cv_prog_cc_g=yes
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635
2636 fi
2637
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2643
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645    ac_c_werror_flag=$ac_save_c_werror_flag
2646 fi
2647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2649 if test "$ac_test_CFLAGS" = set; then
2650   CFLAGS=$ac_save_CFLAGS
2651 elif test $ac_cv_prog_cc_g = yes; then
2652   if test "$GCC" = yes; then
2653     CFLAGS="-g -O2"
2654   else
2655     CFLAGS="-g"
2656   fi
2657 else
2658   if test "$GCC" = yes; then
2659     CFLAGS="-O2"
2660   else
2661     CFLAGS=
2662   fi
2663 fi
2664 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2665 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_cc_c89+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   ac_cv_prog_cc_c89=no
2670 ac_save_CC=$CC
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h.  */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h.  */
2677 #include <stdarg.h>
2678 #include <stdio.h>
2679 #include <sys/types.h>
2680 #include <sys/stat.h>
2681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2682 struct buf { int x; };
2683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684 static char *e (p, i)
2685      char **p;
2686      int i;
2687 {
2688   return p[i];
2689 }
2690 static char *f (char * (*g) (char **, int), char **p, ...)
2691 {
2692   char *s;
2693   va_list v;
2694   va_start (v,p);
2695   s = g (p, va_arg (v,int));
2696   va_end (v);
2697   return s;
2698 }
2699
2700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2701    function prototypes and stuff, but not '\xHH' hex character constants.
2702    These don't provoke an error unfortunately, instead are silently treated
2703    as 'x'.  The following induces an error, until -std is added to get
2704    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2705    array size at least.  It's necessary to write '\x00'==0 to get something
2706    that's true only with -std.  */
2707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708
2709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2710    inside strings and character constants.  */
2711 #define FOO(x) 'x'
2712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 int argc;
2719 char **argv;
2720 int
2721 main ()
2722 {
2723 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2729         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731   CC="$ac_save_CC $ac_arg"
2732   rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_compile") 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2747   { (case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_try") 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; } &&
2756          { ac_try='test -s conftest.$ac_objext'
2757   { (case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_try") 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_cv_prog_cc_c89=$ac_arg
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771
2772 fi
2773
2774 rm -f core conftest.err conftest.$ac_objext
2775   test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 done
2777 rm -f conftest.$ac_ext
2778 CC=$ac_save_CC
2779
2780 fi
2781 # AC_CACHE_VAL
2782 case "x$ac_cv_prog_cc_c89" in
2783   x)
2784     { echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6; } ;;
2786   xno)
2787     { echo "$as_me:$LINENO: result: unsupported" >&5
2788 echo "${ECHO_T}unsupported" >&6; } ;;
2789   *)
2790     CC="$CC $ac_cv_prog_cc_c89"
2791     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2792 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 esac
2794
2795
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802 ac_ext=cpp
2803 ac_cpp='$CXXCPP $CPPFLAGS'
2804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807 if test -z "$CXX"; then
2808   if test -n "$CCC"; then
2809     CXX=$CCC
2810   else
2811     if test -n "$ac_tool_prefix"; then
2812   for ac_prog in clang++ llvm-g++ g++
2813   do
2814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_CXX+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$CXX"; then
2822   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 CXX=$ac_cv_prog_CXX
2842 if test -n "$CXX"; then
2843   { echo "$as_me:$LINENO: result: $CXX" >&5
2844 echo "${ECHO_T}$CXX" >&6; }
2845 else
2846   { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851     test -n "$CXX" && break
2852   done
2853 fi
2854 if test -z "$CXX"; then
2855   ac_ct_CXX=$CXX
2856   for ac_prog in clang++ llvm-g++ g++
2857 do
2858   # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   if test -n "$ac_ct_CXX"; then
2866   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873   for ac_exec_ext in '' $ac_executable_extensions; do
2874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2875     ac_cv_prog_ac_ct_CXX="$ac_prog"
2876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2886 if test -n "$ac_ct_CXX"; then
2887   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2888 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2889 else
2890   { echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6; }
2892 fi
2893
2894
2895   test -n "$ac_ct_CXX" && break
2896 done
2897
2898   if test "x$ac_ct_CXX" = x; then
2899     CXX="g++"
2900   else
2901     case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet.  If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&5
2906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2907 whose name does not start with the host triplet.  If you think this
2908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2909 ac_tool_warned=yes ;;
2910 esac
2911     CXX=$ac_ct_CXX
2912   fi
2913 fi
2914
2915   fi
2916 fi
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2921 case "(($ac_try" in
2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923   *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926   (eval "$ac_compiler --version >&5") 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compiler -v >&5") 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compiler -V >&5") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }
2950
2951 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2952 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2953 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962
2963 int
2964 main ()
2965 {
2966 #ifndef __GNUC__
2967        choke me
2968 #endif
2969
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981   (eval "$ac_compile") 2>conftest.er1
2982   ac_status=$?
2983   grep -v '^ *+' conftest.er1 >conftest.err
2984   rm -f conftest.er1
2985   cat conftest.err >&5
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } &&
2988          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2989   { (case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_try") 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; } &&
2998          { ac_try='test -s conftest.$ac_objext'
2999   { (case "(($ac_try" in
3000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001   *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004   (eval "$ac_try") 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; }; then
3008   ac_compiler_gnu=yes
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013         ac_compiler_gnu=no
3014 fi
3015
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3018
3019 fi
3020 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3022 GXX=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CXXFLAGS=${CXXFLAGS+set}
3024 ac_save_CXXFLAGS=$CXXFLAGS
3025 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3026 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cxx_g+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3031    ac_cxx_werror_flag=yes
3032    ac_cv_prog_cxx_g=no
3033    CXXFLAGS="-g"
3034    cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040
3041 int
3042 main ()
3043 {
3044
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_compile") 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3064   { (case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_try") 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); }; } &&
3073          { ac_try='test -s conftest.$ac_objext'
3074   { (case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079   (eval "$ac_try") 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; }; then
3083   ac_cv_prog_cxx_g=yes
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088         CXXFLAGS=""
3089       cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_compile") 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3119   { (case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_try") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; } &&
3128          { ac_try='test -s conftest.$ac_objext'
3129   { (case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_try") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; }; then
3138   :
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3144          CXXFLAGS="-g"
3145          cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h.  */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h.  */
3151
3152 int
3153 main ()
3154 {
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_compile") 2>conftest.er1
3168   ac_status=$?
3169   grep -v '^ *+' conftest.er1 >conftest.err
3170   rm -f conftest.er1
3171   cat conftest.err >&5
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); } &&
3174          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3175   { (case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_try") 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; } &&
3184          { ac_try='test -s conftest.$ac_objext'
3185   { (case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_try") 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   ac_cv_prog_cxx_g=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210 fi
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3213 if test "$ac_test_CXXFLAGS" = set; then
3214   CXXFLAGS=$ac_save_CXXFLAGS
3215 elif test $ac_cv_prog_cxx_g = yes; then
3216   if test "$GXX" = yes; then
3217     CXXFLAGS="-g -O2"
3218   else
3219     CXXFLAGS="-g"
3220   fi
3221 else
3222   if test "$GXX" = yes; then
3223     CXXFLAGS="-O2"
3224   else
3225     CXXFLAGS=
3226   fi
3227 fi
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243   CPP=
3244 fi
3245 if test -z "$CPP"; then
3246   if test "${ac_cv_prog_CPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CPP needs to be expanded
3250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272                      Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   :
3298 else
3299   echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302   # Broken: fails on valid input.
3303 continue
3304 fi
3305
3306 rm -f conftest.err conftest.$ac_ext
3307
3308   # OK, works on sane cases.  Now check whether nonexistent headers
3309   # can be detected and how.
3310   cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316 #include <ac_nonexistent.h>
3317 _ACEOF
3318 if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } >/dev/null; then
3331   if test -s conftest.err; then
3332     ac_cpp_err=$ac_c_preproc_warn_flag
3333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334   else
3335     ac_cpp_err=
3336   fi
3337 else
3338   ac_cpp_err=yes
3339 fi
3340 if test -z "$ac_cpp_err"; then
3341   # Broken: success on invalid input.
3342 continue
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347   # Passes both tests.
3348 ac_preproc_ok=:
3349 break
3350 fi
3351
3352 rm -f conftest.err conftest.$ac_ext
3353
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3358   break
3359 fi
3360
3361     done
3362     ac_cv_prog_CPP=$CPP
3363
3364 fi
3365   CPP=$ac_cv_prog_CPP
3366 else
3367   ac_cv_prog_CPP=$CPP
3368 fi
3369 { echo "$as_me:$LINENO: result: $CPP" >&5
3370 echo "${ECHO_T}$CPP" >&6; }
3371 ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374   # Use a header file that comes with gcc, so configuring glibc
3375   # with a fresh cross-compiler works.
3376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377   # <limits.h> exists even on freestanding compilers.
3378   # On the NeXT, cc -E runs the code through the compiler's parser,
3379   # not just through cpp. "Syntax error" is here to catch this case.
3380   cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 #ifdef __STDC__
3387 # include <limits.h>
3388 #else
3389 # include <assert.h>
3390 #endif
3391                      Syntax error
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   :
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421   # Broken: fails on valid input.
3422 continue
3423 fi
3424
3425 rm -f conftest.err conftest.$ac_ext
3426
3427   # OK, works on sane cases.  Now check whether nonexistent headers
3428   # can be detected and how.
3429   cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435 #include <ac_nonexistent.h>
3436 _ACEOF
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } >/dev/null; then
3450   if test -s conftest.err; then
3451     ac_cpp_err=$ac_c_preproc_warn_flag
3452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453   else
3454     ac_cpp_err=
3455   fi
3456 else
3457   ac_cpp_err=yes
3458 fi
3459 if test -z "$ac_cpp_err"; then
3460   # Broken: success on invalid input.
3461 continue
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466   # Passes both tests.
3467 ac_preproc_ok=:
3468 break
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3477   :
3478 else
3479   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&2;}
3483    { (exit 1); exit 1; }; }
3484 fi
3485
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491
3492
3493 if test "$CXX" = "clang++" ; then
3494   { echo "$as_me:$LINENO: checking whether clang works" >&5
3495 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3496   ac_ext=cpp
3497 ac_cpp='$CXXCPP $CPPFLAGS'
3498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3501
3502
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 #include <limits>
3510 #if __has_include (<cxxabi.h>)
3511 #include <cxxabi.h>
3512 #endif
3513 #if __has_include (<unwind.h>)
3514 #include <unwind.h>
3515 #endif
3516
3517 int
3518 main ()
3519 {
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532   (eval "$ac_compile") 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } &&
3539          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3540   { (case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_try") 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; } &&
3549          { ac_try='test -s conftest.$ac_objext'
3550   { (case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_try") 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; }; then
3559
3560   { echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6; }
3562
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567
3568   { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3570   { { 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
3571 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;}
3572    { (exit 1); exit 1; }; }
3573
3574 fi
3575
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577   ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
3583 fi
3584
3585
3586
3587 if test -d ${srcdir}/projects/llvm-gcc ; then
3588   subdirs="$subdirs projects/llvm-gcc"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/test-suite ; then
3593   subdirs="$subdirs projects/test-suite"
3594
3595 fi
3596
3597 if test -d ${srcdir}/projects/llvm-test ; then
3598   subdirs="$subdirs projects/llvm-test"
3599
3600 fi
3601
3602 if test -d ${srcdir}/projects/poolalloc ; then
3603   subdirs="$subdirs projects/poolalloc"
3604
3605 fi
3606
3607 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3608   subdirs="$subdirs projects/llvm-poolalloc"
3609
3610 fi
3611
3612 for i in `ls ${srcdir}/projects`
3613 do
3614   if test -d ${srcdir}/projects/${i} ; then
3615     case ${i} in
3616       sample)       subdirs="$subdirs projects/sample"
3617     ;;
3618       privbracket)  subdirs="$subdirs projects/privbracket"
3619  ;;
3620       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3621  ;;
3622       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3623 ;;
3624       llvm-java)    subdirs="$subdirs projects/llvm-java"
3625  ;;
3626       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3627    ;;
3628       safecode)     subdirs="$subdirs projects/safecode"
3629  ;;
3630       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3631  ;;
3632       compiler-rt)       ;;
3633       llvm-gcc)       ;;
3634       test-suite)     ;;
3635       llvm-test)      ;;
3636       poolalloc)      ;;
3637       llvm-poolalloc) ;;
3638       *)
3639         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3640 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641         ;;
3642     esac
3643   fi
3644 done
3645
3646 # Check whether --enable-polly was given.
3647 if test "${enable_polly+set}" = set; then
3648   enableval=$enable_polly;
3649 else
3650   enableval=default
3651 fi
3652
3653 case "$enableval" in
3654   yes) ENABLE_POLLY=1
3655  ;;
3656   no)  ENABLE_POLLY=0
3657  ;;
3658   default) ENABLE_POLLY=1
3659  ;;
3660   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3661 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3662    { (exit 1); exit 1; }; } ;;
3663 esac
3664
3665
3666 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3667   LLVM_HAS_POLLY=1
3668
3669   subdirs="$subdirs tools/polly"
3670
3671 fi
3672
3673
3674 # Make sure we can run config.sub.
3675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3678    { (exit 1); exit 1; }; }
3679
3680 { echo "$as_me:$LINENO: checking build system type" >&5
3681 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3682 if test "${ac_cv_build+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   ac_build_alias=$build_alias
3686 test "x$ac_build_alias" = x &&
3687   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688 test "x$ac_build_alias" = x &&
3689   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3691    { (exit 1); exit 1; }; }
3692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3693   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3695    { (exit 1); exit 1; }; }
3696
3697 fi
3698 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699 echo "${ECHO_T}$ac_cv_build" >&6; }
3700 case $ac_cv_build in
3701 *-*-*) ;;
3702 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703 echo "$as_me: error: invalid value of canonical build" >&2;}
3704    { (exit 1); exit 1; }; };;
3705 esac
3706 build=$ac_cv_build
3707 ac_save_IFS=$IFS; IFS='-'
3708 set x $ac_cv_build
3709 shift
3710 build_cpu=$1
3711 build_vendor=$2
3712 shift; shift
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3715 build_os=$*
3716 IFS=$ac_save_IFS
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3718
3719
3720 { echo "$as_me:$LINENO: checking host system type" >&5
3721 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3722 if test "${ac_cv_host+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   if test "x$host_alias" = x; then
3726   ac_cv_host=$ac_cv_build
3727 else
3728   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3729     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3731    { (exit 1); exit 1; }; }
3732 fi
3733
3734 fi
3735 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736 echo "${ECHO_T}$ac_cv_host" >&6; }
3737 case $ac_cv_host in
3738 *-*-*) ;;
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740 echo "$as_me: error: invalid value of canonical host" >&2;}
3741    { (exit 1); exit 1; }; };;
3742 esac
3743 host=$ac_cv_host
3744 ac_save_IFS=$IFS; IFS='-'
3745 set x $ac_cv_host
3746 shift
3747 host_cpu=$1
3748 host_vendor=$2
3749 shift; shift
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3752 host_os=$*
3753 IFS=$ac_save_IFS
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3755
3756
3757 { echo "$as_me:$LINENO: checking target system type" >&5
3758 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3759 if test "${ac_cv_target+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test "x$target_alias" = x; then
3763   ac_cv_target=$ac_cv_host
3764 else
3765   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3766     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3768    { (exit 1); exit 1; }; }
3769 fi
3770
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3773 echo "${ECHO_T}$ac_cv_target" >&6; }
3774 case $ac_cv_target in
3775 *-*-*) ;;
3776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3777 echo "$as_me: error: invalid value of canonical target" >&2;}
3778    { (exit 1); exit 1; }; };;
3779 esac
3780 target=$ac_cv_target
3781 ac_save_IFS=$IFS; IFS='-'
3782 set x $ac_cv_target
3783 shift
3784 target_cpu=$1
3785 target_vendor=$2
3786 shift; shift
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3789 target_os=$*
3790 IFS=$ac_save_IFS
3791 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3792
3793
3794 # The aliases save the names the user supplied, while $host etc.
3795 # will get canonicalized.
3796 test -n "$target_alias" &&
3797   test "$program_prefix$program_suffix$program_transform_name" = \
3798     NONENONEs,x,x, &&
3799   program_prefix=${target_alias}-
3800
3801 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3802 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3803 if test "${llvm_cv_os_type+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   case $host in
3807   *-*-aix*)
3808     llvm_cv_link_all_option="-Wl,--whole-archive"
3809     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810     llvm_cv_os_type="AIX"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-irix*)
3813     llvm_cv_link_all_option="-Wl,--whole-archive"
3814     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815     llvm_cv_os_type="IRIX"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-cygwin*)
3818     llvm_cv_link_all_option="-Wl,--whole-archive"
3819     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820     llvm_cv_os_type="Cygwin"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-darwin*)
3823     llvm_cv_link_all_option="-Wl,-all_load"
3824     llvm_cv_no_link_all_option="-Wl,-noall_load"
3825     llvm_cv_os_type="Darwin"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-minix*)
3828     llvm_cv_link_all_option="-Wl,-all_load"
3829     llvm_cv_no_link_all_option="-Wl,-noall_load"
3830     llvm_cv_os_type="Minix"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-freebsd*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="FreeBSD"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-kfreebsd-gnu)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="GNU/kFreeBSD"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-openbsd*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="OpenBSD"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-netbsd*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="NetBSD"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-dragonfly*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="DragonFly"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-hpux*)
3858     llvm_cv_link_all_option="-Wl,--whole-archive"
3859     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860     llvm_cv_os_type="HP-UX"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-interix*)
3863     llvm_cv_link_all_option="-Wl,--whole-archive"
3864     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865     llvm_cv_os_type="Interix"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-linux*)
3868     llvm_cv_link_all_option="-Wl,--whole-archive"
3869     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870     llvm_cv_os_type="Linux"
3871     llvm_cv_platform_type="Unix" ;;
3872   *-*-gnu*)
3873     llvm_cv_link_all_option="-Wl,--whole-archive"
3874     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875     llvm_cv_os_type="GNU"
3876     llvm_cv_platform_type="Unix" ;;
3877   *-*-solaris*)
3878     llvm_cv_link_all_option="-Wl,-z,allextract"
3879     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3880     llvm_cv_os_type="SunOS"
3881     llvm_cv_platform_type="Unix" ;;
3882   *-*-auroraux*)
3883     llvm_cv_link_all_option="-Wl,-z,allextract"
3884     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3885     llvm_cv_os_type="AuroraUX"
3886     llvm_cv_platform_type="Unix" ;;
3887   *-*-win32*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Win32"
3891     llvm_cv_platform_type="Win32" ;;
3892   *-*-mingw*)
3893     llvm_cv_link_all_option="-Wl,--whole-archive"
3894     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895     llvm_cv_os_type="MingW"
3896     llvm_cv_platform_type="Win32" ;;
3897   *-*-haiku*)
3898     llvm_cv_link_all_option="-Wl,--whole-archive"
3899     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900     llvm_cv_os_type="Haiku"
3901     llvm_cv_platform_type="Unix" ;;
3902   *-unknown-eabi*)
3903     llvm_cv_link_all_option="-Wl,--whole-archive"
3904     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3905     llvm_cv_os_type="Freestanding"
3906     llvm_cv_platform_type="Unix" ;;
3907   *-unknown-elf*)
3908     llvm_cv_link_all_option="-Wl,--whole-archive"
3909     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3910     llvm_cv_os_type="Freestanding"
3911     llvm_cv_platform_type="Unix" ;;
3912   *)
3913     llvm_cv_link_all_option=""
3914     llvm_cv_no_link_all_option=""
3915     llvm_cv_os_type="Unknown"
3916     llvm_cv_platform_type="Unknown" ;;
3917 esac
3918 fi
3919 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3920 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3921
3922 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3923 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3924 if test "${llvm_cv_target_os_type+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   case $target in
3928   *-*-aix*)
3929     llvm_cv_target_os_type="AIX" ;;
3930   *-*-irix*)
3931     llvm_cv_target_os_type="IRIX" ;;
3932   *-*-cygwin*)
3933     llvm_cv_target_os_type="Cygwin" ;;
3934   *-*-darwin*)
3935     llvm_cv_target_os_type="Darwin" ;;
3936   *-*-minix*)
3937     llvm_cv_target_os_type="Minix" ;;
3938   *-*-freebsd*)
3939     llvm_cv_target_os_type="FreeBSD" ;;
3940   *-*-kfreebsd-gnu)
3941     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3942   *-*-openbsd*)
3943     llvm_cv_target_os_type="OpenBSD" ;;
3944   *-*-netbsd*)
3945     llvm_cv_target_os_type="NetBSD" ;;
3946   *-*-dragonfly*)
3947     llvm_cv_target_os_type="DragonFly" ;;
3948   *-*-hpux*)
3949     llvm_cv_target_os_type="HP-UX" ;;
3950   *-*-interix*)
3951     llvm_cv_target_os_type="Interix" ;;
3952   *-*-linux*)
3953     llvm_cv_target_os_type="Linux" ;;
3954   *-*-gnu*)
3955     llvm_cv_target_os_type="GNU" ;;
3956   *-*-solaris*)
3957     llvm_cv_target_os_type="SunOS" ;;
3958   *-*-auroraux*)
3959     llvm_cv_target_os_type="AuroraUX" ;;
3960   *-*-win32*)
3961     llvm_cv_target_os_type="Win32" ;;
3962   *-*-mingw*)
3963     llvm_cv_target_os_type="MingW" ;;
3964   *-*-haiku*)
3965     llvm_cv_target_os_type="Haiku" ;;
3966   *-*-rtems*)
3967     llvm_cv_target_os_type="RTEMS" ;;
3968   *-*-nacl*)
3969     llvm_cv_target_os_type="NativeClient" ;;
3970   *-unknown-eabi*)
3971     llvm_cv_target_os_type="Freestanding" ;;
3972   *)
3973     llvm_cv_target_os_type="Unknown" ;;
3974 esac
3975 fi
3976 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3977 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3978
3979 if test "$llvm_cv_os_type" = "Unknown" ; then
3980   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3981 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3982    { (exit 1); exit 1; }; }
3983 fi
3984
3985 OS=$llvm_cv_os_type
3986
3987 HOST_OS=$llvm_cv_os_type
3988
3989 TARGET_OS=$llvm_cv_target_os_type
3990
3991
3992 LINKALL=$llvm_cv_link_all_option
3993
3994 NOLINKALL=$llvm_cv_no_link_all_option
3995
3996
3997 case $llvm_cv_platform_type in
3998   Unix)
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define LLVM_ON_UNIX 1
4002 _ACEOF
4003
4004     LLVM_ON_UNIX=1
4005
4006     LLVM_ON_WIN32=0
4007
4008     ;;
4009   Win32)
4010
4011 cat >>confdefs.h <<\_ACEOF
4012 #define LLVM_ON_WIN32 1
4013 _ACEOF
4014
4015     LLVM_ON_UNIX=0
4016
4017     LLVM_ON_WIN32=1
4018
4019     ;;
4020 esac
4021
4022 { echo "$as_me:$LINENO: checking target architecture" >&5
4023 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4024 if test "${llvm_cv_target_arch+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   case $target in
4028   i?86-*)                 llvm_cv_target_arch="x86" ;;
4029   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4030   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4031   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4032   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4033   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4034   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4035   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4036   xcore-*)                llvm_cv_target_arch="XCore" ;;
4037   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4038   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4039   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4040   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4041   *)                      llvm_cv_target_arch="Unknown" ;;
4042 esac
4043 fi
4044 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4045 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4046
4047 if test "$llvm_cv_target_arch" = "Unknown" ; then
4048   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4049 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4050 fi
4051
4052 case "$llvm_cv_target_arch" in
4053     x86)     LLVM_NATIVE_ARCH="X86" ;;
4054     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4055     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4056 esac
4057
4058 ARCH=$llvm_cv_target_arch
4059
4060
4061 case $host in
4062   i?86-*)                 host_arch="x86" ;;
4063   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4064   sparc*-*)               host_arch="Sparc" ;;
4065   powerpc*-*)             host_arch="PowerPC" ;;
4066   arm*-*)                 host_arch="ARM" ;;
4067   aarch64*-*)             host_arch="AArch64" ;;
4068   mips-* | mips64-*)      host_arch="Mips" ;;
4069   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4070   xcore-*)                host_arch="XCore" ;;
4071   msp430-*)               host_arch="MSP430" ;;
4072   hexagon-*)              host_arch="Hexagon" ;;
4073   s390x-*)                host_arch="SystemZ" ;;
4074   *)                      host_arch="Unknown" ;;
4075 esac
4076
4077 if test "$host_arch" = "Unknown" ; then
4078   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4079 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4080 fi
4081
4082 HOST_ARCH=$host_arch
4083
4084
4085
4086
4087 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_GREP+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   # Extract the first word of "grep ggrep" to use in msg output
4093 if test -z "$GREP"; then
4094 set dummy grep ggrep; ac_prog_name=$2
4095 if test "${ac_cv_path_GREP+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_prog in grep ggrep; do
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109     # Check for GNU ac_path_GREP and select it if it is found.
4110   # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4112 *GNU*)
4113   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114 *)
4115   ac_count=0
4116   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117   while :
4118   do
4119     cat "conftest.in" "conftest.in" >"conftest.tmp"
4120     mv "conftest.tmp" "conftest.in"
4121     cp "conftest.in" "conftest.nl"
4122     echo 'GREP' >> "conftest.nl"
4123     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125     ac_count=`expr $ac_count + 1`
4126     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127       # Best one so far, save it but keep looking for a better one
4128       ac_cv_path_GREP="$ac_path_GREP"
4129       ac_path_GREP_max=$ac_count
4130     fi
4131     # 10*(2^10) chars as input seems more than enough
4132     test $ac_count -gt 10 && break
4133   done
4134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137
4138     $ac_path_GREP_found && break 3
4139   done
4140 done
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145
4146 fi
4147
4148 GREP="$ac_cv_path_GREP"
4149 if test -z "$GREP"; then
4150   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152    { (exit 1); exit 1; }; }
4153 fi
4154
4155 else
4156   ac_cv_path_GREP=$GREP
4157 fi
4158
4159
4160 fi
4161 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163  GREP="$ac_cv_path_GREP"
4164
4165
4166 { echo "$as_me:$LINENO: checking for egrep" >&5
4167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172    then ac_cv_path_EGREP="$GREP -E"
4173    else
4174      # Extract the first word of "egrep" to use in msg output
4175 if test -z "$EGREP"; then
4176 set dummy egrep; ac_prog_name=$2
4177 if test "${ac_cv_path_EGREP+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   ac_path_EGREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187   for ac_prog in egrep; do
4188   for ac_exec_ext in '' $ac_executable_extensions; do
4189     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191     # Check for GNU ac_path_EGREP and select it if it is found.
4192   # Check for GNU $ac_path_EGREP
4193 case `"$ac_path_EGREP" --version 2>&1` in
4194 *GNU*)
4195   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4196 *)
4197   ac_count=0
4198   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4199   while :
4200   do
4201     cat "conftest.in" "conftest.in" >"conftest.tmp"
4202     mv "conftest.tmp" "conftest.in"
4203     cp "conftest.in" "conftest.nl"
4204     echo 'EGREP' >> "conftest.nl"
4205     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207     ac_count=`expr $ac_count + 1`
4208     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209       # Best one so far, save it but keep looking for a better one
4210       ac_cv_path_EGREP="$ac_path_EGREP"
4211       ac_path_EGREP_max=$ac_count
4212     fi
4213     # 10*(2^10) chars as input seems more than enough
4214     test $ac_count -gt 10 && break
4215   done
4216   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 esac
4218
4219
4220     $ac_path_EGREP_found && break 3
4221   done
4222 done
4223
4224 done
4225 IFS=$as_save_IFS
4226
4227
4228 fi
4229
4230 EGREP="$ac_cv_path_EGREP"
4231 if test -z "$EGREP"; then
4232   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234    { (exit 1); exit 1; }; }
4235 fi
4236
4237 else
4238   ac_cv_path_EGREP=$EGREP
4239 fi
4240
4241
4242    fi
4243 fi
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246  EGREP="$ac_cv_path_EGREP"
4247
4248
4249 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4251 if test "${ac_cv_header_stdc+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h.  */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h.  */
4260 #include <stdlib.h>
4261 #include <stdarg.h>
4262 #include <string.h>
4263 #include <float.h>
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288   { (case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; } &&
4297          { ac_try='test -s conftest.$ac_objext'
4298   { (case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_header_stdc=yes
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312         ac_cv_header_stdc=no
4313 fi
4314
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316
4317 if test $ac_cv_header_stdc = yes; then
4318   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4319   cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 #include <string.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329   $EGREP "memchr" >/dev/null 2>&1; then
4330   :
4331 else
4332   ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340   cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 #include <stdlib.h>
4347
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350   $EGREP "free" >/dev/null 2>&1; then
4351   :
4352 else
4353   ac_cv_header_stdc=no
4354 fi
4355 rm -f conftest*
4356
4357 fi
4358
4359 if test $ac_cv_header_stdc = yes; then
4360   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4361   if test "$cross_compiling" = yes; then
4362   :
4363 else
4364   cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #include <ctype.h>
4371 #include <stdlib.h>
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 #else
4376 # define ISLOWER(c) \
4377                    (('a' <= (c) && (c) <= 'i') \
4378                      || ('j' <= (c) && (c) <= 'r') \
4379                      || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4381 #endif
4382
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384 int
4385 main ()
4386 {
4387   int i;
4388   for (i = 0; i < 256; i++)
4389     if (XOR (islower (i), ISLOWER (i))
4390         || toupper (i) != TOUPPER (i))
4391       return 2;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_link") 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4406   { (case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411   (eval "$ac_try") 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   :
4416 else
4417   echo "$as_me: program exited with status $ac_status" >&5
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 ( exit $ac_status )
4422 ac_cv_header_stdc=no
4423 fi
4424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4425 fi
4426
4427
4428 fi
4429 fi
4430 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4432 if test $ac_cv_header_stdc = yes; then
4433
4434 cat >>confdefs.h <<\_ACEOF
4435 #define STDC_HEADERS 1
4436 _ACEOF
4437
4438 fi
4439
4440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451                   inttypes.h stdint.h unistd.h
4452 do
4453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h.  */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h.  */
4465 $ac_includes_default
4466
4467 #include <$ac_header>
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476   (eval "$ac_compile") 2>conftest.er1
4477   ac_status=$?
4478   grep -v '^ *+' conftest.er1 >conftest.err
4479   rm -f conftest.er1
4480   cat conftest.err >&5
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); } &&
4483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; } &&
4493          { ac_try='test -s conftest.$ac_objext'
4494   { (case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_try") 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   eval "$as_ac_Header=yes"
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508         eval "$as_ac_Header=no"
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 ac_res=`eval echo '${'$as_ac_Header'}'`
4514                { echo "$as_me:$LINENO: result: $ac_res" >&5
4515 echo "${ECHO_T}$ac_res" >&6; }
4516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517   cat >>confdefs.h <<_ACEOF
4518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519 _ACEOF
4520
4521 fi
4522
4523 done
4524
4525
4526 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4527 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4528 if test "${ac_cv_c_bigendian+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   # See if sys/param.h defines the BYTE_ORDER macro.
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 #include <sys/types.h>
4539 #include <sys/param.h>
4540
4541 int
4542 main ()
4543 {
4544 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4545  bogus endian macros
4546 #endif
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_compile") 2>conftest.er1
4560   ac_status=$?
4561   grep -v '^ *+' conftest.er1 >conftest.err
4562   rm -f conftest.er1
4563   cat conftest.err >&5
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); } &&
4566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567   { (case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572   (eval "$ac_try") 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; } &&
4576          { ac_try='test -s conftest.$ac_objext'
4577   { (case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582   (eval "$ac_try") 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; }; then
4586   # It does; now see whether it defined to BIG_ENDIAN or not.
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 #include <sys/types.h>
4594 #include <sys/param.h>
4595
4596 int
4597 main ()
4598 {
4599 #if BYTE_ORDER != BIG_ENDIAN
4600  not big endian
4601 #endif
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_compile") 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } &&
4621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622   { (case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; } &&
4631          { ac_try='test -s conftest.$ac_objext'
4632   { (case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637   (eval "$ac_try") 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; }; then
4641   ac_cv_c_bigendian=yes
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646         ac_cv_c_bigendian=no
4647 fi
4648
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 else
4651   echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654         # It does not; compile a test program.
4655 if test "$cross_compiling" = yes; then
4656   # try to guess the endianness by grepping values into an object file
4657   ac_cv_c_bigendian=unknown
4658   cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h.  */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h.  */
4664 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4665 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4666 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4667 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4668 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4669 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4670 int
4671 main ()
4672 {
4673  _ascii (); _ebcdic ();
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4680 case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685   (eval "$ac_compile") 2>conftest.er1
4686   ac_status=$?
4687   grep -v '^ *+' conftest.er1 >conftest.err
4688   rm -f conftest.er1
4689   cat conftest.err >&5
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } &&
4692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4693   { (case "(($ac_try" in
4694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695   *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698   (eval "$ac_try") 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; } &&
4702          { ac_try='test -s conftest.$ac_objext'
4703   { (case "(($ac_try" in
4704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705   *) ac_try_echo=$ac_try;;
4706 esac
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708   (eval "$ac_try") 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then
4712   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4713   ac_cv_c_bigendian=yes
4714 fi
4715 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4716   if test "$ac_cv_c_bigendian" = unknown; then
4717     ac_cv_c_bigendian=no
4718   else
4719     # finding both strings is unlikely to happen, but who knows?
4720     ac_cv_c_bigendian=unknown
4721   fi
4722 fi
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 else
4732   cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738 $ac_includes_default
4739 int
4740 main ()
4741 {
4742
4743   /* Are we little or big endian?  From Harbison&Steele.  */
4744   union
4745   {
4746     long int l;
4747     char c[sizeof (long int)];
4748   } u;
4749   u.l = 1;
4750   return u.c[sizeof (long int) - 1] == 1;
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest$ac_exeext
4757 if { (ac_try="$ac_link"
4758 case "(($ac_try" in
4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760   *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763   (eval "$ac_link") 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4767   { (case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772   (eval "$ac_try") 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; }; then
4776   ac_cv_c_bigendian=no
4777 else
4778   echo "$as_me: program exited with status $ac_status" >&5
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ( exit $ac_status )
4783 ac_cv_c_bigendian=yes
4784 fi
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4786 fi
4787
4788
4789 fi
4790
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4794 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4795 case $ac_cv_c_bigendian in
4796   yes)
4797     ENDIAN=big
4798  ;;
4799   no)
4800     ENDIAN=little
4801  ;;
4802   *)
4803     { { echo "$as_me:$LINENO: error: unknown endianness
4804 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4805 echo "$as_me: error: unknown endianness
4806 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4807    { (exit 1); exit 1; }; } ;;
4808 esac
4809
4810
4811 if test "$cross_compiling" = yes; then
4812   LLVM_CROSS_COMPILING=1
4813
4814
4815 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4816 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4817 if test "${ac_cv_build_exeext+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4821   ac_cv_build_exeext=.exe
4822 else
4823   ac_build_prefix=${build_alias}-
4824
4825   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4826 set dummy ${ac_build_prefix}gcc; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   if test -n "$BUILD_CC"; then
4833   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840   for ac_exec_ext in '' $ac_executable_extensions; do
4841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4842     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4849
4850 fi
4851 fi
4852 BUILD_CC=$ac_cv_prog_BUILD_CC
4853 if test -n "$BUILD_CC"; then
4854   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4855 echo "${ECHO_T}$BUILD_CC" >&6; }
4856 else
4857   { echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6; }
4859 fi
4860
4861
4862   if test -z "$BUILD_CC"; then
4863      # Extract the first word of "gcc", so it can be a program name with args.
4864 set dummy gcc; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   if test -n "$BUILD_CC"; then
4871   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_prog_BUILD_CC="gcc"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 BUILD_CC=$ac_cv_prog_BUILD_CC
4891 if test -n "$BUILD_CC"; then
4892   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4893 echo "${ECHO_T}$BUILD_CC" >&6; }
4894 else
4895   { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4897 fi
4898
4899
4900      if test -z "$BUILD_CC"; then
4901        # Extract the first word of "cc", so it can be a program name with args.
4902 set dummy cc; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -n "$BUILD_CC"; then
4909   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4910 else
4911   ac_prog_rejected=no
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4920        ac_prog_rejected=yes
4921        continue
4922      fi
4923     ac_cv_prog_BUILD_CC="cc"
4924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 if test $ac_prog_rejected = yes; then
4932   # We found a bogon in the path, so make sure we never use it.
4933   set dummy $ac_cv_prog_BUILD_CC
4934   shift
4935   if test $# != 0; then
4936     # We chose a different compiler from the bogus one.
4937     # However, it has the same basename, so the bogon will be chosen
4938     # first if we set BUILD_CC to just the basename; use the full file name.
4939     shift
4940     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4941   fi
4942 fi
4943 fi
4944 fi
4945 BUILD_CC=$ac_cv_prog_BUILD_CC
4946 if test -n "$BUILD_CC"; then
4947   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4948 echo "${ECHO_T}$BUILD_CC" >&6; }
4949 else
4950   { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4952 fi
4953
4954
4955      fi
4956   fi
4957   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4958 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4959    { (exit 1); exit 1; }; }
4960   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4961   rm -f conftest*
4962   echo 'int main () { return 0; }' > conftest.$ac_ext
4963   ac_cv_build_exeext=
4964   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4965   (eval $ac_build_link) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; then
4969     for file in conftest.*; do
4970       case $file in
4971       *.c | *.o | *.obj | *.dSYM) ;;
4972       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4973       esac
4974     done
4975   else
4976     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4977 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4978    { (exit 1); exit 1; }; }
4979   fi
4980   rm -f conftest*
4981   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4982 fi
4983 fi
4984
4985 BUILD_EXEEXT=""
4986 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4987 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4988 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4989 ac_build_exeext=$BUILD_EXEEXT
4990
4991   ac_build_prefix=${build_alias}-
4992   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4993 set dummy ${ac_build_prefix}g++; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   if test -n "$BUILD_CXX"; then
5000   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007   for ac_exec_ext in '' $ac_executable_extensions; do
5008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5009     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5016
5017 fi
5018 fi
5019 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5020 if test -n "$BUILD_CXX"; then
5021   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5022 echo "${ECHO_T}$BUILD_CXX" >&6; }
5023 else
5024   { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5026 fi
5027
5028
5029   if test -z "$BUILD_CXX"; then
5030      # Extract the first word of "g++", so it can be a program name with args.
5031 set dummy g++; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   if test -n "$BUILD_CXX"; then
5038   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_prog_BUILD_CXX="g++"
5048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5058 if test -n "$BUILD_CXX"; then
5059   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5060 echo "${ECHO_T}$BUILD_CXX" >&6; }
5061 else
5062   { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 fi
5065
5066
5067      if test -z "$BUILD_CXX"; then
5068        # Extract the first word of "c++", so it can be a program name with args.
5069 set dummy c++; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   if test -n "$BUILD_CXX"; then
5076   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5077 else
5078   ac_prog_rejected=no
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084   for ac_exec_ext in '' $ac_executable_extensions; do
5085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5086     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5087        ac_prog_rejected=yes
5088        continue
5089      fi
5090     ac_cv_prog_BUILD_CXX="c++"
5091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5097
5098 if test $ac_prog_rejected = yes; then
5099   # We found a bogon in the path, so make sure we never use it.
5100   set dummy $ac_cv_prog_BUILD_CXX
5101   shift
5102   if test $# != 0; then
5103     # We chose a different compiler from the bogus one.
5104     # However, it has the same basename, so the bogon will be chosen
5105     # first if we set BUILD_CXX to just the basename; use the full file name.
5106     shift
5107     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5108   fi
5109 fi
5110 fi
5111 fi
5112 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5113 if test -n "$BUILD_CXX"; then
5114   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5115 echo "${ECHO_T}$BUILD_CXX" >&6; }
5116 else
5117   { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5119 fi
5120
5121
5122      fi
5123   fi
5124 else
5125   LLVM_CROSS_COMPILING=0
5126
5127 fi
5128
5129 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5130   cvsbuild="yes"
5131   optimize="no"
5132   CVSBUILD=CVSBUILD=1
5133
5134 else
5135   cvsbuild="no"
5136   optimize="yes"
5137 fi
5138
5139
5140 # Check whether --enable-libcpp was given.
5141 if test "${enable_libcpp+set}" = set; then
5142   enableval=$enable_libcpp;
5143 else
5144   enableval=default
5145 fi
5146
5147 case "$enableval" in
5148   yes) ENABLE_LIBCPP=1
5149  ;;
5150   no)  ENABLE_LIBCPP=0
5151  ;;
5152   default) ENABLE_LIBCPP=0
5153 ;;
5154   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5156    { (exit 1); exit 1; }; } ;;
5157 esac
5158
5159 # Check whether --enable-cxx11 was given.
5160 if test "${enable_cxx11+set}" = set; then
5161   enableval=$enable_cxx11;
5162 else
5163   enableval=default
5164 fi
5165
5166 case "$enableval" in
5167   yes) ENABLE_CXX11=1
5168  ;;
5169   no)  ENABLE_CXX11=0
5170  ;;
5171   default) ENABLE_CXX11=0
5172 ;;
5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5175    { (exit 1); exit 1; }; } ;;
5176 esac
5177
5178 # Check whether --enable-split-dwarf was given.
5179 if test "${enable_split_dwarf+set}" = set; then
5180   enableval=$enable_split_dwarf;
5181 else
5182   enableval=default
5183 fi
5184
5185 case "$enableval" in
5186   yes) ENABLE_SPLIT_DWARF=1
5187  ;;
5188   no)  ENABLE_SPLIT_DWARF=0
5189  ;;
5190   default) ENABLE_SPLIT_DWARF=0
5191 ;;
5192   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5194    { (exit 1); exit 1; }; } ;;
5195 esac
5196
5197 clang_arcmt="yes"
5198 # Check whether --enable-clang-arcmt was given.
5199 if test "${enable_clang_arcmt+set}" = set; then
5200   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5201 else
5202   enableval="yes"
5203 fi
5204
5205 case "$enableval" in
5206   yes) ENABLE_CLANG_ARCMT=1
5207  ;;
5208   no)  ENABLE_CLANG_ARCMT=0
5209  ;;
5210   default) ENABLE_CLANG_ARCMT=1
5211 ;;
5212   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5214    { (exit 1); exit 1; }; } ;;
5215 esac
5216
5217 clang_static_analyzer="yes"
5218 # Check whether --enable-clang-static-analyzer was given.
5219 if test "${enable_clang_static_analyzer+set}" = set; then
5220   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5221 else
5222   enableval="yes"
5223 fi
5224
5225 case "$enableval" in
5226   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5227  ;;
5228   no)
5229     if test ${clang_arcmt} != "no" ; then
5230       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
5231 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
5232    { (exit 1); exit 1; }; }
5233     fi
5234     ENABLE_CLANG_STATIC_ANALYZER=0
5235
5236     ;;
5237   default) ENABLE_CLANG_STATIC_ANALYZER=1
5238 ;;
5239   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5241    { (exit 1); exit 1; }; } ;;
5242 esac
5243
5244 # Check whether --enable-clang-rewriter was given.
5245 if test "${enable_clang_rewriter+set}" = set; then
5246   enableval=$enable_clang_rewriter;
5247 else
5248   enableval="yes"
5249 fi
5250
5251 case "$enableval" in
5252   yes) ENABLE_CLANG_REWRITER=1
5253  ;;
5254   no)
5255     if test ${clang_arcmt} != "no" ; then
5256       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5257 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5258    { (exit 1); exit 1; }; }
5259     fi
5260     if test ${clang_static_analyzer} != "no" ; then
5261       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5262 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5263    { (exit 1); exit 1; }; }
5264     fi
5265     ENABLE_CLANG_REWRITER=0
5266
5267     ;;
5268   default) ENABLE_CLANG_REWRITER=1
5269 ;;
5270   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5272    { (exit 1); exit 1; }; } ;;
5273 esac
5274
5275 # Check whether --enable-optimized was given.
5276 if test "${enable_optimized+set}" = set; then
5277   enableval=$enable_optimized;
5278 else
5279   enableval=$optimize
5280 fi
5281
5282 if test ${enableval} = "no" ; then
5283   ENABLE_OPTIMIZED=
5284
5285 else
5286   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5287
5288 fi
5289
5290 # Check whether --enable-profiling was given.
5291 if test "${enable_profiling+set}" = set; then
5292   enableval=$enable_profiling;
5293 else
5294   enableval="no"
5295 fi
5296
5297 if test ${enableval} = "no" ; then
5298   ENABLE_PROFILING=
5299
5300 else
5301   ENABLE_PROFILING=ENABLE_PROFILING=1
5302
5303 fi
5304
5305 # Check whether --enable-assertions was given.
5306 if test "${enable_assertions+set}" = set; then
5307   enableval=$enable_assertions;
5308 else
5309   enableval="yes"
5310 fi
5311
5312 if test ${enableval} = "yes" ; then
5313   DISABLE_ASSERTIONS=
5314
5315 else
5316   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5317
5318 fi
5319
5320 # Check whether --enable-werror was given.
5321 if test "${enable_werror+set}" = set; then
5322   enableval=$enable_werror;
5323 else
5324   enableval="no"
5325 fi
5326
5327 case "$enableval" in
5328   yes) ENABLE_WERROR=1
5329  ;;
5330   no)  ENABLE_WERROR=0
5331  ;;
5332   default) ENABLE_WERROR=0
5333 ;;
5334   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5335 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5336    { (exit 1); exit 1; }; } ;;
5337 esac
5338
5339 # Check whether --enable-expensive-checks was given.
5340 if test "${enable_expensive_checks+set}" = set; then
5341   enableval=$enable_expensive_checks;
5342 else
5343   enableval="no"
5344 fi
5345
5346 if test ${enableval} = "yes" ; then
5347   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5348
5349   EXPENSIVE_CHECKS=yes
5350
5351 else
5352   ENABLE_EXPENSIVE_CHECKS=
5353
5354   EXPENSIVE_CHECKS=no
5355
5356 fi
5357
5358 # Check whether --enable-debug-runtime was given.
5359 if test "${enable_debug_runtime+set}" = set; then
5360   enableval=$enable_debug_runtime;
5361 else
5362   enableval=no
5363 fi
5364
5365 if test ${enableval} = "no" ; then
5366   DEBUG_RUNTIME=
5367
5368 else
5369   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5370
5371 fi
5372
5373 # Check whether --enable-debug-symbols was given.
5374 if test "${enable_debug_symbols+set}" = set; then
5375   enableval=$enable_debug_symbols;
5376 else
5377   enableval=no
5378 fi
5379
5380 if test ${enableval} = "no" ; then
5381   DEBUG_SYMBOLS=
5382
5383 else
5384   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5385
5386 fi
5387
5388 # Check whether --enable-keep-symbols was given.
5389 if test "${enable_keep_symbols+set}" = set; then
5390   enableval=$enable_keep_symbols;
5391 else
5392   enableval=no
5393 fi
5394
5395 if test ${enableval} = "no" ; then
5396   KEEP_SYMBOLS=
5397
5398 else
5399   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5400
5401 fi
5402
5403 # Check whether --enable-jit was given.
5404 if test "${enable_jit+set}" = set; then
5405   enableval=$enable_jit;
5406 else
5407   enableval=default
5408 fi
5409
5410 if test ${enableval} = "no"
5411 then
5412   JIT=
5413
5414 else
5415   case "$llvm_cv_target_arch" in
5416     x86)         TARGET_HAS_JIT=1
5417  ;;
5418     Sparc)       TARGET_HAS_JIT=0
5419  ;;
5420     PowerPC)     TARGET_HAS_JIT=1
5421  ;;
5422     x86_64)      TARGET_HAS_JIT=1
5423  ;;
5424     ARM)         TARGET_HAS_JIT=1
5425  ;;
5426     AArch64)     TARGET_HAS_JIT=0
5427  ;;
5428     Mips)        TARGET_HAS_JIT=1
5429  ;;
5430     XCore)       TARGET_HAS_JIT=0
5431  ;;
5432     MSP430)      TARGET_HAS_JIT=0
5433  ;;
5434     Hexagon)     TARGET_HAS_JIT=0
5435  ;;
5436     NVPTX)       TARGET_HAS_JIT=0
5437  ;;
5438     SystemZ)     TARGET_HAS_JIT=1
5439  ;;
5440     *)           TARGET_HAS_JIT=0
5441  ;;
5442   esac
5443 fi
5444
5445 # Check whether --enable-docs was given.
5446 if test "${enable_docs+set}" = set; then
5447   enableval=$enable_docs;
5448 else
5449   enableval=default
5450 fi
5451
5452 case "$enableval" in
5453   yes) ENABLE_DOCS=1
5454  ;;
5455   no)  ENABLE_DOCS=0
5456  ;;
5457   default) ENABLE_DOCS=1
5458  ;;
5459   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5460 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5461    { (exit 1); exit 1; }; } ;;
5462 esac
5463
5464 # Check whether --enable-doxygen was given.
5465 if test "${enable_doxygen+set}" = set; then
5466   enableval=$enable_doxygen;
5467 else
5468   enableval=default
5469 fi
5470
5471 case "$enableval" in
5472   yes) ENABLE_DOXYGEN=1
5473  ;;
5474   no)  ENABLE_DOXYGEN=0
5475  ;;
5476   default) ENABLE_DOXYGEN=0
5477  ;;
5478   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5479 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5480    { (exit 1); exit 1; }; } ;;
5481 esac
5482
5483 # Check whether --enable-threads was given.
5484 if test "${enable_threads+set}" = set; then
5485   enableval=$enable_threads;
5486 else
5487   enableval=default
5488 fi
5489
5490 case "$enableval" in
5491   yes) LLVM_ENABLE_THREADS=1
5492  ;;
5493   no)  LLVM_ENABLE_THREADS=0
5494  ;;
5495   default) LLVM_ENABLE_THREADS=1
5496  ;;
5497   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5498 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5499    { (exit 1); exit 1; }; } ;;
5500 esac
5501
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5504 _ACEOF
5505
5506
5507 # Check whether --enable-pthreads was given.
5508 if test "${enable_pthreads+set}" = set; then
5509   enableval=$enable_pthreads;
5510 else
5511   enableval=default
5512 fi
5513
5514 case "$enableval" in
5515   yes) ENABLE_PTHREADS=1
5516  ;;
5517   no)  ENABLE_PTHREADS=0
5518  ;;
5519   default) ENABLE_PTHREADS=1
5520  ;;
5521   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5522 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5523    { (exit 1); exit 1; }; } ;;
5524 esac
5525
5526 # Check whether --enable-zlib was given.
5527 if test "${enable_zlib+set}" = set; then
5528   enableval=$enable_zlib;
5529 else
5530   enableval=default
5531 fi
5532
5533 case "$enableval" in
5534   yes) LLVM_ENABLE_ZLIB=1
5535  ;;
5536   no)  LLVM_ENABLE_ZLIB=0
5537  ;;
5538   default) LLVM_ENABLE_ZLIB=1
5539  ;;
5540   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5541 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5542    { (exit 1); exit 1; }; } ;;
5543 esac
5544
5545 cat >>confdefs.h <<_ACEOF
5546 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5547 _ACEOF
5548
5549
5550 # Check whether --enable-pic was given.
5551 if test "${enable_pic+set}" = set; then
5552   enableval=$enable_pic;
5553 else
5554   enableval=default
5555 fi
5556
5557 case "$enableval" in
5558   yes) ENABLE_PIC=1
5559  ;;
5560   no)  ENABLE_PIC=0
5561  ;;
5562   default) ENABLE_PIC=1
5563  ;;
5564   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5565 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5566    { (exit 1); exit 1; }; } ;;
5567 esac
5568
5569 cat >>confdefs.h <<_ACEOF
5570 #define ENABLE_PIC $ENABLE_PIC
5571 _ACEOF
5572
5573
5574 # Check whether --enable-shared was given.
5575 if test "${enable_shared+set}" = set; then
5576   enableval=$enable_shared;
5577 else
5578   enableval=default
5579 fi
5580
5581 case "$enableval" in
5582   yes) ENABLE_SHARED=1
5583  ;;
5584   no)  ENABLE_SHARED=0
5585  ;;
5586   default) ENABLE_SHARED=0
5587  ;;
5588   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5589 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5590    { (exit 1); exit 1; }; } ;;
5591 esac
5592
5593 # Check whether --enable-embed-stdcxx was given.
5594 if test "${enable_embed_stdcxx+set}" = set; then
5595   enableval=$enable_embed_stdcxx;
5596 else
5597   enableval=default
5598 fi
5599
5600 case "$enableval" in
5601   yes) ENABLE_EMBED_STDCXX=1
5602  ;;
5603   no)  ENABLE_EMBED_STDCXX=0
5604  ;;
5605   default) ENABLE_EMBED_STDCXX=0
5606  ;;
5607   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5608 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5609    { (exit 1); exit 1; }; } ;;
5610 esac
5611
5612 # Check whether --enable-timestamps was given.
5613 if test "${enable_timestamps+set}" = set; then
5614   enableval=$enable_timestamps;
5615 else
5616   enableval=default
5617 fi
5618
5619 case "$enableval" in
5620   yes) ENABLE_TIMESTAMPS=1
5621  ;;
5622   no)  ENABLE_TIMESTAMPS=0
5623  ;;
5624   default) ENABLE_TIMESTAMPS=1
5625  ;;
5626   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5627 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5628    { (exit 1); exit 1; }; } ;;
5629 esac
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5633 _ACEOF
5634
5635
5636 # Check whether --enable-backtraces was given.
5637 if test "${enable_backtraces+set}" = set; then
5638   enableval=$enable_backtraces; case "$enableval" in
5639     yes) llvm_cv_enable_backtraces="yes" ;;
5640     no)  llvm_cv_enable_backtraces="no"  ;;
5641     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643    { (exit 1); exit 1; }; } ;;
5644   esac
5645 else
5646   llvm_cv_enable_backtraces="yes"
5647 fi
5648
5649 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5650
5651 cat >>confdefs.h <<\_ACEOF
5652 #define ENABLE_BACKTRACES 1
5653 _ACEOF
5654
5655 fi
5656
5657 # Check whether --enable-crash-overrides was given.
5658 if test "${enable_crash_overrides+set}" = set; then
5659   enableval=$enable_crash_overrides; case "$enableval" in
5660     yes) llvm_cv_enable_crash_overrides="yes" ;;
5661     no)  llvm_cv_enable_crash_overrides="no"  ;;
5662     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5663 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5664    { (exit 1); exit 1; }; } ;;
5665   esac
5666 else
5667   llvm_cv_enable_crash_overrides="yes"
5668 fi
5669
5670 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5671
5672 cat >>confdefs.h <<\_ACEOF
5673 #define ENABLE_CRASH_OVERRIDES 1
5674 _ACEOF
5675
5676 fi
5677
5678 TARGETS_TO_BUILD=""
5679 # Check whether --enable-targets was given.
5680 if test "${enable_targets+set}" = set; then
5681   enableval=$enable_targets;
5682 else
5683   enableval=all
5684 fi
5685
5686 if test "$enableval" = host-only ; then
5687   enableval=host
5688 fi
5689 case "$enableval" in
5690   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5691   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5692       case "$a_target" in
5693         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5695         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5696         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5697         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5698         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5699         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5700         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5701         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5702         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5703         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5704         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5705         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5706         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5707         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5708         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5709         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5710         host) case "$llvm_cv_target_arch" in
5711             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5712             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5713             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5714             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5715             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5716             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5717             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5718             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5719             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5720             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5721             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5722             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5723             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5724 echo "$as_me: error: Can not set target to build" >&2;}
5725    { (exit 1); exit 1; }; } ;;
5726           esac ;;
5727         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5728 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5729    { (exit 1); exit 1; }; } ;;
5730       esac
5731   done
5732   ;;
5733 esac
5734
5735 # Check whether --enable-experimental-targets was given.
5736 if test "${enable_experimental_targets+set}" = set; then
5737   enableval=$enable_experimental_targets;
5738 else
5739   enableval=disable
5740 fi
5741
5742
5743 if test ${enableval} != "disable"
5744 then
5745   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5746 fi
5747
5748 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5749
5750
5751 for a_target in $TARGETS_TO_BUILD; do
5752   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5753
5754 cat >>confdefs.h <<_ACEOF
5755 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5756 _ACEOF
5757
5758     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5759     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5760     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5761     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5762     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5763       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5764     fi
5765     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5766       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5767     fi
5768
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5771 _ACEOF
5772
5773
5774 cat >>confdefs.h <<_ACEOF
5775 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5776 _ACEOF
5777
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5781 _ACEOF
5782
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5786 _ACEOF
5787
5788     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5789
5790 cat >>confdefs.h <<_ACEOF
5791 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5792 _ACEOF
5793
5794     fi
5795     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5796
5797 cat >>confdefs.h <<_ACEOF
5798 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5799 _ACEOF
5800
5801     fi
5802   fi
5803 done
5804
5805 LLVM_ENUM_TARGETS=""
5806 LLVM_ENUM_ASM_PRINTERS=""
5807 LLVM_ENUM_ASM_PARSERS=""
5808 LLVM_ENUM_DISASSEMBLERS=""
5809 for target_to_build in $TARGETS_TO_BUILD; do
5810   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5811   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5812     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5813   fi
5814   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5815     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5816   fi
5817   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5818     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5819   fi
5820 done
5821
5822
5823
5824
5825
5826
5827 # Check whether --with-optimize-option was given.
5828 if test "${with_optimize_option+set}" = set; then
5829   withval=$with_optimize_option;
5830 else
5831   withval=default
5832 fi
5833
5834 { echo "$as_me:$LINENO: checking optimization flags" >&5
5835 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5836 case "$withval" in
5837   default)
5838     case "$llvm_cv_os_type" in
5839     FreeBSD) optimize_option=-O2 ;;
5840     MingW) optimize_option=-O2 ;;
5841     *)     optimize_option=-O3 ;;
5842     esac ;;
5843   *) optimize_option="$withval" ;;
5844 esac
5845 OPTIMIZE_OPTION=$optimize_option
5846
5847 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5848 echo "${ECHO_T}$optimize_option" >&6; }
5849
5850
5851 # Check whether --with-extra-options was given.
5852 if test "${with_extra_options+set}" = set; then
5853   withval=$with_extra_options;
5854 else
5855   withval=default
5856 fi
5857
5858 case "$withval" in
5859   default) EXTRA_OPTIONS= ;;
5860   *) EXTRA_OPTIONS=$withval ;;
5861 esac
5862 EXTRA_OPTIONS=$EXTRA_OPTIONS
5863
5864
5865
5866 # Check whether --with-extra-ld-options was given.
5867 if test "${with_extra_ld_options+set}" = set; then
5868   withval=$with_extra_ld_options;
5869 else
5870   withval=default
5871 fi
5872
5873 case "$withval" in
5874   default) EXTRA_LD_OPTIONS= ;;
5875   *) EXTRA_LD_OPTIONS=$withval ;;
5876 esac
5877 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5878
5879
5880 # Check whether --enable-bindings was given.
5881 if test "${enable_bindings+set}" = set; then
5882   enableval=$enable_bindings;
5883 else
5884   enableval=default
5885 fi
5886
5887 BINDINGS_TO_BUILD=""
5888 case "$enableval" in
5889   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5890   all ) BINDINGS_TO_BUILD="ocaml" ;;
5891   none | no) BINDINGS_TO_BUILD="" ;;
5892   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5893       case "$a_binding" in
5894         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5895         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5896 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5897    { (exit 1); exit 1; }; } ;;
5898       esac
5899   done
5900   ;;
5901 esac
5902
5903
5904 # Check whether --with-ocaml-libdir was given.
5905 if test "${with_ocaml_libdir+set}" = set; then
5906   withval=$with_ocaml_libdir;
5907 else
5908   withval=auto
5909 fi
5910
5911 case "$withval" in
5912   auto) with_ocaml_libdir="$withval" ;;
5913   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5914   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5915 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5916    { (exit 1); exit 1; }; } ;;
5917 esac
5918
5919
5920 # Check whether --with-clang-srcdir was given.
5921 if test "${with_clang_srcdir+set}" = set; then
5922   withval=$with_clang_srcdir;
5923 else
5924   withval="-"
5925 fi
5926
5927 case "$withval" in
5928   -) clang_src_root="" ;;
5929   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5930   *) clang_src_root="$ac_pwd/$withval" ;;
5931 esac
5932 CLANG_SRC_ROOT=$clang_src_root
5933
5934
5935
5936 # Check whether --with-clang-resource-dir was given.
5937 if test "${with_clang_resource_dir+set}" = set; then
5938   withval=$with_clang_resource_dir;
5939 else
5940   withval=""
5941 fi
5942
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define CLANG_RESOURCE_DIR "$withval"
5946 _ACEOF
5947
5948
5949
5950 # Check whether --with-c-include-dirs was given.
5951 if test "${with_c_include_dirs+set}" = set; then
5952   withval=$with_c_include_dirs;
5953 else
5954   withval=""
5955 fi
5956
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define C_INCLUDE_DIRS "$withval"
5960 _ACEOF
5961
5962
5963 # Clang normally uses the system c++ headers and libraries. With this option,
5964 # clang will use the ones provided by a gcc installation instead. This option should
5965 # be passed the same value that was used with --prefix when configuring gcc.
5966
5967 # Check whether --with-gcc-toolchain was given.
5968 if test "${with_gcc_toolchain+set}" = set; then
5969   withval=$with_gcc_toolchain;
5970 else
5971   withval=""
5972 fi
5973
5974
5975 cat >>confdefs.h <<_ACEOF
5976 #define GCC_INSTALL_PREFIX "$withval"
5977 _ACEOF
5978
5979
5980
5981 # Check whether --with-default-sysroot was given.
5982 if test "${with_default_sysroot+set}" = set; then
5983   withval=$with_default_sysroot;
5984 else
5985   withval=""
5986 fi
5987
5988
5989 cat >>confdefs.h <<_ACEOF
5990 #define DEFAULT_SYSROOT "$withval"
5991 _ACEOF
5992
5993
5994
5995 # Check whether --with-binutils-include was given.
5996 if test "${with_binutils_include+set}" = set; then
5997   withval=$with_binutils_include;
5998 else
5999   withval=default
6000 fi
6001
6002 case "$withval" in
6003   default) WITH_BINUTILS_INCDIR=default ;;
6004   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
6005   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
6006 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
6007    { (exit 1); exit 1; }; } ;;
6008 esac
6009 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
6010   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
6011
6012   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
6013      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
6014      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
6015 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
6016    { (exit 1); exit 1; }; };
6017   fi
6018 fi
6019
6020
6021 # Check whether --with-bug-report-url was given.
6022 if test "${with_bug_report_url+set}" = set; then
6023   withval=$with_bug_report_url;
6024 else
6025   withval="http://llvm.org/bugs/"
6026 fi
6027
6028
6029 cat >>confdefs.h <<_ACEOF
6030 #define BUG_REPORT_URL "$withval"
6031 _ACEOF
6032
6033
6034 # Check whether --enable-terminfo was given.
6035 if test "${enable_terminfo+set}" = set; then
6036   enableval=$enable_terminfo; case "$enableval" in
6037     yes) llvm_cv_enable_terminfo="yes" ;;
6038     no)  llvm_cv_enable_terminfo="no"  ;;
6039     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6040 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6041    { (exit 1); exit 1; }; } ;;
6042   esac
6043 else
6044   llvm_cv_enable_terminfo="yes"
6045 fi
6046
6047
6048 # Check whether --enable-libffi was given.
6049 if test "${enable_libffi+set}" = set; then
6050   enableval=$enable_libffi; case "$enableval" in
6051     yes) llvm_cv_enable_libffi="yes" ;;
6052     no)  llvm_cv_enable_libffi="no"  ;;
6053     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6054 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6055    { (exit 1); exit 1; }; } ;;
6056   esac
6057 else
6058   llvm_cv_enable_libffi=no
6059 fi
6060
6061
6062
6063 # Check whether --with-internal-prefix was given.
6064 if test "${with_internal_prefix+set}" = set; then
6065   withval=$with_internal_prefix;
6066 else
6067   withval=""
6068 fi
6069
6070 INTERNAL_PREFIX=$withval
6071
6072
6073
6074 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6075 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6076 if test "${lt_cv_path_NM+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   if test -n "$NM"; then
6080   # Let the user override the test.
6081   lt_cv_path_NM="$NM"
6082 else
6083   lt_nm_to_check="${ac_tool_prefix}nm"
6084   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6085     lt_nm_to_check="$lt_nm_to_check nm"
6086   fi
6087   for lt_tmp_nm in $lt_nm_to_check; do
6088     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6089     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6090       IFS="$lt_save_ifs"
6091       test -z "$ac_dir" && ac_dir=.
6092       tmp_nm="$ac_dir/$lt_tmp_nm"
6093       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6094         # Check to see if the nm accepts a BSD-compat flag.
6095         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6096         #   nm: unknown option "B" ignored
6097         # Tru64's nm complains that /dev/null is an invalid object file
6098         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6099         */dev/null* | *'Invalid file or object type'*)
6100           lt_cv_path_NM="$tmp_nm -B"
6101           break
6102           ;;
6103         *)
6104           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6105           */dev/null*)
6106             lt_cv_path_NM="$tmp_nm -p"
6107             break
6108             ;;
6109           *)
6110             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6111             continue # so that we can try to find one that supports BSD flags
6112             ;;
6113           esac
6114           ;;
6115         esac
6116       fi
6117     done
6118     IFS="$lt_save_ifs"
6119   done
6120   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6121 fi
6122 fi
6123 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6124 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6125 NM="$lt_cv_path_NM"
6126
6127
6128
6129 { echo "$as_me:$LINENO: checking for GNU make" >&5
6130 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6131 if test "${llvm_cv_gnu_make_command+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   llvm_cv_gnu_make_command=''
6135  for a in "$MAKE" make gmake gnumake ; do
6136   if test -z "$a" ; then continue ; fi ;
6137   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6138   then
6139    llvm_cv_gnu_make_command=$a ;
6140    break;
6141   fi
6142  done
6143 fi
6144 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6145 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6146  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6147    ifGNUmake='' ;
6148  else
6149    ifGNUmake='#' ;
6150    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6151 echo "${ECHO_T}\"Not found\"" >&6; };
6152  fi
6153
6154
6155 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6157 LN_S=$as_ln_s
6158 if test "$LN_S" = "ln -s"; then
6159   { echo "$as_me:$LINENO: result: yes" >&5
6160 echo "${ECHO_T}yes" >&6; }
6161 else
6162   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6163 echo "${ECHO_T}no, using $LN_S" >&6; }
6164 fi
6165
6166 # Extract the first word of "cmp", so it can be a program name with args.
6167 set dummy cmp; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_path_CMP+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   case $CMP in
6174   [\\/]* | ?:[\\/]*)
6175   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6176   ;;
6177   *)
6178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181   IFS=$as_save_IFS
6182   test -z "$as_dir" && as_dir=.
6183   for ac_exec_ext in '' $ac_executable_extensions; do
6184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6194   ;;
6195 esac
6196 fi
6197 CMP=$ac_cv_path_CMP
6198 if test -n "$CMP"; then
6199   { echo "$as_me:$LINENO: result: $CMP" >&5
6200 echo "${ECHO_T}$CMP" >&6; }
6201 else
6202   { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6205
6206
6207 # Extract the first word of "cp", so it can be a program name with args.
6208 set dummy cp; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_path_CP+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   case $CP in
6215   [\\/]* | ?:[\\/]*)
6216   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6217   ;;
6218   *)
6219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6235   ;;
6236 esac
6237 fi
6238 CP=$ac_cv_path_CP
6239 if test -n "$CP"; then
6240   { echo "$as_me:$LINENO: result: $CP" >&5
6241 echo "${ECHO_T}$CP" >&6; }
6242 else
6243   { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6246
6247
6248 # Extract the first word of "date", so it can be a program name with args.
6249 set dummy date; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_DATE+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   case $DATE in
6256   [\\/]* | ?:[\\/]*)
6257   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6258   ;;
6259   *)
6260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265   for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6276   ;;
6277 esac
6278 fi
6279 DATE=$ac_cv_path_DATE
6280 if test -n "$DATE"; then
6281   { echo "$as_me:$LINENO: result: $DATE" >&5
6282 echo "${ECHO_T}$DATE" >&6; }
6283 else
6284   { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6287
6288
6289 # Extract the first word of "find", so it can be a program name with args.
6290 set dummy find; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_FIND+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   case $FIND in
6297   [\\/]* | ?:[\\/]*)
6298   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6299   ;;
6300   *)
6301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6317   ;;
6318 esac
6319 fi
6320 FIND=$ac_cv_path_FIND
6321 if test -n "$FIND"; then
6322   { echo "$as_me:$LINENO: result: $FIND" >&5
6323 echo "${ECHO_T}$FIND" >&6; }
6324 else
6325   { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6327 fi
6328
6329
6330 # Extract the first word of "grep", so it can be a program name with args.
6331 set dummy grep; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_GREP+set}" = set; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   case $GREP in
6338   [\\/]* | ?:[\\/]*)
6339   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6340   ;;
6341   *)
6342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347   for ac_exec_ext in '' $ac_executable_extensions; do
6348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6358   ;;
6359 esac
6360 fi
6361 GREP=$ac_cv_path_GREP
6362 if test -n "$GREP"; then
6363   { echo "$as_me:$LINENO: result: $GREP" >&5
6364 echo "${ECHO_T}$GREP" >&6; }
6365 else
6366   { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6368 fi
6369
6370
6371 # Extract the first word of "mkdir", so it can be a program name with args.
6372 set dummy mkdir; ac_word=$2
6373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375 if test "${ac_cv_path_MKDIR+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   case $MKDIR in
6379   [\\/]* | ?:[\\/]*)
6380   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6381   ;;
6382   *)
6383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388   for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6399   ;;
6400 esac
6401 fi
6402 MKDIR=$ac_cv_path_MKDIR
6403 if test -n "$MKDIR"; then
6404   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6405 echo "${ECHO_T}$MKDIR" >&6; }
6406 else
6407   { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6409 fi
6410
6411
6412 # Extract the first word of "mv", so it can be a program name with args.
6413 set dummy mv; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_path_MV+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   case $MV in
6420   [\\/]* | ?:[\\/]*)
6421   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6422   ;;
6423   *)
6424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429   for ac_exec_ext in '' $ac_executable_extensions; do
6430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6440   ;;
6441 esac
6442 fi
6443 MV=$ac_cv_path_MV
6444 if test -n "$MV"; then
6445   { echo "$as_me:$LINENO: result: $MV" >&5
6446 echo "${ECHO_T}$MV" >&6; }
6447 else
6448   { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6450 fi
6451
6452
6453 if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_RANLIB+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   if test -n "$RANLIB"; then
6462   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 RANLIB=$ac_cv_prog_RANLIB
6482 if test -n "$RANLIB"; then
6483   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6484 echo "${ECHO_T}$RANLIB" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_RANLIB"; then
6493   ac_ct_RANLIB=$RANLIB
6494   # Extract the first word of "ranlib", so it can be a program name with args.
6495 set dummy ranlib; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501   if test -n "$ac_ct_RANLIB"; then
6502   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_ac_ct_RANLIB="ranlib"
6512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522 if test -n "$ac_ct_RANLIB"; then
6523   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6524 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6525 else
6526   { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_RANLIB" = x; then
6531     RANLIB=":"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536 whose name does not start with the host triplet.  If you think this
6537 configuration is useful to you, please write to autoconf@gnu.org." >&5
6538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539 whose name does not start with the host triplet.  If you think this
6540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543     RANLIB=$ac_ct_RANLIB
6544   fi
6545 else
6546   RANLIB="$ac_cv_prog_RANLIB"
6547 fi
6548
6549 if test -n "$ac_tool_prefix"; then
6550   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ar; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_AR+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   if test -n "$AR"; then
6558   ac_cv_prog_AR="$AR" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565   for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_AR="${ac_tool_prefix}ar"
6568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 AR=$ac_cv_prog_AR
6578 if test -n "$AR"; then
6579   { echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6; }
6581 else
6582   { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_AR"; then
6589   ac_ct_AR=$AR
6590   # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   if test -n "$ac_ct_AR"; then
6598   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605   for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_ac_ct_AR="ar"
6608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6620 echo "${ECHO_T}$ac_ct_AR" >&6; }
6621 else
6622   { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6625
6626   if test "x$ac_ct_AR" = x; then
6627     AR="false"
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet.  If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet.  If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639     AR=$ac_ct_AR
6640   fi
6641 else
6642   AR="$ac_cv_prog_AR"
6643 fi
6644
6645 # Extract the first word of "rm", so it can be a program name with args.
6646 set dummy rm; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_RM+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   case $RM in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6673   ;;
6674 esac
6675 fi
6676 RM=$ac_cv_path_RM
6677 if test -n "$RM"; then
6678   { echo "$as_me:$LINENO: result: $RM" >&5
6679 echo "${ECHO_T}$RM" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 # Extract the first word of "sed", so it can be a program name with args.
6687 set dummy sed; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_SED+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   case $SED in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6714   ;;
6715 esac
6716 fi
6717 SED=$ac_cv_path_SED
6718 if test -n "$SED"; then
6719   { echo "$as_me:$LINENO: result: $SED" >&5
6720 echo "${ECHO_T}$SED" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 # Extract the first word of "tar", so it can be a program name with args.
6728 set dummy tar; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_TAR+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $TAR in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6755   ;;
6756 esac
6757 fi
6758 TAR=$ac_cv_path_TAR
6759 if test -n "$TAR"; then
6760   { echo "$as_me:$LINENO: result: $TAR" >&5
6761 echo "${ECHO_T}$TAR" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767
6768 # Extract the first word of "pwd", so it can be a program name with args.
6769 set dummy pwd; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_BINPWD+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   case $BINPWD in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6796   ;;
6797 esac
6798 fi
6799 BINPWD=$ac_cv_path_BINPWD
6800 if test -n "$BINPWD"; then
6801   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6802 echo "${ECHO_T}$BINPWD" >&6; }
6803 else
6804   { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6806 fi
6807
6808
6809
6810 # Extract the first word of "Graphviz", so it can be a program name with args.
6811 set dummy Graphviz; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   case $GRAPHVIZ in
6818   [\\/]* | ?:[\\/]*)
6819   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6820   ;;
6821   *)
6822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6838   ;;
6839 esac
6840 fi
6841 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6842 if test -n "$GRAPHVIZ"; then
6843   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6844 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6852
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_GRAPHVIZ 1
6855 _ACEOF
6856
6857     if test "$llvm_cv_os_type" = "MingW" ; then
6858     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859   fi
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6863 _ACEOF
6864
6865 fi
6866 # Extract the first word of "dot", so it can be a program name with args.
6867 set dummy dot; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_DOT+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   case $DOT in
6874   [\\/]* | ?:[\\/]*)
6875   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6876   ;;
6877   *)
6878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883   for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6894   ;;
6895 esac
6896 fi
6897 DOT=$ac_cv_path_DOT
6898 if test -n "$DOT"; then
6899   { echo "$as_me:$LINENO: result: $DOT" >&5
6900 echo "${ECHO_T}$DOT" >&6; }
6901 else
6902   { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6904 fi
6905
6906
6907 if test "$DOT" != "echo dot" ; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_DOT 1
6911 _ACEOF
6912
6913     if test "$llvm_cv_os_type" = "MingW" ; then
6914     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915   fi
6916
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6919 _ACEOF
6920
6921 fi
6922 # Extract the first word of "fdp", so it can be a program name with args.
6923 set dummy fdp; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_FDP+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   case $FDP in
6930   [\\/]* | ?:[\\/]*)
6931   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6932   ;;
6933   *)
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6950   ;;
6951 esac
6952 fi
6953 FDP=$ac_cv_path_FDP
6954 if test -n "$FDP"; then
6955   { echo "$as_me:$LINENO: result: $FDP" >&5
6956 echo "${ECHO_T}$FDP" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 if test "$FDP" != "echo fdp" ; then
6964
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_FDP 1
6967 _ACEOF
6968
6969     if test "$llvm_cv_os_type" = "MingW" ; then
6970     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971   fi
6972
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6975 _ACEOF
6976
6977 fi
6978 # Extract the first word of "neato", so it can be a program name with args.
6979 set dummy neato; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_NEATO+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   case $NEATO in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7006   ;;
7007 esac
7008 fi
7009 NEATO=$ac_cv_path_NEATO
7010 if test -n "$NEATO"; then
7011   { echo "$as_me:$LINENO: result: $NEATO" >&5
7012 echo "${ECHO_T}$NEATO" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019 if test "$NEATO" != "echo neato" ; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_NEATO 1
7023 _ACEOF
7024
7025     if test "$llvm_cv_os_type" = "MingW" ; then
7026     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027   fi
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7031 _ACEOF
7032
7033 fi
7034 # Extract the first word of "twopi", so it can be a program name with args.
7035 set dummy twopi; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_TWOPI+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $TWOPI in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7062   ;;
7063 esac
7064 fi
7065 TWOPI=$ac_cv_path_TWOPI
7066 if test -n "$TWOPI"; then
7067   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7068 echo "${ECHO_T}$TWOPI" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075 if test "$TWOPI" != "echo twopi" ; then
7076
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_TWOPI 1
7079 _ACEOF
7080
7081     if test "$llvm_cv_os_type" = "MingW" ; then
7082     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7083   fi
7084
7085 cat >>confdefs.h <<_ACEOF
7086 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7087 _ACEOF
7088
7089 fi
7090 # Extract the first word of "circo", so it can be a program name with args.
7091 set dummy circo; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_CIRCO+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   case $CIRCO in
7098   [\\/]* | ?:[\\/]*)
7099   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7100   ;;
7101   *)
7102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7118   ;;
7119 esac
7120 fi
7121 CIRCO=$ac_cv_path_CIRCO
7122 if test -n "$CIRCO"; then
7123   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7124 echo "${ECHO_T}$CIRCO" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 if test "$CIRCO" != "echo circo" ; then
7132
7133 cat >>confdefs.h <<\_ACEOF
7134 #define HAVE_CIRCO 1
7135 _ACEOF
7136
7137     if test "$llvm_cv_os_type" = "MingW" ; then
7138     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139   fi
7140
7141 cat >>confdefs.h <<_ACEOF
7142 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7143 _ACEOF
7144
7145 fi
7146 for ac_prog in gv gsview32
7147 do
7148   # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_GV+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   case $GV in
7156   [\\/]* | ?:[\\/]*)
7157   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7158   ;;
7159   *)
7160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175   ;;
7176 esac
7177 fi
7178 GV=$ac_cv_path_GV
7179 if test -n "$GV"; then
7180   { echo "$as_me:$LINENO: result: $GV" >&5
7181 echo "${ECHO_T}$GV" >&6; }
7182 else
7183   { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7185 fi
7186
7187
7188   test -n "$GV" && break
7189 done
7190 test -n "$GV" || GV="echo gv"
7191
7192 if test "$GV" != "echo gv" ; then
7193
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_GV 1
7196 _ACEOF
7197
7198     if test "$llvm_cv_os_type" = "MingW" ; then
7199     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200   fi
7201
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_GV "$GV${EXEEXT}"
7204 _ACEOF
7205
7206 fi
7207 # Extract the first word of "dotty", so it can be a program name with args.
7208 set dummy dotty; ac_word=$2
7209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211 if test "${ac_cv_path_DOTTY+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   case $DOTTY in
7215   [\\/]* | ?:[\\/]*)
7216   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7217   ;;
7218   *)
7219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224   for ac_exec_ext in '' $ac_executable_extensions; do
7225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7226     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7235   ;;
7236 esac
7237 fi
7238 DOTTY=$ac_cv_path_DOTTY
7239 if test -n "$DOTTY"; then
7240   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7241 echo "${ECHO_T}$DOTTY" >&6; }
7242 else
7243   { echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6; }
7245 fi
7246
7247
7248 if test "$DOTTY" != "echo dotty" ; then
7249
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_DOTTY 1
7252 _ACEOF
7253
7254     if test "$llvm_cv_os_type" = "MingW" ; then
7255     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7256   fi
7257
7258 cat >>confdefs.h <<_ACEOF
7259 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7260 _ACEOF
7261
7262 fi
7263 for ac_prog in xdot xdot.py
7264 do
7265   # Extract the first word of "$ac_prog", so it can be a program name with args.
7266 set dummy $ac_prog; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_XDOT+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   case $XDOT in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292   ;;
7293 esac
7294 fi
7295 XDOT=$ac_cv_path_XDOT
7296 if test -n "$XDOT"; then
7297   { echo "$as_me:$LINENO: result: $XDOT" >&5
7298 echo "${ECHO_T}$XDOT" >&6; }
7299 else
7300   { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7302 fi
7303
7304
7305   test -n "$XDOT" && break
7306 done
7307 test -n "$XDOT" || XDOT="echo xdot"
7308
7309 if test "$XDOT" != "echo xdot" ; then
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_XDOT 1
7313 _ACEOF
7314
7315     if test "$llvm_cv_os_type" = "MingW" ; then
7316     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7317   fi
7318
7319 cat >>confdefs.h <<_ACEOF
7320 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7321 _ACEOF
7322
7323 fi
7324
7325 # Find a good install program.  We prefer a C program (faster),
7326 # so one script is as good as another.  But avoid the broken or
7327 # incompatible versions:
7328 # SysV /etc/install, /usr/sbin/install
7329 # SunOS /usr/etc/install
7330 # IRIX /sbin/install
7331 # AIX /bin/install
7332 # AmigaOS /C/install, which installs bootblocks on floppy discs
7333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7336 # OS/2's system install, which has a completely different semantic
7337 # ./install, which can be erroneously created by make from ./install.sh.
7338 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7340 if test -z "$INSTALL"; then
7341 if test "${ac_cv_path_install+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   # Account for people who put trailing slashes in PATH elements.
7350 case $as_dir/ in
7351   ./ | .// | /cC/* | \
7352   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7353   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7354   /usr/ucb/* ) ;;
7355   *)
7356     # OSF1 and SCO ODT 3.0 have their own names for install.
7357     # Don't use installbsd from OSF since it installs stuff as root
7358     # by default.
7359     for ac_prog in ginstall scoinst install; do
7360       for ac_exec_ext in '' $ac_executable_extensions; do
7361         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7362           if test $ac_prog = install &&
7363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7364             # AIX install.  It has an incompatible calling convention.
7365             :
7366           elif test $ac_prog = install &&
7367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7368             # program-specific install script used by HP pwplus--don't use.
7369             :
7370           else
7371             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7372             break 3
7373           fi
7374         fi
7375       done
7376     done
7377     ;;
7378 esac
7379 done
7380 IFS=$as_save_IFS
7381
7382
7383 fi
7384   if test "${ac_cv_path_install+set}" = set; then
7385     INSTALL=$ac_cv_path_install
7386   else
7387     # As a last resort, use the slow shell script.  Don't cache a
7388     # value for INSTALL within a source directory, because that will
7389     # break other packages using the cache if that directory is
7390     # removed, or if the value is a relative name.
7391     INSTALL=$ac_install_sh
7392   fi
7393 fi
7394 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7395 echo "${ECHO_T}$INSTALL" >&6; }
7396
7397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7398 # It thinks the first close brace ends the variable substitution.
7399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7400
7401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7402
7403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7404
7405 case "$INSTALL" in
7406  [\\/$]* | ?:[\\/]* ) ;;
7407  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7408 esac
7409
7410 # Extract the first word of "bzip2", so it can be a program name with args.
7411 set dummy bzip2; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_BZIP2+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   case $BZIP2 in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437   ;;
7438 esac
7439 fi
7440 BZIP2=$ac_cv_path_BZIP2
7441 if test -n "$BZIP2"; then
7442   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7443 echo "${ECHO_T}$BZIP2" >&6; }
7444 else
7445   { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7447 fi
7448
7449
7450 # Extract the first word of "cat", so it can be a program name with args.
7451 set dummy cat; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_CAT+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $CAT in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   ;;
7478 esac
7479 fi
7480 CAT=$ac_cv_path_CAT
7481 if test -n "$CAT"; then
7482   { echo "$as_me:$LINENO: result: $CAT" >&5
7483 echo "${ECHO_T}$CAT" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490 # Extract the first word of "doxygen", so it can be a program name with args.
7491 set dummy doxygen; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   case $DOXYGEN in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517   ;;
7518 esac
7519 fi
7520 DOXYGEN=$ac_cv_path_DOXYGEN
7521 if test -n "$DOXYGEN"; then
7522   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7523 echo "${ECHO_T}$DOXYGEN" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529
7530 # Extract the first word of "groff", so it can be a program name with args.
7531 set dummy groff; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GROFF+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   case $GROFF in
7538   [\\/]* | ?:[\\/]*)
7539   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7540   ;;
7541   *)
7542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547   for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557   ;;
7558 esac
7559 fi
7560 GROFF=$ac_cv_path_GROFF
7561 if test -n "$GROFF"; then
7562   { echo "$as_me:$LINENO: result: $GROFF" >&5
7563 echo "${ECHO_T}$GROFF" >&6; }
7564 else
7565   { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7567 fi
7568
7569
7570 # Extract the first word of "gzip", so it can be a program name with args.
7571 set dummy gzip; ac_word=$2
7572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7574 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7575   echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577   case $GZIPBIN in
7578   [\\/]* | ?:[\\/]*)
7579   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7580   ;;
7581   *)
7582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587   for ac_exec_ext in '' $ac_executable_extensions; do
7588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7589     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594 done
7595 IFS=$as_save_IFS
7596
7597   ;;
7598 esac
7599 fi
7600 GZIPBIN=$ac_cv_path_GZIPBIN
7601 if test -n "$GZIPBIN"; then
7602   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7603 echo "${ECHO_T}$GZIPBIN" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609
7610 # Extract the first word of "pdfroff", so it can be a program name with args.
7611 set dummy pdfroff; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_PDFROFF+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   case $PDFROFF in
7618   [\\/]* | ?:[\\/]*)
7619   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7620   ;;
7621   *)
7622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627   for ac_exec_ext in '' $ac_executable_extensions; do
7628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637   ;;
7638 esac
7639 fi
7640 PDFROFF=$ac_cv_path_PDFROFF
7641 if test -n "$PDFROFF"; then
7642   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7643 echo "${ECHO_T}$PDFROFF" >&6; }
7644 else
7645   { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 fi
7648
7649
7650 # Extract the first word of "zip", so it can be a program name with args.
7651 set dummy zip; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_path_ZIP+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   case $ZIP in
7658   [\\/]* | ?:[\\/]*)
7659   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7660   ;;
7661   *)
7662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667   for ac_exec_ext in '' $ac_executable_extensions; do
7668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671     break 2
7672   fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677   ;;
7678 esac
7679 fi
7680 ZIP=$ac_cv_path_ZIP
7681 if test -n "$ZIP"; then
7682   { echo "$as_me:$LINENO: result: $ZIP" >&5
7683 echo "${ECHO_T}$ZIP" >&6; }
7684 else
7685   { echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6; }
7687 fi
7688
7689
7690 for ac_prog in ocamlc
7691 do
7692   # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_OCAMLC+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   case $OCAMLC in
7700   [\\/]* | ?:[\\/]*)
7701   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7702   ;;
7703   *)
7704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709   for ac_exec_ext in '' $ac_executable_extensions; do
7710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716 done
7717 IFS=$as_save_IFS
7718
7719   ;;
7720 esac
7721 fi
7722 OCAMLC=$ac_cv_path_OCAMLC
7723 if test -n "$OCAMLC"; then
7724   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7725 echo "${ECHO_T}$OCAMLC" >&6; }
7726 else
7727   { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7729 fi
7730
7731
7732   test -n "$OCAMLC" && break
7733 done
7734
7735 for ac_prog in ocamlopt
7736 do
7737   # Extract the first word of "$ac_prog", so it can be a program name with args.
7738 set dummy $ac_prog; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   case $OCAMLOPT in
7745   [\\/]* | ?:[\\/]*)
7746   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7747   ;;
7748   *)
7749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754   for ac_exec_ext in '' $ac_executable_extensions; do
7755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7756     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761 done
7762 IFS=$as_save_IFS
7763
7764   ;;
7765 esac
7766 fi
7767 OCAMLOPT=$ac_cv_path_OCAMLOPT
7768 if test -n "$OCAMLOPT"; then
7769   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7770 echo "${ECHO_T}$OCAMLOPT" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777   test -n "$OCAMLOPT" && break
7778 done
7779
7780 for ac_prog in ocamldep
7781 do
7782   # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   case $OCAMLDEP in
7790   [\\/]* | ?:[\\/]*)
7791   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7792   ;;
7793   *)
7794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799   for ac_exec_ext in '' $ac_executable_extensions; do
7800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809   ;;
7810 esac
7811 fi
7812 OCAMLDEP=$ac_cv_path_OCAMLDEP
7813 if test -n "$OCAMLDEP"; then
7814   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7815 echo "${ECHO_T}$OCAMLDEP" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822   test -n "$OCAMLDEP" && break
7823 done
7824
7825 for ac_prog in ocamldoc
7826 do
7827   # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   case $OCAMLDOC in
7835   [\\/]* | ?:[\\/]*)
7836   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7837   ;;
7838   *)
7839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844   for ac_exec_ext in '' $ac_executable_extensions; do
7845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854   ;;
7855 esac
7856 fi
7857 OCAMLDOC=$ac_cv_path_OCAMLDOC
7858 if test -n "$OCAMLDOC"; then
7859   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7860 echo "${ECHO_T}$OCAMLDOC" >&6; }
7861 else
7862   { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7864 fi
7865
7866
7867   test -n "$OCAMLDOC" && break
7868 done
7869
7870 for ac_prog in gas as
7871 do
7872   # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7876 if test "${ac_cv_path_GAS+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   case $GAS in
7880   [\\/]* | ?:[\\/]*)
7881   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7882   ;;
7883   *)
7884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887   IFS=$as_save_IFS
7888   test -z "$as_dir" && as_dir=.
7889   for ac_exec_ext in '' $ac_executable_extensions; do
7890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7891     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893     break 2
7894   fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899   ;;
7900 esac
7901 fi
7902 GAS=$ac_cv_path_GAS
7903 if test -n "$GAS"; then
7904   { echo "$as_me:$LINENO: result: $GAS" >&5
7905 echo "${ECHO_T}$GAS" >&6; }
7906 else
7907   { echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6; }
7909 fi
7910
7911
7912   test -n "$GAS" && break
7913 done
7914
7915
7916 { echo "$as_me:$LINENO: checking for linker version" >&5
7917 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_version+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921
7922    version_string="$(ld -v 2>&1 | head -1)"
7923
7924    # Check for ld64.
7925    if (echo "$version_string" | grep -q "ld64"); then
7926      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7927    else
7928      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7929    fi
7930
7931 fi
7932 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7933 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7934
7935 cat >>confdefs.h <<_ACEOF
7936 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7937 _ACEOF
7938
7939
7940
7941 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7942 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7943 if test "${llvm_cv_link_use_r+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946    ac_ext=c
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952   oldcflags="$CFLAGS"
7953   CFLAGS="$CFLAGS -Wl,-R."
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 int
7962 main ()
7963 {
7964
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7971 case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_link") 2>conftest.er1
7977   ac_status=$?
7978   grep -v '^ *+' conftest.er1 >conftest.err
7979   rm -f conftest.er1
7980   cat conftest.err >&5
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); } &&
7983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7984   { (case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989   (eval "$ac_try") 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; } &&
7993          { ac_try='test -s conftest$ac_exeext'
7994   { (case "(($ac_try" in
7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996   *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999   (eval "$ac_try") 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   llvm_cv_link_use_r=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008         llvm_cv_link_use_r=no
8009 fi
8010
8011 rm -f core conftest.err conftest.$ac_objext \
8012       conftest$ac_exeext conftest.$ac_ext
8013   CFLAGS="$oldcflags"
8014   ac_ext=c
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019
8020
8021 fi
8022 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8023 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8024 if test "$llvm_cv_link_use_r" = yes ; then
8025
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_LINK_R 1
8028 _ACEOF
8029
8030   fi
8031
8032
8033 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8034 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8035 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038    ac_ext=c
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043
8044   oldcflags="$CFLAGS"
8045   CFLAGS="$CFLAGS -rdynamic"
8046   cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052
8053 int
8054 main ()
8055 {
8056
8057   ;
8058   return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8063 case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_link") 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076   { (case "(($ac_try" in
8077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078   *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081   (eval "$ac_try") 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); }; } &&
8085          { ac_try='test -s conftest$ac_exeext'
8086   { (case "(($ac_try" in
8087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088   *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091   (eval "$ac_try") 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; }; then
8095   llvm_cv_link_use_export_dynamic=yes
8096 else
8097   echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100         llvm_cv_link_use_export_dynamic=no
8101 fi
8102
8103 rm -f core conftest.err conftest.$ac_objext \
8104       conftest$ac_exeext conftest.$ac_ext
8105   CFLAGS="$oldcflags"
8106   ac_ext=c
8107 ac_cpp='$CPP $CPPFLAGS'
8108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8111
8112
8113 fi
8114 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8115 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8116 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8117
8118 cat >>confdefs.h <<\_ACEOF
8119 #define HAVE_LINK_EXPORT_DYNAMIC 1
8120 _ACEOF
8121
8122   fi
8123
8124
8125 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8126 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8127 if test "${llvm_cv_link_use_version_script+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130    ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136   oldcflags="$CFLAGS"
8137
8138   # The following code is from the autoconf manual,
8139   # "11.13: Limitations of Usual Tools".
8140   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8141   # Use mktemp if possible; otherwise fall back on mkdir,
8142   # with $RANDOM to make collisions less likely.
8143   : ${TMPDIR=/tmp}
8144   {
8145     tmp=`
8146       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8147     ` &&
8148     test -n "$tmp" && test -d "$tmp"
8149   } || {
8150     tmp=$TMPDIR/foo$$-$RANDOM
8151     (umask 077 && mkdir "$tmp")
8152   } || exit $?
8153
8154   echo "{" > "$tmp/export.map"
8155   echo "  global: main;" >> "$tmp/export.map"
8156   echo "  local: *;" >> "$tmp/export.map"
8157   echo "};" >> "$tmp/export.map"
8158
8159   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166
8167 int
8168 main ()
8169 {
8170
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8177 case "(($ac_try" in
8178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179   *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182   (eval "$ac_link") 2>conftest.er1
8183   ac_status=$?
8184   grep -v '^ *+' conftest.er1 >conftest.err
8185   rm -f conftest.er1
8186   cat conftest.err >&5
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); } &&
8189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190   { (case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_try") 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; } &&
8199          { ac_try='test -s conftest$ac_exeext'
8200   { (case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_try") 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   llvm_cv_link_use_version_script=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214         llvm_cv_link_use_version_script=no
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext \
8218       conftest$ac_exeext conftest.$ac_ext
8219   rm "$tmp/export.map"
8220   rmdir "$tmp"
8221   CFLAGS="$oldcflags"
8222   ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228
8229 fi
8230 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8231 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8232 if test "$llvm_cv_link_use_version_script" = yes ; then
8233   HAVE_LINK_VERSION_SCRIPT=1
8234
8235   fi
8236
8237
8238
8239
8240 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8241 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8242 if test "${ac_cv_c_const+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251
8252 int
8253 main ()
8254 {
8255 /* FIXME: Include the comments suggested by Paul. */
8256 #ifndef __cplusplus
8257   /* Ultrix mips cc rejects this.  */
8258   typedef int charset[2];
8259   const charset x;
8260   /* SunOS 4.1.1 cc rejects this.  */
8261   char const *const *ccp;
8262   char **p;
8263   /* NEC SVR4.0.2 mips cc rejects this.  */
8264   struct point {int x, y;};
8265   static struct point const zero = {0,0};
8266   /* AIX XL C 1.02.0.0 rejects this.
8267      It does not let you subtract one const X* pointer from another in
8268      an arm of an if-expression whose if-part is not a constant
8269      expression */
8270   const char *g = "string";
8271   ccp = &g + (g ? g-g : 0);
8272   /* HPUX 7.0 cc rejects these. */
8273   ++ccp;
8274   p = (char**) ccp;
8275   ccp = (char const *const *) p;
8276   { /* SCO 3.2v4 cc rejects this.  */
8277     char *t;
8278     char const *s = 0 ? (char *) 0 : (char const *) 0;
8279
8280     *t++ = 0;
8281     if (s) return 0;
8282   }
8283   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8284     int x[] = {25, 17};
8285     const int *foo = &x[0];
8286     ++foo;
8287   }
8288   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8289     typedef const int *iptr;
8290     iptr p = 0;
8291     ++p;
8292   }
8293   { /* AIX XL C 1.02.0.0 rejects this saying
8294        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8295     struct s { int j; const int *ap[3]; };
8296     struct s *b; b->j = 5;
8297   }
8298   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8299     const int foo = 10;
8300     if (!foo) return 0;
8301   }
8302   return !x[0] && !zero.x;
8303 #endif
8304
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_compile") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324   { (case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329   (eval "$ac_try") 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; } &&
8333          { ac_try='test -s conftest.$ac_objext'
8334   { (case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_try") 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_cv_c_const=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348         ac_cv_c_const=no
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8354 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8355 if test $ac_cv_c_const = no; then
8356
8357 cat >>confdefs.h <<\_ACEOF
8358 #define const
8359 _ACEOF
8360
8361 fi
8362
8363
8364
8365
8366
8367
8368 ac_header_dirent=no
8369 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8370   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8371 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8372 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 #include <sys/types.h>
8383 #include <$ac_hdr>
8384
8385 int
8386 main ()
8387 {
8388 if ((DIR *) 0)
8389 return 0;
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398   *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401   (eval "$ac_compile") 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } &&
8408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409   { (case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_try") 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; } &&
8418          { ac_try='test -s conftest.$ac_objext'
8419   { (case "(($ac_try" in
8420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421   *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424   (eval "$ac_try") 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   eval "$as_ac_Header=yes"
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433         eval "$as_ac_Header=no"
8434 fi
8435
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 fi
8438 ac_res=`eval echo '${'$as_ac_Header'}'`
8439                { echo "$as_me:$LINENO: result: $ac_res" >&5
8440 echo "${ECHO_T}$ac_res" >&6; }
8441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8442   cat >>confdefs.h <<_ACEOF
8443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8444 _ACEOF
8445
8446 ac_header_dirent=$ac_hdr; break
8447 fi
8448
8449 done
8450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8451 if test $ac_header_dirent = dirent.h; then
8452   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8454 if test "${ac_cv_search_opendir+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   ac_func_search_save_LIBS=$LIBS
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464
8465 /* Override any GCC internal prototype to avoid an error.
8466    Use char because int might match the return type of a GCC
8467    builtin and then its argument prototype would still apply.  */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 char opendir ();
8472 int
8473 main ()
8474 {
8475 return opendir ();
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 for ac_lib in '' dir; do
8481   if test -z "$ac_lib"; then
8482     ac_res="none required"
8483   else
8484     ac_res=-l$ac_lib
8485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8486   fi
8487   rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (ac_try="$ac_link"
8489 case "(($ac_try" in
8490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491   *) ac_try_echo=$ac_try;;
8492 esac
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494   (eval "$ac_link") 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } &&
8501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; } &&
8511          { ac_try='test -s conftest$ac_exeext'
8512   { (case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_try") 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; }; then
8521   ac_cv_search_opendir=$ac_res
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext \
8530       conftest$ac_exeext
8531   if test "${ac_cv_search_opendir+set}" = set; then
8532   break
8533 fi
8534 done
8535 if test "${ac_cv_search_opendir+set}" = set; then
8536   :
8537 else
8538   ac_cv_search_opendir=no
8539 fi
8540 rm conftest.$ac_ext
8541 LIBS=$ac_func_search_save_LIBS
8542 fi
8543 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8544 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8545 ac_res=$ac_cv_search_opendir
8546 if test "$ac_res" != no; then
8547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8548
8549 fi
8550
8551 else
8552   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8553 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8554 if test "${ac_cv_search_opendir+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   ac_func_search_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any GCC internal prototype to avoid an error.
8566    Use char because int might match the return type of a GCC
8567    builtin and then its argument prototype would still apply.  */
8568 #ifdef __cplusplus
8569 extern "C"
8570 #endif
8571 char opendir ();
8572 int
8573 main ()
8574 {
8575 return opendir ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 for ac_lib in '' x; do
8581   if test -z "$ac_lib"; then
8582     ac_res="none required"
8583   else
8584     ac_res=-l$ac_lib
8585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8586   fi
8587   rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_link") 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_try") 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_search_opendir=$ac_res
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626
8627 fi
8628
8629 rm -f core conftest.err conftest.$ac_objext \
8630       conftest$ac_exeext
8631   if test "${ac_cv_search_opendir+set}" = set; then
8632   break
8633 fi
8634 done
8635 if test "${ac_cv_search_opendir+set}" = set; then
8636   :
8637 else
8638   ac_cv_search_opendir=no
8639 fi
8640 rm conftest.$ac_ext
8641 LIBS=$ac_func_search_save_LIBS
8642 fi
8643 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8644 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8645 ac_res=$ac_cv_search_opendir
8646 if test "$ac_res" != no; then
8647   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8648
8649 fi
8650
8651 fi
8652
8653
8654 for ac_header in dlfcn.h
8655 do
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 fi
8663 ac_res=`eval echo '${'$as_ac_Header'}'`
8664                { echo "$as_me:$LINENO: result: $ac_res" >&5
8665 echo "${ECHO_T}$ac_res" >&6; }
8666 else
8667   # Is the header compilable?
8668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676 $ac_includes_default
8677 #include <$ac_header>
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683   *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686   (eval "$ac_compile") 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } &&
8693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694   { (case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_try") 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709   (eval "$ac_try") 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; }; then
8713   ac_header_compiler=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718         ac_header_compiler=no
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8723 echo "${ECHO_T}$ac_header_compiler" >&6; }
8724
8725 # Is the header present?
8726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #include <$ac_header>
8735 _ACEOF
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8737 case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8743   ac_status=$?
8744   grep -v '^ *+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } >/dev/null; then
8749   if test -s conftest.err; then
8750     ac_cpp_err=$ac_c_preproc_warn_flag
8751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8752   else
8753     ac_cpp_err=
8754   fi
8755 else
8756   ac_cpp_err=yes
8757 fi
8758 if test -z "$ac_cpp_err"; then
8759   ac_header_preproc=yes
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764   ac_header_preproc=no
8765 fi
8766
8767 rm -f conftest.err conftest.$ac_ext
8768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769 echo "${ECHO_T}$ac_header_preproc" >&6; }
8770
8771 # So?  What about this header?
8772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8773   yes:no: )
8774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8778     ac_header_preproc=yes
8779     ;;
8780   no:yes:* )
8781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8793     ( cat <<\_ASBOX
8794 ## ------------------------------------ ##
8795 ## Report this to http://llvm.org/bugs/ ##
8796 ## ------------------------------------ ##
8797 _ASBOX
8798      ) | sed "s/^/$as_me: WARNING:     /" >&2
8799     ;;
8800 esac
8801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   eval "$as_ac_Header=\$ac_header_preproc"
8807 fi
8808 ac_res=`eval echo '${'$as_ac_Header'}'`
8809                { echo "$as_me:$LINENO: result: $ac_res" >&5
8810 echo "${ECHO_T}$ac_res" >&6; }
8811
8812 fi
8813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814   cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8816 _ACEOF
8817
8818 fi
8819
8820 done
8821
8822 # Check whether --enable-ltdl-install was given.
8823 if test "${enable_ltdl_install+set}" = set; then
8824   enableval=$enable_ltdl_install;
8825 fi
8826
8827
8828  if test x"${enable_ltdl_install-no}" != xno; then
8829   INSTALL_LTDL_TRUE=
8830   INSTALL_LTDL_FALSE='#'
8831 else
8832   INSTALL_LTDL_TRUE='#'
8833   INSTALL_LTDL_FALSE=
8834 fi
8835
8836  if test x"${enable_ltdl_convenience-no}" != xno; then
8837   CONVENIENCE_LTDL_TRUE=
8838   CONVENIENCE_LTDL_FALSE='#'
8839 else
8840   CONVENIENCE_LTDL_TRUE='#'
8841   CONVENIENCE_LTDL_FALSE=
8842 fi
8843
8844
8845 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8846 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8847 library_names_spec=
8848 libname_spec='lib$name'
8849 soname_spec=
8850 shrext_cmds=".so"
8851 postinstall_cmds=
8852 postuninstall_cmds=
8853 finish_cmds=
8854 finish_eval=
8855 shlibpath_var=
8856 shlibpath_overrides_runpath=unknown
8857 version_type=none
8858 dynamic_linker="$host_os ld.so"
8859 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8860 if test "$GCC" = yes; then
8861   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8862   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8863     # if the path contains ";" then we assume it to be the separator
8864     # otherwise default to the standard path separator (i.e. ":") - it is
8865     # assumed that no part of a normal pathname contains ";" but that should
8866     # okay in the real world where ";" in dirpaths is itself problematic.
8867     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8868   else
8869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8870   fi
8871 else
8872   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8873 fi
8874 need_lib_prefix=unknown
8875 hardcode_into_libs=no
8876
8877 # when you set need_version to no, make sure it does not cause -set_version
8878 # flags to be left without arguments
8879 need_version=unknown
8880
8881 case $host_os in
8882 aix3*)
8883   version_type=linux
8884   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8885   shlibpath_var=LIBPATH
8886
8887   # AIX 3 has no versioning support, so we append a major version to the name.
8888   soname_spec='${libname}${release}${shared_ext}$major'
8889   ;;
8890
8891 aix4* | aix5*)
8892   version_type=linux
8893   need_lib_prefix=no
8894   need_version=no
8895   hardcode_into_libs=yes
8896   if test "$host_cpu" = ia64; then
8897     # AIX 5 supports IA64
8898     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8899     shlibpath_var=LD_LIBRARY_PATH
8900   else
8901     # With GCC up to 2.95.x, collect2 would create an import file
8902     # for dependence libraries.  The import file would start with
8903     # the line `#! .'.  This would cause the generated library to
8904     # depend on `.', always an invalid library.  This was fixed in
8905     # development snapshots of GCC prior to 3.0.
8906     case $host_os in
8907       aix4 | aix4.[01] | aix4.[01].*)
8908       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8909            echo ' yes '
8910            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8911         :
8912       else
8913         can_build_shared=no
8914       fi
8915       ;;
8916     esac
8917     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8918     # soname into executable. Probably we can add versioning support to
8919     # collect2, so additional links can be useful in future.
8920     if test "$aix_use_runtimelinking" = yes; then
8921       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8922       # instead of lib<name>.a to let people know that these are not
8923       # typical AIX shared libraries.
8924       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925     else
8926       # We preserve .a as extension for shared libraries through AIX4.2
8927       # and later when we are not doing run time linking.
8928       library_names_spec='${libname}${release}.a $libname.a'
8929       soname_spec='${libname}${release}${shared_ext}$major'
8930     fi
8931     shlibpath_var=LIBPATH
8932   fi
8933   ;;
8934
8935 amigaos*)
8936   library_names_spec='$libname.ixlibrary $libname.a'
8937   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8938   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'
8939   ;;
8940
8941 beos*)
8942   library_names_spec='${libname}${shared_ext}'
8943   dynamic_linker="$host_os ld.so"
8944   shlibpath_var=LIBRARY_PATH
8945   ;;
8946
8947 bsdi[45]*)
8948   version_type=linux
8949   need_version=no
8950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951   soname_spec='${libname}${release}${shared_ext}$major'
8952   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8953   shlibpath_var=LD_LIBRARY_PATH
8954   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8955   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8956   # the default ld.so.conf also contains /usr/contrib/lib and
8957   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8958   # libtool to hard-code these into programs
8959   ;;
8960
8961 cygwin* | mingw* | pw32*)
8962   version_type=windows
8963   shrext_cmds=".dll"
8964   need_version=no
8965   need_lib_prefix=no
8966
8967   case $GCC,$host_os in
8968   yes,cygwin* | yes,mingw* | yes,pw32*)
8969     library_names_spec='$libname.dll.a'
8970     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8971     postinstall_cmds='base_file=`basename \${file}`~
8972       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8973       dldir=$destdir/`dirname \$dlpath`~
8974       test -d \$dldir || mkdir -p \$dldir~
8975       $install_prog $dir/$dlname \$dldir/$dlname~
8976       chmod a+x \$dldir/$dlname'
8977     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8978       dlpath=$dir/\$dldll~
8979        $rm \$dlpath'
8980     shlibpath_overrides_runpath=yes
8981
8982     case $host_os in
8983     cygwin*)
8984       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8985       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8986       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8987       ;;
8988     mingw*)
8989       # MinGW DLLs use traditional 'lib' prefix
8990       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8991       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8992       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8993         # It is most probably a Windows format PATH printed by
8994         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8995         # path with ; separators, and with drive letters. We can handle the
8996         # drive letters (cygwin fileutils understands them), so leave them,
8997         # especially as we might pass files found there to a mingw objdump,
8998         # which wouldn't understand a cygwinified path. Ahh.
8999         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9000       else
9001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9002       fi
9003       ;;
9004     pw32*)
9005       # pw32 DLLs use 'pw' prefix rather than 'lib'
9006       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9007       ;;
9008     esac
9009     ;;
9010
9011   *)
9012     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9013     ;;
9014   esac
9015   dynamic_linker='Win32 ld.exe'
9016   # FIXME: first we should search . and the directory the executable is in
9017   shlibpath_var=PATH
9018   ;;
9019
9020 darwin* | rhapsody*)
9021   dynamic_linker="$host_os dyld"
9022   version_type=darwin
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9026   soname_spec='${libname}${release}${major}$shared_ext'
9027   shlibpath_overrides_runpath=yes
9028   shlibpath_var=DYLD_LIBRARY_PATH
9029   shrext_cmds='.dylib'
9030   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9031   if test "$GCC" = yes; then
9032     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"`
9033   else
9034     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9035   fi
9036   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9037   ;;
9038
9039 dgux*)
9040   version_type=linux
9041   need_lib_prefix=no
9042   need_version=no
9043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9044   soname_spec='${libname}${release}${shared_ext}$major'
9045   shlibpath_var=LD_LIBRARY_PATH
9046   ;;
9047
9048 freebsd1.*)
9049   dynamic_linker=no
9050   ;;
9051
9052 kfreebsd*-gnu)
9053   version_type=linux
9054   need_lib_prefix=no
9055   need_version=no
9056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057   soname_spec='${libname}${release}${shared_ext}$major'
9058   shlibpath_var=LD_LIBRARY_PATH
9059   shlibpath_overrides_runpath=no
9060   hardcode_into_libs=yes
9061   dynamic_linker='GNU ld.so'
9062   ;;
9063
9064 freebsd* | dragonfly*)
9065   # DragonFly does not have aout.  When/if they implement a new
9066   # versioning mechanism, adjust this.
9067   if test -x /usr/bin/objformat; then
9068     objformat=`/usr/bin/objformat`
9069   else
9070     case $host_os in
9071     freebsd[123].*) objformat=aout ;;
9072     *) objformat=elf ;;
9073     esac
9074   fi
9075   version_type=freebsd-$objformat
9076   case $version_type in
9077     freebsd-elf*)
9078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9079       need_version=no
9080       need_lib_prefix=no
9081       ;;
9082     freebsd-*)
9083       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9084       need_version=yes
9085       ;;
9086   esac
9087   shlibpath_var=LD_LIBRARY_PATH
9088   case $host_os in
9089   freebsd2.*)
9090     shlibpath_overrides_runpath=yes
9091     ;;
9092   freebsd3.[01]* | freebsdelf3.[01]*)
9093     shlibpath_overrides_runpath=yes
9094     hardcode_into_libs=yes
9095     ;;
9096   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9097   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9098     shlibpath_overrides_runpath=no
9099     hardcode_into_libs=yes
9100     ;;
9101   freebsd*) # from 4.6 on
9102     shlibpath_overrides_runpath=yes
9103     hardcode_into_libs=yes
9104     ;;
9105   esac
9106   ;;
9107
9108 gnu*)
9109   version_type=linux
9110   need_lib_prefix=no
9111   need_version=no
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   shlibpath_var=LD_LIBRARY_PATH
9115   hardcode_into_libs=yes
9116   ;;
9117
9118 hpux9* | hpux10* | hpux11*)
9119   # Give a soname corresponding to the major version so that dld.sl refuses to
9120   # link against other versions.
9121   version_type=sunos
9122   need_lib_prefix=no
9123   need_version=no
9124   case $host_cpu in
9125   ia64*)
9126     shrext_cmds='.so'
9127     hardcode_into_libs=yes
9128     dynamic_linker="$host_os dld.so"
9129     shlibpath_var=LD_LIBRARY_PATH
9130     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132     soname_spec='${libname}${release}${shared_ext}$major'
9133     if test "X$HPUX_IA64_MODE" = X32; then
9134       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9135     else
9136       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9137     fi
9138     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9139     ;;
9140    hppa*64*)
9141      shrext_cmds='.sl'
9142      hardcode_into_libs=yes
9143      dynamic_linker="$host_os dld.sl"
9144      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9145      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9146      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147      soname_spec='${libname}${release}${shared_ext}$major'
9148      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9149      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9150      ;;
9151    *)
9152     shrext_cmds='.sl'
9153     dynamic_linker="$host_os dld.sl"
9154     shlibpath_var=SHLIB_PATH
9155     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157     soname_spec='${libname}${release}${shared_ext}$major'
9158     ;;
9159   esac
9160   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9161   postinstall_cmds='chmod 555 $lib'
9162   ;;
9163
9164 interix3*)
9165   version_type=linux
9166   need_lib_prefix=no
9167   need_version=no
9168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9169   soname_spec='${libname}${release}${shared_ext}$major'
9170   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9171   shlibpath_var=LD_LIBRARY_PATH
9172   shlibpath_overrides_runpath=no
9173   hardcode_into_libs=yes
9174   ;;
9175
9176 irix5* | irix6* | nonstopux*)
9177   case $host_os in
9178     nonstopux*) version_type=nonstopux ;;
9179     *)
9180         if test "$lt_cv_prog_gnu_ld" = yes; then
9181                 version_type=linux
9182         else
9183                 version_type=irix
9184         fi ;;
9185   esac
9186   need_lib_prefix=no
9187   need_version=no
9188   soname_spec='${libname}${release}${shared_ext}$major'
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9190   case $host_os in
9191   irix5* | nonstopux*)
9192     libsuff= shlibsuff=
9193     ;;
9194   *)
9195     case $LD in # libtool.m4 will add one of these switches to LD
9196     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9197       libsuff= shlibsuff= libmagic=32-bit;;
9198     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9199       libsuff=32 shlibsuff=N32 libmagic=N32;;
9200     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9201       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9202     *) libsuff= shlibsuff= libmagic=never-match;;
9203     esac
9204     ;;
9205   esac
9206   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9207   shlibpath_overrides_runpath=no
9208   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9209   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9210   hardcode_into_libs=yes
9211   ;;
9212
9213 # No shared lib support for Linux oldld, aout, or coff.
9214 linux*oldld* | linux*aout* | linux*coff*)
9215   dynamic_linker=no
9216   ;;
9217
9218 # This must be Linux ELF.
9219 linux*)
9220   version_type=linux
9221   need_lib_prefix=no
9222   need_version=no
9223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224   soname_spec='${libname}${release}${shared_ext}$major'
9225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   shlibpath_overrides_runpath=no
9228   # This implies no fast_install, which is unacceptable.
9229   # Some rework will be needed to allow for fast_install
9230   # before this can be enabled.
9231   hardcode_into_libs=yes
9232
9233   # Append ld.so.conf contents to the search path
9234   if test -f /etc/ld.so.conf; then
9235     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' ' '`
9236     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9237   fi
9238
9239   # We used to test for /lib/ld.so.1 and disable shared libraries on
9240   # powerpc, because MkLinux only supported shared libraries with the
9241   # GNU dynamic linker.  Since this was broken with cross compilers,
9242   # most powerpc-linux boxes support dynamic linking these days and
9243   # people can always --disable-shared, the test was removed, and we
9244   # assume the GNU/Linux dynamic linker is in use.
9245   dynamic_linker='GNU/Linux ld.so'
9246   ;;
9247
9248 knetbsd*-gnu)
9249   version_type=linux
9250   need_lib_prefix=no
9251   need_version=no
9252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9253   soname_spec='${libname}${release}${shared_ext}$major'
9254   shlibpath_var=LD_LIBRARY_PATH
9255   shlibpath_overrides_runpath=no
9256   hardcode_into_libs=yes
9257   dynamic_linker='GNU ld.so'
9258   ;;
9259
9260 netbsd*)
9261   version_type=sunos
9262   need_lib_prefix=no
9263   need_version=no
9264   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9266     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9267     dynamic_linker='NetBSD (a.out) ld.so'
9268   else
9269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270     soname_spec='${libname}${release}${shared_ext}$major'
9271     dynamic_linker='NetBSD ld.elf_so'
9272   fi
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=yes
9275   hardcode_into_libs=yes
9276   ;;
9277
9278 newsos6)
9279   version_type=linux
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   shlibpath_overrides_runpath=yes
9283   ;;
9284
9285 nto-qnx*)
9286   version_type=linux
9287   need_lib_prefix=no
9288   need_version=no
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290   soname_spec='${libname}${release}${shared_ext}$major'
9291   shlibpath_var=LD_LIBRARY_PATH
9292   shlibpath_overrides_runpath=yes
9293   ;;
9294
9295 openbsd* | bitrig*)
9296   version_type=sunos
9297   sys_lib_dlsearch_path_spec="/usr/lib"
9298   need_lib_prefix=no
9299   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9300   case $host_os in
9301     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9302     *)                         need_version=no  ;;
9303   esac
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9308     case $host_os in
9309       openbsd2.[89] | openbsd2.[89].*)
9310         shlibpath_overrides_runpath=no
9311         ;;
9312       *)
9313         shlibpath_overrides_runpath=yes
9314         ;;
9315       esac
9316   else
9317     shlibpath_overrides_runpath=yes
9318   fi
9319   ;;
9320
9321 os2*)
9322   libname_spec='$name'
9323   shrext_cmds=".dll"
9324   need_lib_prefix=no
9325   library_names_spec='$libname${shared_ext} $libname.a'
9326   dynamic_linker='OS/2 ld.exe'
9327   shlibpath_var=LIBPATH
9328   ;;
9329
9330 osf3* | osf4* | osf5*)
9331   version_type=osf
9332   need_lib_prefix=no
9333   need_version=no
9334   soname_spec='${libname}${release}${shared_ext}$major'
9335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9338   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9339   ;;
9340
9341 solaris*)
9342   version_type=linux
9343   need_lib_prefix=no
9344   need_version=no
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346   soname_spec='${libname}${release}${shared_ext}$major'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   shlibpath_overrides_runpath=yes
9349   hardcode_into_libs=yes
9350   # ldd complains unless libraries are executable
9351   postinstall_cmds='chmod +x $lib'
9352   ;;
9353
9354 sunos4*)
9355   version_type=sunos
9356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9357   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9358   shlibpath_var=LD_LIBRARY_PATH
9359   shlibpath_overrides_runpath=yes
9360   if test "$with_gnu_ld" = yes; then
9361     need_lib_prefix=no
9362   fi
9363   need_version=yes
9364   ;;
9365
9366 sysv4 | sysv4.3*)
9367   version_type=linux
9368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369   soname_spec='${libname}${release}${shared_ext}$major'
9370   shlibpath_var=LD_LIBRARY_PATH
9371   case $host_vendor in
9372     sni)
9373       shlibpath_overrides_runpath=no
9374       need_lib_prefix=no
9375       export_dynamic_flag_spec='${wl}-Blargedynsym'
9376       runpath_var=LD_RUN_PATH
9377       ;;
9378     siemens)
9379       need_lib_prefix=no
9380       ;;
9381     motorola)
9382       need_lib_prefix=no
9383       need_version=no
9384       shlibpath_overrides_runpath=no
9385       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9386       ;;
9387   esac
9388   ;;
9389
9390 sysv4*MP*)
9391   if test -d /usr/nec ;then
9392     version_type=linux
9393     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9394     soname_spec='$libname${shared_ext}.$major'
9395     shlibpath_var=LD_LIBRARY_PATH
9396   fi
9397   ;;
9398
9399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9400   version_type=freebsd-elf
9401   need_lib_prefix=no
9402   need_version=no
9403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9404   soname_spec='${libname}${release}${shared_ext}$major'
9405   shlibpath_var=LD_LIBRARY_PATH
9406   hardcode_into_libs=yes
9407   if test "$with_gnu_ld" = yes; then
9408     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9409     shlibpath_overrides_runpath=no
9410   else
9411     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9412     shlibpath_overrides_runpath=yes
9413     case $host_os in
9414       sco3.2v5*)
9415         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9416         ;;
9417     esac
9418   fi
9419   sys_lib_dlsearch_path_spec='/usr/lib'
9420   ;;
9421
9422 uts4*)
9423   version_type=linux
9424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425   soname_spec='${libname}${release}${shared_ext}$major'
9426   shlibpath_var=LD_LIBRARY_PATH
9427   ;;
9428
9429 *)
9430   dynamic_linker=no
9431   ;;
9432 esac
9433 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9434 echo "${ECHO_T}$dynamic_linker" >&6; }
9435 test "$dynamic_linker" = no && can_build_shared=no
9436
9437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9438 if test "$GCC" = yes; then
9439   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9440 fi
9441
9442
9443 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9444 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9445 if test "${libltdl_cv_shlibext+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448
9449 module=yes
9450 eval libltdl_cv_shlibext=$shrext_cmds
9451
9452 fi
9453 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9454 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9455 if test -n "$libltdl_cv_shlibext"; then
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9459 _ACEOF
9460
9461 fi
9462
9463
9464 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9465 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9466 if test "${libltdl_cv_sys_search_path+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9470 fi
9471 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9472 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9473 if test -n "$libltdl_cv_sys_search_path"; then
9474   sys_search_path=
9475   for dir in $libltdl_cv_sys_search_path; do
9476     if test -z "$sys_search_path"; then
9477       sys_search_path="$dir"
9478     else
9479       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9480     fi
9481   done
9482
9483 cat >>confdefs.h <<_ACEOF
9484 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9485 _ACEOF
9486
9487 fi
9488
9489 { echo "$as_me:$LINENO: checking for objdir" >&5
9490 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9491 if test "${libltdl_cv_objdir+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   libltdl_cv_objdir="$objdir"
9495   if test -n "$objdir"; then
9496     :
9497   else
9498     rm -f .libs 2>/dev/null
9499     mkdir .libs 2>/dev/null
9500     if test -d .libs; then
9501       libltdl_cv_objdir=.libs
9502     else
9503       # MS-DOS does not allow filenames that begin with a dot.
9504       libltdl_cv_objdir=_libs
9505     fi
9506   rmdir .libs 2>/dev/null
9507   fi
9508
9509 fi
9510 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9511 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9512
9513 cat >>confdefs.h <<_ACEOF
9514 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9515 _ACEOF
9516
9517
9518
9519
9520
9521
9522 # Check for command to grab the raw symbol name followed by C symbol from nm.
9523 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9524 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9525 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528
9529 # These are sane defaults that work on at least a few old systems.
9530 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9531
9532 # Character class describing NM global symbol codes.
9533 symcode='[BCDEGRST]'
9534
9535 # Regexp to match symbols that can be accessed directly from C.
9536 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9537
9538 # Transform an extracted symbol line into a proper C declaration
9539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9540
9541 # Transform an extracted symbol line into symbol name and symbol address
9542 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'"
9543
9544 # Define system-specific variables.
9545 case $host_os in
9546 aix*)
9547   symcode='[BCDT]'
9548   ;;
9549 cygwin* | mingw* | pw32*)
9550   symcode='[ABCDGISTW]'
9551   ;;
9552 hpux*) # Its linker distinguishes data from code symbols
9553   if test "$host_cpu" = ia64; then
9554     symcode='[ABCDEGRST]'
9555   fi
9556   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9557   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'"
9558   ;;
9559 linux*)
9560   if test "$host_cpu" = ia64; then
9561     symcode='[ABCDGIRSTW]'
9562     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9563     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'"
9564   fi
9565   ;;
9566 irix* | nonstopux*)
9567   symcode='[BCDEGRST]'
9568   ;;
9569 osf*)
9570   symcode='[BCDEGQRST]'
9571   ;;
9572 solaris*)
9573   symcode='[BDRT]'
9574   ;;
9575 sco3.2v5*)
9576   symcode='[DT]'
9577   ;;
9578 sysv4.2uw2*)
9579   symcode='[DT]'
9580   ;;
9581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9582   symcode='[ABDT]'
9583   ;;
9584 sysv4)
9585   symcode='[DFNSTU]'
9586   ;;
9587 esac
9588
9589 # Handle CRLF in mingw tool chain
9590 opt_cr=
9591 case $build_os in
9592 mingw*)
9593   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9594   ;;
9595 esac
9596
9597 # If we're using GNU nm, then use its standard symbol codes.
9598 case `$NM -V 2>&1` in
9599 *GNU* | *'with BFD'*)
9600   symcode='[ABCDGIRSTW]' ;;
9601 esac
9602
9603 # Try without a prefix undercore, then with it.
9604 for ac_symprfx in "" "_"; do
9605
9606   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9607   symxfrm="\\1 $ac_symprfx\\2 \\2"
9608
9609   # Write the raw and C identifiers.
9610   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9611
9612   # Check to see that the pipe works correctly.
9613   pipe_works=no
9614
9615   rm -f conftest*
9616   cat > conftest.$ac_ext <<EOF
9617 #ifdef __cplusplus
9618 extern "C" {
9619 #endif
9620 char nm_test_var;
9621 void nm_test_func(){}
9622 #ifdef __cplusplus
9623 }
9624 #endif
9625 int main(){nm_test_var='a';nm_test_func();return(0);}
9626 EOF
9627
9628   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629   (eval $ac_compile) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; then
9633     # Now try to grab the symbols.
9634     nlist=conftest.nm
9635     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9636   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } && test -s "$nlist"; then
9640       # Try sorting and uniquifying the output.
9641       if sort "$nlist" | uniq > "$nlist"T; then
9642         mv -f "$nlist"T "$nlist"
9643       else
9644         rm -f "$nlist"T
9645       fi
9646
9647       # Make sure that we snagged all the symbols we need.
9648       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9649         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9650           cat <<EOF > conftest.$ac_ext
9651 #ifdef __cplusplus
9652 extern "C" {
9653 #endif
9654
9655 EOF
9656           # Now generate the symbol file.
9657           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9658
9659           cat <<EOF >> conftest.$ac_ext
9660 #if defined (__STDC__) && __STDC__
9661 # define lt_ptr_t void *
9662 #else
9663 # define lt_ptr_t char *
9664 # define const
9665 #endif
9666
9667 /* The mapping between symbol names and symbols. */
9668 const struct {
9669   const char *name;
9670   lt_ptr_t address;
9671 }
9672 lt_preloaded_symbols[] =
9673 {
9674 EOF
9675           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9676           cat <<\EOF >> conftest.$ac_ext
9677   {0, (lt_ptr_t) 0}
9678 };
9679
9680 #ifdef __cplusplus
9681 }
9682 #endif
9683 EOF
9684           # Now try linking the two files.
9685           mv conftest.$ac_objext conftstm.$ac_objext
9686           lt_save_LIBS="$LIBS"
9687           lt_save_CFLAGS="$CFLAGS"
9688           LIBS="conftstm.$ac_objext"
9689           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9690           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691   (eval $ac_link) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9695             pipe_works=yes
9696           fi
9697           LIBS="$lt_save_LIBS"
9698           CFLAGS="$lt_save_CFLAGS"
9699         else
9700           echo "cannot find nm_test_func in $nlist" >&5
9701         fi
9702       else
9703         echo "cannot find nm_test_var in $nlist" >&5
9704       fi
9705     else
9706       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9707     fi
9708   else
9709     echo "$progname: failed program was:" >&5
9710     cat conftest.$ac_ext >&5
9711   fi
9712   rm -f conftest* conftst*
9713
9714   # Do not use the global_symbol_pipe unless it works.
9715   if test "$pipe_works" = yes; then
9716     break
9717   else
9718     lt_cv_sys_global_symbol_pipe=
9719   fi
9720 done
9721
9722 fi
9723
9724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9725   lt_cv_sys_global_symbol_to_cdecl=
9726 fi
9727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9728   { echo "$as_me:$LINENO: result: failed" >&5
9729 echo "${ECHO_T}failed" >&6; }
9730 else
9731   { echo "$as_me:$LINENO: result: ok" >&5
9732 echo "${ECHO_T}ok" >&6; }
9733 fi
9734
9735
9736 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9737 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9738 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9742     libltdl_cv_preloaded_symbols=yes
9743   else
9744     libltdl_cv_preloaded_symbols=no
9745   fi
9746
9747 fi
9748 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9749 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9750 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9751
9752 cat >>confdefs.h <<\_ACEOF
9753 #define HAVE_PRELOADED_SYMBOLS 1
9754 _ACEOF
9755
9756 fi
9757
9758 LIBADD_DL=
9759
9760 ac_ext=c
9761 ac_cpp='$CPP $CPPFLAGS'
9762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9765
9766
9767 { echo "$as_me:$LINENO: checking for shl_load" >&5
9768 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9769 if test "${ac_cv_func_shl_load+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9780 #define shl_load innocuous_shl_load
9781
9782 /* System header to define __stub macros and hopefully few prototypes,
9783     which can conflict with char shl_load (); below.
9784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785     <limits.h> exists even on freestanding compilers.  */
9786
9787 #ifdef __STDC__
9788 # include <limits.h>
9789 #else
9790 # include <assert.h>
9791 #endif
9792
9793 #undef shl_load
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796    Use char because int might match the return type of a GCC
9797    builtin and then its argument prototype would still apply.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char shl_load ();
9802 /* The GNU C library defines this for functions which it implements
9803     to always fail with ENOSYS.  Some functions are actually named
9804     something starting with __ and the normal name is an alias.  */
9805 #if defined __stub_shl_load || defined __stub___shl_load
9806 choke me
9807 #endif
9808
9809 int
9810 main ()
9811 {
9812 return shl_load ();
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832   { (case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; } &&
9841          { ac_try='test -s conftest$ac_exeext'
9842   { (case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_try") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_cv_func_shl_load=yes
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856         ac_cv_func_shl_load=no
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext \
9860       conftest$ac_exeext conftest.$ac_ext
9861 fi
9862 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9863 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9864 if test $ac_cv_func_shl_load = yes; then
9865
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_SHL_LOAD 1
9868 _ACEOF
9869
9870 else
9871   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9872 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9874   echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldld  $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any GCC internal prototype to avoid an error.
9886    Use char because int might match the return type of a GCC
9887    builtin and then its argument prototype would still apply.  */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char shl_load ();
9892 int
9893 main ()
9894 {
9895 return shl_load ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9902 case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907   (eval "$ac_link") 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915   { (case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_try") 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; } &&
9924          { ac_try='test -s conftest$ac_exeext'
9925   { (case "(($ac_try" in
9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927   *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930   (eval "$ac_try") 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_cv_lib_dld_shl_load=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939         ac_cv_lib_dld_shl_load=no
9940 fi
9941
9942 rm -f core conftest.err conftest.$ac_objext \
9943       conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9945 fi
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9948 if test $ac_cv_lib_dld_shl_load = yes; then
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_SHL_LOAD 1
9952 _ACEOF
9953
9954         LIBADD_DL="$LIBADD_DL -ldld"
9955 else
9956   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   ac_check_lib_save_LIBS=$LIBS
9962 LIBS="-ldl  $LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 /* Override any GCC internal prototype to avoid an error.
9971    Use char because int might match the return type of a GCC
9972    builtin and then its argument prototype would still apply.  */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 char dlopen ();
9977 int
9978 main ()
9979 {
9980 return dlopen ();
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9987 case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992   (eval "$ac_link") 2>conftest.er1
9993   ac_status=$?
9994   grep -v '^ *+' conftest.er1 >conftest.err
9995   rm -f conftest.er1
9996   cat conftest.err >&5
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } &&
9999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10000   { (case "(($ac_try" in
10001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002   *) ac_try_echo=$ac_try;;
10003 esac
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005   (eval "$ac_try") 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; } &&
10009          { ac_try='test -s conftest$ac_exeext'
10010   { (case "(($ac_try" in
10011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012   *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015   (eval "$ac_try") 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; }; then
10019   ac_cv_lib_dl_dlopen=yes
10020 else
10021   echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024         ac_cv_lib_dl_dlopen=no
10025 fi
10026
10027 rm -f core conftest.err conftest.$ac_objext \
10028       conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10030 fi
10031 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10033 if test $ac_cv_lib_dl_dlopen = yes; then
10034
10035 cat >>confdefs.h <<\_ACEOF
10036 #define HAVE_LIBDL 1
10037 _ACEOF
10038
10039                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10040 else
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 #if HAVE_DLFCN_H
10048 #  include <dlfcn.h>
10049 #endif
10050
10051 int
10052 main ()
10053 {
10054 dlopen(0, 0);
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (ac_try="$ac_link"
10061 case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066   (eval "$ac_link") 2>conftest.er1
10067   ac_status=$?
10068   grep -v '^ *+' conftest.er1 >conftest.err
10069   rm -f conftest.er1
10070   cat conftest.err >&5
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); } &&
10073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10074   { (case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_try") 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; } &&
10083          { ac_try='test -s conftest$ac_exeext'
10084   { (case "(($ac_try" in
10085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086   *) ac_try_echo=$ac_try;;
10087 esac
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089   (eval "$ac_try") 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; }; then
10093
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_LIBDL 1
10096 _ACEOF
10097  libltdl_cv_func_dlopen="yes"
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10103 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lsvld  $LIBS"
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h.  */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h.  */
10115
10116 /* Override any GCC internal prototype to avoid an error.
10117    Use char because int might match the return type of a GCC
10118    builtin and then its argument prototype would still apply.  */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char dlopen ();
10123 int
10124 main ()
10125 {
10126 return dlopen ();
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_link") 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } &&
10145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146   { (case "(($ac_try" in
10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148   *) ac_try_echo=$ac_try;;
10149 esac
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151   (eval "$ac_try") 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; } &&
10155          { ac_try='test -s conftest$ac_exeext'
10156   { (case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161   (eval "$ac_try") 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   ac_cv_lib_svld_dlopen=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170         ac_cv_lib_svld_dlopen=no
10171 fi
10172
10173 rm -f core conftest.err conftest.$ac_objext \
10174       conftest$ac_exeext conftest.$ac_ext
10175 LIBS=$ac_check_lib_save_LIBS
10176 fi
10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10178 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10179 if test $ac_cv_lib_svld_dlopen = yes; then
10180
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_LIBDL 1
10183 _ACEOF
10184
10185                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10186 else
10187   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10188 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10189 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-ldld  $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h.  */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h.  */
10200
10201 /* Override any GCC internal prototype to avoid an error.
10202    Use char because int might match the return type of a GCC
10203    builtin and then its argument prototype would still apply.  */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char dld_link ();
10208 int
10209 main ()
10210 {
10211 return dld_link ();
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223   (eval "$ac_link") 2>conftest.er1
10224   ac_status=$?
10225   grep -v '^ *+' conftest.er1 >conftest.err
10226   rm -f conftest.er1
10227   cat conftest.err >&5
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); } &&
10230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231   { (case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_try") 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; } &&
10240          { ac_try='test -s conftest$ac_exeext'
10241   { (case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246   (eval "$ac_try") 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); }; }; then
10250   ac_cv_lib_dld_dld_link=yes
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255         ac_cv_lib_dld_dld_link=no
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext \
10259       conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10261 fi
10262 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10263 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10264 if test $ac_cv_lib_dld_dld_link = yes; then
10265
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_DLD 1
10268 _ACEOF
10269
10270                 LIBADD_DL="$LIBADD_DL -ldld"
10271 else
10272   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10273 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10274 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10275   echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277   cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h.  */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h.  */
10283 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10285 #define _dyld_func_lookup innocuous__dyld_func_lookup
10286
10287 /* System header to define __stub macros and hopefully few prototypes,
10288     which can conflict with char _dyld_func_lookup (); below.
10289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10290     <limits.h> exists even on freestanding compilers.  */
10291
10292 #ifdef __STDC__
10293 # include <limits.h>
10294 #else
10295 # include <assert.h>
10296 #endif
10297
10298 #undef _dyld_func_lookup
10299
10300 /* Override any GCC internal prototype to avoid an error.
10301    Use char because int might match the return type of a GCC
10302    builtin and then its argument prototype would still apply.  */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char _dyld_func_lookup ();
10307 /* The GNU C library defines this for functions which it implements
10308     to always fail with ENOSYS.  Some functions are actually named
10309     something starting with __ and the normal name is an alias.  */
10310 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10311 choke me
10312 #endif
10313
10314 int
10315 main ()
10316 {
10317 return _dyld_func_lookup ();
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (ac_try="$ac_link"
10324 case "(($ac_try" in
10325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326   *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329   (eval "$ac_link") 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } &&
10336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10337   { (case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_try") 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; } &&
10346          { ac_try='test -s conftest$ac_exeext'
10347   { (case "(($ac_try" in
10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349   *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352   (eval "$ac_try") 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; }; then
10356   ac_cv_func__dyld_func_lookup=yes
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361         ac_cv_func__dyld_func_lookup=no
10362 fi
10363
10364 rm -f core conftest.err conftest.$ac_objext \
10365       conftest$ac_exeext conftest.$ac_ext
10366 fi
10367 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10368 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10369 if test $ac_cv_func__dyld_func_lookup = yes; then
10370
10371 cat >>confdefs.h <<\_ACEOF
10372 #define HAVE_DYLD 1
10373 _ACEOF
10374
10375 fi
10376
10377
10378 fi
10379
10380
10381 fi
10382
10383
10384 fi
10385
10386 rm -f core conftest.err conftest.$ac_objext \
10387       conftest$ac_exeext conftest.$ac_ext
10388
10389 fi
10390
10391
10392 fi
10393
10394
10395 fi
10396
10397
10398 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10399 then
10400   lt_save_LIBS="$LIBS"
10401   LIBS="$LIBS $LIBADD_DL"
10402
10403 for ac_func in dlerror
10404 do
10405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h.  */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h.  */
10417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10419 #define $ac_func innocuous_$ac_func
10420
10421 /* System header to define __stub macros and hopefully few prototypes,
10422     which can conflict with char $ac_func (); below.
10423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424     <limits.h> exists even on freestanding compilers.  */
10425
10426 #ifdef __STDC__
10427 # include <limits.h>
10428 #else
10429 # include <assert.h>
10430 #endif
10431
10432 #undef $ac_func
10433
10434 /* Override any GCC internal prototype to avoid an error.
10435    Use char because int might match the return type of a GCC
10436    builtin and then its argument prototype would still apply.  */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 char $ac_func ();
10441 /* The GNU C library defines this for functions which it implements
10442     to always fail with ENOSYS.  Some functions are actually named
10443     something starting with __ and the normal name is an alias.  */
10444 #if defined __stub_$ac_func || defined __stub___$ac_func
10445 choke me
10446 #endif
10447
10448 int
10449 main ()
10450 {
10451 return $ac_func ();
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463   (eval "$ac_link") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10471   { (case "(($ac_try" in
10472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473   *) ac_try_echo=$ac_try;;
10474 esac
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476   (eval "$ac_try") 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest$ac_exeext'
10481   { (case "(($ac_try" in
10482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483   *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486   (eval "$ac_try") 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   eval "$as_ac_var=yes"
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495         eval "$as_ac_var=no"
10496 fi
10497
10498 rm -f core conftest.err conftest.$ac_objext \
10499       conftest$ac_exeext conftest.$ac_ext
10500 fi
10501 ac_res=`eval echo '${'$as_ac_var'}'`
10502                { echo "$as_me:$LINENO: result: $ac_res" >&5
10503 echo "${ECHO_T}$ac_res" >&6; }
10504 if test `eval echo '${'$as_ac_var'}'` = yes; then
10505   cat >>confdefs.h <<_ACEOF
10506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10507 _ACEOF
10508
10509 fi
10510 done
10511
10512   LIBS="$lt_save_LIBS"
10513 fi
10514 ac_ext=c
10515 ac_cpp='$CPP $CPPFLAGS'
10516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10519
10520
10521
10522 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10523 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10524 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   ac_cv_sys_symbol_underscore=no
10528   cat > conftest.$ac_ext <<EOF
10529 void nm_test_func(){}
10530 int main(){nm_test_func;return 0;}
10531 EOF
10532   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10533   (eval $ac_compile) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; then
10537     # Now try to grab the symbols.
10538     ac_nlist=conftest.nm
10539     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10540   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } && test -s "$ac_nlist"; then
10544       # See whether the symbols have a leading underscore.
10545       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10546         ac_cv_sys_symbol_underscore=yes
10547       else
10548         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10549           :
10550         else
10551           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10552         fi
10553       fi
10554     else
10555       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10556     fi
10557   else
10558     echo "configure: failed program was:" >&5
10559     cat conftest.c >&5
10560   fi
10561   rm -rf conftest*
10562
10563 fi
10564 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10565 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10566
10567
10568 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10569   if test x"$libltdl_cv_func_dlopen" = xyes ||
10570      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10571         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10572 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10573 if test "${libltdl_cv_need_uscore+set}" = set; then
10574   echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576   libltdl_cv_need_uscore=unknown
10577           save_LIBS="$LIBS"
10578           LIBS="$LIBS $LIBADD_DL"
10579           if test "$cross_compiling" = yes; then :
10580   libltdl_cv_need_uscore=cross
10581 else
10582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10583   lt_status=$lt_dlunknown
10584   cat > conftest.$ac_ext <<EOF
10585 #line 10585 "configure"
10586 #include "confdefs.h"
10587
10588 #if HAVE_DLFCN_H
10589 #include <dlfcn.h>
10590 #endif
10591
10592 #include <stdio.h>
10593
10594 #ifdef RTLD_GLOBAL
10595 #  define LT_DLGLOBAL           RTLD_GLOBAL
10596 #else
10597 #  ifdef DL_GLOBAL
10598 #    define LT_DLGLOBAL         DL_GLOBAL
10599 #  else
10600 #    define LT_DLGLOBAL         0
10601 #  endif
10602 #endif
10603
10604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10605    find out it does not work in some platform. */
10606 #ifndef LT_DLLAZY_OR_NOW
10607 #  ifdef RTLD_LAZY
10608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10609 #  else
10610 #    ifdef DL_LAZY
10611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10612 #    else
10613 #      ifdef RTLD_NOW
10614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10615 #      else
10616 #        ifdef DL_NOW
10617 #          define LT_DLLAZY_OR_NOW      DL_NOW
10618 #        else
10619 #          define LT_DLLAZY_OR_NOW      0
10620 #        endif
10621 #      endif
10622 #    endif
10623 #  endif
10624 #endif
10625
10626 #ifdef __cplusplus
10627 extern "C" void exit (int);
10628 #endif
10629
10630 void fnord() { int i=42;}
10631 int main ()
10632 {
10633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10634   int status = $lt_dlunknown;
10635
10636   if (self)
10637     {
10638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10639       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10640       /* dlclose (self); */
10641     }
10642   else
10643     puts (dlerror ());
10644
10645     exit (status);
10646 }
10647 EOF
10648   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649   (eval $ac_link) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10653     (./conftest; exit; ) >&5 2>/dev/null
10654     lt_status=$?
10655     case x$lt_status in
10656       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10657       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10658       x$lt_dlunknown|x*)  ;;
10659     esac
10660   else :
10661     # compilation failed
10662
10663   fi
10664 fi
10665 rm -fr conftest*
10666
10667           LIBS="$save_LIBS"
10668
10669 fi
10670 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10671 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10672   fi
10673 fi
10674
10675 if test x"$libltdl_cv_need_uscore" = xyes; then
10676
10677 cat >>confdefs.h <<\_ACEOF
10678 #define NEED_USCORE 1
10679 _ACEOF
10680
10681 fi
10682
10683
10684 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10685 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10686 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   # PORTME does your system automatically load deplibs for dlopen?
10690   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10691   # For now, we just catch OSes we know something about -- in the
10692   # future, we'll try test this programmatically.
10693   libltdl_cv_sys_dlopen_deplibs=unknown
10694   case "$host_os" in
10695   aix3*|aix4.1.*|aix4.2.*)
10696     # Unknown whether this is true for these versions of AIX, but
10697     # we want this `case' here to explicitly catch those versions.
10698     libltdl_cv_sys_dlopen_deplibs=unknown
10699     ;;
10700   aix[45]*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   darwin*)
10704     # Assuming the user has installed a libdl from somewhere, this is true
10705     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10706     libltdl_cv_sys_dlopen_deplibs=yes
10707     ;;
10708   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10709     # GNU and its variants, using gnu ld.so (Glibc)
10710     libltdl_cv_sys_dlopen_deplibs=yes
10711     ;;
10712   hpux10*|hpux11*)
10713     libltdl_cv_sys_dlopen_deplibs=yes
10714     ;;
10715   interix*)
10716     libltdl_cv_sys_dlopen_deplibs=yes
10717     ;;
10718   irix[12345]*|irix6.[01]*)
10719     # Catch all versions of IRIX before 6.2, and indicate that we don't
10720     # know how it worked for any of those versions.
10721     libltdl_cv_sys_dlopen_deplibs=unknown
10722     ;;
10723   irix*)
10724     # The case above catches anything before 6.2, and it's known that
10725     # at 6.2 and later dlopen does load deplibs.
10726     libltdl_cv_sys_dlopen_deplibs=yes
10727     ;;
10728   netbsd*)
10729     libltdl_cv_sys_dlopen_deplibs=yes
10730     ;;
10731   openbsd*)
10732     libltdl_cv_sys_dlopen_deplibs=yes
10733     ;;
10734   osf[1234]*)
10735     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10736     # it did *not* use an RPATH in a shared library to find objects the
10737     # library depends on, so we explicitly say `no'.
10738     libltdl_cv_sys_dlopen_deplibs=no
10739     ;;
10740   osf5.0|osf5.0a|osf5.1)
10741     # dlopen *does* load deplibs and with the right loader patch applied
10742     # it even uses RPATH in a shared library to search for shared objects
10743     # that the library depends on, but there's no easy way to know if that
10744     # patch is installed.  Since this is the case, all we can really
10745     # say is unknown -- it depends on the patch being installed.  If
10746     # it is, this changes to `yes'.  Without it, it would be `no'.
10747     libltdl_cv_sys_dlopen_deplibs=unknown
10748     ;;
10749   osf*)
10750     # the two cases above should catch all versions of osf <= 5.1.  Read
10751     # the comments above for what we know about them.
10752     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10753     # is used to find them so we can finally say `yes'.
10754     libltdl_cv_sys_dlopen_deplibs=yes
10755     ;;
10756   solaris*)
10757     libltdl_cv_sys_dlopen_deplibs=yes
10758     ;;
10759   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10760     libltdl_cv_sys_dlopen_deplibs=yes
10761     ;;
10762   esac
10763
10764 fi
10765 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10766 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10767 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10768
10769 cat >>confdefs.h <<\_ACEOF
10770 #define LTDL_DLOPEN_DEPLIBS 1
10771 _ACEOF
10772
10773 fi
10774
10775
10776 for ac_header in argz.h
10777 do
10778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10780   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 fi
10785 ac_res=`eval echo '${'$as_ac_Header'}'`
10786                { echo "$as_me:$LINENO: result: $ac_res" >&5
10787 echo "${ECHO_T}$ac_res" >&6; }
10788 else
10789   # Is the header compilable?
10790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 $ac_includes_default
10799 #include <$ac_header>
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (ac_try="$ac_compile"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_compile") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } &&
10815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816   { (case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_try") 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; } &&
10825          { ac_try='test -s conftest.$ac_objext'
10826   { (case "(($ac_try" in
10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828   *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831   (eval "$ac_try") 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; }; then
10835   ac_header_compiler=yes
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840         ac_header_compiler=no
10841 fi
10842
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 echo "${ECHO_T}$ac_header_compiler" >&6; }
10846
10847 # Is the header present?
10848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856 #include <$ac_header>
10857 _ACEOF
10858 if { (ac_try="$ac_cpp conftest.$ac_ext"
10859 case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10865   ac_status=$?
10866   grep -v '^ *+' conftest.er1 >conftest.err
10867   rm -f conftest.er1
10868   cat conftest.err >&5
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); } >/dev/null; then
10871   if test -s conftest.err; then
10872     ac_cpp_err=$ac_c_preproc_warn_flag
10873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10874   else
10875     ac_cpp_err=
10876   fi
10877 else
10878   ac_cpp_err=yes
10879 fi
10880 if test -z "$ac_cpp_err"; then
10881   ac_header_preproc=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886   ac_header_preproc=no
10887 fi
10888
10889 rm -f conftest.err conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891 echo "${ECHO_T}$ac_header_preproc" >&6; }
10892
10893 # So?  What about this header?
10894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10895   yes:no: )
10896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10900     ac_header_preproc=yes
10901     ;;
10902   no:yes:* )
10903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10915     ( cat <<\_ASBOX
10916 ## ------------------------------------ ##
10917 ## Report this to http://llvm.org/bugs/ ##
10918 ## ------------------------------------ ##
10919 _ASBOX
10920      ) | sed "s/^/$as_me: WARNING:     /" >&2
10921     ;;
10922 esac
10923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   eval "$as_ac_Header=\$ac_header_preproc"
10929 fi
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931                { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10933
10934 fi
10935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936   cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10938 _ACEOF
10939
10940 fi
10941
10942 done
10943
10944
10945 { echo "$as_me:$LINENO: checking for error_t" >&5
10946 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10947 if test "${ac_cv_type_error_t+set}" = set; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950   cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 #if HAVE_ARGZ_H
10957 #  include <argz.h>
10958 #endif
10959
10960 typedef error_t ac__type_new_;
10961 int
10962 main ()
10963 {
10964 if ((ac__type_new_ *) 0)
10965   return 0;
10966 if (sizeof (ac__type_new_))
10967   return 0;
10968   ;
10969   return 0;
10970 }
10971 _ACEOF
10972 rm -f conftest.$ac_objext
10973 if { (ac_try="$ac_compile"
10974 case "(($ac_try" in
10975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976   *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979   (eval "$ac_compile") 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } &&
10986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10987   { (case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_try") 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; } &&
10996          { ac_try='test -s conftest.$ac_objext'
10997   { (case "(($ac_try" in
10998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999   *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002   (eval "$ac_try") 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_cv_type_error_t=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011         ac_cv_type_error_t=no
11012 fi
11013
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 fi
11016 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11017 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11018 if test $ac_cv_type_error_t = yes; then
11019
11020 cat >>confdefs.h <<_ACEOF
11021 #define HAVE_ERROR_T 1
11022 _ACEOF
11023
11024
11025 else
11026
11027 cat >>confdefs.h <<\_ACEOF
11028 #define error_t int
11029 _ACEOF
11030
11031 fi
11032
11033
11034
11035
11036
11037
11038
11039 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11040 do
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11055 #define $ac_func innocuous_$ac_func
11056
11057 /* System header to define __stub macros and hopefully few prototypes,
11058     which can conflict with char $ac_func (); below.
11059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060     <limits.h> exists even on freestanding compilers.  */
11061
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11067
11068 #undef $ac_func
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071    Use char because int might match the return type of a GCC
11072    builtin and then its argument prototype would still apply.  */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char $ac_func ();
11077 /* The GNU C library defines this for functions which it implements
11078     to always fail with ENOSYS.  Some functions are actually named
11079     something starting with __ and the normal name is an alias.  */
11080 #if defined __stub_$ac_func || defined __stub___$ac_func
11081 choke me
11082 #endif
11083
11084 int
11085 main ()
11086 {
11087 return $ac_func ();
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_link") 2>conftest.er1
11100   ac_status=$?
11101   grep -v '^ *+' conftest.er1 >conftest.err
11102   rm -f conftest.er1
11103   cat conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } &&
11106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11107   { (case "(($ac_try" in
11108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109   *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112   (eval "$ac_try") 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; } &&
11116          { ac_try='test -s conftest$ac_exeext'
11117   { (case "(($ac_try" in
11118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119   *) ac_try_echo=$ac_try;;
11120 esac
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122   (eval "$ac_try") 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); }; }; then
11126   eval "$as_ac_var=yes"
11127 else
11128   echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11130
11131         eval "$as_ac_var=no"
11132 fi
11133
11134 rm -f core conftest.err conftest.$ac_objext \
11135       conftest$ac_exeext conftest.$ac_ext
11136 fi
11137 ac_res=`eval echo '${'$as_ac_var'}'`
11138                { echo "$as_me:$LINENO: result: $ac_res" >&5
11139 echo "${ECHO_T}$ac_res" >&6; }
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141   cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 _ACEOF
11144
11145 fi
11146 done
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170 for ac_header in errno.h malloc.h memory.h unistd.h
11171 do
11172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 fi
11179 ac_res=`eval echo '${'$as_ac_Header'}'`
11180                { echo "$as_me:$LINENO: result: $ac_res" >&5
11181 echo "${ECHO_T}$ac_res" >&6; }
11182 else
11183   # Is the header compilable?
11184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192 $ac_includes_default
11193 #include <$ac_header>
11194 _ACEOF
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_compile") 2>conftest.er1
11203   ac_status=$?
11204   grep -v '^ *+' conftest.er1 >conftest.err
11205   rm -f conftest.er1
11206   cat conftest.err >&5
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } &&
11209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210   { (case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_try") 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; } &&
11219          { ac_try='test -s conftest.$ac_objext'
11220   { (case "(($ac_try" in
11221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222   *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225   (eval "$ac_try") 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   ac_header_compiler=yes
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234         ac_header_compiler=no
11235 fi
11236
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6; }
11240
11241 # Is the header present?
11242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250 #include <$ac_header>
11251 _ACEOF
11252 if { (ac_try="$ac_cpp conftest.$ac_ext"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } >/dev/null; then
11265   if test -s conftest.err; then
11266     ac_cpp_err=$ac_c_preproc_warn_flag
11267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268   else
11269     ac_cpp_err=
11270   fi
11271 else
11272   ac_cpp_err=yes
11273 fi
11274 if test -z "$ac_cpp_err"; then
11275   ac_header_preproc=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280   ac_header_preproc=no
11281 fi
11282
11283 rm -f conftest.err conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 echo "${ECHO_T}$ac_header_preproc" >&6; }
11286
11287 # So?  What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289   yes:no: )
11290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294     ac_header_preproc=yes
11295     ;;
11296   no:yes:* )
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11309     ( cat <<\_ASBOX
11310 ## ------------------------------------ ##
11311 ## Report this to http://llvm.org/bugs/ ##
11312 ## ------------------------------------ ##
11313 _ASBOX
11314      ) | sed "s/^/$as_me: WARNING:     /" >&2
11315     ;;
11316 esac
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   eval "$as_ac_Header=\$ac_header_preproc"
11323 fi
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325                { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11327
11328 fi
11329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11330   cat >>confdefs.h <<_ACEOF
11331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11332 _ACEOF
11333
11334 fi
11335
11336 done
11337
11338
11339 for ac_header in mach-o/dyld.h
11340 do
11341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 fi
11348 ac_res=`eval echo '${'$as_ac_Header'}'`
11349                { echo "$as_me:$LINENO: result: $ac_res" >&5
11350 echo "${ECHO_T}$ac_res" >&6; }
11351 else
11352   # Is the header compilable?
11353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h.  */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h.  */
11361 $ac_includes_default
11362 #include <$ac_header>
11363 _ACEOF
11364 rm -f conftest.$ac_objext
11365 if { (ac_try="$ac_compile"
11366 case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_compile") 2>conftest.er1
11372   ac_status=$?
11373   grep -v '^ *+' conftest.er1 >conftest.err
11374   rm -f conftest.er1
11375   cat conftest.err >&5
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } &&
11378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11379   { (case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384   (eval "$ac_try") 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; } &&
11388          { ac_try='test -s conftest.$ac_objext'
11389   { (case "(($ac_try" in
11390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391   *) ac_try_echo=$ac_try;;
11392 esac
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394   (eval "$ac_try") 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; }; then
11398   ac_header_compiler=yes
11399 else
11400   echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11402
11403         ac_header_compiler=no
11404 fi
11405
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11408 echo "${ECHO_T}$ac_header_compiler" >&6; }
11409
11410 # Is the header present?
11411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419 #include <$ac_header>
11420 _ACEOF
11421 if { (ac_try="$ac_cpp conftest.$ac_ext"
11422 case "(($ac_try" in
11423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424   *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } >/dev/null; then
11434   if test -s conftest.err; then
11435     ac_cpp_err=$ac_c_preproc_warn_flag
11436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11437   else
11438     ac_cpp_err=
11439   fi
11440 else
11441   ac_cpp_err=yes
11442 fi
11443 if test -z "$ac_cpp_err"; then
11444   ac_header_preproc=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449   ac_header_preproc=no
11450 fi
11451
11452 rm -f conftest.err conftest.$ac_ext
11453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11454 echo "${ECHO_T}$ac_header_preproc" >&6; }
11455
11456 # So?  What about this header?
11457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11458   yes:no: )
11459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11463     ac_header_preproc=yes
11464     ;;
11465   no:yes:* )
11466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11478     ( cat <<\_ASBOX
11479 ## ------------------------------------ ##
11480 ## Report this to http://llvm.org/bugs/ ##
11481 ## ------------------------------------ ##
11482 _ASBOX
11483      ) | sed "s/^/$as_me: WARNING:     /" >&2
11484     ;;
11485 esac
11486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489   echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491   eval "$as_ac_Header=\$ac_header_preproc"
11492 fi
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494                { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11496
11497 fi
11498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11499   cat >>confdefs.h <<_ACEOF
11500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11501 _ACEOF
11502
11503 fi
11504
11505 done
11506
11507
11508
11509
11510
11511 for ac_func in closedir opendir readdir
11512 do
11513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11527 #define $ac_func innocuous_$ac_func
11528
11529 /* System header to define __stub macros and hopefully few prototypes,
11530     which can conflict with char $ac_func (); below.
11531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11532     <limits.h> exists even on freestanding compilers.  */
11533
11534 #ifdef __STDC__
11535 # include <limits.h>
11536 #else
11537 # include <assert.h>
11538 #endif
11539
11540 #undef $ac_func
11541
11542 /* Override any GCC internal prototype to avoid an error.
11543    Use char because int might match the return type of a GCC
11544    builtin and then its argument prototype would still apply.  */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 char $ac_func ();
11549 /* The GNU C library defines this for functions which it implements
11550     to always fail with ENOSYS.  Some functions are actually named
11551     something starting with __ and the normal name is an alias.  */
11552 #if defined __stub_$ac_func || defined __stub___$ac_func
11553 choke me
11554 #endif
11555
11556 int
11557 main ()
11558 {
11559 return $ac_func ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568   *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571   (eval "$ac_link") 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11579   { (case "(($ac_try" in
11580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581   *) ac_try_echo=$ac_try;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584   (eval "$ac_try") 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; } &&
11588          { ac_try='test -s conftest$ac_exeext'
11589   { (case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594   (eval "$ac_try") 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); }; }; then
11598   eval "$as_ac_var=yes"
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603         eval "$as_ac_var=no"
11604 fi
11605
11606 rm -f core conftest.err conftest.$ac_objext \
11607       conftest$ac_exeext conftest.$ac_ext
11608 fi
11609 ac_res=`eval echo '${'$as_ac_var'}'`
11610                { echo "$as_me:$LINENO: result: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11612 if test `eval echo '${'$as_ac_var'}'` = yes; then
11613   cat >>confdefs.h <<_ACEOF
11614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11615 _ACEOF
11616
11617 fi
11618 done
11619
11620
11621
11622 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11623 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11624
11625 ICC=no
11626 IXX=no
11627 case $CC in
11628   icc*|icpc*)
11629     ICC=yes
11630     IXX=yes
11631     ;;
11632    *)
11633     ;;
11634 esac
11635
11636 if test "$GCC" != "yes" && test "$ICC" != "yes"
11637 then
11638   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11639 echo "$as_me: error: gcc|icc required but not found" >&2;}
11640    { (exit 1); exit 1; }; }
11641 fi
11642
11643 if test "$GXX" != "yes" && test "$IXX" != "yes"
11644 then
11645   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11646 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11647    { (exit 1); exit 1; }; }
11648 fi
11649
11650 if test "$GCC" = "yes"
11651 then
11652   cat >conftest.$ac_ext <<_ACEOF
11653
11654   /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659
11660     #if !defined(__GNUC__) || __GNUC__ < 3
11661     #error Unsupported GCC version
11662     #endif
11663
11664
11665 _ACEOF
11666 rm -f conftest.$ac_objext
11667 if { (ac_try="$ac_compile"
11668 case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_compile") 2>conftest.er1
11674   ac_status=$?
11675   grep -v '^ *+' conftest.er1 >conftest.err
11676   rm -f conftest.er1
11677   cat conftest.err >&5
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); } &&
11680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681   { (case "(($ac_try" in
11682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683   *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686   (eval "$ac_try") 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; } &&
11690          { ac_try='test -s conftest.$ac_objext'
11691   { (case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696   (eval "$ac_try") 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; }; then
11700   :
11701 else
11702   echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11706 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11707    { (exit 1); exit 1; }; }
11708 fi
11709
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 fi
11712
11713 if test -z "$llvm_cv_gnu_make_command"
11714 then
11715   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11716 echo "$as_me: error: GNU Make required but not found" >&2;}
11717    { (exit 1); exit 1; }; }
11718 fi
11719
11720 { echo "$as_me:$LINENO: result: ok" >&5
11721 echo "${ECHO_T}ok" >&6; }
11722
11723 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11724 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11725 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11726
11727 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11728
11729 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11730
11731
11732 NO_UNINITIALIZED=
11733 NO_MAYBE_UNINITIALIZED=
11734 if test "$GXX" = "yes"
11735 then
11736   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11737
11738         if test -z "$NO_MAYBE_UNINITIALIZED"
11739   then
11740     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11741
11742   fi
11743 fi
11744 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11745 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11746
11747
11748 # Check whether --with-python was given.
11749 if test "${with_python+set}" = set; then
11750   withval=$with_python; PYTHON="$withval"
11751 fi
11752
11753
11754 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11755   { echo "$as_me:$LINENO: checking for python" >&5
11756 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11757   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11758 echo "${ECHO_T}user defined: $with_python" >&6; }
11759 else
11760   if test -n "$PYTHON" ; then
11761     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11762 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11763   fi
11764
11765   # Extract the first word of "python python2 python26", so it can be a program name with args.
11766 set dummy python python2 python26; ac_word=$2
11767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11769 if test "${ac_cv_path_PYTHON+set}" = set; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772   case $PYTHON in
11773   [\\/]* | ?:[\\/]*)
11774   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11775   ;;
11776   *)
11777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11779 do
11780   IFS=$as_save_IFS
11781   test -z "$as_dir" && as_dir=.
11782   for ac_exec_ext in '' $ac_executable_extensions; do
11783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11784     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786     break 2
11787   fi
11788 done
11789 done
11790 IFS=$as_save_IFS
11791
11792   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11793 echo "${ECHO_T}not found" >&6; }
11794                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11795 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11796    { (exit 1); exit 1; }; }"
11797   ;;
11798 esac
11799 fi
11800 PYTHON=$ac_cv_path_PYTHON
11801 if test -n "$PYTHON"; then
11802   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11803 echo "${ECHO_T}$PYTHON" >&6; }
11804 else
11805   { echo "$as_me:$LINENO: result: no" >&5
11806 echo "${ECHO_T}no" >&6; }
11807 fi
11808
11809
11810 fi
11811
11812 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11813 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11814 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11815 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11816 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11817 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11818 if test "$ac_python_version_major" -gt "2" || \
11819    (test "$ac_python_version_major" -eq "2" && \
11820     test "$ac_python_version_minor" -ge "5") ; then
11821   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11822 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11823 else
11824   { echo "$as_me:$LINENO: result: not found" >&5
11825 echo "${ECHO_T}not found" >&6; }
11826   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11827 See \`config.log' for more details." >&5
11828 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11829 See \`config.log' for more details." >&2;}
11830    { (exit 1); exit 1; }; }
11831 fi
11832
11833
11834
11835 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11836 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11837 if test "${ac_cv_lib_m_sin+set}" = set; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840   ac_check_lib_save_LIBS=$LIBS
11841 LIBS="-lm  $LIBS"
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h.  */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h.  */
11848
11849 /* Override any GCC internal prototype to avoid an error.
11850    Use char because int might match the return type of a GCC
11851    builtin and then its argument prototype would still apply.  */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 char sin ();
11856 int
11857 main ()
11858 {
11859 return sin ();
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (ac_try="$ac_link"
11866 case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_link") 2>conftest.er1
11872   ac_status=$?
11873   grep -v '^ *+' conftest.er1 >conftest.err
11874   rm -f conftest.er1
11875   cat conftest.err >&5
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } &&
11878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11879   { (case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_try") 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; } &&
11888          { ac_try='test -s conftest$ac_exeext'
11889   { (case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_try") 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; }; then
11898   ac_cv_lib_m_sin=yes
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903         ac_cv_lib_m_sin=no
11904 fi
11905
11906 rm -f core conftest.err conftest.$ac_objext \
11907       conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11909 fi
11910 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11911 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11912 if test $ac_cv_lib_m_sin = yes; then
11913   cat >>confdefs.h <<_ACEOF
11914 #define HAVE_LIBM 1
11915 _ACEOF
11916
11917   LIBS="-lm $LIBS"
11918
11919 fi
11920
11921 if test "$llvm_cv_os_type" = "MingW" ; then
11922
11923 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11924 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11925 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11926   echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928   ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-limagehlp  $LIBS"
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936
11937
11938 int
11939 main ()
11940 {
11941 return main ();
11942   ;
11943   return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950   *) ac_try_echo=$ac_try;;
11951 esac
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953   (eval "$ac_link") 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11961   { (case "(($ac_try" in
11962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963   *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966   (eval "$ac_try") 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; } &&
11970          { ac_try='test -s conftest$ac_exeext'
11971   { (case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976   (eval "$ac_try") 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   ac_cv_lib_imagehlp_main=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985         ac_cv_lib_imagehlp_main=no
11986 fi
11987
11988 rm -f core conftest.err conftest.$ac_objext \
11989       conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11993 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11994 if test $ac_cv_lib_imagehlp_main = yes; then
11995   cat >>confdefs.h <<_ACEOF
11996 #define HAVE_LIBIMAGEHLP 1
11997 _ACEOF
11998
11999   LIBS="-limagehlp $LIBS"
12000
12001 fi
12002
12003
12004 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12005 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12006 if test "${ac_cv_lib_psapi_main+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-lpsapi  $LIBS"
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017
12018
12019 int
12020 main ()
12021 {
12022 return main ();
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_link") 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042   { (case "(($ac_try" in
12043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044   *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047   (eval "$ac_try") 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; } &&
12051          { ac_try='test -s conftest$ac_exeext'
12052   { (case "(($ac_try" in
12053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054   *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057   (eval "$ac_try") 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   ac_cv_lib_psapi_main=yes
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12065
12066         ac_cv_lib_psapi_main=no
12067 fi
12068
12069 rm -f core conftest.err conftest.$ac_objext \
12070       conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12072 fi
12073 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12074 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12075 if test $ac_cv_lib_psapi_main = yes; then
12076   cat >>confdefs.h <<_ACEOF
12077 #define HAVE_LIBPSAPI 1
12078 _ACEOF
12079
12080   LIBS="-lpsapi $LIBS"
12081
12082 fi
12083
12084
12085 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12086 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12087 if test "${ac_cv_lib_shell32_main+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lshell32  $LIBS"
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098
12099
12100 int
12101 main ()
12102 {
12103 return main ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_link") 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123   { (case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_try") 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; } &&
12132          { ac_try='test -s conftest$ac_exeext'
12133   { (case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_try") 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; }; then
12142   ac_cv_lib_shell32_main=yes
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147         ac_cv_lib_shell32_main=no
12148 fi
12149
12150 rm -f core conftest.err conftest.$ac_objext \
12151       conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12155 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12156 if test $ac_cv_lib_shell32_main = yes; then
12157   cat >>confdefs.h <<_ACEOF
12158 #define HAVE_LIBSHELL32 1
12159 _ACEOF
12160
12161   LIBS="-lshell32 $LIBS"
12162
12163 fi
12164
12165 fi
12166
12167 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12168 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12169 if test "${ac_cv_search_dlopen+set}" = set; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   ac_func_search_save_LIBS=$LIBS
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181    Use char because int might match the return type of a GCC
12182    builtin and then its argument prototype would still apply.  */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 return dlopen ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 for ac_lib in '' dl; do
12196   if test -z "$ac_lib"; then
12197     ac_res="none required"
12198   else
12199     ac_res=-l$ac_lib
12200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12201   fi
12202   rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (ac_try="$ac_link"
12204 case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_link") 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12217   { (case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_try") 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; } &&
12226          { ac_try='test -s conftest$ac_exeext'
12227   { (case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232   (eval "$ac_try") 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; }; then
12236   ac_cv_search_dlopen=$ac_res
12237 else
12238   echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241
12242 fi
12243
12244 rm -f core conftest.err conftest.$ac_objext \
12245       conftest$ac_exeext
12246   if test "${ac_cv_search_dlopen+set}" = set; then
12247   break
12248 fi
12249 done
12250 if test "${ac_cv_search_dlopen+set}" = set; then
12251   :
12252 else
12253   ac_cv_search_dlopen=no
12254 fi
12255 rm conftest.$ac_ext
12256 LIBS=$ac_func_search_save_LIBS
12257 fi
12258 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12259 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12260 ac_res=$ac_cv_search_dlopen
12261 if test "$ac_res" != no; then
12262   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12263
12264 cat >>confdefs.h <<\_ACEOF
12265 #define HAVE_DLOPEN 1
12266 _ACEOF
12267
12268 else
12269   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12270 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12271 fi
12272
12273
12274 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12275 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12276 if test "${ac_cv_search_clock_gettime+set}" = set; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   ac_func_search_save_LIBS=$LIBS
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286
12287 /* Override any GCC internal prototype to avoid an error.
12288    Use char because int might match the return type of a GCC
12289    builtin and then its argument prototype would still apply.  */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char clock_gettime ();
12294 int
12295 main ()
12296 {
12297 return clock_gettime ();
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 for ac_lib in '' rt; do
12303   if test -z "$ac_lib"; then
12304     ac_res="none required"
12305   else
12306     ac_res=-l$ac_lib
12307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12308   fi
12309   rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (ac_try="$ac_link"
12311 case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_link") 2>conftest.er1
12317   ac_status=$?
12318   grep -v '^ *+' conftest.er1 >conftest.err
12319   rm -f conftest.er1
12320   cat conftest.err >&5
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } &&
12323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12324   { (case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_try") 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest$ac_exeext'
12334   { (case "(($ac_try" in
12335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336   *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339   (eval "$ac_try") 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_cv_search_clock_gettime=$ac_res
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348
12349 fi
12350
12351 rm -f core conftest.err conftest.$ac_objext \
12352       conftest$ac_exeext
12353   if test "${ac_cv_search_clock_gettime+set}" = set; then
12354   break
12355 fi
12356 done
12357 if test "${ac_cv_search_clock_gettime+set}" = set; then
12358   :
12359 else
12360   ac_cv_search_clock_gettime=no
12361 fi
12362 rm conftest.$ac_ext
12363 LIBS=$ac_func_search_save_LIBS
12364 fi
12365 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12366 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12367 ac_res=$ac_cv_search_clock_gettime
12368 if test "$ac_res" != no; then
12369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12370
12371 fi
12372
12373
12374 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12375     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12376 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12377 if test "${ac_cv_search_setupterm+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   ac_func_search_save_LIBS=$LIBS
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h.  */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h.  */
12387
12388 /* Override any GCC internal prototype to avoid an error.
12389    Use char because int might match the return type of a GCC
12390    builtin and then its argument prototype would still apply.  */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 char setupterm ();
12395 int
12396 main ()
12397 {
12398 return setupterm ();
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12404   if test -z "$ac_lib"; then
12405     ac_res="none required"
12406   else
12407     ac_res=-l$ac_lib
12408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12409   fi
12410   rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } &&
12424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12425   { (case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_try") 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; } &&
12434          { ac_try='test -s conftest$ac_exeext'
12435   { (case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_try") 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_search_setupterm=$ac_res
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449
12450 fi
12451
12452 rm -f core conftest.err conftest.$ac_objext \
12453       conftest$ac_exeext
12454   if test "${ac_cv_search_setupterm+set}" = set; then
12455   break
12456 fi
12457 done
12458 if test "${ac_cv_search_setupterm+set}" = set; then
12459   :
12460 else
12461   ac_cv_search_setupterm=no
12462 fi
12463 rm conftest.$ac_ext
12464 LIBS=$ac_func_search_save_LIBS
12465 fi
12466 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12467 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12468 ac_res=$ac_cv_search_setupterm
12469 if test "$ac_res" != no; then
12470   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12471
12472 cat >>confdefs.h <<\_ACEOF
12473 #define HAVE_TERMINFO 1
12474 _ACEOF
12475
12476 fi
12477
12478 fi
12479
12480 if test "$llvm_cv_enable_libffi" = "yes" ; then
12481   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12482 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_ffi_call+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 /* Override any GCC internal prototype to avoid an error.
12495    Use char because int might match the return type of a GCC
12496    builtin and then its argument prototype would still apply.  */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char ffi_call ();
12501 int
12502 main ()
12503 {
12504 return ffi_call ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 for ac_lib in '' ffi; do
12510   if test -z "$ac_lib"; then
12511     ac_res="none required"
12512   else
12513     ac_res=-l$ac_lib
12514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12515   fi
12516   rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_link") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_search_ffi_call=$ac_res
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555
12556 fi
12557
12558 rm -f core conftest.err conftest.$ac_objext \
12559       conftest$ac_exeext
12560   if test "${ac_cv_search_ffi_call+set}" = set; then
12561   break
12562 fi
12563 done
12564 if test "${ac_cv_search_ffi_call+set}" = set; then
12565   :
12566 else
12567   ac_cv_search_ffi_call=no
12568 fi
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12573 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12574 ac_res=$ac_cv_search_ffi_call
12575 if test "$ac_res" != no; then
12576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_FFI_CALL 1
12580 _ACEOF
12581
12582 else
12583   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12584 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12585    { (exit 1); exit 1; }; }
12586 fi
12587
12588 fi
12589
12590 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12591 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_mallinfo+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char mallinfo ();
12610 int
12611 main ()
12612 {
12613 return mallinfo ();
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 for ac_lib in '' malloc; do
12619   if test -z "$ac_lib"; then
12620     ac_res="none required"
12621   else
12622     ac_res=-l$ac_lib
12623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12624   fi
12625   rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   ac_cv_search_mallinfo=$ac_res
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext
12669   if test "${ac_cv_search_mallinfo+set}" = set; then
12670   break
12671 fi
12672 done
12673 if test "${ac_cv_search_mallinfo+set}" = set; then
12674   :
12675 else
12676   ac_cv_search_mallinfo=no
12677 fi
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12680 fi
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12682 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12683 ac_res=$ac_cv_search_mallinfo
12684 if test "$ac_res" != no; then
12685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_MALLINFO 1
12689 _ACEOF
12690
12691 fi
12692
12693
12694 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12695
12696 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12697 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12698 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lpthread  $LIBS"
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709
12710 /* Override any GCC internal prototype to avoid an error.
12711    Use char because int might match the return type of a GCC
12712    builtin and then its argument prototype would still apply.  */
12713 #ifdef __cplusplus
12714 extern "C"
12715 #endif
12716 char pthread_mutex_init ();
12717 int
12718 main ()
12719 {
12720 return pthread_mutex_init ();
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_link") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740   { (case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_try") 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest$ac_exeext'
12750   { (case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_try") 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   ac_cv_lib_pthread_pthread_mutex_init=yes
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764         ac_cv_lib_pthread_pthread_mutex_init=no
12765 fi
12766
12767 rm -f core conftest.err conftest.$ac_objext \
12768       conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12770 fi
12771 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12772 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12773 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12774   cat >>confdefs.h <<_ACEOF
12775 #define HAVE_LIBPTHREAD 1
12776 _ACEOF
12777
12778   LIBS="-lpthread $LIBS"
12779
12780 fi
12781
12782   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12783 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12784 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   ac_func_search_save_LIBS=$LIBS
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794
12795 /* Override any GCC internal prototype to avoid an error.
12796    Use char because int might match the return type of a GCC
12797    builtin and then its argument prototype would still apply.  */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char pthread_mutex_lock ();
12802 int
12803 main ()
12804 {
12805 return pthread_mutex_lock ();
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 for ac_lib in '' pthread; do
12811   if test -z "$ac_lib"; then
12812     ac_res="none required"
12813   else
12814     ac_res=-l$ac_lib
12815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12816   fi
12817   rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_link") 2>conftest.er1
12825   ac_status=$?
12826   grep -v '^ *+' conftest.er1 >conftest.err
12827   rm -f conftest.er1
12828   cat conftest.err >&5
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } &&
12831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12832   { (case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_try") 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; } &&
12841          { ac_try='test -s conftest$ac_exeext'
12842   { (case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_try") 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   ac_cv_search_pthread_mutex_lock=$ac_res
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856
12857 fi
12858
12859 rm -f core conftest.err conftest.$ac_objext \
12860       conftest$ac_exeext
12861   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12862   break
12863 fi
12864 done
12865 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12866   :
12867 else
12868   ac_cv_search_pthread_mutex_lock=no
12869 fi
12870 rm conftest.$ac_ext
12871 LIBS=$ac_func_search_save_LIBS
12872 fi
12873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12874 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12875 ac_res=$ac_cv_search_pthread_mutex_lock
12876 if test "$ac_res" != no; then
12877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12878
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_PTHREAD_MUTEX_LOCK 1
12881 _ACEOF
12882
12883 fi
12884
12885   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12886 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12887 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   ac_func_search_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h.  */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h.  */
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899    Use char because int might match the return type of a GCC
12900    builtin and then its argument prototype would still apply.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char pthread_rwlock_init ();
12905 int
12906 main ()
12907 {
12908 return pthread_rwlock_init ();
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 for ac_lib in '' pthread; do
12914   if test -z "$ac_lib"; then
12915     ac_res="none required"
12916   else
12917     ac_res=-l$ac_lib
12918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12919   fi
12920   rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_link") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935   { (case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_try") 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; } &&
12944          { ac_try='test -s conftest$ac_exeext'
12945   { (case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_try") 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; }; then
12954   ac_cv_search_pthread_rwlock_init=$ac_res
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
12960 fi
12961
12962 rm -f core conftest.err conftest.$ac_objext \
12963       conftest$ac_exeext
12964   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12965   break
12966 fi
12967 done
12968 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12969   :
12970 else
12971   ac_cv_search_pthread_rwlock_init=no
12972 fi
12973 rm conftest.$ac_ext
12974 LIBS=$ac_func_search_save_LIBS
12975 fi
12976 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12977 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12978 ac_res=$ac_cv_search_pthread_rwlock_init
12979 if test "$ac_res" != no; then
12980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAVE_PTHREAD_RWLOCK_INIT 1
12984 _ACEOF
12985
12986 fi
12987
12988   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12989 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12990 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12991   echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993   ac_func_search_save_LIBS=$LIBS
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002    Use char because int might match the return type of a GCC
13003    builtin and then its argument prototype would still apply.  */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char pthread_getspecific ();
13008 int
13009 main ()
13010 {
13011 return pthread_getspecific ();
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 for ac_lib in '' pthread; do
13017   if test -z "$ac_lib"; then
13018     ac_res="none required"
13019   else
13020     ac_res=-l$ac_lib
13021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13022   fi
13023   rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_link") 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038   { (case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_try") 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; } &&
13047          { ac_try='test -s conftest$ac_exeext'
13048   { (case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_try") 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; }; then
13057   ac_cv_search_pthread_getspecific=$ac_res
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13061
13062
13063 fi
13064
13065 rm -f core conftest.err conftest.$ac_objext \
13066       conftest$ac_exeext
13067   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13068   break
13069 fi
13070 done
13071 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13072   :
13073 else
13074   ac_cv_search_pthread_getspecific=no
13075 fi
13076 rm conftest.$ac_ext
13077 LIBS=$ac_func_search_save_LIBS
13078 fi
13079 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13080 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13081 ac_res=$ac_cv_search_pthread_getspecific
13082 if test "$ac_res" != no; then
13083   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_PTHREAD_GETSPECIFIC 1
13087 _ACEOF
13088
13089 fi
13090
13091 fi
13092
13093 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13094
13095 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13096 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13097 if test "${ac_cv_lib_z_compress2+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   ac_check_lib_save_LIBS=$LIBS
13101 LIBS="-lz  $LIBS"
13102 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h.  */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h.  */
13108
13109 /* Override any GCC internal prototype to avoid an error.
13110    Use char because int might match the return type of a GCC
13111    builtin and then its argument prototype would still apply.  */
13112 #ifdef __cplusplus
13113 extern "C"
13114 #endif
13115 char compress2 ();
13116 int
13117 main ()
13118 {
13119 return compress2 ();
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13132   ac_status=$?
13133   grep -v '^ *+' conftest.er1 >conftest.err
13134   rm -f conftest.er1
13135   cat conftest.err >&5
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); } &&
13138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13139   { (case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_try") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; } &&
13148          { ac_try='test -s conftest$ac_exeext'
13149   { (case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_try") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158   ac_cv_lib_z_compress2=yes
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163         ac_cv_lib_z_compress2=no
13164 fi
13165
13166 rm -f core conftest.err conftest.$ac_objext \
13167       conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13171 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13172 if test $ac_cv_lib_z_compress2 = yes; then
13173   cat >>confdefs.h <<_ACEOF
13174 #define HAVE_LIBZ 1
13175 _ACEOF
13176
13177   LIBS="-lz $LIBS"
13178
13179 fi
13180
13181 fi
13182
13183
13184 # Check whether --with-udis86 was given.
13185 if test "${with_udis86+set}" = set; then
13186   withval=$with_udis86;
13187       USE_UDIS86=1
13188
13189       case "$withval" in
13190         /usr/lib|yes) ;;
13191         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13192       esac
13193
13194 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13195 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13196 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-ludis86  $LIBS"
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209    Use char because int might match the return type of a GCC
13210    builtin and then its argument prototype would still apply.  */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char ud_init ();
13215 int
13216 main ()
13217 {
13218 return ud_init ();
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230   (eval "$ac_link") 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238   { (case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_try") 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; } &&
13247          { ac_try='test -s conftest$ac_exeext'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_cv_lib_udis86_ud_init=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         ac_cv_lib_udis86_ud_init=no
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext \
13266       conftest$ac_exeext conftest.$ac_ext
13267 LIBS=$ac_check_lib_save_LIBS
13268 fi
13269 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13270 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13271 if test $ac_cv_lib_udis86_ud_init = yes; then
13272   cat >>confdefs.h <<_ACEOF
13273 #define HAVE_LIBUDIS86 1
13274 _ACEOF
13275
13276   LIBS="-ludis86 $LIBS"
13277
13278 else
13279
13280         echo "Error! You need to have libudis86 around."
13281         exit -1
13282
13283 fi
13284
13285
13286 else
13287   USE_UDIS86=0
13288
13289 fi
13290
13291
13292 cat >>confdefs.h <<_ACEOF
13293 #define USE_UDIS86 $USE_UDIS86
13294 _ACEOF
13295
13296
13297
13298 # Check whether --with-oprofile was given.
13299 if test "${with_oprofile+set}" = set; then
13300   withval=$with_oprofile;
13301       USE_OPROFILE=1
13302
13303       case "$withval" in
13304         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13305         no) llvm_cv_oppath=
13306             USE_OPROFILE=0
13307  ;;
13308         *) llvm_cv_oppath="${withval}/lib/oprofile"
13309            CPPFLAGS="-I${withval}/include";;
13310       esac
13311       case $llvm_cv_os_type in
13312         Linux)
13313           if test -n "$llvm_cv_oppath" ; then
13314             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13315                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13316 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13317 if test "${ac_cv_search_bfd_init+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   ac_func_search_save_LIBS=$LIBS
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327
13328 /* Override any GCC internal prototype to avoid an error.
13329    Use char because int might match the return type of a GCC
13330    builtin and then its argument prototype would still apply.  */
13331 #ifdef __cplusplus
13332 extern "C"
13333 #endif
13334 char bfd_init ();
13335 int
13336 main ()
13337 {
13338 return bfd_init ();
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 for ac_lib in '' bfd; do
13344   if test -z "$ac_lib"; then
13345     ac_res="none required"
13346   else
13347     ac_res=-l$ac_lib
13348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13349   fi
13350   rm -f conftest.$ac_objext conftest$ac_exeext
13351 if { (ac_try="$ac_link"
13352 case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357   (eval "$ac_link") 2>conftest.er1
13358   ac_status=$?
13359   grep -v '^ *+' conftest.er1 >conftest.err
13360   rm -f conftest.er1
13361   cat conftest.err >&5
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13365   { (case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_try") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; } &&
13374          { ac_try='test -s conftest$ac_exeext'
13375   { (case "(($ac_try" in
13376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377   *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380   (eval "$ac_try") 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   ac_cv_search_bfd_init=$ac_res
13385 else
13386   echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389
13390 fi
13391
13392 rm -f core conftest.err conftest.$ac_objext \
13393       conftest$ac_exeext
13394   if test "${ac_cv_search_bfd_init+set}" = set; then
13395   break
13396 fi
13397 done
13398 if test "${ac_cv_search_bfd_init+set}" = set; then
13399   :
13400 else
13401   ac_cv_search_bfd_init=no
13402 fi
13403 rm conftest.$ac_ext
13404 LIBS=$ac_func_search_save_LIBS
13405 fi
13406 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13407 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13408 ac_res=$ac_cv_search_bfd_init
13409 if test "$ac_res" != no; then
13410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13411
13412 fi
13413
13414             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13415 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13416 if test "${ac_cv_search_op_open_agent+set}" = set; then
13417   echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419   ac_func_search_save_LIBS=$LIBS
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426
13427 /* Override any GCC internal prototype to avoid an error.
13428    Use char because int might match the return type of a GCC
13429    builtin and then its argument prototype would still apply.  */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char op_open_agent ();
13434 int
13435 main ()
13436 {
13437 return op_open_agent ();
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 for ac_lib in '' opagent; do
13443   if test -z "$ac_lib"; then
13444     ac_res="none required"
13445   else
13446     ac_res=-l$ac_lib
13447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13448   fi
13449   rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (ac_try="$ac_link"
13451 case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_link") 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } &&
13463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13464   { (case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_try") 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; } &&
13473          { ac_try='test -s conftest$ac_exeext'
13474   { (case "(($ac_try" in
13475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476   *) ac_try_echo=$ac_try;;
13477 esac
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479   (eval "$ac_try") 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_cv_search_op_open_agent=$ac_res
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext \
13492       conftest$ac_exeext
13493   if test "${ac_cv_search_op_open_agent+set}" = set; then
13494   break
13495 fi
13496 done
13497 if test "${ac_cv_search_op_open_agent+set}" = set; then
13498   :
13499 else
13500   ac_cv_search_op_open_agent=no
13501 fi
13502 rm conftest.$ac_ext
13503 LIBS=$ac_func_search_save_LIBS
13504 fi
13505 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13506 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13507 ac_res=$ac_cv_search_op_open_agent
13508 if test "$ac_res" != no; then
13509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13510
13511 else
13512
13513               echo "Error! You need to have libopagent around."
13514               exit -1
13515
13516 fi
13517
13518             if test "${ac_cv_header_opagent_h+set}" = set; then
13519   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13520 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13521 if test "${ac_cv_header_opagent_h+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 fi
13524 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13525 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13526 else
13527   # Is the header compilable?
13528 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13529 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536 $ac_includes_default
13537 #include <opagent.h>
13538 _ACEOF
13539 rm -f conftest.$ac_objext
13540 if { (ac_try="$ac_compile"
13541 case "(($ac_try" in
13542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543   *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546   (eval "$ac_compile") 2>conftest.er1
13547   ac_status=$?
13548   grep -v '^ *+' conftest.er1 >conftest.err
13549   rm -f conftest.er1
13550   cat conftest.err >&5
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); } &&
13553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13554   { (case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_try") 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; } &&
13563          { ac_try='test -s conftest.$ac_objext'
13564   { (case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_try") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_header_compiler=yes
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578         ac_header_compiler=no
13579 fi
13580
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13583 echo "${ECHO_T}$ac_header_compiler" >&6; }
13584
13585 # Is the header present?
13586 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13587 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594 #include <opagent.h>
13595 _ACEOF
13596 if { (ac_try="$ac_cpp conftest.$ac_ext"
13597 case "(($ac_try" in
13598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599   *) ac_try_echo=$ac_try;;
13600 esac
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13603   ac_status=$?
13604   grep -v '^ *+' conftest.er1 >conftest.err
13605   rm -f conftest.er1
13606   cat conftest.err >&5
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); } >/dev/null; then
13609   if test -s conftest.err; then
13610     ac_cpp_err=$ac_c_preproc_warn_flag
13611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13612   else
13613     ac_cpp_err=
13614   fi
13615 else
13616   ac_cpp_err=yes
13617 fi
13618 if test -z "$ac_cpp_err"; then
13619   ac_header_preproc=yes
13620 else
13621   echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624   ac_header_preproc=no
13625 fi
13626
13627 rm -f conftest.err conftest.$ac_ext
13628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6; }
13630
13631 # So?  What about this header?
13632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13633   yes:no: )
13634     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13637 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13638     ac_header_preproc=yes
13639     ;;
13640   no:yes:* )
13641     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13642 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13643     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13644 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13645     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13646 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13647     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13648 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13650 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13652 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13653     ( cat <<\_ASBOX
13654 ## ------------------------------------ ##
13655 ## Report this to http://llvm.org/bugs/ ##
13656 ## ------------------------------------ ##
13657 _ASBOX
13658      ) | sed "s/^/$as_me: WARNING:     /" >&2
13659     ;;
13660 esac
13661 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13662 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13663 if test "${ac_cv_header_opagent_h+set}" = set; then
13664   echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666   ac_cv_header_opagent_h=$ac_header_preproc
13667 fi
13668 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13669 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13670
13671 fi
13672 if test $ac_cv_header_opagent_h = yes; then
13673   :
13674 else
13675
13676               echo "Error! You need to have opagent.h around."
13677               exit -1
13678
13679 fi
13680
13681
13682           fi ;;
13683         *)
13684           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13685 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13686    { (exit 1); exit 1; }; } ;;
13687       esac
13688
13689 else
13690
13691       USE_OPROFILE=0
13692
13693
13694 fi
13695
13696
13697 cat >>confdefs.h <<_ACEOF
13698 #define LLVM_USE_OPROFILE $USE_OPROFILE
13699 _ACEOF
13700
13701
13702
13703 # Check whether --with-intel-jitevents was given.
13704 if test "${with_intel_jitevents+set}" = set; then
13705   withval=$with_intel_jitevents;
13706        case "$withval" in
13707           yes) USE_INTEL_JITEVENTS=1
13708 ;;
13709           no)  USE_INTEL_JITEVENTS=0
13710 ;;
13711           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13712 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13713    { (exit 1); exit 1; }; };;
13714        esac
13715
13716       case $llvm_cv_os_type in
13717         Linux|Win32|Cygwin|MingW) ;;
13718         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13719 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13720    { (exit 1); exit 1; }; };;
13721       esac
13722
13723       case "$llvm_cv_target_arch" in
13724         x86|x86_64) ;;
13725         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13726 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13727    { (exit 1); exit 1; }; };;
13728       esac
13729
13730 else
13731
13732       USE_INTEL_JITEVENTS=0
13733
13734
13735 fi
13736
13737
13738 cat >>confdefs.h <<_ACEOF
13739 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13740 _ACEOF
13741
13742
13743 for ac_prog in xml2-config
13744 do
13745   # Extract the first word of "$ac_prog", so it can be a program name with args.
13746 set dummy $ac_prog; ac_word=$2
13747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13749 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   if test -n "$XML2CONFIG"; then
13753   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13754 else
13755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $PATH
13757 do
13758   IFS=$as_save_IFS
13759   test -z "$as_dir" && as_dir=.
13760   for ac_exec_ext in '' $ac_executable_extensions; do
13761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13762     ac_cv_prog_XML2CONFIG="$ac_prog"
13763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13764     break 2
13765   fi
13766 done
13767 done
13768 IFS=$as_save_IFS
13769
13770 fi
13771 fi
13772 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13773 if test -n "$XML2CONFIG"; then
13774   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13775 echo "${ECHO_T}$XML2CONFIG" >&6; }
13776 else
13777   { echo "$as_me:$LINENO: result: no" >&5
13778 echo "${ECHO_T}no" >&6; }
13779 fi
13780
13781
13782   test -n "$XML2CONFIG" && break
13783 done
13784
13785
13786 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13787 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13788 if test "x$XML2CONFIG" = "x"; then
13789  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13790 echo "${ECHO_T}xml2-config not found" >&6; }
13791 else
13792  LIBXML2_INC=`$XML2CONFIG --cflags`
13793  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13794 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13795  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13796 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13797 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   ac_check_lib_save_LIBS=$LIBS
13801 LIBS="-lxml2  $LIBS"
13802 cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h.  */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h.  */
13808
13809 /* Override any GCC internal prototype to avoid an error.
13810    Use char because int might match the return type of a GCC
13811    builtin and then its argument prototype would still apply.  */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 char xmlReadFile ();
13816 int
13817 main ()
13818 {
13819 return xmlReadFile ();
13820   ;
13821   return 0;
13822 }
13823 _ACEOF
13824 rm -f conftest.$ac_objext conftest$ac_exeext
13825 if { (ac_try="$ac_link"
13826 case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_link") 2>conftest.er1
13832   ac_status=$?
13833   grep -v '^ *+' conftest.er1 >conftest.err
13834   rm -f conftest.er1
13835   cat conftest.err >&5
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); } &&
13838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13839   { (case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844   (eval "$ac_try") 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; } &&
13848          { ac_try='test -s conftest$ac_exeext'
13849   { (case "(($ac_try" in
13850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851   *) ac_try_echo=$ac_try;;
13852 esac
13853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13854   (eval "$ac_try") 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_cv_lib_xml2_xmlReadFile=yes
13859 else
13860   echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863         ac_cv_lib_xml2_xmlReadFile=no
13864 fi
13865
13866 rm -f core conftest.err conftest.$ac_objext \
13867       conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13869 fi
13870 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13871 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13872 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13873
13874 cat >>confdefs.h <<\_ACEOF
13875 #define CLANG_HAVE_LIBXML 1
13876 _ACEOF
13877
13878                                 LIBXML2_LIBS="-lxml2"
13879 fi
13880
13881 fi
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891 ac_header_dirent=no
13892 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13893   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13894 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13895 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899   cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905 #include <sys/types.h>
13906 #include <$ac_hdr>
13907
13908 int
13909 main ()
13910 {
13911 if ((DIR *) 0)
13912 return 0;
13913   ;
13914   return 0;
13915 }
13916 _ACEOF
13917 rm -f conftest.$ac_objext
13918 if { (ac_try="$ac_compile"
13919 case "(($ac_try" in
13920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921   *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924   (eval "$ac_compile") 2>conftest.er1
13925   ac_status=$?
13926   grep -v '^ *+' conftest.er1 >conftest.err
13927   rm -f conftest.er1
13928   cat conftest.err >&5
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); } &&
13931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13932   { (case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_try") 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; } &&
13941          { ac_try='test -s conftest.$ac_objext'
13942   { (case "(($ac_try" in
13943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944   *) ac_try_echo=$ac_try;;
13945 esac
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947   (eval "$ac_try") 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; }; then
13951   eval "$as_ac_Header=yes"
13952 else
13953   echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956         eval "$as_ac_Header=no"
13957 fi
13958
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 fi
13961 ac_res=`eval echo '${'$as_ac_Header'}'`
13962                { echo "$as_me:$LINENO: result: $ac_res" >&5
13963 echo "${ECHO_T}$ac_res" >&6; }
13964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13965   cat >>confdefs.h <<_ACEOF
13966 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13967 _ACEOF
13968
13969 ac_header_dirent=$ac_hdr; break
13970 fi
13971
13972 done
13973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13974 if test $ac_header_dirent = dirent.h; then
13975   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13977 if test "${ac_cv_search_opendir+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   ac_func_search_save_LIBS=$LIBS
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987
13988 /* Override any GCC internal prototype to avoid an error.
13989    Use char because int might match the return type of a GCC
13990    builtin and then its argument prototype would still apply.  */
13991 #ifdef __cplusplus
13992 extern "C"
13993 #endif
13994 char opendir ();
13995 int
13996 main ()
13997 {
13998 return opendir ();
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 for ac_lib in '' dir; do
14004   if test -z "$ac_lib"; then
14005     ac_res="none required"
14006   else
14007     ac_res=-l$ac_lib
14008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14009   fi
14010   rm -f conftest.$ac_objext conftest$ac_exeext
14011 if { (ac_try="$ac_link"
14012 case "(($ac_try" in
14013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014   *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017   (eval "$ac_link") 2>conftest.er1
14018   ac_status=$?
14019   grep -v '^ *+' conftest.er1 >conftest.err
14020   rm -f conftest.er1
14021   cat conftest.err >&5
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } &&
14024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14025   { (case "(($ac_try" in
14026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027   *) ac_try_echo=$ac_try;;
14028 esac
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030   (eval "$ac_try") 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; } &&
14034          { ac_try='test -s conftest$ac_exeext'
14035   { (case "(($ac_try" in
14036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037   *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040   (eval "$ac_try") 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_search_opendir=$ac_res
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049
14050 fi
14051
14052 rm -f core conftest.err conftest.$ac_objext \
14053       conftest$ac_exeext
14054   if test "${ac_cv_search_opendir+set}" = set; then
14055   break
14056 fi
14057 done
14058 if test "${ac_cv_search_opendir+set}" = set; then
14059   :
14060 else
14061   ac_cv_search_opendir=no
14062 fi
14063 rm conftest.$ac_ext
14064 LIBS=$ac_func_search_save_LIBS
14065 fi
14066 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14067 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14068 ac_res=$ac_cv_search_opendir
14069 if test "$ac_res" != no; then
14070   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14071
14072 fi
14073
14074 else
14075   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14077 if test "${ac_cv_search_opendir+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   ac_func_search_save_LIBS=$LIBS
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089    Use char because int might match the return type of a GCC
14090    builtin and then its argument prototype would still apply.  */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char opendir ();
14095 int
14096 main ()
14097 {
14098 return opendir ();
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 for ac_lib in '' x; do
14104   if test -z "$ac_lib"; then
14105     ac_res="none required"
14106   else
14107     ac_res=-l$ac_lib
14108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14109   fi
14110   rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (ac_try="$ac_link"
14112 case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117   (eval "$ac_link") 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125   { (case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_try") 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; } &&
14134          { ac_try='test -s conftest$ac_exeext'
14135   { (case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140   (eval "$ac_try") 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   ac_cv_search_opendir=$ac_res
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149
14150 fi
14151
14152 rm -f core conftest.err conftest.$ac_objext \
14153       conftest$ac_exeext
14154   if test "${ac_cv_search_opendir+set}" = set; then
14155   break
14156 fi
14157 done
14158 if test "${ac_cv_search_opendir+set}" = set; then
14159   :
14160 else
14161   ac_cv_search_opendir=no
14162 fi
14163 rm conftest.$ac_ext
14164 LIBS=$ac_func_search_save_LIBS
14165 fi
14166 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14167 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14168 ac_res=$ac_cv_search_opendir
14169 if test "$ac_res" != no; then
14170   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14171
14172 fi
14173
14174 fi
14175
14176 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14177 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14178 if test "${ac_cv_header_mmap_anon+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181    ac_ext=c
14182 ac_cpp='$CPP $CPPFLAGS'
14183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14186
14187   cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193 #include <sys/mman.h>
14194 #include <unistd.h>
14195 #include <fcntl.h>
14196 int
14197 main ()
14198 {
14199 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext
14205 if { (ac_try="$ac_compile"
14206 case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_compile") 2>conftest.er1
14212   ac_status=$?
14213   grep -v '^ *+' conftest.er1 >conftest.err
14214   rm -f conftest.er1
14215   cat conftest.err >&5
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); } &&
14218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219   { (case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_try") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; } &&
14228          { ac_try='test -s conftest.$ac_objext'
14229   { (case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_try") 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_cv_header_mmap_anon=yes
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243         ac_cv_header_mmap_anon=no
14244 fi
14245
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247   ac_ext=c
14248 ac_cpp='$CPP $CPPFLAGS'
14249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14252
14253
14254 fi
14255 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14256 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14257 if test "$ac_cv_header_mmap_anon" = yes; then
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HAVE_MMAP_ANONYMOUS 1
14261 _ACEOF
14262
14263 fi
14264
14265 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14266 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14267 if test "${ac_cv_header_stat_broken+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276 #include <sys/types.h>
14277 #include <sys/stat.h>
14278
14279 #if defined S_ISBLK && defined S_IFDIR
14280 # if S_ISBLK (S_IFDIR)
14281 You lose.
14282 # endif
14283 #endif
14284
14285 #if defined S_ISBLK && defined S_IFCHR
14286 # if S_ISBLK (S_IFCHR)
14287 You lose.
14288 # endif
14289 #endif
14290
14291 #if defined S_ISLNK && defined S_IFREG
14292 # if S_ISLNK (S_IFREG)
14293 You lose.
14294 # endif
14295 #endif
14296
14297 #if defined S_ISSOCK && defined S_IFREG
14298 # if S_ISSOCK (S_IFREG)
14299 You lose.
14300 # endif
14301 #endif
14302
14303 _ACEOF
14304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14305   $EGREP "You lose" >/dev/null 2>&1; then
14306   ac_cv_header_stat_broken=yes
14307 else
14308   ac_cv_header_stat_broken=no
14309 fi
14310 rm -f conftest*
14311
14312 fi
14313 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14314 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14315 if test $ac_cv_header_stat_broken = yes; then
14316
14317 cat >>confdefs.h <<\_ACEOF
14318 #define STAT_MACROS_BROKEN 1
14319 _ACEOF
14320
14321 fi
14322
14323 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14324 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14325 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328   cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334 #include <sys/types.h>
14335 #include <sys/wait.h>
14336 #ifndef WEXITSTATUS
14337 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14338 #endif
14339 #ifndef WIFEXITED
14340 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14341 #endif
14342
14343 int
14344 main ()
14345 {
14346   int s;
14347   wait (&s);
14348   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360   (eval "$ac_compile") 2>conftest.er1
14361   ac_status=$?
14362   grep -v '^ *+' conftest.er1 >conftest.err
14363   rm -f conftest.er1
14364   cat conftest.err >&5
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); } &&
14367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368   { (case "(($ac_try" in
14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370   *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373   (eval "$ac_try") 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (case "(($ac_try" in
14379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380   *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383   (eval "$ac_try") 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_cv_header_sys_wait_h=yes
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392         ac_cv_header_sys_wait_h=no
14393 fi
14394
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14398 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14399 if test $ac_cv_header_sys_wait_h = yes; then
14400
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_SYS_WAIT_H 1
14403 _ACEOF
14404
14405 fi
14406
14407 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14408 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14409 if test "${ac_cv_header_time+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418 #include <sys/types.h>
14419 #include <sys/time.h>
14420 #include <time.h>
14421
14422 int
14423 main ()
14424 {
14425 if ((struct tm *) 0)
14426 return 0;
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_time=yes
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470         ac_cv_header_time=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_time" >&5
14476 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14477 if test $ac_cv_header_time = yes; then
14478
14479 cat >>confdefs.h <<\_ACEOF
14480 #define TIME_WITH_SYS_TIME 1
14481 _ACEOF
14482
14483 fi
14484
14485
14486 ac_ext=cpp
14487 ac_cpp='$CXXCPP $CPPFLAGS'
14488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14491
14492 ac_ext=cpp
14493 ac_cpp='$CXXCPP $CPPFLAGS'
14494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14497 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14498 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14499 if test -z "$CXXCPP"; then
14500   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503       # Double quotes because CXXCPP needs to be expanded
14504     for CXXCPP in "$CXX -E" "/lib/cpp"
14505     do
14506       ac_preproc_ok=false
14507 for ac_cxx_preproc_warn_flag in '' yes
14508 do
14509   # Use a header file that comes with gcc, so configuring glibc
14510   # with a fresh cross-compiler works.
14511   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512   # <limits.h> exists even on freestanding compilers.
14513   # On the NeXT, cc -E runs the code through the compiler's parser,
14514   # not just through cpp. "Syntax error" is here to catch this case.
14515   cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #ifdef __STDC__
14522 # include <limits.h>
14523 #else
14524 # include <assert.h>
14525 #endif
14526                      Syntax error
14527 _ACEOF
14528 if { (ac_try="$ac_cpp conftest.$ac_ext"
14529 case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } >/dev/null; then
14541   if test -s conftest.err; then
14542     ac_cpp_err=$ac_cxx_preproc_warn_flag
14543     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14544   else
14545     ac_cpp_err=
14546   fi
14547 else
14548   ac_cpp_err=yes
14549 fi
14550 if test -z "$ac_cpp_err"; then
14551   :
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556   # Broken: fails on valid input.
14557 continue
14558 fi
14559
14560 rm -f conftest.err conftest.$ac_ext
14561
14562   # OK, works on sane cases.  Now check whether nonexistent headers
14563   # can be detected and how.
14564   cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570 #include <ac_nonexistent.h>
14571 _ACEOF
14572 if { (ac_try="$ac_cpp conftest.$ac_ext"
14573 case "(($ac_try" in
14574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575   *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } >/dev/null; then
14585   if test -s conftest.err; then
14586     ac_cpp_err=$ac_cxx_preproc_warn_flag
14587     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14588   else
14589     ac_cpp_err=
14590   fi
14591 else
14592   ac_cpp_err=yes
14593 fi
14594 if test -z "$ac_cpp_err"; then
14595   # Broken: success on invalid input.
14596 continue
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601   # Passes both tests.
14602 ac_preproc_ok=:
14603 break
14604 fi
14605
14606 rm -f conftest.err conftest.$ac_ext
14607
14608 done
14609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14610 rm -f conftest.err conftest.$ac_ext
14611 if $ac_preproc_ok; then
14612   break
14613 fi
14614
14615     done
14616     ac_cv_prog_CXXCPP=$CXXCPP
14617
14618 fi
14619   CXXCPP=$ac_cv_prog_CXXCPP
14620 else
14621   ac_cv_prog_CXXCPP=$CXXCPP
14622 fi
14623 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14624 echo "${ECHO_T}$CXXCPP" >&6; }
14625 ac_preproc_ok=false
14626 for ac_cxx_preproc_warn_flag in '' yes
14627 do
14628   # Use a header file that comes with gcc, so configuring glibc
14629   # with a fresh cross-compiler works.
14630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14631   # <limits.h> exists even on freestanding compilers.
14632   # On the NeXT, cc -E runs the code through the compiler's parser,
14633   # not just through cpp. "Syntax error" is here to catch this case.
14634   cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 #ifdef __STDC__
14641 # include <limits.h>
14642 #else
14643 # include <assert.h>
14644 #endif
14645                      Syntax error
14646 _ACEOF
14647 if { (ac_try="$ac_cpp conftest.$ac_ext"
14648 case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14654   ac_status=$?
14655   grep -v '^ *+' conftest.er1 >conftest.err
14656   rm -f conftest.er1
14657   cat conftest.err >&5
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } >/dev/null; then
14660   if test -s conftest.err; then
14661     ac_cpp_err=$ac_cxx_preproc_warn_flag
14662     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14663   else
14664     ac_cpp_err=
14665   fi
14666 else
14667   ac_cpp_err=yes
14668 fi
14669 if test -z "$ac_cpp_err"; then
14670   :
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675   # Broken: fails on valid input.
14676 continue
14677 fi
14678
14679 rm -f conftest.err conftest.$ac_ext
14680
14681   # OK, works on sane cases.  Now check whether nonexistent headers
14682   # can be detected and how.
14683   cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689 #include <ac_nonexistent.h>
14690 _ACEOF
14691 if { (ac_try="$ac_cpp conftest.$ac_ext"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } >/dev/null; then
14704   if test -s conftest.err; then
14705     ac_cpp_err=$ac_cxx_preproc_warn_flag
14706     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14707   else
14708     ac_cpp_err=
14709   fi
14710 else
14711   ac_cpp_err=yes
14712 fi
14713 if test -z "$ac_cpp_err"; then
14714   # Broken: success on invalid input.
14715 continue
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720   # Passes both tests.
14721 ac_preproc_ok=:
14722 break
14723 fi
14724
14725 rm -f conftest.err conftest.$ac_ext
14726
14727 done
14728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14729 rm -f conftest.err conftest.$ac_ext
14730 if $ac_preproc_ok; then
14731   :
14732 else
14733   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14734 See \`config.log' for more details." >&5
14735 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14736 See \`config.log' for more details." >&2;}
14737    { (exit 1); exit 1; }; }
14738 fi
14739
14740 ac_ext=cpp
14741 ac_cpp='$CXXCPP $CPPFLAGS'
14742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14745
14746
14747
14748 for ac_header in cxxabi.h
14749 do
14750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14755   echo $ECHO_N "(cached) $ECHO_C" >&6
14756 fi
14757 ac_res=`eval echo '${'$as_ac_Header'}'`
14758                { echo "$as_me:$LINENO: result: $ac_res" >&5
14759 echo "${ECHO_T}$ac_res" >&6; }
14760 else
14761   # Is the header compilable?
14762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 $ac_includes_default
14771 #include <$ac_header>
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (ac_try="$ac_compile"
14775 case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_compile") 2>conftest.er1
14781   ac_status=$?
14782   grep -v '^ *+' conftest.er1 >conftest.err
14783   rm -f conftest.er1
14784   cat conftest.err >&5
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } &&
14787          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14788   { (case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_try") 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; } &&
14797          { ac_try='test -s conftest.$ac_objext'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   ac_header_compiler=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812         ac_header_compiler=no
14813 fi
14814
14815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14817 echo "${ECHO_T}$ac_header_compiler" >&6; }
14818
14819 # Is the header present?
14820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h.  */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h.  */
14828 #include <$ac_header>
14829 _ACEOF
14830 if { (ac_try="$ac_cpp conftest.$ac_ext"
14831 case "(($ac_try" in
14832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833   *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } >/dev/null; then
14843   if test -s conftest.err; then
14844     ac_cpp_err=$ac_cxx_preproc_warn_flag
14845     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14846   else
14847     ac_cpp_err=
14848   fi
14849 else
14850   ac_cpp_err=yes
14851 fi
14852 if test -z "$ac_cpp_err"; then
14853   ac_header_preproc=yes
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858   ac_header_preproc=no
14859 fi
14860
14861 rm -f conftest.err conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 echo "${ECHO_T}$ac_header_preproc" >&6; }
14864
14865 # So?  What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14867   yes:no: )
14868     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14872     ac_header_preproc=yes
14873     ;;
14874   no:yes:* )
14875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14878 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14882 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14887     ( cat <<\_ASBOX
14888 ## ------------------------------------ ##
14889 ## Report this to http://llvm.org/bugs/ ##
14890 ## ------------------------------------ ##
14891 _ASBOX
14892      ) | sed "s/^/$as_me: WARNING:     /" >&2
14893     ;;
14894 esac
14895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   eval "$as_ac_Header=\$ac_header_preproc"
14901 fi
14902 ac_res=`eval echo '${'$as_ac_Header'}'`
14903                { echo "$as_me:$LINENO: result: $ac_res" >&5
14904 echo "${ECHO_T}$ac_res" >&6; }
14905
14906 fi
14907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14908   cat >>confdefs.h <<_ACEOF
14909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14910 _ACEOF
14911
14912 fi
14913
14914 done
14915
14916 ac_ext=c
14917 ac_cpp='$CPP $CPPFLAGS'
14918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14921
14922
14923
14924
14925
14926
14927 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14928 do
14929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14931   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 fi
14936 ac_res=`eval echo '${'$as_ac_Header'}'`
14937                { echo "$as_me:$LINENO: result: $ac_res" >&5
14938 echo "${ECHO_T}$ac_res" >&6; }
14939 else
14940   # Is the header compilable?
14941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949 $ac_includes_default
14950 #include <$ac_header>
14951 _ACEOF
14952 rm -f conftest.$ac_objext
14953 if { (ac_try="$ac_compile"
14954 case "(($ac_try" in
14955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956   *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959   (eval "$ac_compile") 2>conftest.er1
14960   ac_status=$?
14961   grep -v '^ *+' conftest.er1 >conftest.err
14962   rm -f conftest.er1
14963   cat conftest.err >&5
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } &&
14966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14967   { (case "(($ac_try" in
14968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969   *) ac_try_echo=$ac_try;;
14970 esac
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972   (eval "$ac_try") 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; } &&
14976          { ac_try='test -s conftest.$ac_objext'
14977   { (case "(($ac_try" in
14978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979   *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982   (eval "$ac_try") 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; }; then
14986   ac_header_compiler=yes
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991         ac_header_compiler=no
14992 fi
14993
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14996 echo "${ECHO_T}$ac_header_compiler" >&6; }
14997
14998 # Is the header present?
14999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15001 cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007 #include <$ac_header>
15008 _ACEOF
15009 if { (ac_try="$ac_cpp conftest.$ac_ext"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } >/dev/null; then
15022   if test -s conftest.err; then
15023     ac_cpp_err=$ac_c_preproc_warn_flag
15024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15025   else
15026     ac_cpp_err=
15027   fi
15028 else
15029   ac_cpp_err=yes
15030 fi
15031 if test -z "$ac_cpp_err"; then
15032   ac_header_preproc=yes
15033 else
15034   echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037   ac_header_preproc=no
15038 fi
15039
15040 rm -f conftest.err conftest.$ac_ext
15041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043
15044 # So?  What about this header?
15045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046   yes:no: )
15047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15051     ac_header_preproc=yes
15052     ;;
15053   no:yes:* )
15054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15066     ( cat <<\_ASBOX
15067 ## ------------------------------------ ##
15068 ## Report this to http://llvm.org/bugs/ ##
15069 ## ------------------------------------ ##
15070 _ASBOX
15071      ) | sed "s/^/$as_me: WARNING:     /" >&2
15072     ;;
15073 esac
15074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079   eval "$as_ac_Header=\$ac_header_preproc"
15080 fi
15081 ac_res=`eval echo '${'$as_ac_Header'}'`
15082                { echo "$as_me:$LINENO: result: $ac_res" >&5
15083 echo "${ECHO_T}$ac_res" >&6; }
15084
15085 fi
15086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15089 _ACEOF
15090
15091 fi
15092
15093 done
15094
15095
15096
15097
15098
15099
15100
15101 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15102 do
15103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15105   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15108   echo $ECHO_N "(cached) $ECHO_C" >&6
15109 fi
15110 ac_res=`eval echo '${'$as_ac_Header'}'`
15111                { echo "$as_me:$LINENO: result: $ac_res" >&5
15112 echo "${ECHO_T}$ac_res" >&6; }
15113 else
15114   # Is the header compilable?
15115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 $ac_includes_default
15124 #include <$ac_header>
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_compile") 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } &&
15140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141   { (case "(($ac_try" in
15142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143   *) ac_try_echo=$ac_try;;
15144 esac
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146   (eval "$ac_try") 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; } &&
15150          { ac_try='test -s conftest.$ac_objext'
15151   { (case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156   (eval "$ac_try") 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; }; then
15160   ac_header_compiler=yes
15161 else
15162   echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15164
15165         ac_header_compiler=no
15166 fi
15167
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15170 echo "${ECHO_T}$ac_header_compiler" >&6; }
15171
15172 # Is the header present?
15173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h.  */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h.  */
15181 #include <$ac_header>
15182 _ACEOF
15183 if { (ac_try="$ac_cpp conftest.$ac_ext"
15184 case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15190   ac_status=$?
15191   grep -v '^ *+' conftest.er1 >conftest.err
15192   rm -f conftest.er1
15193   cat conftest.err >&5
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); } >/dev/null; then
15196   if test -s conftest.err; then
15197     ac_cpp_err=$ac_c_preproc_warn_flag
15198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15199   else
15200     ac_cpp_err=
15201   fi
15202 else
15203   ac_cpp_err=yes
15204 fi
15205 if test -z "$ac_cpp_err"; then
15206   ac_header_preproc=yes
15207 else
15208   echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211   ac_header_preproc=no
15212 fi
15213
15214 rm -f conftest.err conftest.$ac_ext
15215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15216 echo "${ECHO_T}$ac_header_preproc" >&6; }
15217
15218 # So?  What about this header?
15219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15220   yes:no: )
15221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15225     ac_header_preproc=yes
15226     ;;
15227   no:yes:* )
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15230     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15231 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15235 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15240     ( cat <<\_ASBOX
15241 ## ------------------------------------ ##
15242 ## Report this to http://llvm.org/bugs/ ##
15243 ## ------------------------------------ ##
15244 _ASBOX
15245      ) | sed "s/^/$as_me: WARNING:     /" >&2
15246     ;;
15247 esac
15248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   eval "$as_ac_Header=\$ac_header_preproc"
15254 fi
15255 ac_res=`eval echo '${'$as_ac_Header'}'`
15256                { echo "$as_me:$LINENO: result: $ac_res" >&5
15257 echo "${ECHO_T}$ac_res" >&6; }
15258
15259 fi
15260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15261   cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15263 _ACEOF
15264
15265 fi
15266
15267 done
15268
15269
15270 for ac_header in utime.h
15271 do
15272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15274   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 fi
15279 ac_res=`eval echo '${'$as_ac_Header'}'`
15280                { echo "$as_me:$LINENO: result: $ac_res" >&5
15281 echo "${ECHO_T}$ac_res" >&6; }
15282 else
15283   # Is the header compilable?
15284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 $ac_includes_default
15293 #include <$ac_header>
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (ac_try="$ac_compile"
15297 case "(($ac_try" in
15298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299   *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302   (eval "$ac_compile") 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15310   { (case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_try") 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; } &&
15319          { ac_try='test -s conftest.$ac_objext'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_header_compiler=yes
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334         ac_header_compiler=no
15335 fi
15336
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15339 echo "${ECHO_T}$ac_header_compiler" >&6; }
15340
15341 # Is the header present?
15342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 #include <$ac_header>
15351 _ACEOF
15352 if { (ac_try="$ac_cpp conftest.$ac_ext"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } >/dev/null; then
15365   if test -s conftest.err; then
15366     ac_cpp_err=$ac_c_preproc_warn_flag
15367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15368   else
15369     ac_cpp_err=
15370   fi
15371 else
15372   ac_cpp_err=yes
15373 fi
15374 if test -z "$ac_cpp_err"; then
15375   ac_header_preproc=yes
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380   ac_header_preproc=no
15381 fi
15382
15383 rm -f conftest.err conftest.$ac_ext
15384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15385 echo "${ECHO_T}$ac_header_preproc" >&6; }
15386
15387 # So?  What about this header?
15388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15389   yes:no: )
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15394     ac_header_preproc=yes
15395     ;;
15396   no:yes:* )
15397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15409     ( cat <<\_ASBOX
15410 ## ------------------------------------ ##
15411 ## Report this to http://llvm.org/bugs/ ##
15412 ## ------------------------------------ ##
15413 _ASBOX
15414      ) | sed "s/^/$as_me: WARNING:     /" >&2
15415     ;;
15416 esac
15417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   eval "$as_ac_Header=\$ac_header_preproc"
15423 fi
15424 ac_res=`eval echo '${'$as_ac_Header'}'`
15425                { echo "$as_me:$LINENO: result: $ac_res" >&5
15426 echo "${ECHO_T}$ac_res" >&6; }
15427
15428 fi
15429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15430   cat >>confdefs.h <<_ACEOF
15431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15432 _ACEOF
15433
15434 fi
15435
15436 done
15437
15438
15439
15440
15441
15442
15443 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15444 do
15445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 fi
15452 ac_res=`eval echo '${'$as_ac_Header'}'`
15453                { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15455 else
15456   # Is the header compilable?
15457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h.  */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h.  */
15465 $ac_includes_default
15466 #include <$ac_header>
15467 _ACEOF
15468 rm -f conftest.$ac_objext
15469 if { (ac_try="$ac_compile"
15470 case "(($ac_try" in
15471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472   *) ac_try_echo=$ac_try;;
15473 esac
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475   (eval "$ac_compile") 2>conftest.er1
15476   ac_status=$?
15477   grep -v '^ *+' conftest.er1 >conftest.err
15478   rm -f conftest.er1
15479   cat conftest.err >&5
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); } &&
15482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15483   { (case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_try") 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }; } &&
15492          { ac_try='test -s conftest.$ac_objext'
15493   { (case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498   (eval "$ac_try") 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); }; }; then
15502   ac_header_compiler=yes
15503 else
15504   echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15506
15507         ac_header_compiler=no
15508 fi
15509
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15512 echo "${ECHO_T}$ac_header_compiler" >&6; }
15513
15514 # Is the header present?
15515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h.  */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h.  */
15523 #include <$ac_header>
15524 _ACEOF
15525 if { (ac_try="$ac_cpp conftest.$ac_ext"
15526 case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } >/dev/null; then
15538   if test -s conftest.err; then
15539     ac_cpp_err=$ac_c_preproc_warn_flag
15540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15541   else
15542     ac_cpp_err=
15543   fi
15544 else
15545   ac_cpp_err=yes
15546 fi
15547 if test -z "$ac_cpp_err"; then
15548   ac_header_preproc=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553   ac_header_preproc=no
15554 fi
15555
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15559
15560 # So?  What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562   yes:no: )
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567     ac_header_preproc=yes
15568     ;;
15569   no:yes:* )
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582     ( cat <<\_ASBOX
15583 ## ------------------------------------ ##
15584 ## Report this to http://llvm.org/bugs/ ##
15585 ## ------------------------------------ ##
15586 _ASBOX
15587      ) | sed "s/^/$as_me: WARNING:     /" >&2
15588     ;;
15589 esac
15590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593   echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595   eval "$as_ac_Header=\$ac_header_preproc"
15596 fi
15597 ac_res=`eval echo '${'$as_ac_Header'}'`
15598                { echo "$as_me:$LINENO: result: $ac_res" >&5
15599 echo "${ECHO_T}$ac_res" >&6; }
15600
15601 fi
15602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15603   cat >>confdefs.h <<_ACEOF
15604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15605 _ACEOF
15606
15607 fi
15608
15609 done
15610
15611
15612
15613
15614 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15615 do
15616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15618   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 fi
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624                { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15626 else
15627   # Is the header compilable?
15628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h.  */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h.  */
15636 $ac_includes_default
15637 #include <$ac_header>
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646   (eval "$ac_compile") 2>conftest.er1
15647   ac_status=$?
15648   grep -v '^ *+' conftest.er1 >conftest.err
15649   rm -f conftest.er1
15650   cat conftest.err >&5
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } &&
15653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654   { (case "(($ac_try" in
15655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656   *) ac_try_echo=$ac_try;;
15657 esac
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659   (eval "$ac_try") 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; } &&
15663          { ac_try='test -s conftest.$ac_objext'
15664   { (case "(($ac_try" in
15665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666   *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669   (eval "$ac_try") 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }; then
15673   ac_header_compiler=yes
15674 else
15675   echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678         ac_header_compiler=no
15679 fi
15680
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683 echo "${ECHO_T}$ac_header_compiler" >&6; }
15684
15685 # Is the header present?
15686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h.  */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h.  */
15694 #include <$ac_header>
15695 _ACEOF
15696 if { (ac_try="$ac_cpp conftest.$ac_ext"
15697 case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } >/dev/null; then
15709   if test -s conftest.err; then
15710     ac_cpp_err=$ac_c_preproc_warn_flag
15711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15712   else
15713     ac_cpp_err=
15714   fi
15715 else
15716   ac_cpp_err=yes
15717 fi
15718 if test -z "$ac_cpp_err"; then
15719   ac_header_preproc=yes
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724   ac_header_preproc=no
15725 fi
15726
15727 rm -f conftest.err conftest.$ac_ext
15728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15729 echo "${ECHO_T}$ac_header_preproc" >&6; }
15730
15731 # So?  What about this header?
15732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733   yes:no: )
15734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15738     ac_header_preproc=yes
15739     ;;
15740   no:yes:* )
15741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15753     ( cat <<\_ASBOX
15754 ## ------------------------------------ ##
15755 ## Report this to http://llvm.org/bugs/ ##
15756 ## ------------------------------------ ##
15757 _ASBOX
15758      ) | sed "s/^/$as_me: WARNING:     /" >&2
15759     ;;
15760 esac
15761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   eval "$as_ac_Header=\$ac_header_preproc"
15767 fi
15768 ac_res=`eval echo '${'$as_ac_Header'}'`
15769                { echo "$as_me:$LINENO: result: $ac_res" >&5
15770 echo "${ECHO_T}$ac_res" >&6; }
15771
15772 fi
15773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15774   cat >>confdefs.h <<_ACEOF
15775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15776 _ACEOF
15777
15778 fi
15779
15780 done
15781
15782
15783 for ac_header in valgrind/valgrind.h
15784 do
15785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 fi
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793                { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15795 else
15796   # Is the header compilable?
15797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805 $ac_includes_default
15806 #include <$ac_header>
15807 _ACEOF
15808 rm -f conftest.$ac_objext
15809 if { (ac_try="$ac_compile"
15810 case "(($ac_try" in
15811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812   *) ac_try_echo=$ac_try;;
15813 esac
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815   (eval "$ac_compile") 2>conftest.er1
15816   ac_status=$?
15817   grep -v '^ *+' conftest.er1 >conftest.err
15818   rm -f conftest.er1
15819   cat conftest.err >&5
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } &&
15822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15823   { (case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_try") 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); }; } &&
15832          { ac_try='test -s conftest.$ac_objext'
15833   { (case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_try") 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; }; then
15842   ac_header_compiler=yes
15843 else
15844   echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15846
15847         ac_header_compiler=no
15848 fi
15849
15850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852 echo "${ECHO_T}$ac_header_compiler" >&6; }
15853
15854 # Is the header present?
15855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15857 cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h.  */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h.  */
15863 #include <$ac_header>
15864 _ACEOF
15865 if { (ac_try="$ac_cpp conftest.$ac_ext"
15866 case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15872   ac_status=$?
15873   grep -v '^ *+' conftest.er1 >conftest.err
15874   rm -f conftest.er1
15875   cat conftest.err >&5
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } >/dev/null; then
15878   if test -s conftest.err; then
15879     ac_cpp_err=$ac_c_preproc_warn_flag
15880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15881   else
15882     ac_cpp_err=
15883   fi
15884 else
15885   ac_cpp_err=yes
15886 fi
15887 if test -z "$ac_cpp_err"; then
15888   ac_header_preproc=yes
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893   ac_header_preproc=no
15894 fi
15895
15896 rm -f conftest.err conftest.$ac_ext
15897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15898 echo "${ECHO_T}$ac_header_preproc" >&6; }
15899
15900 # So?  What about this header?
15901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15902   yes:no: )
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15907     ac_header_preproc=yes
15908     ;;
15909   no:yes:* )
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15913 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15917 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15922     ( cat <<\_ASBOX
15923 ## ------------------------------------ ##
15924 ## Report this to http://llvm.org/bugs/ ##
15925 ## ------------------------------------ ##
15926 _ASBOX
15927      ) | sed "s/^/$as_me: WARNING:     /" >&2
15928     ;;
15929 esac
15930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   eval "$as_ac_Header=\$ac_header_preproc"
15936 fi
15937 ac_res=`eval echo '${'$as_ac_Header'}'`
15938                { echo "$as_me:$LINENO: result: $ac_res" >&5
15939 echo "${ECHO_T}$ac_res" >&6; }
15940
15941 fi
15942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15943   cat >>confdefs.h <<_ACEOF
15944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15945 _ACEOF
15946
15947 fi
15948
15949 done
15950
15951
15952 for ac_header in fenv.h
15953 do
15954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959   echo $ECHO_N "(cached) $ECHO_C" >&6
15960 fi
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962                { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15964 else
15965   # Is the header compilable?
15966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 $ac_includes_default
15975 #include <$ac_header>
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_compile") 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992   { (case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_try") 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest.$ac_objext'
16002   { (case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_try") 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   ac_header_compiler=yes
16012 else
16013   echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016         ac_header_compiler=no
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021 echo "${ECHO_T}$ac_header_compiler" >&6; }
16022
16023 # Is the header present?
16024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 #include <$ac_header>
16033 _ACEOF
16034 if { (ac_try="$ac_cpp conftest.$ac_ext"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } >/dev/null; then
16047   if test -s conftest.err; then
16048     ac_cpp_err=$ac_c_preproc_warn_flag
16049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050   else
16051     ac_cpp_err=
16052   fi
16053 else
16054   ac_cpp_err=yes
16055 fi
16056 if test -z "$ac_cpp_err"; then
16057   ac_header_preproc=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062   ac_header_preproc=no
16063 fi
16064
16065 rm -f conftest.err conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067 echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069 # So?  What about this header?
16070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071   yes:no: )
16072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076     ac_header_preproc=yes
16077     ;;
16078   no:yes:* )
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091     ( cat <<\_ASBOX
16092 ## ------------------------------------ ##
16093 ## Report this to http://llvm.org/bugs/ ##
16094 ## ------------------------------------ ##
16095 _ASBOX
16096      ) | sed "s/^/$as_me: WARNING:     /" >&2
16097     ;;
16098 esac
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   eval "$as_ac_Header=\$ac_header_preproc"
16105 fi
16106 ac_res=`eval echo '${'$as_ac_Header'}'`
16107                { echo "$as_me:$LINENO: result: $ac_res" >&5
16108 echo "${ECHO_T}$ac_res" >&6; }
16109
16110 fi
16111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112   cat >>confdefs.h <<_ACEOF
16113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16114 _ACEOF
16115
16116 fi
16117
16118 done
16119
16120 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16121 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16122 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16123   echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125   cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h.  */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h.  */
16131 #include <fenv.h>
16132
16133 int
16134 main ()
16135 {
16136 #ifndef FE_ALL_EXCEPT
16137   char *p = (char *) FE_ALL_EXCEPT;
16138   return !p;
16139 #endif
16140
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149   *) ac_try_echo=$ac_try;;
16150 esac
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152   (eval "$ac_compile") 2>conftest.er1
16153   ac_status=$?
16154   grep -v '^ *+' conftest.er1 >conftest.err
16155   rm -f conftest.er1
16156   cat conftest.err >&5
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } &&
16159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16160   { (case "(($ac_try" in
16161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162   *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165   (eval "$ac_try") 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; } &&
16169          { ac_try='test -s conftest.$ac_objext'
16170   { (case "(($ac_try" in
16171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172   *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175   (eval "$ac_try") 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16180 else
16181   echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16183
16184         ac_cv_have_decl_FE_ALL_EXCEPT=no
16185 fi
16186
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 fi
16189 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16190 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16191 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16192
16193 cat >>confdefs.h <<_ACEOF
16194 #define HAVE_DECL_FE_ALL_EXCEPT 1
16195 _ACEOF
16196
16197
16198 else
16199   cat >>confdefs.h <<_ACEOF
16200 #define HAVE_DECL_FE_ALL_EXCEPT 0
16201 _ACEOF
16202
16203
16204 fi
16205 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16206 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16207 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 #include <fenv.h>
16217
16218 int
16219 main ()
16220 {
16221 #ifndef FE_INEXACT
16222   char *p = (char *) FE_INEXACT;
16223   return !p;
16224 #endif
16225
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext
16231 if { (ac_try="$ac_compile"
16232 case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_compile") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245   { (case "(($ac_try" in
16246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247   *) ac_try_echo=$ac_try;;
16248 esac
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250   (eval "$ac_try") 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); }; } &&
16254          { ac_try='test -s conftest.$ac_objext'
16255   { (case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260   (eval "$ac_try") 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_cv_have_decl_FE_INEXACT=yes
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269         ac_cv_have_decl_FE_INEXACT=no
16270 fi
16271
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 fi
16274 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16275 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16276 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16277
16278 cat >>confdefs.h <<_ACEOF
16279 #define HAVE_DECL_FE_INEXACT 1
16280 _ACEOF
16281
16282
16283 else
16284   cat >>confdefs.h <<_ACEOF
16285 #define HAVE_DECL_FE_INEXACT 0
16286 _ACEOF
16287
16288
16289 fi
16290
16291
16292 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16293
16294 for ac_header in pthread.h
16295 do
16296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301   echo $ECHO_N "(cached) $ECHO_C" >&6
16302 fi
16303 ac_res=`eval echo '${'$as_ac_Header'}'`
16304                { echo "$as_me:$LINENO: result: $ac_res" >&5
16305 echo "${ECHO_T}$ac_res" >&6; }
16306 else
16307   # Is the header compilable?
16308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316 $ac_includes_default
16317 #include <$ac_header>
16318 _ACEOF
16319 rm -f conftest.$ac_objext
16320 if { (ac_try="$ac_compile"
16321 case "(($ac_try" in
16322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323   *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326   (eval "$ac_compile") 2>conftest.er1
16327   ac_status=$?
16328   grep -v '^ *+' conftest.er1 >conftest.err
16329   rm -f conftest.er1
16330   cat conftest.err >&5
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } &&
16333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16334   { (case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_try") 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; } &&
16343          { ac_try='test -s conftest.$ac_objext'
16344   { (case "(($ac_try" in
16345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346   *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349   (eval "$ac_try") 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; }; then
16353   ac_header_compiler=yes
16354 else
16355   echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358         ac_header_compiler=no
16359 fi
16360
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16363 echo "${ECHO_T}$ac_header_compiler" >&6; }
16364
16365 # Is the header present?
16366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 #include <$ac_header>
16375 _ACEOF
16376 if { (ac_try="$ac_cpp conftest.$ac_ext"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } >/dev/null; then
16389   if test -s conftest.err; then
16390     ac_cpp_err=$ac_c_preproc_warn_flag
16391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16392   else
16393     ac_cpp_err=
16394   fi
16395 else
16396   ac_cpp_err=yes
16397 fi
16398 if test -z "$ac_cpp_err"; then
16399   ac_header_preproc=yes
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404   ac_header_preproc=no
16405 fi
16406
16407 rm -f conftest.err conftest.$ac_ext
16408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16409 echo "${ECHO_T}$ac_header_preproc" >&6; }
16410
16411 # So?  What about this header?
16412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16413   yes:no: )
16414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16418     ac_header_preproc=yes
16419     ;;
16420   no:yes:* )
16421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16433     ( cat <<\_ASBOX
16434 ## ------------------------------------ ##
16435 ## Report this to http://llvm.org/bugs/ ##
16436 ## ------------------------------------ ##
16437 _ASBOX
16438      ) | sed "s/^/$as_me: WARNING:     /" >&2
16439     ;;
16440 esac
16441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16444   echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446   eval "$as_ac_Header=\$ac_header_preproc"
16447 fi
16448 ac_res=`eval echo '${'$as_ac_Header'}'`
16449                { echo "$as_me:$LINENO: result: $ac_res" >&5
16450 echo "${ECHO_T}$ac_res" >&6; }
16451
16452 fi
16453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16454   cat >>confdefs.h <<_ACEOF
16455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16456 _ACEOF
16457  HAVE_PTHREAD=1
16458
16459 else
16460   HAVE_PTHREAD=0
16461
16462 fi
16463
16464 done
16465
16466 else
16467   HAVE_PTHREAD=0
16468
16469 fi
16470 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16471
16472 for ac_header in zlib.h
16473 do
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 fi
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482                { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16484 else
16485   # Is the header compilable?
16486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 $ac_includes_default
16495 #include <$ac_header>
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_compile") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } &&
16511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512   { (case "(($ac_try" in
16513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514   *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517   (eval "$ac_try") 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; } &&
16521          { ac_try='test -s conftest.$ac_objext'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531   ac_header_compiler=yes
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536         ac_header_compiler=no
16537 fi
16538
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16541 echo "${ECHO_T}$ac_header_compiler" >&6; }
16542
16543 # Is the header present?
16544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h.  */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h.  */
16552 #include <$ac_header>
16553 _ACEOF
16554 if { (ac_try="$ac_cpp conftest.$ac_ext"
16555 case "(($ac_try" in
16556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557   *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16561   ac_status=$?
16562   grep -v '^ *+' conftest.er1 >conftest.err
16563   rm -f conftest.er1
16564   cat conftest.err >&5
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); } >/dev/null; then
16567   if test -s conftest.err; then
16568     ac_cpp_err=$ac_c_preproc_warn_flag
16569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16570   else
16571     ac_cpp_err=
16572   fi
16573 else
16574   ac_cpp_err=yes
16575 fi
16576 if test -z "$ac_cpp_err"; then
16577   ac_header_preproc=yes
16578 else
16579   echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582   ac_header_preproc=no
16583 fi
16584
16585 rm -f conftest.err conftest.$ac_ext
16586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16587 echo "${ECHO_T}$ac_header_preproc" >&6; }
16588
16589 # So?  What about this header?
16590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16591   yes:no: )
16592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16596     ac_header_preproc=yes
16597     ;;
16598   no:yes:* )
16599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16611     ( cat <<\_ASBOX
16612 ## ------------------------------------ ##
16613 ## Report this to http://llvm.org/bugs/ ##
16614 ## ------------------------------------ ##
16615 _ASBOX
16616      ) | sed "s/^/$as_me: WARNING:     /" >&2
16617     ;;
16618 esac
16619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16622   echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624   eval "$as_ac_Header=\$ac_header_preproc"
16625 fi
16626 ac_res=`eval echo '${'$as_ac_Header'}'`
16627                { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16629
16630 fi
16631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16632   cat >>confdefs.h <<_ACEOF
16633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16634 _ACEOF
16635  HAVE_LIBZ=1
16636
16637 else
16638   HAVE_LIBZ=0
16639
16640 fi
16641
16642 done
16643
16644 else
16645   HAVE_LIBZ=0
16646
16647 fi
16648
16649 if test "$llvm_cv_enable_libffi" = "yes" ; then
16650
16651
16652 for ac_header in ffi.h ffi/ffi.h
16653 do
16654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16659   echo $ECHO_N "(cached) $ECHO_C" >&6
16660 fi
16661 ac_res=`eval echo '${'$as_ac_Header'}'`
16662                { echo "$as_me:$LINENO: result: $ac_res" >&5
16663 echo "${ECHO_T}$ac_res" >&6; }
16664 else
16665   # Is the header compilable?
16666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16669 /* confdefs.h.  */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h.  */
16674 $ac_includes_default
16675 #include <$ac_header>
16676 _ACEOF
16677 rm -f conftest.$ac_objext
16678 if { (ac_try="$ac_compile"
16679 case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_compile") 2>conftest.er1
16685   ac_status=$?
16686   grep -v '^ *+' conftest.er1 >conftest.err
16687   rm -f conftest.er1
16688   cat conftest.err >&5
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); } &&
16691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692   { (case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_try") 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; } &&
16701          { ac_try='test -s conftest.$ac_objext'
16702   { (case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_try") 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_header_compiler=yes
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716         ac_header_compiler=no
16717 fi
16718
16719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16721 echo "${ECHO_T}$ac_header_compiler" >&6; }
16722
16723 # Is the header present?
16724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16726 cat >conftest.$ac_ext <<_ACEOF
16727 /* confdefs.h.  */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h.  */
16732 #include <$ac_header>
16733 _ACEOF
16734 if { (ac_try="$ac_cpp conftest.$ac_ext"
16735 case "(($ac_try" in
16736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737   *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16741   ac_status=$?
16742   grep -v '^ *+' conftest.er1 >conftest.err
16743   rm -f conftest.er1
16744   cat conftest.err >&5
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } >/dev/null; then
16747   if test -s conftest.err; then
16748     ac_cpp_err=$ac_c_preproc_warn_flag
16749     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16750   else
16751     ac_cpp_err=
16752   fi
16753 else
16754   ac_cpp_err=yes
16755 fi
16756 if test -z "$ac_cpp_err"; then
16757   ac_header_preproc=yes
16758 else
16759   echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762   ac_header_preproc=no
16763 fi
16764
16765 rm -f conftest.err conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16767 echo "${ECHO_T}$ac_header_preproc" >&6; }
16768
16769 # So?  What about this header?
16770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16771   yes:no: )
16772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16776     ac_header_preproc=yes
16777     ;;
16778   no:yes:* )
16779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16791     ( cat <<\_ASBOX
16792 ## ------------------------------------ ##
16793 ## Report this to http://llvm.org/bugs/ ##
16794 ## ------------------------------------ ##
16795 _ASBOX
16796      ) | sed "s/^/$as_me: WARNING:     /" >&2
16797     ;;
16798 esac
16799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804   eval "$as_ac_Header=\$ac_header_preproc"
16805 fi
16806 ac_res=`eval echo '${'$as_ac_Header'}'`
16807                { echo "$as_me:$LINENO: result: $ac_res" >&5
16808 echo "${ECHO_T}$ac_res" >&6; }
16809
16810 fi
16811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16812   cat >>confdefs.h <<_ACEOF
16813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16814 _ACEOF
16815
16816 fi
16817
16818 done
16819
16820 fi
16821
16822
16823 for ac_header in CrashReporterClient.h
16824 do
16825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16830   echo $ECHO_N "(cached) $ECHO_C" >&6
16831 fi
16832 ac_res=`eval echo '${'$as_ac_Header'}'`
16833                { echo "$as_me:$LINENO: result: $ac_res" >&5
16834 echo "${ECHO_T}$ac_res" >&6; }
16835 else
16836   # Is the header compilable?
16837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h.  */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h.  */
16845 $ac_includes_default
16846 #include <$ac_header>
16847 _ACEOF
16848 rm -f conftest.$ac_objext
16849 if { (ac_try="$ac_compile"
16850 case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855   (eval "$ac_compile") 2>conftest.er1
16856   ac_status=$?
16857   grep -v '^ *+' conftest.er1 >conftest.err
16858   rm -f conftest.er1
16859   cat conftest.err >&5
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } &&
16862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16863   { (case "(($ac_try" in
16864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865   *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868   (eval "$ac_try") 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; } &&
16872          { ac_try='test -s conftest.$ac_objext'
16873   { (case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_try") 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; }; then
16882   ac_header_compiler=yes
16883 else
16884   echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887         ac_header_compiler=no
16888 fi
16889
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16892 echo "${ECHO_T}$ac_header_compiler" >&6; }
16893
16894 # Is the header present?
16895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h.  */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h.  */
16903 #include <$ac_header>
16904 _ACEOF
16905 if { (ac_try="$ac_cpp conftest.$ac_ext"
16906 case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } >/dev/null; then
16918   if test -s conftest.err; then
16919     ac_cpp_err=$ac_c_preproc_warn_flag
16920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16921   else
16922     ac_cpp_err=
16923   fi
16924 else
16925   ac_cpp_err=yes
16926 fi
16927 if test -z "$ac_cpp_err"; then
16928   ac_header_preproc=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933   ac_header_preproc=no
16934 fi
16935
16936 rm -f conftest.err conftest.$ac_ext
16937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16938 echo "${ECHO_T}$ac_header_preproc" >&6; }
16939
16940 # So?  What about this header?
16941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16942   yes:no: )
16943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16947     ac_header_preproc=yes
16948     ;;
16949   no:yes:* )
16950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16962     ( cat <<\_ASBOX
16963 ## ------------------------------------ ##
16964 ## Report this to http://llvm.org/bugs/ ##
16965 ## ------------------------------------ ##
16966 _ASBOX
16967      ) | sed "s/^/$as_me: WARNING:     /" >&2
16968     ;;
16969 esac
16970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16973   echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975   eval "$as_ac_Header=\$ac_header_preproc"
16976 fi
16977 ac_res=`eval echo '${'$as_ac_Header'}'`
16978                { echo "$as_me:$LINENO: result: $ac_res" >&5
16979 echo "${ECHO_T}$ac_res" >&6; }
16980
16981 fi
16982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16983   cat >>confdefs.h <<_ACEOF
16984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16985 _ACEOF
16986
16987 fi
16988
16989 done
16990
16991
16992 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16993 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16995
16996   /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001
17002     extern const char *__crashreporter_info__;
17003     int main() {
17004       __crashreporter_info__ = "test";
17005       return 0;
17006     }
17007
17008
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017   (eval "$ac_link") 2>conftest.er1
17018   ac_status=$?
17019   grep -v '^ *+' conftest.er1 >conftest.err
17020   rm -f conftest.er1
17021   cat conftest.err >&5
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); } &&
17024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025   { (case "(($ac_try" in
17026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027   *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030   (eval "$ac_try") 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_try") 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); }; }; then
17044
17045   { echo "$as_me:$LINENO: result: yes" >&5
17046 echo "${ECHO_T}yes" >&6; }
17047
17048 cat >>confdefs.h <<\_ACEOF
17049 #define HAVE_CRASHREPORTER_INFO 1
17050 _ACEOF
17051
17052
17053 else
17054   echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057
17058   { echo "$as_me:$LINENO: result: no" >&5
17059 echo "${ECHO_T}no" >&6; }
17060
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_CRASHREPORTER_INFO 0
17063 _ACEOF
17064
17065
17066 fi
17067
17068 rm -f core conftest.err conftest.$ac_objext \
17069       conftest$ac_exeext conftest.$ac_ext
17070
17071
17072
17073   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17074 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17075 if test "${ac_cv_huge_val_sanity+set}" = set; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078
17079     ac_ext=cpp
17080 ac_cpp='$CXXCPP $CPPFLAGS'
17081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17084
17085     ac_save_CXXFLAGS=$CXXFLAGS
17086     CXXFLAGS="$CXXFLAGS -pedantic"
17087     if test "$cross_compiling" = yes; then
17088   ac_cv_huge_val_sanity=yes
17089 else
17090   cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096 #include <math.h>
17097 int
17098 main ()
17099 {
17100 double x = HUGE_VAL; return x != x;
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_link") 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17116   { (case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_try") 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   ac_cv_huge_val_sanity=yes
17126 else
17127   echo "$as_me: program exited with status $ac_status" >&5
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 ( exit $ac_status )
17132 ac_cv_huge_val_sanity=no
17133 fi
17134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17135 fi
17136
17137
17138     CXXFLAGS=$ac_save_CXXFLAGS
17139     ac_ext=c
17140 ac_cpp='$CPP $CPPFLAGS'
17141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17144
17145
17146 fi
17147 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17148 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17149   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17150
17151
17152 { echo "$as_me:$LINENO: checking for pid_t" >&5
17153 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17154 if test "${ac_cv_type_pid_t+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157   cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h.  */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h.  */
17163 $ac_includes_default
17164 typedef pid_t ac__type_new_;
17165 int
17166 main ()
17167 {
17168 if ((ac__type_new_ *) 0)
17169   return 0;
17170 if (sizeof (ac__type_new_))
17171   return 0;
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183   (eval "$ac_compile") 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } &&
17190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17191   { (case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_try") 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; } &&
17200          { ac_try='test -s conftest.$ac_objext'
17201   { (case "(($ac_try" in
17202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203   *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206   (eval "$ac_try") 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   ac_cv_type_pid_t=yes
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215         ac_cv_type_pid_t=no
17216 fi
17217
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 fi
17220 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17222 if test $ac_cv_type_pid_t = yes; then
17223   :
17224 else
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define pid_t int
17228 _ACEOF
17229
17230 fi
17231
17232 { echo "$as_me:$LINENO: checking for size_t" >&5
17233 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17234 if test "${ac_cv_type_size_t+set}" = set; then
17235   echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237   cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243 $ac_includes_default
17244 typedef size_t ac__type_new_;
17245 int
17246 main ()
17247 {
17248 if ((ac__type_new_ *) 0)
17249   return 0;
17250 if (sizeof (ac__type_new_))
17251   return 0;
17252   ;
17253   return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext
17257 if { (ac_try="$ac_compile"
17258 case "(($ac_try" in
17259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260   *) ac_try_echo=$ac_try;;
17261 esac
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263   (eval "$ac_compile") 2>conftest.er1
17264   ac_status=$?
17265   grep -v '^ *+' conftest.er1 >conftest.err
17266   rm -f conftest.er1
17267   cat conftest.err >&5
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); } &&
17270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17271   { (case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276   (eval "$ac_try") 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); }; } &&
17280          { ac_try='test -s conftest.$ac_objext'
17281   { (case "(($ac_try" in
17282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283   *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286   (eval "$ac_try") 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); }; }; then
17290   ac_cv_type_size_t=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         ac_cv_type_size_t=no
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 fi
17300 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17301 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17302 if test $ac_cv_type_size_t = yes; then
17303   :
17304 else
17305
17306 cat >>confdefs.h <<_ACEOF
17307 #define size_t unsigned int
17308 _ACEOF
17309
17310 fi
17311
17312
17313 cat >>confdefs.h <<_ACEOF
17314 #define RETSIGTYPE void
17315 _ACEOF
17316
17317 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17318 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17319 if test "${ac_cv_struct_tm+set}" = set; then
17320   echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322   cat >conftest.$ac_ext <<_ACEOF
17323 /* confdefs.h.  */
17324 _ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h.  */
17328 #include <sys/types.h>
17329 #include <time.h>
17330
17331 int
17332 main ()
17333 {
17334 struct tm *tp; tp->tm_sec;
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext
17340 if { (ac_try="$ac_compile"
17341 case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_compile") 2>conftest.er1
17347   ac_status=$?
17348   grep -v '^ *+' conftest.er1 >conftest.err
17349   rm -f conftest.er1
17350   cat conftest.err >&5
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } &&
17353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354   { (case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_try") 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); }; } &&
17363          { ac_try='test -s conftest.$ac_objext'
17364   { (case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_try") 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; }; then
17373   ac_cv_struct_tm=time.h
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         ac_cv_struct_tm=sys/time.h
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17382 fi
17383 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17384 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17385 if test $ac_cv_struct_tm = sys/time.h; then
17386
17387 cat >>confdefs.h <<\_ACEOF
17388 #define TM_IN_SYS_TIME 1
17389 _ACEOF
17390
17391 fi
17392
17393 { echo "$as_me:$LINENO: checking for int64_t" >&5
17394 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17395 if test "${ac_cv_type_int64_t+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h.  */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h.  */
17404 $ac_includes_default
17405 typedef int64_t ac__type_new_;
17406 int
17407 main ()
17408 {
17409 if ((ac__type_new_ *) 0)
17410   return 0;
17411 if (sizeof (ac__type_new_))
17412   return 0;
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_type_int64_t=yes
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456         ac_cv_type_int64_t=no
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_type_int64_t" >&5
17462 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17463 if test $ac_cv_type_int64_t = yes; then
17464
17465 cat >>confdefs.h <<_ACEOF
17466 #define HAVE_INT64_T 1
17467 _ACEOF
17468
17469
17470 else
17471   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17472 echo "$as_me: error: Type int64_t required but not found" >&2;}
17473    { (exit 1); exit 1; }; }
17474 fi
17475
17476 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17477 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17478 if test "${ac_cv_type_uint64_t+set}" = set; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487 $ac_includes_default
17488 typedef uint64_t ac__type_new_;
17489 int
17490 main ()
17491 {
17492 if ((ac__type_new_ *) 0)
17493   return 0;
17494 if (sizeof (ac__type_new_))
17495   return 0;
17496   ;
17497   return 0;
17498 }
17499 _ACEOF
17500 rm -f conftest.$ac_objext
17501 if { (ac_try="$ac_compile"
17502 case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_compile") 2>conftest.er1
17508   ac_status=$?
17509   grep -v '^ *+' conftest.er1 >conftest.err
17510   rm -f conftest.er1
17511   cat conftest.err >&5
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); } &&
17514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17515   { (case "(($ac_try" in
17516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517   *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520   (eval "$ac_try") 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; } &&
17524          { ac_try='test -s conftest.$ac_objext'
17525   { (case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530   (eval "$ac_try") 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; }; then
17534   ac_cv_type_uint64_t=yes
17535 else
17536   echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539         ac_cv_type_uint64_t=no
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 fi
17544 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17545 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17546 if test $ac_cv_type_uint64_t = yes; then
17547
17548 cat >>confdefs.h <<_ACEOF
17549 #define HAVE_UINT64_T 1
17550 _ACEOF
17551
17552
17553 else
17554   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17555 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17556 if test "${ac_cv_type_u_int64_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 u_int64_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_u_int64_t=yes
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         ac_cv_type_u_int64_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_u_int64_t" >&5
17623 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17624 if test $ac_cv_type_u_int64_t = yes; then
17625
17626 cat >>confdefs.h <<_ACEOF
17627 #define HAVE_U_INT64_T 1
17628 _ACEOF
17629
17630
17631 else
17632   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17633 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17634    { (exit 1); exit 1; }; }
17635 fi
17636
17637 fi
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17649 do
17650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656   cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17664 #define $ac_func innocuous_$ac_func
17665
17666 /* System header to define __stub macros and hopefully few prototypes,
17667     which can conflict with char $ac_func (); below.
17668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669     <limits.h> exists even on freestanding compilers.  */
17670
17671 #ifdef __STDC__
17672 # include <limits.h>
17673 #else
17674 # include <assert.h>
17675 #endif
17676
17677 #undef $ac_func
17678
17679 /* Override any GCC internal prototype to avoid an error.
17680    Use char because int might match the return type of a GCC
17681    builtin and then its argument prototype would still apply.  */
17682 #ifdef __cplusplus
17683 extern "C"
17684 #endif
17685 char $ac_func ();
17686 /* The GNU C library defines this for functions which it implements
17687     to always fail with ENOSYS.  Some functions are actually named
17688     something starting with __ and the normal name is an alias.  */
17689 #if defined __stub_$ac_func || defined __stub___$ac_func
17690 choke me
17691 #endif
17692
17693 int
17694 main ()
17695 {
17696 return $ac_func ();
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_link") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; } &&
17725          { ac_try='test -s conftest$ac_exeext'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   eval "$as_ac_var=yes"
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         eval "$as_ac_var=no"
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext \
17744       conftest$ac_exeext conftest.$ac_ext
17745 fi
17746 ac_res=`eval echo '${'$as_ac_var'}'`
17747                { echo "$as_me:$LINENO: result: $ac_res" >&5
17748 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_var'}'` = yes; then
17750   cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17752 _ACEOF
17753
17754 fi
17755 done
17756
17757
17758
17759
17760
17761 for ac_func in powf fmodf strtof round
17762 do
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17777 #define $ac_func innocuous_$ac_func
17778
17779 /* System header to define __stub macros and hopefully few prototypes,
17780     which can conflict with char $ac_func (); below.
17781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782     <limits.h> exists even on freestanding compilers.  */
17783
17784 #ifdef __STDC__
17785 # include <limits.h>
17786 #else
17787 # include <assert.h>
17788 #endif
17789
17790 #undef $ac_func
17791
17792 /* Override any GCC internal prototype to avoid an error.
17793    Use char because int might match the return type of a GCC
17794    builtin and then its argument prototype would still apply.  */
17795 #ifdef __cplusplus
17796 extern "C"
17797 #endif
17798 char $ac_func ();
17799 /* The GNU C library defines this for functions which it implements
17800     to always fail with ENOSYS.  Some functions are actually named
17801     something starting with __ and the normal name is an alias.  */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17803 choke me
17804 #endif
17805
17806 int
17807 main ()
17808 {
17809 return $ac_func ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_link") 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829   { (case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_try") 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; } &&
17838          { ac_try='test -s conftest$ac_exeext'
17839   { (case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_try") 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   eval "$as_ac_var=yes"
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853         eval "$as_ac_var=no"
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext \
17857       conftest$ac_exeext conftest.$ac_ext
17858 fi
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860                { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863   cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 _ACEOF
17866
17867 fi
17868 done
17869
17870
17871
17872
17873
17874
17875 for ac_func in log log2 log10 exp exp2
17876 do
17877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883   cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17891 #define $ac_func innocuous_$ac_func
17892
17893 /* System header to define __stub macros and hopefully few prototypes,
17894     which can conflict with char $ac_func (); below.
17895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17896     <limits.h> exists even on freestanding compilers.  */
17897
17898 #ifdef __STDC__
17899 # include <limits.h>
17900 #else
17901 # include <assert.h>
17902 #endif
17903
17904 #undef $ac_func
17905
17906 /* Override any GCC internal prototype to avoid an error.
17907    Use char because int might match the return type of a GCC
17908    builtin and then its argument prototype would still apply.  */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char $ac_func ();
17913 /* The GNU C library defines this for functions which it implements
17914     to always fail with ENOSYS.  Some functions are actually named
17915     something starting with __ and the normal name is an alias.  */
17916 #if defined __stub_$ac_func || defined __stub___$ac_func
17917 choke me
17918 #endif
17919
17920 int
17921 main ()
17922 {
17923 return $ac_func ();
17924   ;
17925   return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932   *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935   (eval "$ac_link") 2>conftest.er1
17936   ac_status=$?
17937   grep -v '^ *+' conftest.er1 >conftest.err
17938   rm -f conftest.er1
17939   cat conftest.err >&5
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); } &&
17942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17943   { (case "(($ac_try" in
17944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945   *) ac_try_echo=$ac_try;;
17946 esac
17947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948   (eval "$ac_try") 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); }; } &&
17952          { ac_try='test -s conftest$ac_exeext'
17953   { (case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958   (eval "$ac_try") 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   eval "$as_ac_var=yes"
17963 else
17964   echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17966
17967         eval "$as_ac_var=no"
17968 fi
17969
17970 rm -f core conftest.err conftest.$ac_objext \
17971       conftest$ac_exeext conftest.$ac_ext
17972 fi
17973 ac_res=`eval echo '${'$as_ac_var'}'`
17974                { echo "$as_me:$LINENO: result: $ac_res" >&5
17975 echo "${ECHO_T}$ac_res" >&6; }
17976 if test `eval echo '${'$as_ac_var'}'` = yes; then
17977   cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17979 _ACEOF
17980
17981 fi
17982 done
17983
17984
17985
17986
17987
17988
17989 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17990 do
17991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17995   echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997   cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18005 #define $ac_func innocuous_$ac_func
18006
18007 /* System header to define __stub macros and hopefully few prototypes,
18008     which can conflict with char $ac_func (); below.
18009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010     <limits.h> exists even on freestanding compilers.  */
18011
18012 #ifdef __STDC__
18013 # include <limits.h>
18014 #else
18015 # include <assert.h>
18016 #endif
18017
18018 #undef $ac_func
18019
18020 /* Override any GCC internal prototype to avoid an error.
18021    Use char because int might match the return type of a GCC
18022    builtin and then its argument prototype would still apply.  */
18023 #ifdef __cplusplus
18024 extern "C"
18025 #endif
18026 char $ac_func ();
18027 /* The GNU C library defines this for functions which it implements
18028     to always fail with ENOSYS.  Some functions are actually named
18029     something starting with __ and the normal name is an alias.  */
18030 #if defined __stub_$ac_func || defined __stub___$ac_func
18031 choke me
18032 #endif
18033
18034 int
18035 main ()
18036 {
18037 return $ac_func ();
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046   *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049   (eval "$ac_link") 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } &&
18056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18057   { (case "(($ac_try" in
18058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059   *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062   (eval "$ac_try") 2>&5
18063   ac_status=$?
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); }; } &&
18066          { ac_try='test -s conftest$ac_exeext'
18067   { (case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_try") 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; }; then
18076   eval "$as_ac_var=yes"
18077 else
18078   echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18080
18081         eval "$as_ac_var=no"
18082 fi
18083
18084 rm -f core conftest.err conftest.$ac_objext \
18085       conftest$ac_exeext conftest.$ac_ext
18086 fi
18087 ac_res=`eval echo '${'$as_ac_var'}'`
18088                { echo "$as_me:$LINENO: result: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18090 if test `eval echo '${'$as_ac_var'}'` = yes; then
18091   cat >>confdefs.h <<_ACEOF
18092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18093 _ACEOF
18094
18095 fi
18096 done
18097
18098
18099
18100
18101 for ac_func in isatty mkdtemp mkstemp
18102 do
18103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h.  */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h.  */
18115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18117 #define $ac_func innocuous_$ac_func
18118
18119 /* System header to define __stub macros and hopefully few prototypes,
18120     which can conflict with char $ac_func (); below.
18121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18122     <limits.h> exists even on freestanding compilers.  */
18123
18124 #ifdef __STDC__
18125 # include <limits.h>
18126 #else
18127 # include <assert.h>
18128 #endif
18129
18130 #undef $ac_func
18131
18132 /* Override any GCC internal prototype to avoid an error.
18133    Use char because int might match the return type of a GCC
18134    builtin and then its argument prototype would still apply.  */
18135 #ifdef __cplusplus
18136 extern "C"
18137 #endif
18138 char $ac_func ();
18139 /* The GNU C library defines this for functions which it implements
18140     to always fail with ENOSYS.  Some functions are actually named
18141     something starting with __ and the normal name is an alias.  */
18142 #if defined __stub_$ac_func || defined __stub___$ac_func
18143 choke me
18144 #endif
18145
18146 int
18147 main ()
18148 {
18149 return $ac_func ();
18150   ;
18151   return 0;
18152 }
18153 _ACEOF
18154 rm -f conftest.$ac_objext conftest$ac_exeext
18155 if { (ac_try="$ac_link"
18156 case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_link") 2>conftest.er1
18162   ac_status=$?
18163   grep -v '^ *+' conftest.er1 >conftest.err
18164   rm -f conftest.er1
18165   cat conftest.err >&5
18166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); } &&
18168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169   { (case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_try") 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; } &&
18178          { ac_try='test -s conftest$ac_exeext'
18179   { (case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_try") 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; }; then
18188   eval "$as_ac_var=yes"
18189 else
18190   echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18192
18193         eval "$as_ac_var=no"
18194 fi
18195
18196 rm -f core conftest.err conftest.$ac_objext \
18197       conftest$ac_exeext conftest.$ac_ext
18198 fi
18199 ac_res=`eval echo '${'$as_ac_var'}'`
18200                { echo "$as_me:$LINENO: result: $ac_res" >&5
18201 echo "${ECHO_T}$ac_res" >&6; }
18202 if test `eval echo '${'$as_ac_var'}'` = yes; then
18203   cat >>confdefs.h <<_ACEOF
18204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18205 _ACEOF
18206
18207 fi
18208 done
18209
18210
18211
18212
18213
18214
18215
18216 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18217 do
18218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18222   echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224   cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h.  */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h.  */
18230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18232 #define $ac_func innocuous_$ac_func
18233
18234 /* System header to define __stub macros and hopefully few prototypes,
18235     which can conflict with char $ac_func (); below.
18236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18237     <limits.h> exists even on freestanding compilers.  */
18238
18239 #ifdef __STDC__
18240 # include <limits.h>
18241 #else
18242 # include <assert.h>
18243 #endif
18244
18245 #undef $ac_func
18246
18247 /* Override any GCC internal prototype to avoid an error.
18248    Use char because int might match the return type of a GCC
18249    builtin and then its argument prototype would still apply.  */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 char $ac_func ();
18254 /* The GNU C library defines this for functions which it implements
18255     to always fail with ENOSYS.  Some functions are actually named
18256     something starting with __ and the normal name is an alias.  */
18257 #if defined __stub_$ac_func || defined __stub___$ac_func
18258 choke me
18259 #endif
18260
18261 int
18262 main ()
18263 {
18264 return $ac_func ();
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
18271 case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_link") 2>conftest.er1
18277   ac_status=$?
18278   grep -v '^ *+' conftest.er1 >conftest.err
18279   rm -f conftest.er1
18280   cat conftest.err >&5
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } &&
18283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18284   { (case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_try") 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }; } &&
18293          { ac_try='test -s conftest$ac_exeext'
18294   { (case "(($ac_try" in
18295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296   *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299   (eval "$ac_try") 2>&5
18300   ac_status=$?
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); }; }; then
18303   eval "$as_ac_var=yes"
18304 else
18305   echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308         eval "$as_ac_var=no"
18309 fi
18310
18311 rm -f core conftest.err conftest.$ac_objext \
18312       conftest$ac_exeext conftest.$ac_ext
18313 fi
18314 ac_res=`eval echo '${'$as_ac_var'}'`
18315                { echo "$as_me:$LINENO: result: $ac_res" >&5
18316 echo "${ECHO_T}$ac_res" >&6; }
18317 if test `eval echo '${'$as_ac_var'}'` = yes; then
18318   cat >>confdefs.h <<_ACEOF
18319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18320 _ACEOF
18321
18322 fi
18323 done
18324
18325
18326
18327
18328
18329 for ac_func in strerror strerror_r setenv arc4random
18330 do
18331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18335   echo $ECHO_N "(cached) $ECHO_C" >&6
18336 else
18337   cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18345 #define $ac_func innocuous_$ac_func
18346
18347 /* System header to define __stub macros and hopefully few prototypes,
18348     which can conflict with char $ac_func (); below.
18349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18350     <limits.h> exists even on freestanding compilers.  */
18351
18352 #ifdef __STDC__
18353 # include <limits.h>
18354 #else
18355 # include <assert.h>
18356 #endif
18357
18358 #undef $ac_func
18359
18360 /* Override any GCC internal prototype to avoid an error.
18361    Use char because int might match the return type of a GCC
18362    builtin and then its argument prototype would still apply.  */
18363 #ifdef __cplusplus
18364 extern "C"
18365 #endif
18366 char $ac_func ();
18367 /* The GNU C library defines this for functions which it implements
18368     to always fail with ENOSYS.  Some functions are actually named
18369     something starting with __ and the normal name is an alias.  */
18370 #if defined __stub_$ac_func || defined __stub___$ac_func
18371 choke me
18372 #endif
18373
18374 int
18375 main ()
18376 {
18377 return $ac_func ();
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (ac_try="$ac_link"
18384 case "(($ac_try" in
18385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386   *) ac_try_echo=$ac_try;;
18387 esac
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389   (eval "$ac_link") 2>conftest.er1
18390   ac_status=$?
18391   grep -v '^ *+' conftest.er1 >conftest.err
18392   rm -f conftest.er1
18393   cat conftest.err >&5
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); } &&
18396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18397   { (case "(($ac_try" in
18398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399   *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402   (eval "$ac_try") 2>&5
18403   ac_status=$?
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); }; } &&
18406          { ac_try='test -s conftest$ac_exeext'
18407   { (case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_try") 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; }; then
18416   eval "$as_ac_var=yes"
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421         eval "$as_ac_var=no"
18422 fi
18423
18424 rm -f core conftest.err conftest.$ac_objext \
18425       conftest$ac_exeext conftest.$ac_ext
18426 fi
18427 ac_res=`eval echo '${'$as_ac_var'}'`
18428                { echo "$as_me:$LINENO: result: $ac_res" >&5
18429 echo "${ECHO_T}$ac_res" >&6; }
18430 if test `eval echo '${'$as_ac_var'}'` = yes; then
18431   cat >>confdefs.h <<_ACEOF
18432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18433 _ACEOF
18434
18435 fi
18436 done
18437
18438
18439
18440
18441
18442 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18443 do
18444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450   cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18458 #define $ac_func innocuous_$ac_func
18459
18460 /* System header to define __stub macros and hopefully few prototypes,
18461     which can conflict with char $ac_func (); below.
18462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463     <limits.h> exists even on freestanding compilers.  */
18464
18465 #ifdef __STDC__
18466 # include <limits.h>
18467 #else
18468 # include <assert.h>
18469 #endif
18470
18471 #undef $ac_func
18472
18473 /* Override any GCC internal prototype to avoid an error.
18474    Use char because int might match the return type of a GCC
18475    builtin and then its argument prototype would still apply.  */
18476 #ifdef __cplusplus
18477 extern "C"
18478 #endif
18479 char $ac_func ();
18480 /* The GNU C library defines this for functions which it implements
18481     to always fail with ENOSYS.  Some functions are actually named
18482     something starting with __ and the normal name is an alias.  */
18483 #if defined __stub_$ac_func || defined __stub___$ac_func
18484 choke me
18485 #endif
18486
18487 int
18488 main ()
18489 {
18490 return $ac_func ();
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (ac_try="$ac_link"
18497 case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_link") 2>conftest.er1
18503   ac_status=$?
18504   grep -v '^ *+' conftest.er1 >conftest.err
18505   rm -f conftest.er1
18506   cat conftest.err >&5
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); } &&
18509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18510   { (case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_try") 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; } &&
18519          { ac_try='test -s conftest$ac_exeext'
18520   { (case "(($ac_try" in
18521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522   *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525   (eval "$ac_try") 2>&5
18526   ac_status=$?
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); }; }; then
18529   eval "$as_ac_var=yes"
18530 else
18531   echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18533
18534         eval "$as_ac_var=no"
18535 fi
18536
18537 rm -f core conftest.err conftest.$ac_objext \
18538       conftest$ac_exeext conftest.$ac_ext
18539 fi
18540 ac_res=`eval echo '${'$as_ac_var'}'`
18541                { echo "$as_me:$LINENO: result: $ac_res" >&5
18542 echo "${ECHO_T}$ac_res" >&6; }
18543 if test `eval echo '${'$as_ac_var'}'` = yes; then
18544   cat >>confdefs.h <<_ACEOF
18545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18546 _ACEOF
18547
18548 fi
18549 done
18550
18551
18552
18553
18554
18555
18556 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18557 do
18558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18562   echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564   cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h.  */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h.  */
18570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18572 #define $ac_func innocuous_$ac_func
18573
18574 /* System header to define __stub macros and hopefully few prototypes,
18575     which can conflict with char $ac_func (); below.
18576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18577     <limits.h> exists even on freestanding compilers.  */
18578
18579 #ifdef __STDC__
18580 # include <limits.h>
18581 #else
18582 # include <assert.h>
18583 #endif
18584
18585 #undef $ac_func
18586
18587 /* Override any GCC internal prototype to avoid an error.
18588    Use char because int might match the return type of a GCC
18589    builtin and then its argument prototype would still apply.  */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char $ac_func ();
18594 /* The GNU C library defines this for functions which it implements
18595     to always fail with ENOSYS.  Some functions are actually named
18596     something starting with __ and the normal name is an alias.  */
18597 #if defined __stub_$ac_func || defined __stub___$ac_func
18598 choke me
18599 #endif
18600
18601 int
18602 main ()
18603 {
18604 return $ac_func ();
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_link") 2>conftest.er1
18617   ac_status=$?
18618   grep -v '^ *+' conftest.er1 >conftest.err
18619   rm -f conftest.er1
18620   cat conftest.err >&5
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } &&
18623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624   { (case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629   (eval "$ac_try") 2>&5
18630   ac_status=$?
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); }; } &&
18633          { ac_try='test -s conftest$ac_exeext'
18634   { (case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_try") 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; }; then
18643   eval "$as_ac_var=yes"
18644 else
18645   echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648         eval "$as_ac_var=no"
18649 fi
18650
18651 rm -f core conftest.err conftest.$ac_objext \
18652       conftest$ac_exeext conftest.$ac_ext
18653 fi
18654 ac_res=`eval echo '${'$as_ac_var'}'`
18655                { echo "$as_me:$LINENO: result: $ac_res" >&5
18656 echo "${ECHO_T}$ac_res" >&6; }
18657 if test `eval echo '${'$as_ac_var'}'` = yes; then
18658   cat >>confdefs.h <<_ACEOF
18659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18660 _ACEOF
18661
18662 fi
18663 done
18664
18665
18666
18667 for ac_func in futimes futimens
18668 do
18669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18673   echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675   cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h.  */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h.  */
18681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18683 #define $ac_func innocuous_$ac_func
18684
18685 /* System header to define __stub macros and hopefully few prototypes,
18686     which can conflict with char $ac_func (); below.
18687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18688     <limits.h> exists even on freestanding compilers.  */
18689
18690 #ifdef __STDC__
18691 # include <limits.h>
18692 #else
18693 # include <assert.h>
18694 #endif
18695
18696 #undef $ac_func
18697
18698 /* Override any GCC internal prototype to avoid an error.
18699    Use char because int might match the return type of a GCC
18700    builtin and then its argument prototype would still apply.  */
18701 #ifdef __cplusplus
18702 extern "C"
18703 #endif
18704 char $ac_func ();
18705 /* The GNU C library defines this for functions which it implements
18706     to always fail with ENOSYS.  Some functions are actually named
18707     something starting with __ and the normal name is an alias.  */
18708 #if defined __stub_$ac_func || defined __stub___$ac_func
18709 choke me
18710 #endif
18711
18712 int
18713 main ()
18714 {
18715 return $ac_func ();
18716   ;
18717   return 0;
18718 }
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724   *) ac_try_echo=$ac_try;;
18725 esac
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727   (eval "$ac_link") 2>conftest.er1
18728   ac_status=$?
18729   grep -v '^ *+' conftest.er1 >conftest.err
18730   rm -f conftest.er1
18731   cat conftest.err >&5
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18735   { (case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_try") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; } &&
18744          { ac_try='test -s conftest$ac_exeext'
18745   { (case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_try") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; }; then
18754   eval "$as_ac_var=yes"
18755 else
18756   echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18758
18759         eval "$as_ac_var=no"
18760 fi
18761
18762 rm -f core conftest.err conftest.$ac_objext \
18763       conftest$ac_exeext conftest.$ac_ext
18764 fi
18765 ac_res=`eval echo '${'$as_ac_var'}'`
18766                { echo "$as_me:$LINENO: result: $ac_res" >&5
18767 echo "${ECHO_T}$ac_res" >&6; }
18768 if test `eval echo '${'$as_ac_var'}'` = yes; then
18769   cat >>confdefs.h <<_ACEOF
18770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18771 _ACEOF
18772
18773 fi
18774 done
18775
18776 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18777 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18778 if test "${llvm_cv_c_printf_a+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   ac_ext=c
18782 ac_cpp='$CPP $CPPFLAGS'
18783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786
18787  if test "$cross_compiling" = yes; then
18788   llvmac_cv_c_printf_a=no
18789 else
18790   cat >conftest.$ac_ext <<_ACEOF
18791
18792   /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797
18798 #include <stdio.h>
18799 #include <stdlib.h>
18800
18801 int
18802 main ()
18803 {
18804
18805 volatile double A, B;
18806 char Buffer[100];
18807 A = 1;
18808 A /= 10.0;
18809 sprintf(Buffer, "%a", A);
18810 B = atof(Buffer);
18811 if (A != B)
18812   return (1);
18813 if (A != 0x1.999999999999ap-4)
18814   return (1);
18815 return (0);
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_link") 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18831   { (case "(($ac_try" in
18832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833   *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836   (eval "$ac_try") 2>&5
18837   ac_status=$?
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); }; }; then
18840   llvm_cv_c_printf_a=yes
18841 else
18842   echo "$as_me: program exited with status $ac_status" >&5
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846 ( exit $ac_status )
18847 llvmac_cv_c_printf_a=no
18848 fi
18849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18850 fi
18851
18852
18853  ac_ext=c
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858
18859 fi
18860 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18861 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18862  if test "$llvm_cv_c_printf_a" = "yes"; then
18863
18864 cat >>confdefs.h <<\_ACEOF
18865 #define HAVE_PRINTF_A 1
18866 _ACEOF
18867
18868  fi
18869
18870
18871
18872   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18873 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18874 if test "${ac_cv_func_rand48+set}" = set; then
18875   echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877
18878     ac_ext=cpp
18879 ac_cpp='$CXXCPP $CPPFLAGS'
18880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18883
18884     cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h.  */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h.  */
18890 #include <stdlib.h>
18891 int
18892 main ()
18893 {
18894 srand48(0);lrand48();drand48();
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906   (eval "$ac_compile") 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } &&
18913          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18914   { (case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_try") 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; } &&
18923          { ac_try='test -s conftest.$ac_objext'
18924   { (case "(($ac_try" in
18925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926   *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929   (eval "$ac_try") 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; }; then
18933   ac_cv_func_rand48=yes
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938         ac_cv_func_rand48=no
18939 fi
18940
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942     ac_ext=c
18943 ac_cpp='$CPP $CPPFLAGS'
18944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18947
18948
18949 fi
18950 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18951 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18952
18953 if test "$ac_cv_func_rand48" = "yes" ; then
18954
18955 cat >>confdefs.h <<\_ACEOF
18956 #define HAVE_RAND48 1
18957 _ACEOF
18958
18959 fi
18960
18961
18962 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18963 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18964 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18965   echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967   cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973 $ac_includes_default
18974 int
18975 main ()
18976 {
18977 #ifndef strerror_s
18978   char *p = (char *) strerror_s;
18979   return !p;
18980 #endif
18981
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990   *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993   (eval "$ac_compile") 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } &&
19000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19001   { (case "(($ac_try" in
19002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003   *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006   (eval "$ac_try") 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); }; } &&
19010          { ac_try='test -s conftest.$ac_objext'
19011   { (case "(($ac_try" in
19012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013   *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016   (eval "$ac_try") 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; }; then
19020   ac_cv_have_decl_strerror_s=yes
19021 else
19022   echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025         ac_cv_have_decl_strerror_s=no
19026 fi
19027
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19029 fi
19030 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19031 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19032 if test $ac_cv_have_decl_strerror_s = yes; then
19033
19034 cat >>confdefs.h <<_ACEOF
19035 #define HAVE_DECL_STRERROR_S 1
19036 _ACEOF
19037
19038
19039 else
19040   cat >>confdefs.h <<_ACEOF
19041 #define HAVE_DECL_STRERROR_S 0
19042 _ACEOF
19043
19044
19045 fi
19046
19047
19048
19049 if test "$llvm_cv_os_type" = "MingW" ; then
19050   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19051 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19052 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19053   echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055   ac_check_lib_save_LIBS=$LIBS
19056 LIBS="-lgcc  $LIBS"
19057 cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063
19064 /* Override any GCC internal prototype to avoid an error.
19065    Use char because int might match the return type of a GCC
19066    builtin and then its argument prototype would still apply.  */
19067 #ifdef __cplusplus
19068 extern "C"
19069 #endif
19070 char _alloca ();
19071 int
19072 main ()
19073 {
19074 return _alloca ();
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (ac_try="$ac_link"
19081 case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086   (eval "$ac_link") 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } &&
19093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19094   { (case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_try") 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; } &&
19103          { ac_try='test -s conftest$ac_exeext'
19104   { (case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_try") 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; }; then
19113   ac_cv_lib_gcc__alloca=yes
19114 else
19115   echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118         ac_cv_lib_gcc__alloca=no
19119 fi
19120
19121 rm -f core conftest.err conftest.$ac_objext \
19122       conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19124 fi
19125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19126 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19127 if test $ac_cv_lib_gcc__alloca = yes; then
19128
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE__ALLOCA 1
19131 _ACEOF
19132
19133 fi
19134
19135   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19136 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19137 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   ac_check_lib_save_LIBS=$LIBS
19141 LIBS="-lgcc  $LIBS"
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148
19149 /* Override any GCC internal prototype to avoid an error.
19150    Use char because int might match the return type of a GCC
19151    builtin and then its argument prototype would still apply.  */
19152 #ifdef __cplusplus
19153 extern "C"
19154 #endif
19155 char __alloca ();
19156 int
19157 main ()
19158 {
19159 return __alloca ();
19160   ;
19161   return 0;
19162 }
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168   *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171   (eval "$ac_link") 2>conftest.er1
19172   ac_status=$?
19173   grep -v '^ *+' conftest.er1 >conftest.err
19174   rm -f conftest.er1
19175   cat conftest.err >&5
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); } &&
19178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19179   { (case "(($ac_try" in
19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181   *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184   (eval "$ac_try") 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; } &&
19188          { ac_try='test -s conftest$ac_exeext'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; }; then
19198   ac_cv_lib_gcc___alloca=yes
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203         ac_cv_lib_gcc___alloca=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext \
19207       conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19209 fi
19210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19211 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19212 if test $ac_cv_lib_gcc___alloca = yes; then
19213
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE___ALLOCA 1
19216 _ACEOF
19217
19218 fi
19219
19220   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19221 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19222 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19223   echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225   ac_check_lib_save_LIBS=$LIBS
19226 LIBS="-lgcc  $LIBS"
19227 cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h.  */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h.  */
19233
19234 /* Override any GCC internal prototype to avoid an error.
19235    Use char because int might match the return type of a GCC
19236    builtin and then its argument prototype would still apply.  */
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 char __chkstk ();
19241 int
19242 main ()
19243 {
19244 return __chkstk ();
19245   ;
19246   return 0;
19247 }
19248 _ACEOF
19249 rm -f conftest.$ac_objext conftest$ac_exeext
19250 if { (ac_try="$ac_link"
19251 case "(($ac_try" in
19252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253   *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256   (eval "$ac_link") 2>conftest.er1
19257   ac_status=$?
19258   grep -v '^ *+' conftest.er1 >conftest.err
19259   rm -f conftest.er1
19260   cat conftest.err >&5
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); } &&
19263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19264   { (case "(($ac_try" in
19265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266   *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269   (eval "$ac_try") 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; } &&
19273          { ac_try='test -s conftest$ac_exeext'
19274   { (case "(($ac_try" in
19275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276   *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279   (eval "$ac_try") 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; }; then
19283   ac_cv_lib_gcc___chkstk=yes
19284 else
19285   echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288         ac_cv_lib_gcc___chkstk=no
19289 fi
19290
19291 rm -f core conftest.err conftest.$ac_objext \
19292       conftest$ac_exeext conftest.$ac_ext
19293 LIBS=$ac_check_lib_save_LIBS
19294 fi
19295 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19296 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19297 if test $ac_cv_lib_gcc___chkstk = yes; then
19298
19299 cat >>confdefs.h <<\_ACEOF
19300 #define HAVE___CHKSTK 1
19301 _ACEOF
19302
19303 fi
19304
19305   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19306 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19307 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   ac_check_lib_save_LIBS=$LIBS
19311 LIBS="-lgcc  $LIBS"
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h.  */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h.  */
19318
19319 /* Override any GCC internal prototype to avoid an error.
19320    Use char because int might match the return type of a GCC
19321    builtin and then its argument prototype would still apply.  */
19322 #ifdef __cplusplus
19323 extern "C"
19324 #endif
19325 char ___chkstk ();
19326 int
19327 main ()
19328 {
19329 return ___chkstk ();
19330   ;
19331   return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext conftest$ac_exeext
19335 if { (ac_try="$ac_link"
19336 case "(($ac_try" in
19337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338   *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341   (eval "$ac_link") 2>conftest.er1
19342   ac_status=$?
19343   grep -v '^ *+' conftest.er1 >conftest.err
19344   rm -f conftest.er1
19345   cat conftest.err >&5
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); } &&
19348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19349   { (case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_try") 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; } &&
19358          { ac_try='test -s conftest$ac_exeext'
19359   { (case "(($ac_try" in
19360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361   *) ac_try_echo=$ac_try;;
19362 esac
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364   (eval "$ac_try") 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368   ac_cv_lib_gcc____chkstk=yes
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373         ac_cv_lib_gcc____chkstk=no
19374 fi
19375
19376 rm -f core conftest.err conftest.$ac_objext \
19377       conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19379 fi
19380 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19381 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19382 if test $ac_cv_lib_gcc____chkstk = yes; then
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE____CHKSTK 1
19386 _ACEOF
19387
19388 fi
19389
19390
19391   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19392 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19393 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lgcc  $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404
19405 /* Override any GCC internal prototype to avoid an error.
19406    Use char because int might match the return type of a GCC
19407    builtin and then its argument prototype would still apply.  */
19408 #ifdef __cplusplus
19409 extern "C"
19410 #endif
19411 char __ashldi3 ();
19412 int
19413 main ()
19414 {
19415 return __ashldi3 ();
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (ac_try="$ac_link"
19422 case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_link") 2>conftest.er1
19428   ac_status=$?
19429   grep -v '^ *+' conftest.er1 >conftest.err
19430   rm -f conftest.er1
19431   cat conftest.err >&5
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); } &&
19434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19435   { (case "(($ac_try" in
19436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437   *) ac_try_echo=$ac_try;;
19438 esac
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440   (eval "$ac_try") 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; } &&
19444          { ac_try='test -s conftest$ac_exeext'
19445   { (case "(($ac_try" in
19446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447   *) ac_try_echo=$ac_try;;
19448 esac
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450   (eval "$ac_try") 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; }; then
19454   ac_cv_lib_gcc___ashldi3=yes
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459         ac_cv_lib_gcc___ashldi3=no
19460 fi
19461
19462 rm -f core conftest.err conftest.$ac_objext \
19463       conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19465 fi
19466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19467 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19468 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19469
19470 cat >>confdefs.h <<\_ACEOF
19471 #define HAVE___ASHLDI3 1
19472 _ACEOF
19473
19474 fi
19475
19476   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19477 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19478 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19479   echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481   ac_check_lib_save_LIBS=$LIBS
19482 LIBS="-lgcc  $LIBS"
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489
19490 /* Override any GCC internal prototype to avoid an error.
19491    Use char because int might match the return type of a GCC
19492    builtin and then its argument prototype would still apply.  */
19493 #ifdef __cplusplus
19494 extern "C"
19495 #endif
19496 char __ashrdi3 ();
19497 int
19498 main ()
19499 {
19500 return __ashrdi3 ();
19501   ;
19502   return 0;
19503 }
19504 _ACEOF
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if { (ac_try="$ac_link"
19507 case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_link") 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19520   { (case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_try") 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; } &&
19529          { ac_try='test -s conftest$ac_exeext'
19530   { (case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_try") 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   ac_cv_lib_gcc___ashrdi3=yes
19540 else
19541   echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544         ac_cv_lib_gcc___ashrdi3=no
19545 fi
19546
19547 rm -f core conftest.err conftest.$ac_objext \
19548       conftest$ac_exeext conftest.$ac_ext
19549 LIBS=$ac_check_lib_save_LIBS
19550 fi
19551 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19552 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19553 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19554
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE___ASHRDI3 1
19557 _ACEOF
19558
19559 fi
19560
19561   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19562 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19563 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19564   echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566   ac_check_lib_save_LIBS=$LIBS
19567 LIBS="-lgcc  $LIBS"
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574
19575 /* Override any GCC internal prototype to avoid an error.
19576    Use char because int might match the return type of a GCC
19577    builtin and then its argument prototype would still apply.  */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 char __divdi3 ();
19582 int
19583 main ()
19584 {
19585 return __divdi3 ();
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (ac_try="$ac_link"
19592 case "(($ac_try" in
19593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594   *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597   (eval "$ac_link") 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19605   { (case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_try") 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; } &&
19614          { ac_try='test -s conftest$ac_exeext'
19615   { (case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620   (eval "$ac_try") 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; }; then
19624   ac_cv_lib_gcc___divdi3=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         ac_cv_lib_gcc___divdi3=no
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext \
19633       conftest$ac_exeext conftest.$ac_ext
19634 LIBS=$ac_check_lib_save_LIBS
19635 fi
19636 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19637 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19638 if test $ac_cv_lib_gcc___divdi3 = yes; then
19639
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE___DIVDI3 1
19642 _ACEOF
19643
19644 fi
19645
19646   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19647 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19648 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19649   echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651   ac_check_lib_save_LIBS=$LIBS
19652 LIBS="-lgcc  $LIBS"
19653 cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h.  */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h.  */
19659
19660 /* Override any GCC internal prototype to avoid an error.
19661    Use char because int might match the return type of a GCC
19662    builtin and then its argument prototype would still apply.  */
19663 #ifdef __cplusplus
19664 extern "C"
19665 #endif
19666 char __fixdfdi ();
19667 int
19668 main ()
19669 {
19670 return __fixdfdi ();
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 rm -f conftest.$ac_objext conftest$ac_exeext
19676 if { (ac_try="$ac_link"
19677 case "(($ac_try" in
19678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679   *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682   (eval "$ac_link") 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } &&
19689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19690   { (case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_try") 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; } &&
19699          { ac_try='test -s conftest$ac_exeext'
19700   { (case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705   (eval "$ac_try") 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); }; }; then
19709   ac_cv_lib_gcc___fixdfdi=yes
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714         ac_cv_lib_gcc___fixdfdi=no
19715 fi
19716
19717 rm -f core conftest.err conftest.$ac_objext \
19718       conftest$ac_exeext conftest.$ac_ext
19719 LIBS=$ac_check_lib_save_LIBS
19720 fi
19721 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19722 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19723 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19724
19725 cat >>confdefs.h <<\_ACEOF
19726 #define HAVE___FIXDFDI 1
19727 _ACEOF
19728
19729 fi
19730
19731   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19732 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19733 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   ac_check_lib_save_LIBS=$LIBS
19737 LIBS="-lgcc  $LIBS"
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744
19745 /* Override any GCC internal prototype to avoid an error.
19746    Use char because int might match the return type of a GCC
19747    builtin and then its argument prototype would still apply.  */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 char __fixsfdi ();
19752 int
19753 main ()
19754 {
19755 return __fixsfdi ();
19756   ;
19757   return 0;
19758 }
19759 _ACEOF
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (ac_try="$ac_link"
19762 case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_link") 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } &&
19774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19775   { (case "(($ac_try" in
19776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777   *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780   (eval "$ac_try") 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; } &&
19784          { ac_try='test -s conftest$ac_exeext'
19785   { (case "(($ac_try" in
19786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787   *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790   (eval "$ac_try") 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; }; then
19794   ac_cv_lib_gcc___fixsfdi=yes
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799         ac_cv_lib_gcc___fixsfdi=no
19800 fi
19801
19802 rm -f core conftest.err conftest.$ac_objext \
19803       conftest$ac_exeext conftest.$ac_ext
19804 LIBS=$ac_check_lib_save_LIBS
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19807 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19808 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19809
19810 cat >>confdefs.h <<\_ACEOF
19811 #define HAVE___FIXSFDI 1
19812 _ACEOF
19813
19814 fi
19815
19816   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19817 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19818 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   ac_check_lib_save_LIBS=$LIBS
19822 LIBS="-lgcc  $LIBS"
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829
19830 /* Override any GCC internal prototype to avoid an error.
19831    Use char because int might match the return type of a GCC
19832    builtin and then its argument prototype would still apply.  */
19833 #ifdef __cplusplus
19834 extern "C"
19835 #endif
19836 char __floatdidf ();
19837 int
19838 main ()
19839 {
19840 return __floatdidf ();
19841   ;
19842   return 0;
19843 }
19844 _ACEOF
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (ac_try="$ac_link"
19847 case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852   (eval "$ac_link") 2>conftest.er1
19853   ac_status=$?
19854   grep -v '^ *+' conftest.er1 >conftest.err
19855   rm -f conftest.er1
19856   cat conftest.err >&5
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } &&
19859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19860   { (case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_try") 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; } &&
19869          { ac_try='test -s conftest$ac_exeext'
19870   { (case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_try") 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_lib_gcc___floatdidf=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         ac_cv_lib_gcc___floatdidf=no
19885 fi
19886
19887 rm -f core conftest.err conftest.$ac_objext \
19888       conftest$ac_exeext conftest.$ac_ext
19889 LIBS=$ac_check_lib_save_LIBS
19890 fi
19891 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19892 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19893 if test $ac_cv_lib_gcc___floatdidf = yes; then
19894
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE___FLOATDIDF 1
19897 _ACEOF
19898
19899 fi
19900
19901   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19902 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19903 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19904   echo $ECHO_N "(cached) $ECHO_C" >&6
19905 else
19906   ac_check_lib_save_LIBS=$LIBS
19907 LIBS="-lgcc  $LIBS"
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914
19915 /* Override any GCC internal prototype to avoid an error.
19916    Use char because int might match the return type of a GCC
19917    builtin and then its argument prototype would still apply.  */
19918 #ifdef __cplusplus
19919 extern "C"
19920 #endif
19921 char __lshrdi3 ();
19922 int
19923 main ()
19924 {
19925 return __lshrdi3 ();
19926   ;
19927   return 0;
19928 }
19929 _ACEOF
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_link") 2>conftest.er1
19938   ac_status=$?
19939   grep -v '^ *+' conftest.er1 >conftest.err
19940   rm -f conftest.er1
19941   cat conftest.err >&5
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } &&
19944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; } &&
19954          { ac_try='test -s conftest$ac_exeext'
19955   { (case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960   (eval "$ac_try") 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; }; then
19964   ac_cv_lib_gcc___lshrdi3=yes
19965 else
19966   echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969         ac_cv_lib_gcc___lshrdi3=no
19970 fi
19971
19972 rm -f core conftest.err conftest.$ac_objext \
19973       conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19975 fi
19976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19977 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19978 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19979
19980 cat >>confdefs.h <<\_ACEOF
19981 #define HAVE___LSHRDI3 1
19982 _ACEOF
19983
19984 fi
19985
19986   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19987 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19988 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19989   echo $ECHO_N "(cached) $ECHO_C" >&6
19990 else
19991   ac_check_lib_save_LIBS=$LIBS
19992 LIBS="-lgcc  $LIBS"
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999
20000 /* Override any GCC internal prototype to avoid an error.
20001    Use char because int might match the return type of a GCC
20002    builtin and then its argument prototype would still apply.  */
20003 #ifdef __cplusplus
20004 extern "C"
20005 #endif
20006 char __moddi3 ();
20007 int
20008 main ()
20009 {
20010 return __moddi3 ();
20011   ;
20012   return 0;
20013 }
20014 _ACEOF
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019   *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022   (eval "$ac_link") 2>conftest.er1
20023   ac_status=$?
20024   grep -v '^ *+' conftest.er1 >conftest.err
20025   rm -f conftest.er1
20026   cat conftest.err >&5
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } &&
20029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030   { (case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_try") 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; } &&
20039          { ac_try='test -s conftest$ac_exeext'
20040   { (case "(($ac_try" in
20041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042   *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045   (eval "$ac_try") 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); }; }; then
20049   ac_cv_lib_gcc___moddi3=yes
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054         ac_cv_lib_gcc___moddi3=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext \
20058       conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20060 fi
20061 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20062 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20063 if test $ac_cv_lib_gcc___moddi3 = yes; then
20064
20065 cat >>confdefs.h <<\_ACEOF
20066 #define HAVE___MODDI3 1
20067 _ACEOF
20068
20069 fi
20070
20071   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20072 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20073 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20074   echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076   ac_check_lib_save_LIBS=$LIBS
20077 LIBS="-lgcc  $LIBS"
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084
20085 /* Override any GCC internal prototype to avoid an error.
20086    Use char because int might match the return type of a GCC
20087    builtin and then its argument prototype would still apply.  */
20088 #ifdef __cplusplus
20089 extern "C"
20090 #endif
20091 char __udivdi3 ();
20092 int
20093 main ()
20094 {
20095 return __udivdi3 ();
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext conftest$ac_exeext
20101 if { (ac_try="$ac_link"
20102 case "(($ac_try" in
20103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104   *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107   (eval "$ac_link") 2>conftest.er1
20108   ac_status=$?
20109   grep -v '^ *+' conftest.er1 >conftest.err
20110   rm -f conftest.er1
20111   cat conftest.err >&5
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } &&
20114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20115   { (case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_try") 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; } &&
20124          { ac_try='test -s conftest$ac_exeext'
20125   { (case "(($ac_try" in
20126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127   *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130   (eval "$ac_try") 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); }; }; then
20134   ac_cv_lib_gcc___udivdi3=yes
20135 else
20136   echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139         ac_cv_lib_gcc___udivdi3=no
20140 fi
20141
20142 rm -f core conftest.err conftest.$ac_objext \
20143       conftest$ac_exeext conftest.$ac_ext
20144 LIBS=$ac_check_lib_save_LIBS
20145 fi
20146 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20147 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20148 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20149
20150 cat >>confdefs.h <<\_ACEOF
20151 #define HAVE___UDIVDI3 1
20152 _ACEOF
20153
20154 fi
20155
20156   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20157 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20158 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161   ac_check_lib_save_LIBS=$LIBS
20162 LIBS="-lgcc  $LIBS"
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169
20170 /* Override any GCC internal prototype to avoid an error.
20171    Use char because int might match the return type of a GCC
20172    builtin and then its argument prototype would still apply.  */
20173 #ifdef __cplusplus
20174 extern "C"
20175 #endif
20176 char __umoddi3 ();
20177 int
20178 main ()
20179 {
20180 return __umoddi3 ();
20181   ;
20182   return 0;
20183 }
20184 _ACEOF
20185 rm -f conftest.$ac_objext conftest$ac_exeext
20186 if { (ac_try="$ac_link"
20187 case "(($ac_try" in
20188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189   *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192   (eval "$ac_link") 2>conftest.er1
20193   ac_status=$?
20194   grep -v '^ *+' conftest.er1 >conftest.err
20195   rm -f conftest.er1
20196   cat conftest.err >&5
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); } &&
20199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; } &&
20209          { ac_try='test -s conftest$ac_exeext'
20210   { (case "(($ac_try" in
20211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212   *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215   (eval "$ac_try") 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; }; then
20219   ac_cv_lib_gcc___umoddi3=yes
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224         ac_cv_lib_gcc___umoddi3=no
20225 fi
20226
20227 rm -f core conftest.err conftest.$ac_objext \
20228       conftest$ac_exeext conftest.$ac_ext
20229 LIBS=$ac_check_lib_save_LIBS
20230 fi
20231 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20232 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20233 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20234
20235 cat >>confdefs.h <<\_ACEOF
20236 #define HAVE___UMODDI3 1
20237 _ACEOF
20238
20239 fi
20240
20241
20242   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20243 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20244 if test "${ac_cv_lib_gcc___main+set}" = set; then
20245   echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247   ac_check_lib_save_LIBS=$LIBS
20248 LIBS="-lgcc  $LIBS"
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255
20256 /* Override any GCC internal prototype to avoid an error.
20257    Use char because int might match the return type of a GCC
20258    builtin and then its argument prototype would still apply.  */
20259 #ifdef __cplusplus
20260 extern "C"
20261 #endif
20262 char __main ();
20263 int
20264 main ()
20265 {
20266 return __main ();
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest.$ac_objext conftest$ac_exeext
20272 if { (ac_try="$ac_link"
20273 case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_link") 2>conftest.er1
20279   ac_status=$?
20280   grep -v '^ *+' conftest.er1 >conftest.err
20281   rm -f conftest.er1
20282   cat conftest.err >&5
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } &&
20285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20286   { (case "(($ac_try" in
20287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288   *) ac_try_echo=$ac_try;;
20289 esac
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291   (eval "$ac_try") 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); }; } &&
20295          { ac_try='test -s conftest$ac_exeext'
20296   { (case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_try") 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); }; }; then
20305   ac_cv_lib_gcc___main=yes
20306 else
20307   echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20309
20310         ac_cv_lib_gcc___main=no
20311 fi
20312
20313 rm -f core conftest.err conftest.$ac_objext \
20314       conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20316 fi
20317 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20318 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20319 if test $ac_cv_lib_gcc___main = yes; then
20320
20321 cat >>confdefs.h <<\_ACEOF
20322 #define HAVE___MAIN 1
20323 _ACEOF
20324
20325 fi
20326
20327   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20328 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20329 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   ac_check_lib_save_LIBS=$LIBS
20333 LIBS="-lgcc  $LIBS"
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340
20341 /* Override any GCC internal prototype to avoid an error.
20342    Use char because int might match the return type of a GCC
20343    builtin and then its argument prototype would still apply.  */
20344 #ifdef __cplusplus
20345 extern "C"
20346 #endif
20347 char __cmpdi2 ();
20348 int
20349 main ()
20350 {
20351 return __cmpdi2 ();
20352   ;
20353   return 0;
20354 }
20355 _ACEOF
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360   *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363   (eval "$ac_link") 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } &&
20370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20371   { (case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_try") 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest$ac_exeext'
20381   { (case "(($ac_try" in
20382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383   *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386   (eval "$ac_try") 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; }; then
20390   ac_cv_lib_gcc___cmpdi2=yes
20391 else
20392   echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395         ac_cv_lib_gcc___cmpdi2=no
20396 fi
20397
20398 rm -f core conftest.err conftest.$ac_objext \
20399       conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20401 fi
20402 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20403 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20404 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20405
20406 cat >>confdefs.h <<\_ACEOF
20407 #define HAVE___CMPDI2 1
20408 _ACEOF
20409
20410 fi
20411
20412 fi
20413
20414 if test "$llvm_cv_os_type" = "MingW" ; then
20415   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20416 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20417   cat >conftest.$ac_ext <<_ACEOF
20418
20419   /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424
20425     #include <windows.h>
20426     #include <imagehlp.h>
20427     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20428     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20429
20430
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_compile") 2>conftest.er1
20440   ac_status=$?
20441   grep -v '^ *+' conftest.er1 >conftest.err
20442   rm -f conftest.er1
20443   cat conftest.err >&5
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); } &&
20446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20447   { (case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_try") 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; } &&
20456          { ac_try='test -s conftest.$ac_objext'
20457   { (case "(($ac_try" in
20458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459   *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462   (eval "$ac_try") 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; }; then
20466
20467   { echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6; }
20469   llvm_cv_win32_elmcb_pcstr="PCSTR"
20470
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475
20476   { echo "$as_me:$LINENO: result: no" >&5
20477 echo "${ECHO_T}no" >&6; }
20478   llvm_cv_win32_elmcb_pcstr="PSTR"
20479
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20483
20484 cat >>confdefs.h <<_ACEOF
20485 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20486 _ACEOF
20487
20488 fi
20489
20490
20491
20492   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20493 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20494 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497
20498     ac_ext=cpp
20499 ac_cpp='$CXXCPP $CPPFLAGS'
20500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20503
20504     cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 #include <math.h>
20511 int
20512 main ()
20513 {
20514 float f; isnan(f);
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext
20520 if { (ac_try="$ac_compile"
20521 case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_compile") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20534   { (case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_try") 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; } &&
20543          { ac_try='test -s conftest.$ac_objext'
20544   { (case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_try") 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; }; then
20553   ac_cv_func_isnan_in_math_h=yes
20554 else
20555   echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558         ac_cv_func_isnan_in_math_h=no
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562     ac_ext=c
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568
20569 fi
20570 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20571 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20572
20573
20574 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20575
20576 cat >>confdefs.h <<\_ACEOF
20577 #define HAVE_ISNAN_IN_MATH_H 1
20578 _ACEOF
20579
20580 fi
20581
20582
20583   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20584 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20585 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20586   echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588
20589     ac_ext=cpp
20590 ac_cpp='$CXXCPP $CPPFLAGS'
20591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20594
20595     cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include <cmath>
20602 int
20603 main ()
20604 {
20605 float f; isnan(f);
20606   ;
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest.$ac_objext
20611 if { (ac_try="$ac_compile"
20612 case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_compile") 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } &&
20624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; } &&
20634          { ac_try='test -s conftest.$ac_objext'
20635   { (case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_try") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   ac_cv_func_isnan_in_cmath=yes
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649         ac_cv_func_isnan_in_cmath=no
20650 fi
20651
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653     ac_ext=c
20654 ac_cpp='$CPP $CPPFLAGS'
20655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20658
20659
20660 fi
20661 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20662 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20663
20664 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_ISNAN_IN_CMATH 1
20668 _ACEOF
20669
20670 fi
20671
20672
20673   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20674 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20675 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678
20679     ac_ext=cpp
20680 ac_cpp='$CXXCPP $CPPFLAGS'
20681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20684
20685     cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h.  */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h.  */
20691 #include <cmath>
20692 int
20693 main ()
20694 {
20695 float f; std::isnan(f);
20696   ;
20697   return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext
20701 if { (ac_try="$ac_compile"
20702 case "(($ac_try" in
20703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704   *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707   (eval "$ac_compile") 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } &&
20714          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20715   { (case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_try") 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; } &&
20724          { ac_try='test -s conftest.$ac_objext'
20725   { (case "(($ac_try" in
20726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727   *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730   (eval "$ac_try") 2>&5
20731   ac_status=$?
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); }; }; then
20734   ac_cv_func_std_isnan_in_cmath=yes
20735 else
20736   echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20738
20739         ac_cv_func_std_isnan_in_cmath=no
20740 fi
20741
20742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20743     ac_ext=c
20744 ac_cpp='$CPP $CPPFLAGS'
20745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20748
20749
20750 fi
20751 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20752 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20753
20754 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20755
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_STD_ISNAN_IN_CMATH 1
20758 _ACEOF
20759
20760 fi
20761
20762
20763
20764
20765   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20766 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20767 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770
20771     ac_ext=cpp
20772 ac_cpp='$CXXCPP $CPPFLAGS'
20773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20776
20777     cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h.  */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h.  */
20783 #include <math.h>
20784 int
20785 main ()
20786 {
20787 float f; isinf(f);
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (ac_try="$ac_compile"
20794 case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799   (eval "$ac_compile") 2>conftest.er1
20800   ac_status=$?
20801   grep -v '^ *+' conftest.er1 >conftest.err
20802   rm -f conftest.er1
20803   cat conftest.err >&5
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); } &&
20806          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20807   { (case "(($ac_try" in
20808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809   *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812   (eval "$ac_try") 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; } &&
20816          { ac_try='test -s conftest.$ac_objext'
20817   { (case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_try") 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; }; then
20826   ac_cv_func_isinf_in_math_h=yes
20827 else
20828   echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831         ac_cv_func_isinf_in_math_h=no
20832 fi
20833
20834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835     ac_ext=c
20836 ac_cpp='$CPP $CPPFLAGS'
20837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20840
20841
20842 fi
20843 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20844 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20845
20846 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20847
20848 cat >>confdefs.h <<\_ACEOF
20849 #define HAVE_ISINF_IN_MATH_H 1
20850 _ACEOF
20851
20852 fi
20853
20854
20855   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20856 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20857 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860
20861     ac_ext=cpp
20862 ac_cpp='$CXXCPP $CPPFLAGS'
20863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20866
20867     cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <cmath>
20874 int
20875 main ()
20876 {
20877 float f; isinf(f);
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_compile") 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } &&
20896          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; } &&
20906          { ac_try='test -s conftest.$ac_objext'
20907   { (case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_try") 2>&5
20913   ac_status=$?
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); }; }; then
20916   ac_cv_func_isinf_in_cmath=yes
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921         ac_cv_func_isinf_in_cmath=no
20922 fi
20923
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925     ac_ext=c
20926 ac_cpp='$CPP $CPPFLAGS'
20927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20930
20931
20932 fi
20933 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20934 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20935
20936 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20937
20938 cat >>confdefs.h <<\_ACEOF
20939 #define HAVE_ISINF_IN_CMATH 1
20940 _ACEOF
20941
20942 fi
20943
20944
20945   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20946 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20947 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20948   echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950
20951     ac_ext=cpp
20952 ac_cpp='$CXXCPP $CPPFLAGS'
20953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20956
20957     cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h.  */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h.  */
20963 #include <cmath>
20964 int
20965 main ()
20966 {
20967 float f; std::isinf(f);
20968   ;
20969   return 0;
20970 }
20971 _ACEOF
20972 rm -f conftest.$ac_objext
20973 if { (ac_try="$ac_compile"
20974 case "(($ac_try" in
20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976   *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979   (eval "$ac_compile") 2>conftest.er1
20980   ac_status=$?
20981   grep -v '^ *+' conftest.er1 >conftest.err
20982   rm -f conftest.er1
20983   cat conftest.err >&5
20984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985   (exit $ac_status); } &&
20986          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20987   { (case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992   (eval "$ac_try") 2>&5
20993   ac_status=$?
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); }; } &&
20996          { ac_try='test -s conftest.$ac_objext'
20997   { (case "(($ac_try" in
20998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999   *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002   (eval "$ac_try") 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; }; then
21006   ac_cv_func_std_isinf_in_cmath=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_cv_func_std_isinf_in_cmath=no
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015     ac_ext=c
21016 ac_cpp='$CPP $CPPFLAGS'
21017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21020
21021
21022 fi
21023 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21024 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21025
21026 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21027
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_STD_ISINF_IN_CMATH 1
21030 _ACEOF
21031
21032 fi
21033
21034
21035   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21036 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21037 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040
21041     ac_ext=cpp
21042 ac_cpp='$CXXCPP $CPPFLAGS'
21043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21046
21047     cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 #include <ieeefp.h>
21054 int
21055 main ()
21056 {
21057 float f; finite(f);
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext
21063 if { (ac_try="$ac_compile"
21064 case "(($ac_try" in
21065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066   *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069   (eval "$ac_compile") 2>conftest.er1
21070   ac_status=$?
21071   grep -v '^ *+' conftest.er1 >conftest.err
21072   rm -f conftest.er1
21073   cat conftest.err >&5
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } &&
21076          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21077   { (case "(($ac_try" in
21078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079   *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082   (eval "$ac_try") 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; } &&
21086          { ac_try='test -s conftest.$ac_objext'
21087   { (case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_try") 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); }; }; then
21096   ac_cv_func_finite_in_ieeefp_h=yes
21097 else
21098   echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101         ac_cv_func_finite_in_ieeefp_h=no
21102 fi
21103
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105     ac_ext=c
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111
21112 fi
21113 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21114 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21115
21116 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_FINITE_IN_IEEEFP_H 1
21120 _ACEOF
21121
21122 fi
21123
21124
21125
21126 if test "$llvm_cv_platform_type" = "Unix" ; then
21127
21128
21129 for ac_header in stdlib.h unistd.h
21130 do
21131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 fi
21138 ac_res=`eval echo '${'$as_ac_Header'}'`
21139                { echo "$as_me:$LINENO: result: $ac_res" >&5
21140 echo "${ECHO_T}$ac_res" >&6; }
21141 else
21142   # Is the header compilable?
21143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151 $ac_includes_default
21152 #include <$ac_header>
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_compile") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } &&
21168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21169   { (case "(($ac_try" in
21170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171   *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174   (eval "$ac_try") 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; } &&
21178          { ac_try='test -s conftest.$ac_objext'
21179   { (case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_try") 2>&5
21185   ac_status=$?
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); }; }; then
21188   ac_header_compiler=yes
21189 else
21190   echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193         ac_header_compiler=no
21194 fi
21195
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21198 echo "${ECHO_T}$ac_header_compiler" >&6; }
21199
21200 # Is the header present?
21201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 #include <$ac_header>
21210 _ACEOF
21211 if { (ac_try="$ac_cpp conftest.$ac_ext"
21212 case "(($ac_try" in
21213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214   *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } >/dev/null; then
21224   if test -s conftest.err; then
21225     ac_cpp_err=$ac_c_preproc_warn_flag
21226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21227   else
21228     ac_cpp_err=
21229   fi
21230 else
21231   ac_cpp_err=yes
21232 fi
21233 if test -z "$ac_cpp_err"; then
21234   ac_header_preproc=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239   ac_header_preproc=no
21240 fi
21241
21242 rm -f conftest.err conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21244 echo "${ECHO_T}$ac_header_preproc" >&6; }
21245
21246 # So?  What about this header?
21247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21248   yes:no: )
21249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21253     ac_header_preproc=yes
21254     ;;
21255   no:yes:* )
21256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21258     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21259 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21260     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21262     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21263 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21266     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21268     ( cat <<\_ASBOX
21269 ## ------------------------------------ ##
21270 ## Report this to http://llvm.org/bugs/ ##
21271 ## ------------------------------------ ##
21272 _ASBOX
21273      ) | sed "s/^/$as_me: WARNING:     /" >&2
21274     ;;
21275 esac
21276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279   echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281   eval "$as_ac_Header=\$ac_header_preproc"
21282 fi
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284                { echo "$as_me:$LINENO: result: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21286
21287 fi
21288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21289   cat >>confdefs.h <<_ACEOF
21290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21291 _ACEOF
21292
21293 fi
21294
21295 done
21296
21297
21298 for ac_func in getpagesize
21299 do
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21304   echo $ECHO_N "(cached) $ECHO_C" >&6
21305 else
21306   cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21314 #define $ac_func innocuous_$ac_func
21315
21316 /* System header to define __stub macros and hopefully few prototypes,
21317     which can conflict with char $ac_func (); below.
21318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319     <limits.h> exists even on freestanding compilers.  */
21320
21321 #ifdef __STDC__
21322 # include <limits.h>
21323 #else
21324 # include <assert.h>
21325 #endif
21326
21327 #undef $ac_func
21328
21329 /* Override any GCC internal prototype to avoid an error.
21330    Use char because int might match the return type of a GCC
21331    builtin and then its argument prototype would still apply.  */
21332 #ifdef __cplusplus
21333 extern "C"
21334 #endif
21335 char $ac_func ();
21336 /* The GNU C library defines this for functions which it implements
21337     to always fail with ENOSYS.  Some functions are actually named
21338     something starting with __ and the normal name is an alias.  */
21339 #if defined __stub_$ac_func || defined __stub___$ac_func
21340 choke me
21341 #endif
21342
21343 int
21344 main ()
21345 {
21346 return $ac_func ();
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_link") 2>conftest.er1
21359   ac_status=$?
21360   grep -v '^ *+' conftest.er1 >conftest.err
21361   rm -f conftest.er1
21362   cat conftest.err >&5
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } &&
21365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366   { (case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_try") 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; } &&
21375          { ac_try='test -s conftest$ac_exeext'
21376   { (case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_try") 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; }; then
21385   eval "$as_ac_var=yes"
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390         eval "$as_ac_var=no"
21391 fi
21392
21393 rm -f core conftest.err conftest.$ac_objext \
21394       conftest$ac_exeext conftest.$ac_ext
21395 fi
21396 ac_res=`eval echo '${'$as_ac_var'}'`
21397                { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_var'}'` = yes; then
21400   cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21402 _ACEOF
21403
21404 fi
21405 done
21406
21407 { echo "$as_me:$LINENO: checking for working mmap" >&5
21408 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21409 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21410   echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412   if test "$cross_compiling" = yes; then
21413   ac_cv_func_mmap_fixed_mapped=no
21414 else
21415   cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 $ac_includes_default
21422 /* malloc might have been renamed as rpl_malloc. */
21423 #undef malloc
21424
21425 /* Thanks to Mike Haertel and Jim Avera for this test.
21426    Here is a matrix of mmap possibilities:
21427         mmap private not fixed
21428         mmap private fixed at somewhere currently unmapped
21429         mmap private fixed at somewhere already mapped
21430         mmap shared not fixed
21431         mmap shared fixed at somewhere currently unmapped
21432         mmap shared fixed at somewhere already mapped
21433    For private mappings, we should verify that changes cannot be read()
21434    back from the file, nor mmap's back from the file at a different
21435    address.  (There have been systems where private was not correctly
21436    implemented like the infamous i386 svr4.0, and systems where the
21437    VM page cache was not coherent with the file system buffer cache
21438    like early versions of FreeBSD and possibly contemporary NetBSD.)
21439    For shared mappings, we should conversely verify that changes get
21440    propagated back to all the places they're supposed to be.
21441
21442    Grep wants private fixed already mapped.
21443    The main things grep needs to know about mmap are:
21444    * does it exist and is it safe to write into the mmap'd area
21445    * how to use it (BSD variants)  */
21446
21447 #include <fcntl.h>
21448 #include <sys/mman.h>
21449
21450 #if !STDC_HEADERS && !HAVE_STDLIB_H
21451 char *malloc ();
21452 #endif
21453
21454 /* This mess was copied from the GNU getpagesize.h.  */
21455 #if !HAVE_GETPAGESIZE
21456 /* Assume that all systems that can run configure have sys/param.h.  */
21457 # if !HAVE_SYS_PARAM_H
21458 #  define HAVE_SYS_PARAM_H 1
21459 # endif
21460
21461 # ifdef _SC_PAGESIZE
21462 #  define getpagesize() sysconf(_SC_PAGESIZE)
21463 # else /* no _SC_PAGESIZE */
21464 #  if HAVE_SYS_PARAM_H
21465 #   include <sys/param.h>
21466 #   ifdef EXEC_PAGESIZE
21467 #    define getpagesize() EXEC_PAGESIZE
21468 #   else /* no EXEC_PAGESIZE */
21469 #    ifdef NBPG
21470 #     define getpagesize() NBPG * CLSIZE
21471 #     ifndef CLSIZE
21472 #      define CLSIZE 1
21473 #     endif /* no CLSIZE */
21474 #    else /* no NBPG */
21475 #     ifdef NBPC
21476 #      define getpagesize() NBPC
21477 #     else /* no NBPC */
21478 #      ifdef PAGESIZE
21479 #       define getpagesize() PAGESIZE
21480 #      endif /* PAGESIZE */
21481 #     endif /* no NBPC */
21482 #    endif /* no NBPG */
21483 #   endif /* no EXEC_PAGESIZE */
21484 #  else /* no HAVE_SYS_PARAM_H */
21485 #   define getpagesize() 8192   /* punt totally */
21486 #  endif /* no HAVE_SYS_PARAM_H */
21487 # endif /* no _SC_PAGESIZE */
21488
21489 #endif /* no HAVE_GETPAGESIZE */
21490
21491 int
21492 main ()
21493 {
21494   char *data, *data2, *data3;
21495   int i, pagesize;
21496   int fd;
21497
21498   pagesize = getpagesize ();
21499
21500   /* First, make a file with some known garbage in it. */
21501   data = (char *) malloc (pagesize);
21502   if (!data)
21503     return 1;
21504   for (i = 0; i < pagesize; ++i)
21505     *(data + i) = rand ();
21506   umask (0);
21507   fd = creat ("conftest.mmap", 0600);
21508   if (fd < 0)
21509     return 1;
21510   if (write (fd, data, pagesize) != pagesize)
21511     return 1;
21512   close (fd);
21513
21514   /* Next, try to mmap the file at a fixed address which already has
21515      something else allocated at it.  If we can, also make sure that
21516      we see the same garbage.  */
21517   fd = open ("conftest.mmap", O_RDWR);
21518   if (fd < 0)
21519     return 1;
21520   data2 = (char *) malloc (2 * pagesize);
21521   if (!data2)
21522     return 1;
21523   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21524   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21525                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21526     return 1;
21527   for (i = 0; i < pagesize; ++i)
21528     if (*(data + i) != *(data2 + i))
21529       return 1;
21530
21531   /* Finally, make sure that changes to the mapped area do not
21532      percolate back to the file as seen by read().  (This is a bug on
21533      some variants of i386 svr4.0.)  */
21534   for (i = 0; i < pagesize; ++i)
21535     *(data2 + i) = *(data2 + i) + 1;
21536   data3 = (char *) malloc (pagesize);
21537   if (!data3)
21538     return 1;
21539   if (read (fd, data3, pagesize) != pagesize)
21540     return 1;
21541   for (i = 0; i < pagesize; ++i)
21542     if (*(data + i) != *(data3 + i))
21543       return 1;
21544   close (fd);
21545   return 0;
21546 }
21547 _ACEOF
21548 rm -f conftest$ac_exeext
21549 if { (ac_try="$ac_link"
21550 case "(($ac_try" in
21551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552   *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555   (eval "$ac_link") 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559   { (case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564   (eval "$ac_try") 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; }; then
21568   ac_cv_func_mmap_fixed_mapped=yes
21569 else
21570   echo "$as_me: program exited with status $ac_status" >&5
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574 ( exit $ac_status )
21575 ac_cv_func_mmap_fixed_mapped=no
21576 fi
21577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21578 fi
21579
21580
21581 fi
21582 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_MMAP 1
21588 _ACEOF
21589
21590 fi
21591 rm -f conftest.mmap
21592
21593   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21594 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21595 if test "${ac_cv_func_mmap_file+set}" = set; then
21596   echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598    ac_ext=c
21599 ac_cpp='$CPP $CPPFLAGS'
21600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21603
21604   if test "$cross_compiling" = yes; then
21605   ac_cv_func_mmap_file=no
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608
21609     /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614
21615 #include <sys/types.h>
21616 #include <sys/mman.h>
21617 #include <fcntl.h>
21618
21619 int
21620 main ()
21621 {
21622
21623   int fd;
21624   fd = creat ("foo",0777);
21625   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21626   unlink ("foo");
21627   return (fd != (int) MAP_FAILED);
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_link") 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21643   { (case "(($ac_try" in
21644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645   *) ac_try_echo=$ac_try;;
21646 esac
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648   (eval "$ac_try") 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); }; }; then
21652   ac_cv_func_mmap_file=yes
21653 else
21654   echo "$as_me: program exited with status $ac_status" >&5
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658 ( exit $ac_status )
21659 ac_cv_func_mmap_file=no
21660 fi
21661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21662 fi
21663
21664
21665   ac_ext=c
21666 ac_cpp='$CPP $CPPFLAGS'
21667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21670
21671
21672 fi
21673 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21674 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21675 if test "$ac_cv_func_mmap_file" = yes; then
21676
21677 cat >>confdefs.h <<\_ACEOF
21678 #define HAVE_MMAP_FILE
21679 _ACEOF
21680
21681    MMAP_FILE=yes
21682
21683 fi
21684
21685   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21686 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21687 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   if test "$llvm_cv_os_type" = "Interix" ; then
21691    ac_cv_need_dev_zero_for_mmap=yes
21692  else
21693    ac_cv_need_dev_zero_for_mmap=no
21694  fi
21695
21696 fi
21697 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21698 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21699 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21700
21701 cat >>confdefs.h <<\_ACEOF
21702 #define NEED_DEV_ZERO_FOR_MMAP 1
21703 _ACEOF
21704
21705 fi
21706
21707   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21708   then
21709     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21710 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21711   fi
21712   if test "$ac_cv_func_mmap_file" = "no"
21713   then
21714     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21715 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21716   fi
21717 fi
21718
21719 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21720 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21721 ac_ext=cpp
21722 ac_cpp='$CXXCPP $CPPFLAGS'
21723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21726
21727 cat >conftest.$ac_ext <<_ACEOF
21728
21729   /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734
21735     int main() {
21736       volatile unsigned long val = 1;
21737       __sync_synchronize();
21738       __sync_val_compare_and_swap(&val, 1, 0);
21739       __sync_add_and_fetch(&val, 1);
21740       __sync_sub_and_fetch(&val, 1);
21741       return 0;
21742     }
21743
21744
21745 _ACEOF
21746 rm -f conftest.$ac_objext conftest$ac_exeext
21747 if { (ac_try="$ac_link"
21748 case "(($ac_try" in
21749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750   *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753   (eval "$ac_link") 2>conftest.er1
21754   ac_status=$?
21755   grep -v '^ *+' conftest.er1 >conftest.err
21756   rm -f conftest.er1
21757   cat conftest.err >&5
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } &&
21760          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21761   { (case "(($ac_try" in
21762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763   *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766   (eval "$ac_try") 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; } &&
21770          { ac_try='test -s conftest$ac_exeext'
21771   { (case "(($ac_try" in
21772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773   *) ac_try_echo=$ac_try;;
21774 esac
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776   (eval "$ac_try") 2>&5
21777   ac_status=$?
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); }; }; then
21780
21781   { echo "$as_me:$LINENO: result: yes" >&5
21782 echo "${ECHO_T}yes" >&6; }
21783
21784 cat >>confdefs.h <<\_ACEOF
21785 #define LLVM_HAS_ATOMICS 1
21786 _ACEOF
21787
21788
21789 else
21790   echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793
21794   { echo "$as_me:$LINENO: result: no" >&5
21795 echo "${ECHO_T}no" >&6; }
21796
21797 cat >>confdefs.h <<\_ACEOF
21798 #define LLVM_HAS_ATOMICS 0
21799 _ACEOF
21800
21801   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21802 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21803
21804 fi
21805
21806 rm -f core conftest.err conftest.$ac_objext \
21807       conftest$ac_exeext conftest.$ac_ext
21808 ac_ext=c
21809 ac_cpp='$CPP $CPPFLAGS'
21810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813
21814
21815
21816 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21817   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21818 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21819 if test "${llvm_cv_linux_mixed+set}" = set; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822    ac_ext=c
21823 ac_cpp='$CPP $CPPFLAGS'
21824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21827
21828   cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 #ifndef __x86_64__
21835        error: Not x86-64 even if uname says so!
21836       #endif
21837
21838 int
21839 main ()
21840 {
21841
21842   ;
21843   return 0;
21844 }
21845 _ACEOF
21846 rm -f conftest.$ac_objext
21847 if { (ac_try="$ac_compile"
21848 case "(($ac_try" in
21849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850   *) ac_try_echo=$ac_try;;
21851 esac
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853   (eval "$ac_compile") 2>conftest.er1
21854   ac_status=$?
21855   grep -v '^ *+' conftest.er1 >conftest.err
21856   rm -f conftest.er1
21857   cat conftest.err >&5
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); } &&
21860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21861   { (case "(($ac_try" in
21862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863   *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866   (eval "$ac_try") 2>&5
21867   ac_status=$?
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); }; } &&
21870          { ac_try='test -s conftest.$ac_objext'
21871   { (case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_try") 2>&5
21877   ac_status=$?
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); }; }; then
21880   llvm_cv_linux_mixed=no
21881 else
21882   echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885         llvm_cv_linux_mixed=yes
21886 fi
21887
21888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889   ac_ext=c
21890 ac_cpp='$CPP $CPPFLAGS'
21891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21894
21895
21896 fi
21897 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21898 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21899
21900   if test "$llvm_cv_linux_mixed" = "yes"; then
21901     llvm_cv_target_arch="x86"
21902     ARCH="x86"
21903   fi
21904 fi
21905
21906
21907 for ac_func in __dso_handle
21908 do
21909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915   cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21923 #define $ac_func innocuous_$ac_func
21924
21925 /* System header to define __stub macros and hopefully few prototypes,
21926     which can conflict with char $ac_func (); below.
21927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21928     <limits.h> exists even on freestanding compilers.  */
21929
21930 #ifdef __STDC__
21931 # include <limits.h>
21932 #else
21933 # include <assert.h>
21934 #endif
21935
21936 #undef $ac_func
21937
21938 /* Override any GCC internal prototype to avoid an error.
21939    Use char because int might match the return type of a GCC
21940    builtin and then its argument prototype would still apply.  */
21941 #ifdef __cplusplus
21942 extern "C"
21943 #endif
21944 char $ac_func ();
21945 /* The GNU C library defines this for functions which it implements
21946     to always fail with ENOSYS.  Some functions are actually named
21947     something starting with __ and the normal name is an alias.  */
21948 #if defined __stub_$ac_func || defined __stub___$ac_func
21949 choke me
21950 #endif
21951
21952 int
21953 main ()
21954 {
21955 return $ac_func ();
21956   ;
21957   return 0;
21958 }
21959 _ACEOF
21960 rm -f conftest.$ac_objext conftest$ac_exeext
21961 if { (ac_try="$ac_link"
21962 case "(($ac_try" in
21963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964   *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967   (eval "$ac_link") 2>conftest.er1
21968   ac_status=$?
21969   grep -v '^ *+' conftest.er1 >conftest.err
21970   rm -f conftest.er1
21971   cat conftest.err >&5
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } &&
21974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21975   { (case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980   (eval "$ac_try") 2>&5
21981   ac_status=$?
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); }; } &&
21984          { ac_try='test -s conftest$ac_exeext'
21985   { (case "(($ac_try" in
21986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987   *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990   (eval "$ac_try") 2>&5
21991   ac_status=$?
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); }; }; then
21994   eval "$as_ac_var=yes"
21995 else
21996   echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999         eval "$as_ac_var=no"
22000 fi
22001
22002 rm -f core conftest.err conftest.$ac_objext \
22003       conftest$ac_exeext conftest.$ac_ext
22004 fi
22005 ac_res=`eval echo '${'$as_ac_var'}'`
22006                { echo "$as_me:$LINENO: result: $ac_res" >&5
22007 echo "${ECHO_T}$ac_res" >&6; }
22008 if test `eval echo '${'$as_ac_var'}'` = yes; then
22009   cat >>confdefs.h <<_ACEOF
22010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22011 _ACEOF
22012
22013 fi
22014 done
22015
22016
22017 SHLIBEXT=$libltdl_cv_shlibext
22018
22019
22020 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22021
22022
22023 if test "${prefix}" = "NONE" ; then
22024   prefix="/usr/local"
22025 fi
22026 eval LLVM_PREFIX="${prefix}";
22027 eval LLVM_BINDIR="${prefix}/bin";
22028 eval LLVM_DATADIR="${prefix}/share/llvm";
22029 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22030 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22031 eval LLVM_INCLUDEDIR="${prefix}/include";
22032 eval LLVM_INFODIR="${prefix}/info";
22033 eval LLVM_MANDIR="${prefix}/man";
22034 LLVM_CONFIGTIME=`date`
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22046   LLVM_CONFIGTIME="(timestamp not enabled)"
22047 fi
22048
22049
22050 cat >>confdefs.h <<_ACEOF
22051 #define LLVM_PREFIX "$LLVM_PREFIX"
22052 _ACEOF
22053
22054
22055 cat >>confdefs.h <<_ACEOF
22056 #define LLVM_BINDIR "$LLVM_BINDIR"
22057 _ACEOF
22058
22059
22060 cat >>confdefs.h <<_ACEOF
22061 #define LLVM_DATADIR "$LLVM_DATADIR"
22062 _ACEOF
22063
22064
22065 cat >>confdefs.h <<_ACEOF
22066 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22067 _ACEOF
22068
22069
22070 cat >>confdefs.h <<_ACEOF
22071 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22072 _ACEOF
22073
22074
22075 cat >>confdefs.h <<_ACEOF
22076 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22077 _ACEOF
22078
22079
22080 cat >>confdefs.h <<_ACEOF
22081 #define LLVM_INFODIR "$LLVM_INFODIR"
22082 _ACEOF
22083
22084
22085 cat >>confdefs.h <<_ACEOF
22086 #define LLVM_MANDIR "$LLVM_MANDIR"
22087 _ACEOF
22088
22089
22090 cat >>confdefs.h <<_ACEOF
22091 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22092 _ACEOF
22093
22094
22095 cat >>confdefs.h <<_ACEOF
22096 #define LLVM_HOST_TRIPLE "$host"
22097 _ACEOF
22098
22099
22100 cat >>confdefs.h <<_ACEOF
22101 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22102 _ACEOF
22103
22104
22105 if test "$BINDINGS_TO_BUILD" = auto ; then
22106   BINDINGS_TO_BUILD=""
22107   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22108     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22109   fi
22110 fi
22111 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22112
22113
22114 ALL_BINDINGS=ocaml
22115
22116
22117 binding_prereqs_failed=0
22118 for a_binding in $BINDINGS_TO_BUILD ; do
22119   case "$a_binding" in
22120   ocaml)
22121     if test "x$OCAMLC" = x ; then
22122       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22123 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22124       binding_prereqs_failed=1
22125     fi
22126     if test "x$OCAMLDEP" = x ; then
22127       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22128 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22129       binding_prereqs_failed=1
22130     fi
22131     if test "x$OCAMLOPT" = x ; then
22132       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22133 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22134           fi
22135     if test "x$with_ocaml_libdir" != xauto ; then
22136       OCAML_LIBDIR=$with_ocaml_libdir
22137
22138     else
22139       ocaml_stdlib="`"$OCAMLC" -where`"
22140       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22141       then
22142         # ocaml stdlib is beneath our prefix; use stdlib
22143         OCAML_LIBDIR=$ocaml_stdlib
22144
22145       else
22146         # ocaml stdlib is outside our prefix; use libdir/ocaml
22147         OCAML_LIBDIR=${prefix}/lib/ocaml
22148
22149       fi
22150     fi
22151     ;;
22152   esac
22153 done
22154 if test "$binding_prereqs_failed" = 1 ; then
22155   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22156 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22157    { (exit 1); exit 1; }; }
22158 fi
22159
22160 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22161 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22162 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22163   echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165    ac_ext=cpp
22166 ac_cpp='$CXXCPP $CPPFLAGS'
22167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22170
22171   oldcxxflags="$CXXFLAGS"
22172   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22173   cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22180 int
22181 main ()
22182 {
22183 X<int>().f();
22184   ;
22185   return 0;
22186 }
22187 _ACEOF
22188 rm -f conftest.$ac_objext
22189 if { (ac_try="$ac_compile"
22190 case "(($ac_try" in
22191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192   *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195   (eval "$ac_compile") 2>conftest.er1
22196   ac_status=$?
22197   grep -v '^ *+' conftest.er1 >conftest.err
22198   rm -f conftest.er1
22199   cat conftest.err >&5
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } &&
22202          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22203   { (case "(($ac_try" in
22204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205   *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208   (eval "$ac_try") 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); }; } &&
22212          { ac_try='test -s conftest.$ac_objext'
22213   { (case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_try") 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   llvm_cv_cxx_visibility_inlines_hidden=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227         llvm_cv_cxx_visibility_inlines_hidden=no
22228 fi
22229
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231   CXXFLAGS="$oldcxxflags"
22232   ac_ext=c
22233 ac_cpp='$CPP $CPPFLAGS'
22234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22237
22238
22239 fi
22240 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22241 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22242 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22243   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22244
22245 else
22246   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22247
22248 fi
22249
22250
22251 if test "$llvm_cv_link_use_r" = "yes" ; then
22252   RPATH="-Wl,-R"
22253 else
22254   RPATH="-Wl,-rpath"
22255 fi
22256
22257
22258 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22259   RDYNAMIC="-rdynamic"
22260 else
22261   RDYNAMIC=""
22262 fi
22263
22264
22265
22266 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22267
22268
22269
22270
22271
22272
22273 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22274
22275 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22276
22277 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22278
22279 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22280
22281 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22282
22283
22284 ac_config_files="$ac_config_files Makefile.config"
22285
22286
22287 ac_config_files="$ac_config_files llvm.spec"
22288
22289
22290 ac_config_files="$ac_config_files docs/doxygen.cfg"
22291
22292
22293 if test "${clang_src_root}" = ""; then
22294   clang_src_root="$srcdir/tools/clang"
22295 fi
22296 if test -f ${clang_src_root}/README.txt; then
22297     configh="include/clang/Config/config.h"
22298   doxy="docs/doxygen.cfg"
22299   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22300
22301   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22302
22303 fi
22304
22305 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22306
22307
22308 test "x$program_prefix" = "xNONE" && program_prefix=""
22309
22310
22311
22312 ac_config_commands="$ac_config_commands setup"
22313
22314 ac_config_commands="$ac_config_commands Makefile"
22315
22316
22317 ac_config_commands="$ac_config_commands Makefile.common"
22318
22319
22320 ac_config_commands="$ac_config_commands examples/Makefile"
22321
22322
22323 ac_config_commands="$ac_config_commands lib/Makefile"
22324
22325
22326 ac_config_commands="$ac_config_commands test/Makefile"
22327
22328
22329 ac_config_commands="$ac_config_commands test/Makefile.tests"
22330
22331
22332 ac_config_commands="$ac_config_commands unittests/Makefile"
22333
22334
22335 ac_config_commands="$ac_config_commands tools/Makefile"
22336
22337
22338 ac_config_commands="$ac_config_commands utils/Makefile"
22339
22340
22341 ac_config_commands="$ac_config_commands projects/Makefile"
22342
22343
22344 ac_config_commands="$ac_config_commands bindings/Makefile"
22345
22346
22347 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22348
22349
22350
22351 cat >confcache <<\_ACEOF
22352 # This file is a shell script that caches the results of configure
22353 # tests run on this system so they can be shared between configure
22354 # scripts and configure runs, see configure's option --config-cache.
22355 # It is not useful on other systems.  If it contains results you don't
22356 # want to keep, you may remove or edit it.
22357 #
22358 # config.status only pays attention to the cache file if you give it
22359 # the --recheck option to rerun configure.
22360 #
22361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22363 # following values.
22364
22365 _ACEOF
22366
22367 # The following way of writing the cache mishandles newlines in values,
22368 # but we know of no workaround that is simple, portable, and efficient.
22369 # So, we kill variables containing newlines.
22370 # Ultrix sh set writes to stderr and can't be redirected directly,
22371 # and sets the high bit in the cache file unless we assign to the vars.
22372 (
22373   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22374     eval ac_val=\$$ac_var
22375     case $ac_val in #(
22376     *${as_nl}*)
22377       case $ac_var in #(
22378       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22379 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22380       esac
22381       case $ac_var in #(
22382       _ | IFS | as_nl) ;; #(
22383       *) $as_unset $ac_var ;;
22384       esac ;;
22385     esac
22386   done
22387
22388   (set) 2>&1 |
22389     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22390     *${as_nl}ac_space=\ *)
22391       # `set' does not quote correctly, so add quotes (double-quote
22392       # substitution turns \\\\ into \\, and sed turns \\ into \).
22393       sed -n \
22394         "s/'/'\\\\''/g;
22395           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22396       ;; #(
22397     *)
22398       # `set' quotes correctly as required by POSIX, so do not add quotes.
22399       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22400       ;;
22401     esac |
22402     sort
22403 ) |
22404   sed '
22405      /^ac_cv_env_/b end
22406      t clear
22407      :clear
22408      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22409      t end
22410      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22411      :end' >>confcache
22412 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22413   if test -w "$cache_file"; then
22414     test "x$cache_file" != "x/dev/null" &&
22415       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22416 echo "$as_me: updating cache $cache_file" >&6;}
22417     cat confcache >$cache_file
22418   else
22419     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22420 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22421   fi
22422 fi
22423 rm -f confcache
22424
22425 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22426 # Let make expand exec_prefix.
22427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22428
22429 DEFS=-DHAVE_CONFIG_H
22430
22431 ac_libobjs=
22432 ac_ltlibobjs=
22433 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22434   # 1. Remove the extension, and $U if already installed.
22435   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22436   ac_i=`echo "$ac_i" | sed "$ac_script"`
22437   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22438   #    will be set to the directory where LIBOBJS objects are built.
22439   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22440   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22441 done
22442 LIBOBJS=$ac_libobjs
22443
22444 LTLIBOBJS=$ac_ltlibobjs
22445
22446
22447 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22448   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22449 Usually this means the macro was only invoked conditionally." >&5
22450 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22451 Usually this means the macro was only invoked conditionally." >&2;}
22452    { (exit 1); exit 1; }; }
22453 fi
22454 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22455   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22456 Usually this means the macro was only invoked conditionally." >&5
22457 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22458 Usually this means the macro was only invoked conditionally." >&2;}
22459    { (exit 1); exit 1; }; }
22460 fi
22461
22462 : ${CONFIG_STATUS=./config.status}
22463 ac_clean_files_save=$ac_clean_files
22464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22465 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22466 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22467 cat >$CONFIG_STATUS <<_ACEOF
22468 #! $SHELL
22469 # Generated by $as_me.
22470 # Run this file to recreate the current configuration.
22471 # Compiler output produced by configure, useful for debugging
22472 # configure, is in config.log if it exists.
22473
22474 debug=false
22475 ac_cs_recheck=false
22476 ac_cs_silent=false
22477 SHELL=\${CONFIG_SHELL-$SHELL}
22478 _ACEOF
22479
22480 cat >>$CONFIG_STATUS <<\_ACEOF
22481 ## --------------------- ##
22482 ## M4sh Initialization.  ##
22483 ## --------------------- ##
22484
22485 # Be Bourne compatible
22486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22487   emulate sh
22488   NULLCMD=:
22489   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22490   # is contrary to our usage.  Disable this feature.
22491   alias -g '${1+"$@"}'='"$@"'
22492   setopt NO_GLOB_SUBST
22493 else
22494   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22495 fi
22496 BIN_SH=xpg4; export BIN_SH # for Tru64
22497 DUALCASE=1; export DUALCASE # for MKS sh
22498
22499
22500 # PATH needs CR
22501 # Avoid depending upon Character Ranges.
22502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22505 as_cr_digits='0123456789'
22506 as_cr_alnum=$as_cr_Letters$as_cr_digits
22507
22508 # The user is always right.
22509 if test "${PATH_SEPARATOR+set}" != set; then
22510   echo "#! /bin/sh" >conf$$.sh
22511   echo  "exit 0"   >>conf$$.sh
22512   chmod +x conf$$.sh
22513   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22514     PATH_SEPARATOR=';'
22515   else
22516     PATH_SEPARATOR=:
22517   fi
22518   rm -f conf$$.sh
22519 fi
22520
22521 # Support unset when possible.
22522 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22523   as_unset=unset
22524 else
22525   as_unset=false
22526 fi
22527
22528
22529 # IFS
22530 # We need space, tab and new line, in precisely that order.  Quoting is
22531 # there to prevent editors from complaining about space-tab.
22532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22533 # splitting by setting IFS to empty value.)
22534 as_nl='
22535 '
22536 IFS=" ""        $as_nl"
22537
22538 # Find who we are.  Look in the path if we contain no directory separator.
22539 case $0 in
22540   *[\\/]* ) as_myself=$0 ;;
22541   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22542 for as_dir in $PATH
22543 do
22544   IFS=$as_save_IFS
22545   test -z "$as_dir" && as_dir=.
22546   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22547 done
22548 IFS=$as_save_IFS
22549
22550      ;;
22551 esac
22552 # We did not find ourselves, most probably we were run as `sh COMMAND'
22553 # in which case we are not to be found in the path.
22554 if test "x$as_myself" = x; then
22555   as_myself=$0
22556 fi
22557 if test ! -f "$as_myself"; then
22558   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22559   { (exit 1); exit 1; }
22560 fi
22561
22562 # Work around bugs in pre-3.0 UWIN ksh.
22563 for as_var in ENV MAIL MAILPATH
22564 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22565 done
22566 PS1='$ '
22567 PS2='> '
22568 PS4='+ '
22569
22570 # NLS nuisances.
22571 for as_var in \
22572   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22573   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22574   LC_TELEPHONE LC_TIME
22575 do
22576   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22577     eval $as_var=C; export $as_var
22578   else
22579     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22580   fi
22581 done
22582
22583 # Required to use basename.
22584 if expr a : '\(a\)' >/dev/null 2>&1 &&
22585    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22586   as_expr=expr
22587 else
22588   as_expr=false
22589 fi
22590
22591 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22592   as_basename=basename
22593 else
22594   as_basename=false
22595 fi
22596
22597
22598 # Name of the executable.
22599 as_me=`$as_basename -- "$0" ||
22600 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22601          X"$0" : 'X\(//\)$' \| \
22602          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22603 echo X/"$0" |
22604     sed '/^.*\/\([^/][^/]*\)\/*$/{
22605             s//\1/
22606             q
22607           }
22608           /^X\/\(\/\/\)$/{
22609             s//\1/
22610             q
22611           }
22612           /^X\/\(\/\).*/{
22613             s//\1/
22614             q
22615           }
22616           s/.*/./; q'`
22617
22618 # CDPATH.
22619 $as_unset CDPATH
22620
22621
22622
22623   as_lineno_1=$LINENO
22624   as_lineno_2=$LINENO
22625   test "x$as_lineno_1" != "x$as_lineno_2" &&
22626   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22627
22628   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22629   # uniformly replaced by the line number.  The first 'sed' inserts a
22630   # line-number line after each line using $LINENO; the second 'sed'
22631   # does the real work.  The second script uses 'N' to pair each
22632   # line-number line with the line containing $LINENO, and appends
22633   # trailing '-' during substitution so that $LINENO is not a special
22634   # case at line end.
22635   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22636   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22637   # E. McMahon (1931-1989) for sed's syntax.  :-)
22638   sed -n '
22639     p
22640     /[$]LINENO/=
22641   ' <$as_myself |
22642     sed '
22643       s/[$]LINENO.*/&-/
22644       t lineno
22645       b
22646       :lineno
22647       N
22648       :loop
22649       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22650       t loop
22651       s/-\n.*//
22652     ' >$as_me.lineno &&
22653   chmod +x "$as_me.lineno" ||
22654     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22655    { (exit 1); exit 1; }; }
22656
22657   # Don't try to exec as it changes $[0], causing all sort of problems
22658   # (the dirname of $[0] is not the place where we might find the
22659   # original and so on.  Autoconf is especially sensitive to this).
22660   . "./$as_me.lineno"
22661   # Exit status is that of the last command.
22662   exit
22663 }
22664
22665
22666 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22667   as_dirname=dirname
22668 else
22669   as_dirname=false
22670 fi
22671
22672 ECHO_C= ECHO_N= ECHO_T=
22673 case `echo -n x` in
22674 -n*)
22675   case `echo 'x\c'` in
22676   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22677   *)   ECHO_C='\c';;
22678   esac;;
22679 *)
22680   ECHO_N='-n';;
22681 esac
22682
22683 if expr a : '\(a\)' >/dev/null 2>&1 &&
22684    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22685   as_expr=expr
22686 else
22687   as_expr=false
22688 fi
22689
22690 rm -f conf$$ conf$$.exe conf$$.file
22691 if test -d conf$$.dir; then
22692   rm -f conf$$.dir/conf$$.file
22693 else
22694   rm -f conf$$.dir
22695   mkdir conf$$.dir
22696 fi
22697 echo >conf$$.file
22698 if ln -s conf$$.file conf$$ 2>/dev/null; then
22699   as_ln_s='ln -s'
22700   # ... but there are two gotchas:
22701   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22702   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22703   # In both cases, we have to default to `cp -p'.
22704   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22705     as_ln_s='cp -p'
22706 elif ln conf$$.file conf$$ 2>/dev/null; then
22707   as_ln_s=ln
22708 else
22709   as_ln_s='cp -p'
22710 fi
22711 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22712 rmdir conf$$.dir 2>/dev/null
22713
22714 if mkdir -p . 2>/dev/null; then
22715   as_mkdir_p=:
22716 else
22717   test -d ./-p && rmdir ./-p
22718   as_mkdir_p=false
22719 fi
22720
22721 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22722 # systems may use methods other than mode bits to determine executability.
22723 cat >conf$$.file <<_ASEOF
22724 #! /bin/sh
22725 exit 0
22726 _ASEOF
22727 chmod +x conf$$.file
22728 if test -x conf$$.file >/dev/null 2>&1; then
22729   as_executable_p="test -x"
22730 else
22731   as_executable_p=:
22732 fi
22733 rm -f conf$$.file
22734
22735 # Sed expression to map a string onto a valid CPP name.
22736 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22737
22738 # Sed expression to map a string onto a valid variable name.
22739 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22740
22741
22742 exec 6>&1
22743
22744 # Save the log message, to keep $[0] and so on meaningful, and to
22745 # report actual input values of CONFIG_FILES etc. instead of their
22746 # values after options handling.
22747 ac_log="
22748 This file was extended by LLVM $as_me 3.5svn, which was
22749 generated by GNU Autoconf 2.60.  Invocation command line was
22750
22751   CONFIG_FILES    = $CONFIG_FILES
22752   CONFIG_HEADERS  = $CONFIG_HEADERS
22753   CONFIG_LINKS    = $CONFIG_LINKS
22754   CONFIG_COMMANDS = $CONFIG_COMMANDS
22755   $ $0 $@
22756
22757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22758 "
22759
22760 _ACEOF
22761
22762 cat >>$CONFIG_STATUS <<_ACEOF
22763 # Files that config.status was made for.
22764 config_files="$ac_config_files"
22765 config_headers="$ac_config_headers"
22766 config_commands="$ac_config_commands"
22767
22768 _ACEOF
22769
22770 cat >>$CONFIG_STATUS <<\_ACEOF
22771 ac_cs_usage="\
22772 \`$as_me' instantiates files from templates according to the
22773 current configuration.
22774
22775 Usage: $0 [OPTIONS] [FILE]...
22776
22777   -h, --help       print this help, then exit
22778   -V, --version    print version number, then exit
22779   -q, --quiet      do not print progress messages
22780   -d, --debug      don't remove temporary files
22781       --recheck    update $as_me by reconfiguring in the same conditions
22782   --file=FILE[:TEMPLATE]
22783                    instantiate the configuration file FILE
22784   --header=FILE[:TEMPLATE]
22785                    instantiate the configuration header FILE
22786
22787 Configuration files:
22788 $config_files
22789
22790 Configuration headers:
22791 $config_headers
22792
22793 Configuration commands:
22794 $config_commands
22795
22796 Report bugs to <bug-autoconf@gnu.org>."
22797
22798 _ACEOF
22799 cat >>$CONFIG_STATUS <<_ACEOF
22800 ac_cs_version="\\
22801 LLVM config.status 3.5svn
22802 configured by $0, generated by GNU Autoconf 2.60,
22803   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22804
22805 Copyright (C) 2006 Free Software Foundation, Inc.
22806 This config.status script is free software; the Free Software Foundation
22807 gives unlimited permission to copy, distribute and modify it."
22808
22809 ac_pwd='$ac_pwd'
22810 srcdir='$srcdir'
22811 INSTALL='$INSTALL'
22812 _ACEOF
22813
22814 cat >>$CONFIG_STATUS <<\_ACEOF
22815 # If no file are specified by the user, then we need to provide default
22816 # value.  By we need to know if files were specified by the user.
22817 ac_need_defaults=:
22818 while test $# != 0
22819 do
22820   case $1 in
22821   --*=*)
22822     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22823     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22824     ac_shift=:
22825     ;;
22826   *)
22827     ac_option=$1
22828     ac_optarg=$2
22829     ac_shift=shift
22830     ;;
22831   esac
22832
22833   case $ac_option in
22834   # Handling of the options.
22835   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22836     ac_cs_recheck=: ;;
22837   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22838     echo "$ac_cs_version"; exit ;;
22839   --debug | --debu | --deb | --de | --d | -d )
22840     debug=: ;;
22841   --file | --fil | --fi | --f )
22842     $ac_shift
22843     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22844     ac_need_defaults=false;;
22845   --header | --heade | --head | --hea )
22846     $ac_shift
22847     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22848     ac_need_defaults=false;;
22849   --he | --h)
22850     # Conflict between --help and --header
22851     { echo "$as_me: error: ambiguous option: $1
22852 Try \`$0 --help' for more information." >&2
22853    { (exit 1); exit 1; }; };;
22854   --help | --hel | -h )
22855     echo "$ac_cs_usage"; exit ;;
22856   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22857   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22858     ac_cs_silent=: ;;
22859
22860   # This is an error.
22861   -*) { echo "$as_me: error: unrecognized option: $1
22862 Try \`$0 --help' for more information." >&2
22863    { (exit 1); exit 1; }; } ;;
22864
22865   *) ac_config_targets="$ac_config_targets $1"
22866      ac_need_defaults=false ;;
22867
22868   esac
22869   shift
22870 done
22871
22872 ac_configure_extra_args=
22873
22874 if $ac_cs_silent; then
22875   exec 6>/dev/null
22876   ac_configure_extra_args="$ac_configure_extra_args --silent"
22877 fi
22878
22879 _ACEOF
22880 cat >>$CONFIG_STATUS <<_ACEOF
22881 if \$ac_cs_recheck; then
22882   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22883   CONFIG_SHELL=$SHELL
22884   export CONFIG_SHELL
22885   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22886 fi
22887
22888 _ACEOF
22889 cat >>$CONFIG_STATUS <<\_ACEOF
22890 exec 5>>config.log
22891 {
22892   echo
22893   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22894 ## Running $as_me. ##
22895 _ASBOX
22896   echo "$ac_log"
22897 } >&5
22898
22899 _ACEOF
22900 cat >>$CONFIG_STATUS <<_ACEOF
22901 #
22902 # INIT-COMMANDS
22903 #
22904 llvm_src="${srcdir}"
22905
22906 _ACEOF
22907
22908 cat >>$CONFIG_STATUS <<\_ACEOF
22909
22910 # Handling of arguments.
22911 for ac_config_target in $ac_config_targets
22912 do
22913   case $ac_config_target in
22914     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22915     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22916     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22917     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22918     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22919     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22920     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22921     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22922     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22923     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22924     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22925     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22926     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22927     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22928     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22929     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22930     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22931     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22932     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22933     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22934     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22935     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22936     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22937     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22938     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22939     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22940
22941   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22942 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22943    { (exit 1); exit 1; }; };;
22944   esac
22945 done
22946
22947
22948 # If the user did not use the arguments to specify the items to instantiate,
22949 # then the envvar interface is used.  Set only those that are not.
22950 # We use the long form for the default assignment because of an extremely
22951 # bizarre bug on SunOS 4.1.3.
22952 if $ac_need_defaults; then
22953   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22954   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22955   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22956 fi
22957
22958 # Have a temporary directory for convenience.  Make it in the build tree
22959 # simply because there is no reason against having it here, and in addition,
22960 # creating and moving files from /tmp can sometimes cause problems.
22961 # Hook for its removal unless debugging.
22962 # Note that there is a small window in which the directory will not be cleaned:
22963 # after its creation but before its name has been assigned to `$tmp'.
22964 $debug ||
22965 {
22966   tmp=
22967   trap 'exit_status=$?
22968   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22969 ' 0
22970   trap '{ (exit 1); exit 1; }' 1 2 13 15
22971 }
22972 # Create a (secure) tmp directory for tmp files.
22973
22974 {
22975   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22976   test -n "$tmp" && test -d "$tmp"
22977 }  ||
22978 {
22979   tmp=./conf$$-$RANDOM
22980   (umask 077 && mkdir "$tmp")
22981 } ||
22982 {
22983    echo "$me: cannot create a temporary directory in ." >&2
22984    { (exit 1); exit 1; }
22985 }
22986
22987 #
22988 # Set up the sed scripts for CONFIG_FILES section.
22989 #
22990
22991 # No need to generate the scripts if there are no CONFIG_FILES.
22992 # This happens for instance when ./config.status config.h
22993 if test -n "$CONFIG_FILES"; then
22994
22995 _ACEOF
22996
22997
22998
22999 ac_delim='%!_!# '
23000 for ac_last_try in false false false false false :; do
23001   cat >conf$$subs.sed <<_ACEOF
23002 SHELL!$SHELL$ac_delim
23003 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23004 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23005 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23006 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23007 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23008 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23009 exec_prefix!$exec_prefix$ac_delim
23010 prefix!$prefix$ac_delim
23011 program_transform_name!$program_transform_name$ac_delim
23012 bindir!$bindir$ac_delim
23013 sbindir!$sbindir$ac_delim
23014 libexecdir!$libexecdir$ac_delim
23015 datarootdir!$datarootdir$ac_delim
23016 datadir!$datadir$ac_delim
23017 sysconfdir!$sysconfdir$ac_delim
23018 sharedstatedir!$sharedstatedir$ac_delim
23019 localstatedir!$localstatedir$ac_delim
23020 includedir!$includedir$ac_delim
23021 oldincludedir!$oldincludedir$ac_delim
23022 docdir!$docdir$ac_delim
23023 infodir!$infodir$ac_delim
23024 htmldir!$htmldir$ac_delim
23025 dvidir!$dvidir$ac_delim
23026 pdfdir!$pdfdir$ac_delim
23027 psdir!$psdir$ac_delim
23028 libdir!$libdir$ac_delim
23029 localedir!$localedir$ac_delim
23030 mandir!$mandir$ac_delim
23031 DEFS!$DEFS$ac_delim
23032 ECHO_C!$ECHO_C$ac_delim
23033 ECHO_N!$ECHO_N$ac_delim
23034 ECHO_T!$ECHO_T$ac_delim
23035 LIBS!$LIBS$ac_delim
23036 build_alias!$build_alias$ac_delim
23037 host_alias!$host_alias$ac_delim
23038 target_alias!$target_alias$ac_delim
23039 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23040 CC!$CC$ac_delim
23041 CFLAGS!$CFLAGS$ac_delim
23042 LDFLAGS!$LDFLAGS$ac_delim
23043 CPPFLAGS!$CPPFLAGS$ac_delim
23044 ac_ct_CC!$ac_ct_CC$ac_delim
23045 EXEEXT!$EXEEXT$ac_delim
23046 OBJEXT!$OBJEXT$ac_delim
23047 CXX!$CXX$ac_delim
23048 CXXFLAGS!$CXXFLAGS$ac_delim
23049 ac_ct_CXX!$ac_ct_CXX$ac_delim
23050 CPP!$CPP$ac_delim
23051 subdirs!$subdirs$ac_delim
23052 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23053 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23054 build!$build$ac_delim
23055 build_cpu!$build_cpu$ac_delim
23056 build_vendor!$build_vendor$ac_delim
23057 build_os!$build_os$ac_delim
23058 host!$host$ac_delim
23059 host_cpu!$host_cpu$ac_delim
23060 host_vendor!$host_vendor$ac_delim
23061 host_os!$host_os$ac_delim
23062 target!$target$ac_delim
23063 target_cpu!$target_cpu$ac_delim
23064 target_vendor!$target_vendor$ac_delim
23065 target_os!$target_os$ac_delim
23066 OS!$OS$ac_delim
23067 HOST_OS!$HOST_OS$ac_delim
23068 TARGET_OS!$TARGET_OS$ac_delim
23069 LINKALL!$LINKALL$ac_delim
23070 NOLINKALL!$NOLINKALL$ac_delim
23071 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23072 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23073 ARCH!$ARCH$ac_delim
23074 HOST_ARCH!$HOST_ARCH$ac_delim
23075 ENDIAN!$ENDIAN$ac_delim
23076 GREP!$GREP$ac_delim
23077 EGREP!$EGREP$ac_delim
23078 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23079 BUILD_CC!$BUILD_CC$ac_delim
23080 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23081 BUILD_CXX!$BUILD_CXX$ac_delim
23082 CVSBUILD!$CVSBUILD$ac_delim
23083 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23084 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23085 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23086 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23087 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23088 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23089 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23090 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23091 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23092 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23093 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23094 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23095 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23096 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23097 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23098 JIT!$JIT$ac_delim
23099 _ACEOF
23100
23101   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23102     break
23103   elif $ac_last_try; then
23104     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23105 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23106    { (exit 1); exit 1; }; }
23107   else
23108     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23109   fi
23110 done
23111
23112 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23113 if test -n "$ac_eof"; then
23114   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23115   ac_eof=`expr $ac_eof + 1`
23116 fi
23117
23118 cat >>$CONFIG_STATUS <<_ACEOF
23119 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23121 _ACEOF
23122 sed '
23123 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23124 s/^/s,@/; s/!/@,|#_!!_#|/
23125 :n
23126 t n
23127 s/'"$ac_delim"'$/,g/; t
23128 s/$/\\/; p
23129 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23130 ' >>$CONFIG_STATUS <conf$$subs.sed
23131 rm -f conf$$subs.sed
23132 cat >>$CONFIG_STATUS <<_ACEOF
23133 CEOF$ac_eof
23134 _ACEOF
23135
23136
23137 ac_delim='%!_!# '
23138 for ac_last_try in false false false false false :; do
23139   cat >conf$$subs.sed <<_ACEOF
23140 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23141 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23142 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23143 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23144 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23145 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23146 ENABLE_PIC!$ENABLE_PIC$ac_delim
23147 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23148 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23149 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23150 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23151 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23152 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23153 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23154 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23155 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23156 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23157 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23158 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23159 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23160 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23161 NM!$NM$ac_delim
23162 ifGNUmake!$ifGNUmake$ac_delim
23163 LN_S!$LN_S$ac_delim
23164 CMP!$CMP$ac_delim
23165 CP!$CP$ac_delim
23166 DATE!$DATE$ac_delim
23167 FIND!$FIND$ac_delim
23168 MKDIR!$MKDIR$ac_delim
23169 MV!$MV$ac_delim
23170 RANLIB!$RANLIB$ac_delim
23171 AR!$AR$ac_delim
23172 RM!$RM$ac_delim
23173 SED!$SED$ac_delim
23174 TAR!$TAR$ac_delim
23175 BINPWD!$BINPWD$ac_delim
23176 GRAPHVIZ!$GRAPHVIZ$ac_delim
23177 DOT!$DOT$ac_delim
23178 FDP!$FDP$ac_delim
23179 NEATO!$NEATO$ac_delim
23180 TWOPI!$TWOPI$ac_delim
23181 CIRCO!$CIRCO$ac_delim
23182 GV!$GV$ac_delim
23183 DOTTY!$DOTTY$ac_delim
23184 XDOT!$XDOT$ac_delim
23185 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23186 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23187 INSTALL_DATA!$INSTALL_DATA$ac_delim
23188 BZIP2!$BZIP2$ac_delim
23189 CAT!$CAT$ac_delim
23190 DOXYGEN!$DOXYGEN$ac_delim
23191 GROFF!$GROFF$ac_delim
23192 GZIPBIN!$GZIPBIN$ac_delim
23193 PDFROFF!$PDFROFF$ac_delim
23194 ZIP!$ZIP$ac_delim
23195 OCAMLC!$OCAMLC$ac_delim
23196 OCAMLOPT!$OCAMLOPT$ac_delim
23197 OCAMLDEP!$OCAMLDEP$ac_delim
23198 OCAMLDOC!$OCAMLDOC$ac_delim
23199 GAS!$GAS$ac_delim
23200 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23201 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23202 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23203 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23204 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23205 LIBADD_DL!$LIBADD_DL$ac_delim
23206 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23207 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23208 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23209 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23210 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23211 PYTHON!$PYTHON$ac_delim
23212 USE_UDIS86!$USE_UDIS86$ac_delim
23213 USE_OPROFILE!$USE_OPROFILE$ac_delim
23214 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23215 XML2CONFIG!$XML2CONFIG$ac_delim
23216 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23217 LIBXML2_INC!$LIBXML2_INC$ac_delim
23218 CXXCPP!$CXXCPP$ac_delim
23219 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23220 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23221 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23222 MMAP_FILE!$MMAP_FILE$ac_delim
23223 SHLIBEXT!$SHLIBEXT$ac_delim
23224 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23225 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23226 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23227 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23228 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23229 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23230 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23231 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23232 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23233 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23234 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23235 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23236 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23237 _ACEOF
23238
23239   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23240     break
23241   elif $ac_last_try; then
23242     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23244    { (exit 1); exit 1; }; }
23245   else
23246     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23247   fi
23248 done
23249
23250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23251 if test -n "$ac_eof"; then
23252   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23253   ac_eof=`expr $ac_eof + 1`
23254 fi
23255
23256 cat >>$CONFIG_STATUS <<_ACEOF
23257 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23259 _ACEOF
23260 sed '
23261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23262 s/^/s,@/; s/!/@,|#_!!_#|/
23263 :n
23264 t n
23265 s/'"$ac_delim"'$/,g/; t
23266 s/$/\\/; p
23267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23268 ' >>$CONFIG_STATUS <conf$$subs.sed
23269 rm -f conf$$subs.sed
23270 cat >>$CONFIG_STATUS <<_ACEOF
23271 CEOF$ac_eof
23272 _ACEOF
23273
23274
23275 ac_delim='%!_!# '
23276 for ac_last_try in false false false false false :; do
23277   cat >conf$$subs.sed <<_ACEOF
23278 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23279 RPATH!$RPATH$ac_delim
23280 RDYNAMIC!$RDYNAMIC$ac_delim
23281 program_prefix!$program_prefix$ac_delim
23282 LIBOBJS!$LIBOBJS$ac_delim
23283 LTLIBOBJS!$LTLIBOBJS$ac_delim
23284 _ACEOF
23285
23286   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23287     break
23288   elif $ac_last_try; then
23289     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23290 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23291    { (exit 1); exit 1; }; }
23292   else
23293     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23294   fi
23295 done
23296
23297 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23298 if test -n "$ac_eof"; then
23299   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23300   ac_eof=`expr $ac_eof + 1`
23301 fi
23302
23303 cat >>$CONFIG_STATUS <<_ACEOF
23304 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23306 _ACEOF
23307 sed '
23308 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23309 s/^/s,@/; s/!/@,|#_!!_#|/
23310 :n
23311 t n
23312 s/'"$ac_delim"'$/,g/; t
23313 s/$/\\/; p
23314 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23315 ' >>$CONFIG_STATUS <conf$$subs.sed
23316 rm -f conf$$subs.sed
23317 cat >>$CONFIG_STATUS <<_ACEOF
23318 :end
23319 s/|#_!!_#|//g
23320 CEOF$ac_eof
23321 _ACEOF
23322
23323
23324 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23325 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23326 # trailing colons and then remove the whole line if VPATH becomes empty
23327 # (actually we leave an empty line to preserve line numbers).
23328 if test "x$srcdir" = x.; then
23329   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23330 s/:*\$(srcdir):*/:/
23331 s/:*\${srcdir}:*/:/
23332 s/:*@srcdir@:*/:/
23333 s/^\([^=]*=[     ]*\):*/\1/
23334 s/:*$//
23335 s/^[^=]*=[       ]*$//
23336 }'
23337 fi
23338
23339 cat >>$CONFIG_STATUS <<\_ACEOF
23340 fi # test -n "$CONFIG_FILES"
23341
23342
23343 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23344 do
23345   case $ac_tag in
23346   :[FHLC]) ac_mode=$ac_tag; continue;;
23347   esac
23348   case $ac_mode$ac_tag in
23349   :[FHL]*:*);;
23350   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23351 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23352    { (exit 1); exit 1; }; };;
23353   :[FH]-) ac_tag=-:-;;
23354   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23355   esac
23356   ac_save_IFS=$IFS
23357   IFS=:
23358   set x $ac_tag
23359   IFS=$ac_save_IFS
23360   shift
23361   ac_file=$1
23362   shift
23363
23364   case $ac_mode in
23365   :L) ac_source=$1;;
23366   :[FH])
23367     ac_file_inputs=
23368     for ac_f
23369     do
23370       case $ac_f in
23371       -) ac_f="$tmp/stdin";;
23372       *) # Look for the file first in the build tree, then in the source tree
23373          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23374          # because $ac_f cannot contain `:'.
23375          test -f "$ac_f" ||
23376            case $ac_f in
23377            [\\/$]*) false;;
23378            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23379            esac ||
23380            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23381 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23382    { (exit 1); exit 1; }; };;
23383       esac
23384       ac_file_inputs="$ac_file_inputs $ac_f"
23385     done
23386
23387     # Let's still pretend it is `configure' which instantiates (i.e., don't
23388     # use $as_me), people would be surprised to read:
23389     #    /* config.h.  Generated by config.status.  */
23390     configure_input="Generated from "`IFS=:
23391           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23392     if test x"$ac_file" != x-; then
23393       configure_input="$ac_file.  $configure_input"
23394       { echo "$as_me:$LINENO: creating $ac_file" >&5
23395 echo "$as_me: creating $ac_file" >&6;}
23396     fi
23397
23398     case $ac_tag in
23399     *:-:* | *:-) cat >"$tmp/stdin";;
23400     esac
23401     ;;
23402   esac
23403
23404   ac_dir=`$as_dirname -- "$ac_file" ||
23405 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23406          X"$ac_file" : 'X\(//\)[^/]' \| \
23407          X"$ac_file" : 'X\(//\)$' \| \
23408          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23409 echo X"$ac_file" |
23410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23411             s//\1/
23412             q
23413           }
23414           /^X\(\/\/\)[^/].*/{
23415             s//\1/
23416             q
23417           }
23418           /^X\(\/\/\)$/{
23419             s//\1/
23420             q
23421           }
23422           /^X\(\/\).*/{
23423             s//\1/
23424             q
23425           }
23426           s/.*/./; q'`
23427   { as_dir="$ac_dir"
23428   case $as_dir in #(
23429   -*) as_dir=./$as_dir;;
23430   esac
23431   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23432     as_dirs=
23433     while :; do
23434       case $as_dir in #(
23435       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23436       *) as_qdir=$as_dir;;
23437       esac
23438       as_dirs="'$as_qdir' $as_dirs"
23439       as_dir=`$as_dirname -- "$as_dir" ||
23440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23441          X"$as_dir" : 'X\(//\)[^/]' \| \
23442          X"$as_dir" : 'X\(//\)$' \| \
23443          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23444 echo X"$as_dir" |
23445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23446             s//\1/
23447             q
23448           }
23449           /^X\(\/\/\)[^/].*/{
23450             s//\1/
23451             q
23452           }
23453           /^X\(\/\/\)$/{
23454             s//\1/
23455             q
23456           }
23457           /^X\(\/\).*/{
23458             s//\1/
23459             q
23460           }
23461           s/.*/./; q'`
23462       test -d "$as_dir" && break
23463     done
23464     test -z "$as_dirs" || eval "mkdir $as_dirs"
23465   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23466 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23467    { (exit 1); exit 1; }; }; }
23468   ac_builddir=.
23469
23470 case "$ac_dir" in
23471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23472 *)
23473   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23474   # A ".." for each directory in $ac_dir_suffix.
23475   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23476   case $ac_top_builddir_sub in
23477   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23478   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23479   esac ;;
23480 esac
23481 ac_abs_top_builddir=$ac_pwd
23482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23483 # for backward compatibility:
23484 ac_top_builddir=$ac_top_build_prefix
23485
23486 case $srcdir in
23487   .)  # We are building in place.
23488     ac_srcdir=.
23489     ac_top_srcdir=$ac_top_builddir_sub
23490     ac_abs_top_srcdir=$ac_pwd ;;
23491   [\\/]* | ?:[\\/]* )  # Absolute name.
23492     ac_srcdir=$srcdir$ac_dir_suffix;
23493     ac_top_srcdir=$srcdir
23494     ac_abs_top_srcdir=$srcdir ;;
23495   *) # Relative name.
23496     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23497     ac_top_srcdir=$ac_top_build_prefix$srcdir
23498     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23499 esac
23500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23501
23502
23503   case $ac_mode in
23504   :F)
23505   #
23506   # CONFIG_FILE
23507   #
23508
23509   case $INSTALL in
23510   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23511   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23512   esac
23513 _ACEOF
23514
23515 cat >>$CONFIG_STATUS <<\_ACEOF
23516 # If the template does not know about datarootdir, expand it.
23517 # FIXME: This hack should be removed a few years after 2.60.
23518 ac_datarootdir_hack=; ac_datarootdir_seen=
23519
23520 case `sed -n '/datarootdir/ {
23521   p
23522   q
23523 }
23524 /@datadir@/p
23525 /@docdir@/p
23526 /@infodir@/p
23527 /@localedir@/p
23528 /@mandir@/p
23529 ' $ac_file_inputs` in
23530 *datarootdir*) ac_datarootdir_seen=yes;;
23531 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23532   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23533 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23534 _ACEOF
23535 cat >>$CONFIG_STATUS <<_ACEOF
23536   ac_datarootdir_hack='
23537   s&@datadir@&$datadir&g
23538   s&@docdir@&$docdir&g
23539   s&@infodir@&$infodir&g
23540   s&@localedir@&$localedir&g
23541   s&@mandir@&$mandir&g
23542     s&\\\${datarootdir}&$datarootdir&g' ;;
23543 esac
23544 _ACEOF
23545
23546 # Neutralize VPATH when `$srcdir' = `.'.
23547 # Shell code in configure.ac might set extrasub.
23548 # FIXME: do we really want to maintain this feature?
23549 cat >>$CONFIG_STATUS <<_ACEOF
23550   sed "$ac_vpsub
23551 $extrasub
23552 _ACEOF
23553 cat >>$CONFIG_STATUS <<\_ACEOF
23554 :t
23555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23556 s&@configure_input@&$configure_input&;t t
23557 s&@top_builddir@&$ac_top_builddir_sub&;t t
23558 s&@srcdir@&$ac_srcdir&;t t
23559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23560 s&@top_srcdir@&$ac_top_srcdir&;t t
23561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23562 s&@builddir@&$ac_builddir&;t t
23563 s&@abs_builddir@&$ac_abs_builddir&;t t
23564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23565 s&@INSTALL@&$ac_INSTALL&;t t
23566 $ac_datarootdir_hack
23567 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23568
23569 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23570   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23571   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23572   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23573 which seems to be undefined.  Please make sure it is defined." >&5
23574 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23575 which seems to be undefined.  Please make sure it is defined." >&2;}
23576
23577   rm -f "$tmp/stdin"
23578   case $ac_file in
23579   -) cat "$tmp/out"; rm -f "$tmp/out";;
23580   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23581   esac
23582  ;;
23583   :H)
23584   #
23585   # CONFIG_HEADER
23586   #
23587 _ACEOF
23588
23589 # Transform confdefs.h into a sed script `conftest.defines', that
23590 # substitutes the proper values into config.h.in to produce config.h.
23591 rm -f conftest.defines conftest.tail
23592 # First, append a space to every undef/define line, to ease matching.
23593 echo 's/$/ /' >conftest.defines
23594 # Then, protect against being on the right side of a sed subst, or in
23595 # an unquoted here document, in config.status.  If some macros were
23596 # called several times there might be several #defines for the same
23597 # symbol, which is useless.  But do not sort them, since the last
23598 # AC_DEFINE must be honored.
23599 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23600 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23601 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23602 # PARAMS is the parameter list in the macro definition--in most cases, it's
23603 # just an empty string.
23604 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23605 ac_dB='\\)[      (].*,\\1define\\2'
23606 ac_dC=' '
23607 ac_dD=' ,'
23608
23609 uniq confdefs.h |
23610   sed -n '
23611         t rset
23612         :rset
23613         s/^[     ]*#[    ]*define[       ][      ]*//
23614         t ok
23615         d
23616         :ok
23617         s/[\\&,]/\\&/g
23618         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23619         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23620   ' >>conftest.defines
23621
23622 # Remove the space that was appended to ease matching.
23623 # Then replace #undef with comments.  This is necessary, for
23624 # example, in the case of _POSIX_SOURCE, which is predefined and required
23625 # on some systems where configure will not decide to define it.
23626 # (The regexp can be short, since the line contains either #define or #undef.)
23627 echo 's/ $//
23628 s,^[     #]*u.*,/* & */,' >>conftest.defines
23629
23630 # Break up conftest.defines:
23631 ac_max_sed_lines=50
23632
23633 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23634 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23635 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23636 # et cetera.
23637 ac_in='$ac_file_inputs'
23638 ac_out='"$tmp/out1"'
23639 ac_nxt='"$tmp/out2"'
23640
23641 while :
23642 do
23643   # Write a here document:
23644     cat >>$CONFIG_STATUS <<_ACEOF
23645     # First, check the format of the line:
23646     cat >"\$tmp/defines.sed" <<\\CEOF
23647 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23648 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23649 b
23650 :def
23651 _ACEOF
23652   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23653   echo 'CEOF
23654     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23655   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23656   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23657   grep . conftest.tail >/dev/null || break
23658   rm -f conftest.defines
23659   mv conftest.tail conftest.defines
23660 done
23661 rm -f conftest.defines conftest.tail
23662
23663 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23664 cat >>$CONFIG_STATUS <<\_ACEOF
23665   if test x"$ac_file" != x-; then
23666     echo "/* $configure_input  */" >"$tmp/config.h"
23667     cat "$ac_result" >>"$tmp/config.h"
23668     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23669       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23670 echo "$as_me: $ac_file is unchanged" >&6;}
23671     else
23672       rm -f $ac_file
23673       mv "$tmp/config.h" $ac_file
23674     fi
23675   else
23676     echo "/* $configure_input  */"
23677     cat "$ac_result"
23678   fi
23679   rm -f "$tmp/out12"
23680  ;;
23681
23682   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23683 echo "$as_me: executing $ac_file commands" >&6;}
23684  ;;
23685   esac
23686
23687
23688   case $ac_file$ac_mode in
23689     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23690    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23691     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23692    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23693     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23694    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23695     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23696    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23697     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23698    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23699     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23700    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23701     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23702    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23703     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23704    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23705     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23706    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23707     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23708    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23709     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23710    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23711     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23712    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23713
23714   esac
23715 done # for ac_tag
23716
23717
23718 { (exit 0); exit 0; }
23719 _ACEOF
23720 chmod +x $CONFIG_STATUS
23721 ac_clean_files=$ac_clean_files_save
23722
23723
23724 # configure is writing to config.log, and then calls config.status.
23725 # config.status does its own redirection, appending to config.log.
23726 # Unfortunately, on DOS this fails, as config.log is still kept open
23727 # by configure, so config.status won't be able to write to it; its
23728 # output is simply discarded.  So we exec the FD to /dev/null,
23729 # effectively closing config.log, so it can be properly (re)opened and
23730 # appended to by config.status.  When coming back to configure, we
23731 # need to make the FD available again.
23732 if test "$no_create" != yes; then
23733   ac_cs_success=:
23734   ac_config_status_args=
23735   test "$silent" = yes &&
23736     ac_config_status_args="$ac_config_status_args --quiet"
23737   exec 5>/dev/null
23738   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23739   exec 5>>config.log
23740   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23741   # would make configure fail if this is the last instruction.
23742   $ac_cs_success || { (exit 1); exit 1; }
23743 fi
23744
23745 #
23746 # CONFIG_SUBDIRS section.
23747 #
23748 if test "$no_recursion" != yes; then
23749
23750   # Remove --cache-file and --srcdir arguments so they do not pile up.
23751   ac_sub_configure_args=
23752   ac_prev=
23753   eval "set x $ac_configure_args"
23754   shift
23755   for ac_arg
23756   do
23757     if test -n "$ac_prev"; then
23758       ac_prev=
23759       continue
23760     fi
23761     case $ac_arg in
23762     -cache-file | --cache-file | --cache-fil | --cache-fi \
23763     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23764       ac_prev=cache_file ;;
23765     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23766     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23767     | --c=*)
23768       ;;
23769     --config-cache | -C)
23770       ;;
23771     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23772       ac_prev=srcdir ;;
23773     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23774       ;;
23775     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23776       ac_prev=prefix ;;
23777     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23778       ;;
23779     *)
23780       case $ac_arg in
23781       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23782       esac
23783       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23784     esac
23785   done
23786
23787   # Always prepend --prefix to ensure using the same prefix
23788   # in subdir configurations.
23789   ac_arg="--prefix=$prefix"
23790   case $ac_arg in
23791   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23792   esac
23793   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23794
23795   ac_popdir=`pwd`
23796   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23797
23798     # Do not complain, so a configure script can configure whichever
23799     # parts of a large source tree are present.
23800     test -d "$srcdir/$ac_dir" || continue
23801
23802     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23803     echo "$as_me:$LINENO: $ac_msg" >&5
23804     echo "$ac_msg" >&6
23805     { as_dir="$ac_dir"
23806   case $as_dir in #(
23807   -*) as_dir=./$as_dir;;
23808   esac
23809   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23810     as_dirs=
23811     while :; do
23812       case $as_dir in #(
23813       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23814       *) as_qdir=$as_dir;;
23815       esac
23816       as_dirs="'$as_qdir' $as_dirs"
23817       as_dir=`$as_dirname -- "$as_dir" ||
23818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23819          X"$as_dir" : 'X\(//\)[^/]' \| \
23820          X"$as_dir" : 'X\(//\)$' \| \
23821          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23822 echo X"$as_dir" |
23823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23824             s//\1/
23825             q
23826           }
23827           /^X\(\/\/\)[^/].*/{
23828             s//\1/
23829             q
23830           }
23831           /^X\(\/\/\)$/{
23832             s//\1/
23833             q
23834           }
23835           /^X\(\/\).*/{
23836             s//\1/
23837             q
23838           }
23839           s/.*/./; q'`
23840       test -d "$as_dir" && break
23841     done
23842     test -z "$as_dirs" || eval "mkdir $as_dirs"
23843   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23844 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23845    { (exit 1); exit 1; }; }; }
23846     ac_builddir=.
23847
23848 case "$ac_dir" in
23849 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23850 *)
23851   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23852   # A ".." for each directory in $ac_dir_suffix.
23853   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23854   case $ac_top_builddir_sub in
23855   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23856   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23857   esac ;;
23858 esac
23859 ac_abs_top_builddir=$ac_pwd
23860 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23861 # for backward compatibility:
23862 ac_top_builddir=$ac_top_build_prefix
23863
23864 case $srcdir in
23865   .)  # We are building in place.
23866     ac_srcdir=.
23867     ac_top_srcdir=$ac_top_builddir_sub
23868     ac_abs_top_srcdir=$ac_pwd ;;
23869   [\\/]* | ?:[\\/]* )  # Absolute name.
23870     ac_srcdir=$srcdir$ac_dir_suffix;
23871     ac_top_srcdir=$srcdir
23872     ac_abs_top_srcdir=$srcdir ;;
23873   *) # Relative name.
23874     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23875     ac_top_srcdir=$ac_top_build_prefix$srcdir
23876     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23877 esac
23878 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23879
23880
23881     cd "$ac_dir"
23882
23883     # Check for guested configure; otherwise get Cygnus style configure.
23884     if test -f "$ac_srcdir/configure.gnu"; then
23885       ac_sub_configure=$ac_srcdir/configure.gnu
23886     elif test -f "$ac_srcdir/configure"; then
23887       ac_sub_configure=$ac_srcdir/configure
23888     elif test -f "$ac_srcdir/configure.in"; then
23889       # This should be Cygnus configure.
23890       ac_sub_configure=$ac_aux_dir/configure
23891     else
23892       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23893 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23894       ac_sub_configure=
23895     fi
23896
23897     # The recursion is here.
23898     if test -n "$ac_sub_configure"; then
23899       # Make the cache file name correct relative to the subdirectory.
23900       case $cache_file in
23901       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23902       *) # Relative name.
23903         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23904       esac
23905
23906       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23907 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23908       # The eval makes quoting arguments work.
23909       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23910            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23911         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23912 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23913    { (exit 1); exit 1; }; }
23914     fi
23915
23916     cd "$ac_popdir"
23917   done
23918 fi
23919