Use the full path when outputting the `.gcda' file.
[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.3svn.
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-2013 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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 ENABLE_PIC
707 ENABLE_SHARED
708 ENABLE_EMBED_STDCXX
709 ENABLE_TIMESTAMPS
710 ENABLE_BACKTRACES
711 TARGETS_TO_BUILD
712 LLVM_ENUM_TARGETS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
716 OPTIMIZE_OPTION
717 EXTRA_OPTIONS
718 EXTRA_LD_OPTIONS
719 CLANG_SRC_ROOT
720 BINUTILS_INCDIR
721 INTERNAL_PREFIX
722 NM
723 ifGNUmake
724 LN_S
725 CMP
726 CP
727 DATE
728 FIND
729 MKDIR
730 MV
731 RANLIB
732 AR
733 RM
734 SED
735 TAR
736 BINPWD
737 GRAPHVIZ
738 DOT
739 FDP
740 NEATO
741 TWOPI
742 CIRCO
743 GV
744 DOTTY
745 XDOT_PY
746 INSTALL_PROGRAM
747 INSTALL_SCRIPT
748 INSTALL_DATA
749 BZIP2
750 CAT
751 DOXYGEN
752 GROFF
753 GZIPBIN
754 PDFROFF
755 ZIP
756 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 HAVE_PTHREAD
780 HUGE_VAL_SANITY
781 MMAP_FILE
782 SHLIBEXT
783 SHLIBPATH_VAR
784 LLVM_PREFIX
785 LLVM_BINDIR
786 LLVM_LIBDIR
787 LLVM_DATADIR
788 LLVM_DOCSDIR
789 LLVM_ETCDIR
790 LLVM_INCLUDEDIR
791 LLVM_INFODIR
792 LLVM_MANDIR
793 LLVM_CONFIGTIME
794 BINDINGS_TO_BUILD
795 ALL_BINDINGS
796 OCAML_LIBDIR
797 ENABLE_VISIBILITY_INLINES_HIDDEN
798 RPATH
799 RDYNAMIC
800 program_prefix
801 LIBOBJS
802 LTLIBOBJS'
803 ac_subst_files=''
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 CPPFLAGS
811 CXX
812 CXXFLAGS
813 CCC
814 CPP'
815 ac_subdirs_all='projects/llvm-gcc
816 projects/test-suite
817 projects/llvm-test
818 projects/poolalloc
819 projects/llvm-poolalloc
820 projects/sample
821 projects/privbracket
822 projects/llvm-stacker
823 projects/llvm-reopt
824 projects/llvm-java
825 projects/llvm-tv
826 projects/safecode
827 projects/llvm-kernel
828 tools/polly'
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935    { (exit 1); exit 1; }; }
936     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937     eval enable_$ac_feature=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954    { (exit 1); exit 1; }; }
955     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956     eval enable_$ac_feature=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package| sed 's/-/_/g'`
1153     eval with_$ac_package=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid package name: $ac_package" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_package=`echo $ac_package | sed 's/-/_/g'`
1162     eval with_$ac_package=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184    { (exit 1); exit 1; }; }
1185     ;;
1186
1187   *=*)
1188     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192    { (exit 1); exit 1; }; }
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   { echo "$as_me: error: missing argument to $ac_option" >&2
1210    { (exit 1); exit 1; }; }
1211 fi
1212
1213 # Be sure to have absolute directory names.
1214 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215                 datadir sysconfdir sharedstatedir localstatedir includedir \
1216                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217                 libdir localedir mandir
1218 do
1219   eval ac_val=\$$ac_var
1220   case $ac_val in
1221     [\\/$]* | ?:[\\/]* )  continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223   esac
1224   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225    { (exit 1); exit 1; }; }
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   { echo "$as_me: error: Working directory cannot be determined" >&2
1256    { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   { echo "$as_me: error: pwd does not report name of working directory" >&2
1259    { (exit 1); exit 1; }; }
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$0" : 'X\(//\)[^/]' \| \
1269          X"$0" : 'X\(//\)$' \| \
1270          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 echo X"$0" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299    { (exit 1); exit 1; }; }
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304    { (exit 1); exit 1; }; }
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR           user executables [EPREFIX/bin]
1365   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR       program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR           object code libraries [EPREFIX/lib]
1371   --includedir=DIR       C header files [PREFIX/include]
1372   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR          info documentation [DATAROOTDIR/info]
1376   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR           man documentation [DATAROOTDIR/man]
1378   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1379   --htmldir=DIR          html documentation [DOCDIR]
1380   --dvidir=DIR           dvi documentation [DOCDIR]
1381   --pdfdir=DIR           pdf documentation [DOCDIR]
1382   --psdir=DIR            ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390   --target=TARGET   configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395   case $ac_init_help in
1396      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1397    esac
1398   cat <<\_ACEOF
1399
1400 Optional Features:
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --enable-polly          Use polly if available (default is YES)
1404   --enable-libcpp         Use libc++ if available (default is NO)
1405   --enable-cxx11          Use c++11 if available (default is NO)
1406   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1407   --enable-clang-static-analyzer
1408                           Enable building of clang Static Analyzer (default is
1409                           YES)
1410   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411   --enable-optimized      Compile with optimizations enabled (default is NO)
1412   --enable-profiling      Compile with profiling enabled (default is NO)
1413   --enable-assertions     Compile with assertion checks enabled (default is
1414                           YES)
1415   --enable-werror         Compile with -Werror enabled (default is NO)
1416   --enable-expensive-checks
1417                           Compile with expensive debug checks enabled (default
1418                           is NO)
1419   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1420                           NO)
1421   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1422                           optimization is on and YES if it's off)
1423   --enable-keep-symbols   Do not strip installed executables)
1424   --enable-jit            Enable Just In Time Compiling (default is YES)
1425   --enable-docs           Build documents (default is YES)
1426   --enable-doxygen        Build doxygen documentation (default is NO)
1427   --enable-threads        Use threads if available (default is YES)
1428   --enable-pthreads       Use pthreads if available (default is YES)
1429   --enable-pic            Build LLVM with Position Independent Code (default
1430                           is YES)
1431   --enable-shared         Build a shared library and link tools against it
1432                           (default is NO)
1433   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1434                           Win32 DLL (default is NO)
1435   --enable-timestamps     Enable embedding timestamp information in build
1436                           (default is YES)
1437   --enable-backtraces     Enable embedding backtraces on crash (default is
1438                           YES)
1439   --enable-targets        Build specific host targets: all or
1440                           target1,target2,... Valid targets are: host, x86,
1441                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1442                           xcore, msp430, nvptx, and cpp (default=all)
1443   --enable-experimental-targets
1444                           Build experimental host targets: disable or
1445                           target1,target2,... (default=disable)
1446   --enable-bindings       Build specific language bindings:
1447                           all,auto,none,{binding-name} (default=auto)
1448   --enable-libffi         Check for the presence of libffi (default is NO)
1449   --enable-ltdl-install   install libltdl
1450
1451 Optional Packages:
1452   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454   --with-optimize-option  Select the compiler options to use for optimized
1455                           builds
1456   --with-extra-options    Specify additional options to compile LLVM with
1457   --with-extra-ld-options Specify additional options to link LLVM with
1458   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1459                           is stdlib)
1460   --with-clang-srcdir     Directory to the out-of-tree Clang source
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-gcc-toolchain    Directory where gcc is installed.
1467   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1468   --with-binutils-include Specify path to binutils/include/ containing
1469                           plugin-api.h file for gold plugin.
1470   --with-bug-report-url   Specify the URL where bug reports should be
1471                           submitted (default=http://llvm.org/bugs/)
1472   --with-internal-prefix  Installation directory for internal files
1473   --with-python           path to python
1474   --with-udis86=<path>    Use udis86 external x86 disassembler library
1475   --with-oprofile=<prefix>
1476                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1477   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1478
1479
1480 Some influential environment variables:
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489   CPP         C preprocessor
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <http://llvm.org/bugs/>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500   # If there are subdirs, report their specific --help.
1501   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502     test -d "$ac_dir" || continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 LLVM configure 3.3svn
1556 generated by GNU Autoconf 2.60
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562
1563 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1564 _ACEOF
1565   exit
1566 fi
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1570
1571 It was created by LLVM $as_me 3.3svn, which was
1572 generated by GNU Autoconf 2.60.  Invocation command line was
1573
1574   $ $0 $@
1575
1576 _ACEOF
1577 exec 5>>config.log
1578 {
1579 cat <<_ASUNAME
1580 ## --------- ##
1581 ## Platform. ##
1582 ## --------- ##
1583
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1592
1593 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1594 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1597 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1598 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1599 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1600
1601 _ASUNAME
1602
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   echo "PATH: $as_dir"
1609 done
1610 IFS=$as_save_IFS
1611
1612 } >&5
1613
1614 cat >&5 <<_ACEOF
1615
1616
1617 ## ----------- ##
1618 ## Core tests. ##
1619 ## ----------- ##
1620
1621 _ACEOF
1622
1623
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_configure_args=
1630 ac_configure_args0=
1631 ac_configure_args1=
1632 ac_must_keep_next=false
1633 for ac_pass in 1 2
1634 do
1635   for ac_arg
1636   do
1637     case $ac_arg in
1638     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640     | -silent | --silent | --silen | --sile | --sil)
1641       continue ;;
1642     *\'*)
1643       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644     esac
1645     case $ac_pass in
1646     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647     2)
1648       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649       if test $ac_must_keep_next = true; then
1650         ac_must_keep_next=false # Got value, back to normal.
1651       else
1652         case $ac_arg in
1653           *=* | --config-cache | -C | -disable-* | --disable-* \
1654           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656           | -with-* | --with-* | -without-* | --without-* | --x)
1657             case "$ac_configure_args0 " in
1658               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659             esac
1660             ;;
1661           -* ) ac_must_keep_next=true ;;
1662         esac
1663       fi
1664       ac_configure_args="$ac_configure_args '$ac_arg'"
1665       ;;
1666     esac
1667   done
1668 done
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log.  We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678   # Save into config.log some information that might help in debugging.
1679   {
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1686 _ASBOX
1687     echo
1688     # The following way of writing the cache mishandles newlines in values,
1689 (
1690   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691     eval ac_val=\$$ac_var
1692     case $ac_val in #(
1693     *${as_nl}*)
1694       case $ac_var in #(
1695       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697       esac
1698       case $ac_var in #(
1699       _ | IFS | as_nl) ;; #(
1700       *) $as_unset $ac_var ;;
1701       esac ;;
1702     esac
1703   done
1704   (set) 2>&1 |
1705     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706     *${as_nl}ac_space=\ *)
1707       sed -n \
1708         "s/'\''/'\''\\\\'\'''\''/g;
1709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710       ;; #(
1711     *)
1712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713       ;;
1714     esac |
1715     sort
1716 )
1717     echo
1718
1719     cat <<\_ASBOX
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1723 _ASBOX
1724     echo
1725     for ac_var in $ac_subst_vars
1726     do
1727       eval ac_val=\$$ac_var
1728       case $ac_val in
1729       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730       esac
1731       echo "$ac_var='\''$ac_val'\''"
1732     done | sort
1733     echo
1734
1735     if test -n "$ac_subst_files"; then
1736       cat <<\_ASBOX
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1740 _ASBOX
1741       echo
1742       for ac_var in $ac_subst_files
1743       do
1744         eval ac_val=\$$ac_var
1745         case $ac_val in
1746         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747         esac
1748         echo "$ac_var='\''$ac_val'\''"
1749       done | sort
1750       echo
1751     fi
1752
1753     if test -s confdefs.h; then
1754       cat <<\_ASBOX
1755 ## ----------- ##
1756 ## confdefs.h. ##
1757 ## ----------- ##
1758 _ASBOX
1759       echo
1760       cat confdefs.h
1761       echo
1762     fi
1763     test "$ac_signal" != 0 &&
1764       echo "$as_me: caught signal $ac_signal"
1765     echo "$as_me: exit $exit_status"
1766   } >&5
1767   rm -f core *.core core.conftest.* &&
1768     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769     exit $exit_status
1770 ' 0
1771 for ac_signal in 1 2 13 15; do
1772   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 done
1774 ac_signal=0
1775
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1778
1779 # Predefined preprocessor variables.
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809   set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 else
1813   set x "$ac_default_prefix/share/config.site" \
1814         "$ac_default_prefix/etc/config.site"
1815 fi
1816 shift
1817 for ac_site_file
1818 do
1819   if test -r "$ac_site_file"; then
1820     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822     sed 's/^/| /' "$ac_site_file" >&5
1823     . "$ac_site_file"
1824   fi
1825 done
1826
1827 if test -r "$cache_file"; then
1828   # Some versions of bash will fail to source /dev/null (special
1829   # files actually), so we avoid doing that.
1830   if test -f "$cache_file"; then
1831     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1833     case $cache_file in
1834       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835       *)                      . "./$cache_file";;
1836     esac
1837   fi
1838 else
1839   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1841   >$cache_file
1842 fi
1843
1844 # Check that the precious variables saved in the cache have kept the same
1845 # value.
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849   eval ac_new_set=\$ac_env_${ac_var}_set
1850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851   eval ac_new_val=\$ac_env_${ac_var}_value
1852   case $ac_old_set,$ac_new_set in
1853     set,)
1854       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,set)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,);;
1862     *)
1863       if test "x$ac_old_val" != "x$ac_new_val"; then
1864         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1867 echo "$as_me:   former value:  $ac_old_val" >&2;}
1868         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1869 echo "$as_me:   current value: $ac_new_val" >&2;}
1870         ac_cache_corrupted=:
1871       fi;;
1872   esac
1873   # Pass precious variables to config.status.
1874   if test "$ac_new_set" = set; then
1875     case $ac_new_val in
1876     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877     *) ac_arg=$ac_var=$ac_new_val ;;
1878     esac
1879     case " $ac_configure_args " in
1880       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1881       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882     esac
1883   fi
1884 done
1885 if $ac_cache_corrupted; then
1886   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924
1925 cat >>confdefs.h <<\_ACEOF
1926 #define LLVM_VERSION_MAJOR 3
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MINOR 3
1932 _ACEOF
1933
1934
1935 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1936
1937
1938
1939
1940
1941
1942
1943 ac_aux_dir=
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974
1975 if test ${srcdir} != "." ; then
1976   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1977     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1978 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1979    { (exit 1); exit 1; }; }
1980   fi
1981 fi
1982
1983 ${CFLAGS=}
1984 ${CXXFLAGS=}
1985
1986 ac_ext=c
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 if test -n "$ac_tool_prefix"; then
1992   for ac_prog in clang llvm-gcc gcc
1993   do
1994     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$CC"; then
2002   ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023   { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030
2031     test -n "$CC" && break
2032   done
2033 fi
2034 if test -z "$CC"; then
2035   ac_ct_CC=$CC
2036   for ac_prog in clang llvm-gcc gcc
2037 do
2038   # Extract the first word of "$ac_prog", so it can be a program name with args.
2039 set dummy $ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_CC"; then
2046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2055     ac_cv_prog_ac_ct_CC="$ac_prog"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064 fi
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075   test -n "$ac_ct_CC" && break
2076 done
2077
2078   if test "x$ac_ct_CC" = x; then
2079     CC=""
2080   else
2081     case $cross_compiling:$ac_tool_warned in
2082 yes:)
2083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet.  If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&5
2086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2087 whose name does not start with the host triplet.  If you think this
2088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2089 ac_tool_warned=yes ;;
2090 esac
2091     CC=$ac_ct_CC
2092   fi
2093 fi
2094
2095
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100    { (exit 1); exit 1; }; }
2101
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO: checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (ac_try="$ac_compiler --version >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler --version >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (ac_try="$ac_compiler -v >&5"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121   (eval "$ac_compiler -v >&5") 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125 { (ac_try="$ac_compiler -V >&5"
2126 case "(($ac_try" in
2127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128   *) ac_try_echo=$ac_try;;
2129 esac
2130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2131   (eval "$ac_compiler -V >&5") 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }
2135
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h.  */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h.  */
2142
2143 int
2144 main ()
2145 {
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2155 # of exeext.
2156 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 #
2160 # List of possible output files, starting from the most likely.
2161 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2162 # only as a last resort.  b.out is created by i960 compilers.
2163 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2164 #
2165 # The IRIX 6 linker writes into existing files which may not be
2166 # executable, retaining their permissions.  Remove them first so a
2167 # subsequent execution test works.
2168 ac_rmfiles=
2169 for ac_file in $ac_files
2170 do
2171   case $ac_file in
2172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2173     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2174   esac
2175 done
2176 rm -f $ac_rmfiles
2177
2178 if { (ac_try="$ac_link_default"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_link_default") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2190 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2191 # so that the user can short-circuit this test for compilers unknown to
2192 # Autoconf.
2193 for ac_file in $ac_files
2194 do
2195   test -f "$ac_file" || continue
2196   case $ac_file in
2197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2198         ;;
2199     [ab].out )
2200         # We found the default executable, but exeext='' is most
2201         # certainly right.
2202         break;;
2203     *.* )
2204         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2205         then :; else
2206            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207         fi
2208         # We set ac_cv_exeext here because the later test for it is not
2209         # safe: cross compilers may not add the suffix if given an `-o'
2210         # argument, so we may need to know it at that point already.
2211         # Even if this section looks crufty: it has the advantage of
2212         # actually working.
2213         break;;
2214     * )
2215         break;;
2216   esac
2217 done
2218 test "$ac_cv_exeext" = no && ac_cv_exeext=
2219
2220 else
2221   echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228    { (exit 77); exit 77; }; }
2229 fi
2230
2231 ac_exeext=$ac_cv_exeext
2232 { echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6; }
2234
2235 # Check that the compiler produces executables we can run.  If not, either
2236 # the compiler is broken, or we cross compile.
2237 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242   if { ac_try='./$ac_file'
2243   { (case "(($ac_try" in
2244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245   *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248   (eval "$ac_try") 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; }; then
2252     cross_compiling=no
2253   else
2254     if test "$cross_compiling" = maybe; then
2255         cross_compiling=yes
2256     else
2257         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264     fi
2265   fi
2266 fi
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269
2270 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271 ac_clean_files=$ac_clean_files_save
2272 # Check that the compiler produces executables we can run.  If not, either
2273 # the compiler is broken, or we cross compile.
2274 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2276 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277 echo "${ECHO_T}$cross_compiling" >&6; }
2278
2279 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2281 if { (ac_try="$ac_link"
2282 case "(($ac_try" in
2283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284   *) ac_try_echo=$ac_try;;
2285 esac
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287   (eval "$ac_link") 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; then
2291   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2294 # `rm'.
2295 for ac_file in conftest.exe conftest conftest.*; do
2296   test -f "$ac_file" || continue
2297   case $ac_file in
2298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300           break;;
2301     * ) break;;
2302   esac
2303 done
2304 else
2305   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310 fi
2311
2312 rm -f conftest$ac_cv_exeext
2313 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2314 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2315
2316 rm -f conftest.$ac_ext
2317 EXEEXT=$ac_cv_exeext
2318 ac_exeext=$EXEEXT
2319 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2320 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2321 if test "${ac_cv_objext+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h.  */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h.  */
2330
2331 int
2332 main ()
2333 {
2334
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.o conftest.obj
2340 if { (ac_try="$ac_compile"
2341 case "(($ac_try" in
2342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343   *) ac_try_echo=$ac_try;;
2344 esac
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346   (eval "$ac_compile") 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; then
2350   for ac_file in conftest.o conftest.obj conftest.*; do
2351   test -f "$ac_file" || continue;
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2354     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355        break;;
2356   esac
2357 done
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366    { (exit 1); exit 1; }; }
2367 fi
2368
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370 fi
2371 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6; }
2373 OBJEXT=$ac_cv_objext
2374 ac_objext=$OBJEXT
2375 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390 #ifndef __GNUC__
2391        choke me
2392 #endif
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (ac_try="$ac_compile"
2400 case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_compile") 2>conftest.er1
2406   ac_status=$?
2407   grep -v '^ *+' conftest.er1 >conftest.err
2408   rm -f conftest.er1
2409   cat conftest.err >&5
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); } &&
2412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413   { (case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; } &&
2422          { ac_try='test -s conftest.$ac_objext'
2423   { (case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428   (eval "$ac_try") 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; }; then
2432   ac_compiler_gnu=yes
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437         ac_compiler_gnu=no
2438 fi
2439
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2446 GCC=`test $ac_compiler_gnu = yes && echo yes`
2447 ac_test_CFLAGS=${CFLAGS+set}
2448 ac_save_CFLAGS=$CFLAGS
2449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_cc_g+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   ac_save_c_werror_flag=$ac_c_werror_flag
2455    ac_c_werror_flag=yes
2456    ac_cv_prog_cc_g=no
2457    CFLAGS="-g"
2458    cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h.  */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h.  */
2464
2465 int
2466 main ()
2467 {
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2475 case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480   (eval "$ac_compile") 2>conftest.er1
2481   ac_status=$?
2482   grep -v '^ *+' conftest.er1 >conftest.err
2483   rm -f conftest.er1
2484   cat conftest.err >&5
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); } &&
2487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488   { (case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_try") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; } &&
2497          { ac_try='test -s conftest.$ac_objext'
2498   { (case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_try") 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; }; then
2507   ac_cv_prog_cc_g=yes
2508 else
2509   echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512         CFLAGS=""
2513       cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h.  */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h.  */
2519
2520 int
2521 main ()
2522 {
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_compile") 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; } &&
2552          { ac_try='test -s conftest.$ac_objext'
2553   { (case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558   (eval "$ac_try") 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   :
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567         ac_c_werror_flag=$ac_save_c_werror_flag
2568          CFLAGS="-g"
2569          cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2586 case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_compile") 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; } &&
2608          { ac_try='test -s conftest.$ac_objext'
2609   { (case "(($ac_try" in
2610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611   *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614   (eval "$ac_try") 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_cv_prog_cc_g=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623
2624 fi
2625
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 fi
2628
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633    ac_c_werror_flag=$ac_save_c_werror_flag
2634 fi
2635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2637 if test "$ac_test_CFLAGS" = set; then
2638   CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640   if test "$GCC" = yes; then
2641     CFLAGS="-g -O2"
2642   else
2643     CFLAGS="-g"
2644   fi
2645 else
2646   if test "$GCC" = yes; then
2647     CFLAGS="-O2"
2648   else
2649     CFLAGS=
2650   fi
2651 fi
2652 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2653 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_cc_c89+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   ac_cv_prog_cc_c89=no
2658 ac_save_CC=$CC
2659 cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665 #include <stdarg.h>
2666 #include <stdio.h>
2667 #include <sys/types.h>
2668 #include <sys/stat.h>
2669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2670 struct buf { int x; };
2671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2672 static char *e (p, i)
2673      char **p;
2674      int i;
2675 {
2676   return p[i];
2677 }
2678 static char *f (char * (*g) (char **, int), char **p, ...)
2679 {
2680   char *s;
2681   va_list v;
2682   va_start (v,p);
2683   s = g (p, va_arg (v,int));
2684   va_end (v);
2685   return s;
2686 }
2687
2688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2689    function prototypes and stuff, but not '\xHH' hex character constants.
2690    These don't provoke an error unfortunately, instead are silently treated
2691    as 'x'.  The following induces an error, until -std is added to get
2692    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2693    array size at least.  It's necessary to write '\x00'==0 to get something
2694    that's true only with -std.  */
2695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2696
2697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2698    inside strings and character constants.  */
2699 #define FOO(x) 'x'
2700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2701
2702 int test (int i, double x);
2703 struct s1 {int (*f) (int a);};
2704 struct s2 {int (*f) (double a);};
2705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2706 int argc;
2707 char **argv;
2708 int
2709 main ()
2710 {
2711 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2717         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2718 do
2719   CC="$ac_save_CC $ac_arg"
2720   rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compile") 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; } &&
2744          { ac_try='test -s conftest.$ac_objext'
2745   { (case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_try") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; }; then
2754   ac_cv_prog_cc_c89=$ac_arg
2755 else
2756   echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext
2763   test "x$ac_cv_prog_cc_c89" != "xno" && break
2764 done
2765 rm -f conftest.$ac_ext
2766 CC=$ac_save_CC
2767
2768 fi
2769 # AC_CACHE_VAL
2770 case "x$ac_cv_prog_cc_c89" in
2771   x)
2772     { echo "$as_me:$LINENO: result: none needed" >&5
2773 echo "${ECHO_T}none needed" >&6; } ;;
2774   xno)
2775     { echo "$as_me:$LINENO: result: unsupported" >&5
2776 echo "${ECHO_T}unsupported" >&6; } ;;
2777   *)
2778     CC="$CC $ac_cv_prog_cc_c89"
2779     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2781 esac
2782
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
2790 ac_ext=cpp
2791 ac_cpp='$CXXCPP $CPPFLAGS'
2792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2795 if test -z "$CXX"; then
2796   if test -n "$CCC"; then
2797     CXX=$CCC
2798   else
2799     if test -n "$ac_tool_prefix"; then
2800   for ac_prog in clang++ llvm-g++ g++
2801   do
2802     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_CXX+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   if test -n "$CXX"; then
2810   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817   for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 CXX=$ac_cv_prog_CXX
2830 if test -n "$CXX"; then
2831   { echo "$as_me:$LINENO: result: $CXX" >&5
2832 echo "${ECHO_T}$CXX" >&6; }
2833 else
2834   { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2836 fi
2837
2838
2839     test -n "$CXX" && break
2840   done
2841 fi
2842 if test -z "$CXX"; then
2843   ac_ct_CXX=$CXX
2844   for ac_prog in clang++ llvm-g++ g++
2845 do
2846   # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2851   echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853   if test -n "$ac_ct_CXX"; then
2854   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859   IFS=$as_save_IFS
2860   test -z "$as_dir" && as_dir=.
2861   for ac_exec_ext in '' $ac_executable_extensions; do
2862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2863     ac_cv_prog_ac_ct_CXX="$ac_prog"
2864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865     break 2
2866   fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2874 if test -n "$ac_ct_CXX"; then
2875   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2876 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2877 else
2878   { echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6; }
2880 fi
2881
2882
2883   test -n "$ac_ct_CXX" && break
2884 done
2885
2886   if test "x$ac_ct_CXX" = x; then
2887     CXX="g++"
2888   else
2889     case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2892 whose name does not start with the host triplet.  If you think this
2893 configuration is useful to you, please write to autoconf@gnu.org." >&5
2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet.  If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899     CXX=$ac_ct_CXX
2900   fi
2901 fi
2902
2903   fi
2904 fi
2905 # Provide some information about the compiler.
2906 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2907 ac_compiler=`set X $ac_compile; echo $2`
2908 { (ac_try="$ac_compiler --version >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler --version >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -v >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -v >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928 { (ac_try="$ac_compiler -V >&5"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compiler -V >&5") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }
2938
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; } &&
2986          { ac_try='test -s conftest.$ac_objext'
2987   { (case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_try") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   ac_compiler_gnu=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001         ac_compiler_gnu=no
3002 fi
3003
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3006
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3010 GXX=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CXXFLAGS=${CXXFLAGS+set}
3012 ac_save_CXXFLAGS=$CXXFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cxx_g+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3019    ac_cxx_werror_flag=yes
3020    ac_cv_prog_cxx_g=no
3021    CXXFLAGS="-g"
3022    cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compile") 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   ac_cv_prog_cxx_g=yes
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         CXXFLAGS=""
3077       cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } &&
3106          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_try") 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   :
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3132          CXXFLAGS="-g"
3133          cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139
3140 int
3141 main ()
3142 {
3143
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_compile") 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_cv_prog_cxx_g=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3201 if test "$ac_test_CXXFLAGS" = set; then
3202   CXXFLAGS=$ac_save_CXXFLAGS
3203 elif test $ac_cv_prog_cxx_g = yes; then
3204   if test "$GXX" = yes; then
3205     CXXFLAGS="-g -O2"
3206   else
3207     CXXFLAGS="-g"
3208   fi
3209 else
3210   if test "$GXX" = yes; then
3211     CXXFLAGS="-O2"
3212   else
3213     CXXFLAGS=
3214   fi
3215 fi
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3231   CPP=
3232 fi
3233 if test -z "$CPP"; then
3234   if test "${ac_cv_prog_CPP+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237       # Double quotes because CPP needs to be expanded
3238     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239     do
3240       ac_preproc_ok=false
3241 for ac_c_preproc_warn_flag in '' yes
3242 do
3243   # Use a header file that comes with gcc, so configuring glibc
3244   # with a fresh cross-compiler works.
3245   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246   # <limits.h> exists even on freestanding compilers.
3247   # On the NeXT, cc -E runs the code through the compiler's parser,
3248   # not just through cpp. "Syntax error" is here to catch this case.
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #ifdef __STDC__
3256 # include <limits.h>
3257 #else
3258 # include <assert.h>
3259 #endif
3260                      Syntax error
3261 _ACEOF
3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } >/dev/null; then
3275   if test -s conftest.err; then
3276     ac_cpp_err=$ac_c_preproc_warn_flag
3277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3278   else
3279     ac_cpp_err=
3280   fi
3281 else
3282   ac_cpp_err=yes
3283 fi
3284 if test -z "$ac_cpp_err"; then
3285   :
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290   # Broken: fails on valid input.
3291 continue
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296   # OK, works on sane cases.  Now check whether nonexistent headers
3297   # can be detected and how.
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <ac_nonexistent.h>
3305 _ACEOF
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } >/dev/null; then
3319   if test -s conftest.err; then
3320     ac_cpp_err=$ac_c_preproc_warn_flag
3321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3322   else
3323     ac_cpp_err=
3324   fi
3325 else
3326   ac_cpp_err=yes
3327 fi
3328 if test -z "$ac_cpp_err"; then
3329   # Broken: success on invalid input.
3330 continue
3331 else
3332   echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335   # Passes both tests.
3336 ac_preproc_ok=:
3337 break
3338 fi
3339
3340 rm -f conftest.err conftest.$ac_ext
3341
3342 done
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3346   break
3347 fi
3348
3349     done
3350     ac_cv_prog_CPP=$CPP
3351
3352 fi
3353   CPP=$ac_cv_prog_CPP
3354 else
3355   ac_cv_prog_CPP=$CPP
3356 fi
3357 { echo "$as_me:$LINENO: result: $CPP" >&5
3358 echo "${ECHO_T}$CPP" >&6; }
3359 ac_preproc_ok=false
3360 for ac_c_preproc_warn_flag in '' yes
3361 do
3362   # Use a header file that comes with gcc, so configuring glibc
3363   # with a fresh cross-compiler works.
3364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365   # <limits.h> exists even on freestanding compilers.
3366   # On the NeXT, cc -E runs the code through the compiler's parser,
3367   # not just through cpp. "Syntax error" is here to catch this case.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 #ifdef __STDC__
3375 # include <limits.h>
3376 #else
3377 # include <assert.h>
3378 #endif
3379                      Syntax error
3380 _ACEOF
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } >/dev/null; then
3394   if test -s conftest.err; then
3395     ac_cpp_err=$ac_c_preproc_warn_flag
3396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3397   else
3398     ac_cpp_err=
3399   fi
3400 else
3401   ac_cpp_err=yes
3402 fi
3403 if test -z "$ac_cpp_err"; then
3404   :
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409   # Broken: fails on valid input.
3410 continue
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415   # OK, works on sane cases.  Now check whether nonexistent headers
3416   # can be detected and how.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } >/dev/null; then
3438   if test -s conftest.err; then
3439     ac_cpp_err=$ac_c_preproc_warn_flag
3440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441   else
3442     ac_cpp_err=
3443   fi
3444 else
3445   ac_cpp_err=yes
3446 fi
3447 if test -z "$ac_cpp_err"; then
3448   # Broken: success on invalid input.
3449 continue
3450 else
3451   echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454   # Passes both tests.
3455 ac_preproc_ok=:
3456 break
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461 done
3462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463 rm -f conftest.err conftest.$ac_ext
3464 if $ac_preproc_ok; then
3465   :
3466 else
3467   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3470 See \`config.log' for more details." >&2;}
3471    { (exit 1); exit 1; }; }
3472 fi
3473
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
3481 if test "$CXX" = "clang++" ; then
3482   { echo "$as_me:$LINENO: checking whether clang works" >&5
3483 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3484   ac_ext=cpp
3485 ac_cpp='$CXXCPP $CPPFLAGS'
3486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3489
3490
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 #include <limits>
3498 #if __has_include (<cxxabi.h>)
3499 #include <cxxabi.h>
3500 #endif
3501 #if __has_include (<unwind.h>)
3502 #include <unwind.h>
3503 #endif
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_compile") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3528   { (case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533   (eval "$ac_try") 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; } &&
3537          { ac_try='test -s conftest.$ac_objext'
3538   { (case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_try") 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; }; then
3547
3548   { echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6; }
3550
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555
3556   { echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6; }
3558   { { 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
3559 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;}
3560    { (exit 1); exit 1; }; }
3561
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565   ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
3571 fi
3572
3573
3574
3575 if test -d ${srcdir}/projects/llvm-gcc ; then
3576   subdirs="$subdirs projects/llvm-gcc"
3577
3578 fi
3579
3580 if test -d ${srcdir}/projects/test-suite ; then
3581   subdirs="$subdirs projects/test-suite"
3582
3583 fi
3584
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586   subdirs="$subdirs projects/llvm-test"
3587
3588 fi
3589
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591   subdirs="$subdirs projects/poolalloc"
3592
3593 fi
3594
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596   subdirs="$subdirs projects/llvm-poolalloc"
3597
3598 fi
3599
3600 for i in `ls ${srcdir}/projects`
3601 do
3602   if test -d ${srcdir}/projects/${i} ; then
3603     case ${i} in
3604       sample)       subdirs="$subdirs projects/sample"
3605     ;;
3606       privbracket)  subdirs="$subdirs projects/privbracket"
3607  ;;
3608       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3609  ;;
3610       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3611 ;;
3612       llvm-java)    subdirs="$subdirs projects/llvm-java"
3613  ;;
3614       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3615    ;;
3616       safecode)     subdirs="$subdirs projects/safecode"
3617  ;;
3618       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3619  ;;
3620       compiler-rt)       ;;
3621       llvm-gcc)       ;;
3622       test-suite)     ;;
3623       llvm-test)      ;;
3624       poolalloc)      ;;
3625       llvm-poolalloc) ;;
3626       *)
3627         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3628 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3629         ;;
3630     esac
3631   fi
3632 done
3633
3634 # Check whether --enable-polly was given.
3635 if test "${enable_polly+set}" = set; then
3636   enableval=$enable_polly;
3637 else
3638   enableval=default
3639 fi
3640
3641 case "$enableval" in
3642   yes) ENABLE_POLLY=1
3643  ;;
3644   no)  ENABLE_POLLY=0
3645  ;;
3646   default) ENABLE_POLLY=1
3647  ;;
3648   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3649 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3650    { (exit 1); exit 1; }; } ;;
3651 esac
3652
3653
3654 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3655   LLVM_HAS_POLLY=1
3656
3657   subdirs="$subdirs tools/polly"
3658
3659 fi
3660
3661
3662 # Make sure we can run config.sub.
3663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3664   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3665 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3666    { (exit 1); exit 1; }; }
3667
3668 { echo "$as_me:$LINENO: checking build system type" >&5
3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3670 if test "${ac_cv_build+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   ac_build_alias=$build_alias
3674 test "x$ac_build_alias" = x &&
3675   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3676 test "x$ac_build_alias" = x &&
3677   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3679    { (exit 1); exit 1; }; }
3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3681   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3682 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3683    { (exit 1); exit 1; }; }
3684
3685 fi
3686 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3687 echo "${ECHO_T}$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3689 *-*-*) ;;
3690 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3691 echo "$as_me: error: invalid value of canonical build" >&2;}
3692    { (exit 1); exit 1; }; };;
3693 esac
3694 build=$ac_cv_build
3695 ac_save_IFS=$IFS; IFS='-'
3696 set x $ac_cv_build
3697 shift
3698 build_cpu=$1
3699 build_vendor=$2
3700 shift; shift
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3703 build_os=$*
3704 IFS=$ac_save_IFS
3705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706
3707
3708 { echo "$as_me:$LINENO: checking host system type" >&5
3709 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3710 if test "${ac_cv_host+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   if test "x$host_alias" = x; then
3714   ac_cv_host=$ac_cv_build
3715 else
3716   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3717     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3718 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3719    { (exit 1); exit 1; }; }
3720 fi
3721
3722 fi
3723 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3724 echo "${ECHO_T}$ac_cv_host" >&6; }
3725 case $ac_cv_host in
3726 *-*-*) ;;
3727 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3728 echo "$as_me: error: invalid value of canonical host" >&2;}
3729    { (exit 1); exit 1; }; };;
3730 esac
3731 host=$ac_cv_host
3732 ac_save_IFS=$IFS; IFS='-'
3733 set x $ac_cv_host
3734 shift
3735 host_cpu=$1
3736 host_vendor=$2
3737 shift; shift
3738 # Remember, the first character of IFS is used to create $*,
3739 # except with old shells:
3740 host_os=$*
3741 IFS=$ac_save_IFS
3742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3743
3744
3745 { echo "$as_me:$LINENO: checking target system type" >&5
3746 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3747 if test "${ac_cv_target+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   if test "x$target_alias" = x; then
3751   ac_cv_target=$ac_cv_host
3752 else
3753   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3754     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3755 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3756    { (exit 1); exit 1; }; }
3757 fi
3758
3759 fi
3760 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3761 echo "${ECHO_T}$ac_cv_target" >&6; }
3762 case $ac_cv_target in
3763 *-*-*) ;;
3764 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3765 echo "$as_me: error: invalid value of canonical target" >&2;}
3766    { (exit 1); exit 1; }; };;
3767 esac
3768 target=$ac_cv_target
3769 ac_save_IFS=$IFS; IFS='-'
3770 set x $ac_cv_target
3771 shift
3772 target_cpu=$1
3773 target_vendor=$2
3774 shift; shift
3775 # Remember, the first character of IFS is used to create $*,
3776 # except with old shells:
3777 target_os=$*
3778 IFS=$ac_save_IFS
3779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3780
3781
3782 # The aliases save the names the user supplied, while $host etc.
3783 # will get canonicalized.
3784 test -n "$target_alias" &&
3785   test "$program_prefix$program_suffix$program_transform_name" = \
3786     NONENONEs,x,x, &&
3787   program_prefix=${target_alias}-
3788
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3790 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3791 if test "${llvm_cv_os_type+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   case $host in
3795   *-*-aix*)
3796     llvm_cv_link_all_option="-Wl,--whole-archive"
3797     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798     llvm_cv_os_type="AIX"
3799     llvm_cv_platform_type="Unix" ;;
3800   *-*-irix*)
3801     llvm_cv_link_all_option="-Wl,--whole-archive"
3802     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803     llvm_cv_os_type="IRIX"
3804     llvm_cv_platform_type="Unix" ;;
3805   *-*-cygwin*)
3806     llvm_cv_link_all_option="-Wl,--whole-archive"
3807     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3808     llvm_cv_os_type="Cygwin"
3809     llvm_cv_platform_type="Unix" ;;
3810   *-*-darwin*)
3811     llvm_cv_link_all_option="-Wl,-all_load"
3812     llvm_cv_no_link_all_option="-Wl,-noall_load"
3813     llvm_cv_os_type="Darwin"
3814     llvm_cv_platform_type="Unix" ;;
3815   *-*-minix*)
3816     llvm_cv_link_all_option="-Wl,-all_load"
3817     llvm_cv_no_link_all_option="-Wl,-noall_load"
3818     llvm_cv_os_type="Minix"
3819     llvm_cv_platform_type="Unix" ;;
3820   *-*-freebsd* | *-*-kfreebsd-gnu)
3821     llvm_cv_link_all_option="-Wl,--whole-archive"
3822     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823     llvm_cv_os_type="FreeBSD"
3824     llvm_cv_platform_type="Unix" ;;
3825   *-*-openbsd*)
3826     llvm_cv_link_all_option="-Wl,--whole-archive"
3827     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828     llvm_cv_os_type="OpenBSD"
3829     llvm_cv_platform_type="Unix" ;;
3830   *-*-netbsd*)
3831     llvm_cv_link_all_option="-Wl,--whole-archive"
3832     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833     llvm_cv_os_type="NetBSD"
3834     llvm_cv_platform_type="Unix" ;;
3835   *-*-dragonfly*)
3836     llvm_cv_link_all_option="-Wl,--whole-archive"
3837     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838     llvm_cv_os_type="DragonFly"
3839     llvm_cv_platform_type="Unix" ;;
3840   *-*-hpux*)
3841     llvm_cv_link_all_option="-Wl,--whole-archive"
3842     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843     llvm_cv_os_type="HP-UX"
3844     llvm_cv_platform_type="Unix" ;;
3845   *-*-interix*)
3846     llvm_cv_link_all_option="-Wl,--whole-archive"
3847     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848     llvm_cv_os_type="Interix"
3849     llvm_cv_platform_type="Unix" ;;
3850   *-*-linux*)
3851     llvm_cv_link_all_option="-Wl,--whole-archive"
3852     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853     llvm_cv_os_type="Linux"
3854     llvm_cv_platform_type="Unix" ;;
3855   *-*-gnu*)
3856     llvm_cv_link_all_option="-Wl,--whole-archive"
3857     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3858     llvm_cv_os_type="GNU"
3859     llvm_cv_platform_type="Unix" ;;
3860   *-*-solaris*)
3861     llvm_cv_link_all_option="-Wl,-z,allextract"
3862     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3863     llvm_cv_os_type="SunOS"
3864     llvm_cv_platform_type="Unix" ;;
3865   *-*-auroraux*)
3866     llvm_cv_link_all_option="-Wl,-z,allextract"
3867     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3868     llvm_cv_os_type="AuroraUX"
3869     llvm_cv_platform_type="Unix" ;;
3870   *-*-win32*)
3871     llvm_cv_link_all_option="-Wl,--whole-archive"
3872     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873     llvm_cv_os_type="Win32"
3874     llvm_cv_platform_type="Win32" ;;
3875   *-*-mingw*)
3876     llvm_cv_link_all_option="-Wl,--whole-archive"
3877     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878     llvm_cv_os_type="MingW"
3879     llvm_cv_platform_type="Win32" ;;
3880   *-*-haiku*)
3881     llvm_cv_link_all_option="-Wl,--whole-archive"
3882     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883     llvm_cv_os_type="Haiku"
3884     llvm_cv_platform_type="Unix" ;;
3885   *-unknown-eabi*)
3886     llvm_cv_link_all_option="-Wl,--whole-archive"
3887     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888     llvm_cv_os_type="Freestanding"
3889     llvm_cv_platform_type="Unix" ;;
3890   *-unknown-elf*)
3891     llvm_cv_link_all_option="-Wl,--whole-archive"
3892     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3893     llvm_cv_os_type="Freestanding"
3894     llvm_cv_platform_type="Unix" ;;
3895   *)
3896     llvm_cv_link_all_option=""
3897     llvm_cv_no_link_all_option=""
3898     llvm_cv_os_type="Unknown"
3899     llvm_cv_platform_type="Unknown" ;;
3900 esac
3901 fi
3902 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3903 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3904
3905 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3906 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3907 if test "${llvm_cv_target_os_type+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   case $target in
3911   *-*-aix*)
3912     llvm_cv_target_os_type="AIX" ;;
3913   *-*-irix*)
3914     llvm_cv_target_os_type="IRIX" ;;
3915   *-*-cygwin*)
3916     llvm_cv_target_os_type="Cygwin" ;;
3917   *-*-darwin*)
3918     llvm_cv_target_os_type="Darwin" ;;
3919   *-*-minix*)
3920     llvm_cv_target_os_type="Minix" ;;
3921   *-*-freebsd* | *-*-kfreebsd-gnu)
3922     llvm_cv_target_os_type="FreeBSD" ;;
3923   *-*-openbsd*)
3924     llvm_cv_target_os_type="OpenBSD" ;;
3925   *-*-netbsd*)
3926     llvm_cv_target_os_type="NetBSD" ;;
3927   *-*-dragonfly*)
3928     llvm_cv_target_os_type="DragonFly" ;;
3929   *-*-hpux*)
3930     llvm_cv_target_os_type="HP-UX" ;;
3931   *-*-interix*)
3932     llvm_cv_target_os_type="Interix" ;;
3933   *-*-linux*)
3934     llvm_cv_target_os_type="Linux" ;;
3935   *-*-gnu*)
3936     llvm_cv_target_os_type="GNU" ;;
3937   *-*-solaris*)
3938     llvm_cv_target_os_type="SunOS" ;;
3939   *-*-auroraux*)
3940     llvm_cv_target_os_type="AuroraUX" ;;
3941   *-*-win32*)
3942     llvm_cv_target_os_type="Win32" ;;
3943   *-*-mingw*)
3944     llvm_cv_target_os_type="MingW" ;;
3945   *-*-haiku*)
3946     llvm_cv_target_os_type="Haiku" ;;
3947   *-*-rtems*)
3948     llvm_cv_target_os_type="RTEMS" ;;
3949   *-*-nacl*)
3950     llvm_cv_target_os_type="NativeClient" ;;
3951   *-unknown-eabi*)
3952     llvm_cv_target_os_type="Freestanding" ;;
3953   *)
3954     llvm_cv_target_os_type="Unknown" ;;
3955 esac
3956 fi
3957 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3958 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3959
3960 if test "$llvm_cv_os_type" = "Unknown" ; then
3961   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3962 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966 OS=$llvm_cv_os_type
3967
3968 HOST_OS=$llvm_cv_os_type
3969
3970 TARGET_OS=$llvm_cv_target_os_type
3971
3972
3973 LINKALL=$llvm_cv_link_all_option
3974
3975 NOLINKALL=$llvm_cv_no_link_all_option
3976
3977
3978 case $llvm_cv_platform_type in
3979   Unix)
3980
3981 cat >>confdefs.h <<\_ACEOF
3982 #define LLVM_ON_UNIX 1
3983 _ACEOF
3984
3985     LLVM_ON_UNIX=1
3986
3987     LLVM_ON_WIN32=0
3988
3989     ;;
3990   Win32)
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define LLVM_ON_WIN32 1
3994 _ACEOF
3995
3996     LLVM_ON_UNIX=0
3997
3998     LLVM_ON_WIN32=1
3999
4000     ;;
4001 esac
4002
4003 { echo "$as_me:$LINENO: checking target architecture" >&5
4004 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4005 if test "${llvm_cv_target_arch+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   case $target in
4009   i?86-*)                 llvm_cv_target_arch="x86" ;;
4010   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4011   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4012   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4013   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4014   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4015   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4016   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4017   xcore-*)                llvm_cv_target_arch="XCore" ;;
4018   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4019   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4020   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4021   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4022   *)                      llvm_cv_target_arch="Unknown" ;;
4023 esac
4024 fi
4025 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4026 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4027
4028 if test "$llvm_cv_target_arch" = "Unknown" ; then
4029   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4030 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4031 fi
4032
4033 case "$llvm_cv_target_arch" in
4034     x86)     LLVM_NATIVE_ARCH="X86" ;;
4035     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4036     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4037 esac
4038
4039 ARCH=$llvm_cv_target_arch
4040
4041
4042 case $host in
4043   i?86-*)                 host_arch="x86" ;;
4044   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4045   sparc*-*)               host_arch="Sparc" ;;
4046   powerpc*-*)             host_arch="PowerPC" ;;
4047   arm*-*)                 host_arch="ARM" ;;
4048   aarch64*-*)             host_arch="AArch64" ;;
4049   mips-* | mips64-*)      host_arch="Mips" ;;
4050   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4051   xcore-*)                host_arch="XCore" ;;
4052   msp430-*)               host_arch="MSP430" ;;
4053   hexagon-*)              host_arch="Hexagon" ;;
4054   mblaze-*)               host_arch="MBlaze" ;;
4055   *)                      host_arch="Unknown" ;;
4056 esac
4057
4058 if test "$host_arch" = "Unknown" ; then
4059   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4060 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4061 fi
4062
4063 HOST_ARCH=$host_arch
4064
4065
4066
4067
4068 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4069 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   # Extract the first word of "grep ggrep" to use in msg output
4074 if test -z "$GREP"; then
4075 set dummy grep ggrep; ac_prog_name=$2
4076 if test "${ac_cv_path_GREP+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   ac_path_GREP_found=false
4080 # Loop through the user's path and test for each of PROGNAME-LIST
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_prog in grep ggrep; do
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4090     # Check for GNU ac_path_GREP and select it if it is found.
4091   # Check for GNU $ac_path_GREP
4092 case `"$ac_path_GREP" --version 2>&1` in
4093 *GNU*)
4094   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095 *)
4096   ac_count=0
4097   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4098   while :
4099   do
4100     cat "conftest.in" "conftest.in" >"conftest.tmp"
4101     mv "conftest.tmp" "conftest.in"
4102     cp "conftest.in" "conftest.nl"
4103     echo 'GREP' >> "conftest.nl"
4104     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106     ac_count=`expr $ac_count + 1`
4107     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108       # Best one so far, save it but keep looking for a better one
4109       ac_cv_path_GREP="$ac_path_GREP"
4110       ac_path_GREP_max=$ac_count
4111     fi
4112     # 10*(2^10) chars as input seems more than enough
4113     test $ac_count -gt 10 && break
4114   done
4115   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116 esac
4117
4118
4119     $ac_path_GREP_found && break 3
4120   done
4121 done
4122
4123 done
4124 IFS=$as_save_IFS
4125
4126
4127 fi
4128
4129 GREP="$ac_cv_path_GREP"
4130 if test -z "$GREP"; then
4131   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4132 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4133    { (exit 1); exit 1; }; }
4134 fi
4135
4136 else
4137   ac_cv_path_GREP=$GREP
4138 fi
4139
4140
4141 fi
4142 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4143 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4144  GREP="$ac_cv_path_GREP"
4145
4146
4147 { echo "$as_me:$LINENO: checking for egrep" >&5
4148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4149 if test "${ac_cv_path_EGREP+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4153    then ac_cv_path_EGREP="$GREP -E"
4154    else
4155      # Extract the first word of "egrep" to use in msg output
4156 if test -z "$EGREP"; then
4157 set dummy egrep; ac_prog_name=$2
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   ac_path_EGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168   for ac_prog in egrep; do
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4171     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4172     # Check for GNU ac_path_EGREP and select it if it is found.
4173   # Check for GNU $ac_path_EGREP
4174 case `"$ac_path_EGREP" --version 2>&1` in
4175 *GNU*)
4176   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4177 *)
4178   ac_count=0
4179   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4180   while :
4181   do
4182     cat "conftest.in" "conftest.in" >"conftest.tmp"
4183     mv "conftest.tmp" "conftest.in"
4184     cp "conftest.in" "conftest.nl"
4185     echo 'EGREP' >> "conftest.nl"
4186     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188     ac_count=`expr $ac_count + 1`
4189     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4190       # Best one so far, save it but keep looking for a better one
4191       ac_cv_path_EGREP="$ac_path_EGREP"
4192       ac_path_EGREP_max=$ac_count
4193     fi
4194     # 10*(2^10) chars as input seems more than enough
4195     test $ac_count -gt 10 && break
4196   done
4197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4199
4200
4201     $ac_path_EGREP_found && break 3
4202   done
4203 done
4204
4205 done
4206 IFS=$as_save_IFS
4207
4208
4209 fi
4210
4211 EGREP="$ac_cv_path_EGREP"
4212 if test -z "$EGREP"; then
4213   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4214 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4215    { (exit 1); exit 1; }; }
4216 fi
4217
4218 else
4219   ac_cv_path_EGREP=$EGREP
4220 fi
4221
4222
4223    fi
4224 fi
4225 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4226 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4227  EGREP="$ac_cv_path_EGREP"
4228
4229
4230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4232 if test "${ac_cv_header_stdc+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <stdlib.h>
4242 #include <stdarg.h>
4243 #include <string.h>
4244 #include <float.h>
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_compile") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } &&
4268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269   { (case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_try") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   ac_cv_header_stdc=yes
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293         ac_cv_header_stdc=no
4294 fi
4295
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
4298 if test $ac_cv_header_stdc = yes; then
4299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300   cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306 #include <string.h>
4307
4308 _ACEOF
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310   $EGREP "memchr" >/dev/null 2>&1; then
4311   :
4312 else
4313   ac_cv_header_stdc=no
4314 fi
4315 rm -f conftest*
4316
4317 fi
4318
4319 if test $ac_cv_header_stdc = yes; then
4320   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 #include <stdlib.h>
4328
4329 _ACEOF
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331   $EGREP "free" >/dev/null 2>&1; then
4332   :
4333 else
4334   ac_cv_header_stdc=no
4335 fi
4336 rm -f conftest*
4337
4338 fi
4339
4340 if test $ac_cv_header_stdc = yes; then
4341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342   if test "$cross_compiling" = yes; then
4343   :
4344 else
4345   cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 #include <ctype.h>
4352 #include <stdlib.h>
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4356 #else
4357 # define ISLOWER(c) \
4358                    (('a' <= (c) && (c) <= 'i') \
4359                      || ('j' <= (c) && (c) <= 'r') \
4360                      || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #endif
4363
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365 int
4366 main ()
4367 {
4368   int i;
4369   for (i = 0; i < 256; i++)
4370     if (XOR (islower (i), ISLOWER (i))
4371         || toupper (i) != TOUPPER (i))
4372       return 2;
4373   return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest$ac_exeext
4377 if { (ac_try="$ac_link"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_link") 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4387   { (case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_try") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; }; then
4396   :
4397 else
4398   echo "$as_me: program exited with status $ac_status" >&5
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ( exit $ac_status )
4403 ac_cv_header_stdc=no
4404 fi
4405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4406 fi
4407
4408
4409 fi
4410 fi
4411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4413 if test $ac_cv_header_stdc = yes; then
4414
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4417 _ACEOF
4418
4419 fi
4420
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432                   inttypes.h stdint.h unistd.h
4433 do
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h.  */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h.  */
4446 $ac_includes_default
4447
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4452 case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_compile") 2>conftest.er1
4458   ac_status=$?
4459   grep -v '^ *+' conftest.er1 >conftest.err
4460   rm -f conftest.er1
4461   cat conftest.err >&5
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); } &&
4464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4465   { (case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470   (eval "$ac_try") 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; } &&
4474          { ac_try='test -s conftest.$ac_objext'
4475   { (case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480   (eval "$ac_try") 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   eval "$as_ac_Header=yes"
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489         eval "$as_ac_Header=no"
4490 fi
4491
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 ac_res=`eval echo '${'$as_ac_Header'}'`
4495                { echo "$as_me:$LINENO: result: $ac_res" >&5
4496 echo "${ECHO_T}$ac_res" >&6; }
4497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498   cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4500 _ACEOF
4501
4502 fi
4503
4504 done
4505
4506
4507 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4508 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4509 if test "${ac_cv_c_bigendian+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   # See if sys/param.h defines the BYTE_ORDER macro.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 #include <sys/types.h>
4520 #include <sys/param.h>
4521
4522 int
4523 main ()
4524 {
4525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4526  bogus endian macros
4527 #endif
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_compile") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4548   { (case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553   (eval "$ac_try") 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; } &&
4557          { ac_try='test -s conftest.$ac_objext'
4558   { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4576
4577 int
4578 main ()
4579 {
4580 #if BYTE_ORDER != BIG_ENDIAN
4581  not big endian
4582 #endif
4583
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595   (eval "$ac_compile") 2>conftest.er1
4596   ac_status=$?
4597   grep -v '^ *+' conftest.er1 >conftest.err
4598   rm -f conftest.er1
4599   cat conftest.err >&5
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } &&
4602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4603   { (case "(($ac_try" in
4604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605   *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608   (eval "$ac_try") 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (case "(($ac_try" in
4614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615   *) ac_try_echo=$ac_try;;
4616 esac
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618   (eval "$ac_try") 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   ac_cv_c_bigendian=yes
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627         ac_cv_c_bigendian=no
4628 fi
4629
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635         # It does not; compile a test program.
4636 if test "$cross_compiling" = yes; then
4637   # try to guess the endianness by grepping values into an object file
4638   ac_cv_c_bigendian=unknown
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4651 int
4652 main ()
4653 {
4654  _ascii (); _ebcdic ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4661 case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_compile") 2>conftest.er1
4667   ac_status=$?
4668   grep -v '^ *+' conftest.er1 >conftest.err
4669   rm -f conftest.er1
4670   cat conftest.err >&5
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); } &&
4673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4674   { (case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_try") 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; } &&
4683          { ac_try='test -s conftest.$ac_objext'
4684   { (case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_try") 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; }; then
4693   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4694   ac_cv_c_bigendian=yes
4695 fi
4696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4697   if test "$ac_cv_c_bigendian" = unknown; then
4698     ac_cv_c_bigendian=no
4699   else
4700     # finding both strings is unlikely to happen, but who knows?
4701     ac_cv_c_bigendian=unknown
4702   fi
4703 fi
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708
4709 fi
4710
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 else
4713   cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719 $ac_includes_default
4720 int
4721 main ()
4722 {
4723
4724   /* Are we little or big endian?  From Harbison&Steele.  */
4725   union
4726   {
4727     long int l;
4728     char c[sizeof (long int)];
4729   } u;
4730   u.l = 1;
4731   return u.c[sizeof (long int) - 1] == 1;
4732
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 rm -f conftest$ac_exeext
4738 if { (ac_try="$ac_link"
4739 case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_link") 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4748   { (case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_try") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   ac_cv_c_bigendian=no
4758 else
4759   echo "$as_me: program exited with status $ac_status" >&5
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ( exit $ac_status )
4764 ac_cv_c_bigendian=yes
4765 fi
4766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4767 fi
4768
4769
4770 fi
4771
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4775 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4776 case $ac_cv_c_bigendian in
4777   yes)
4778     ENDIAN=big
4779  ;;
4780   no)
4781     ENDIAN=little
4782  ;;
4783   *)
4784     { { echo "$as_me:$LINENO: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4786 echo "$as_me: error: unknown endianness
4787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4788    { (exit 1); exit 1; }; } ;;
4789 esac
4790
4791
4792 if test "$cross_compiling" = yes; then
4793   LLVM_CROSS_COMPILING=1
4794
4795
4796 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4797 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4798 if test "${ac_cv_build_exeext+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4802   ac_cv_build_exeext=.exe
4803 else
4804   ac_build_prefix=${build_alias}-
4805
4806   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_build_prefix}gcc; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   if test -n "$BUILD_CC"; then
4814   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 BUILD_CC=$ac_cv_prog_BUILD_CC
4834 if test -n "$BUILD_CC"; then
4835   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4836 echo "${ECHO_T}$BUILD_CC" >&6; }
4837 else
4838   { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4840 fi
4841
4842
4843   if test -z "$BUILD_CC"; then
4844      # Extract the first word of "gcc", so it can be a program name with args.
4845 set dummy gcc; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   if test -n "$BUILD_CC"; then
4852   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859   for ac_exec_ext in '' $ac_executable_extensions; do
4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4861     ac_cv_prog_BUILD_CC="gcc"
4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869 fi
4870 fi
4871 BUILD_CC=$ac_cv_prog_BUILD_CC
4872 if test -n "$BUILD_CC"; then
4873   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4874 echo "${ECHO_T}$BUILD_CC" >&6; }
4875 else
4876   { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4878 fi
4879
4880
4881      if test -z "$BUILD_CC"; then
4882        # Extract the first word of "cc", so it can be a program name with args.
4883 set dummy cc; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$BUILD_CC"; then
4890   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4891 else
4892   ac_prog_rejected=no
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898   for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4901        ac_prog_rejected=yes
4902        continue
4903      fi
4904     ac_cv_prog_BUILD_CC="cc"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 if test $ac_prog_rejected = yes; then
4913   # We found a bogon in the path, so make sure we never use it.
4914   set dummy $ac_cv_prog_BUILD_CC
4915   shift
4916   if test $# != 0; then
4917     # We chose a different compiler from the bogus one.
4918     # However, it has the same basename, so the bogon will be chosen
4919     # first if we set BUILD_CC to just the basename; use the full file name.
4920     shift
4921     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4922   fi
4923 fi
4924 fi
4925 fi
4926 BUILD_CC=$ac_cv_prog_BUILD_CC
4927 if test -n "$BUILD_CC"; then
4928   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4929 echo "${ECHO_T}$BUILD_CC" >&6; }
4930 else
4931   { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936      fi
4937   fi
4938   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4939 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4940    { (exit 1); exit 1; }; }
4941   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4942   rm -f conftest*
4943   echo 'int main () { return 0; }' > conftest.$ac_ext
4944   ac_cv_build_exeext=
4945   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4946   (eval $ac_build_link) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; then
4950     for file in conftest.*; do
4951       case $file in
4952       *.c | *.o | *.obj | *.dSYM) ;;
4953       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4954       esac
4955     done
4956   else
4957     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4958 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4959    { (exit 1); exit 1; }; }
4960   fi
4961   rm -f conftest*
4962   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4963 fi
4964 fi
4965
4966 BUILD_EXEEXT=""
4967 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4968 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4969 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4970 ac_build_exeext=$BUILD_EXEEXT
4971
4972   ac_build_prefix=${build_alias}-
4973   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4974 set dummy ${ac_build_prefix}g++; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   if test -n "$BUILD_CXX"; then
4981   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5001 if test -n "$BUILD_CXX"; then
5002   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5003 echo "${ECHO_T}$BUILD_CXX" >&6; }
5004 else
5005   { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 fi
5008
5009
5010   if test -z "$BUILD_CXX"; then
5011      # Extract the first word of "g++", so it can be a program name with args.
5012 set dummy g++; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   if test -n "$BUILD_CXX"; then
5019   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5028     ac_cv_prog_BUILD_CXX="g++"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5039 if test -n "$BUILD_CXX"; then
5040   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5041 echo "${ECHO_T}$BUILD_CXX" >&6; }
5042 else
5043   { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5045 fi
5046
5047
5048      if test -z "$BUILD_CXX"; then
5049        # Extract the first word of "c++", so it can be a program name with args.
5050 set dummy c++; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$BUILD_CXX"; then
5057   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5058 else
5059   ac_prog_rejected=no
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065   for ac_exec_ext in '' $ac_executable_extensions; do
5066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5067     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5068        ac_prog_rejected=yes
5069        continue
5070      fi
5071     ac_cv_prog_BUILD_CXX="c++"
5072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 if test $ac_prog_rejected = yes; then
5080   # We found a bogon in the path, so make sure we never use it.
5081   set dummy $ac_cv_prog_BUILD_CXX
5082   shift
5083   if test $# != 0; then
5084     # We chose a different compiler from the bogus one.
5085     # However, it has the same basename, so the bogon will be chosen
5086     # first if we set BUILD_CXX to just the basename; use the full file name.
5087     shift
5088     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5089   fi
5090 fi
5091 fi
5092 fi
5093 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5094 if test -n "$BUILD_CXX"; then
5095   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5096 echo "${ECHO_T}$BUILD_CXX" >&6; }
5097 else
5098   { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103      fi
5104   fi
5105 else
5106   LLVM_CROSS_COMPILING=0
5107
5108 fi
5109
5110 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5111   cvsbuild="yes"
5112   optimize="no"
5113   CVSBUILD=CVSBUILD=1
5114
5115 else
5116   cvsbuild="no"
5117   optimize="yes"
5118 fi
5119
5120
5121 # Check whether --enable-libcpp was given.
5122 if test "${enable_libcpp+set}" = set; then
5123   enableval=$enable_libcpp;
5124 else
5125   enableval=default
5126 fi
5127
5128 case "$enableval" in
5129   yes) ENABLE_LIBCPP=1
5130  ;;
5131   no)  ENABLE_LIBCPP=0
5132  ;;
5133   default) ENABLE_LIBCPP=0
5134 ;;
5135   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5137    { (exit 1); exit 1; }; } ;;
5138 esac
5139
5140 # Check whether --enable-cxx11 was given.
5141 if test "${enable_cxx11+set}" = set; then
5142   enableval=$enable_cxx11;
5143 else
5144   enableval=default
5145 fi
5146
5147 case "$enableval" in
5148   yes) ENABLE_CXX11=1
5149  ;;
5150   no)  ENABLE_CXX11=0
5151  ;;
5152   default) ENABLE_CXX11=0
5153 ;;
5154   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5156    { (exit 1); exit 1; }; } ;;
5157 esac
5158
5159 clang_arcmt="yes"
5160 # Check whether --enable-clang-arcmt was given.
5161 if test "${enable_clang_arcmt+set}" = set; then
5162   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5163 else
5164   enableval="yes"
5165 fi
5166
5167 case "$enableval" in
5168   yes) ENABLE_CLANG_ARCMT=1
5169  ;;
5170   no)  ENABLE_CLANG_ARCMT=0
5171  ;;
5172   default) ENABLE_CLANG_ARCMT=1
5173 ;;
5174   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5176    { (exit 1); exit 1; }; } ;;
5177 esac
5178
5179 clang_static_analyzer="yes"
5180 # Check whether --enable-clang-static-analyzer was given.
5181 if test "${enable_clang_static_analyzer+set}" = set; then
5182   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5183 else
5184   enableval="yes"
5185 fi
5186
5187 case "$enableval" in
5188   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5189  ;;
5190   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5191  ;;
5192   default) ENABLE_CLANG_STATIC_ANALYZER=1
5193 ;;
5194   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5196    { (exit 1); exit 1; }; } ;;
5197 esac
5198
5199 # Check whether --enable-clang-rewriter was given.
5200 if test "${enable_clang_rewriter+set}" = set; then
5201   enableval=$enable_clang_rewriter;
5202 else
5203   enableval="yes"
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_CLANG_REWRITER=1
5208  ;;
5209   no)
5210     if test ${clang_arcmt} != "no" ; then
5211       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5212 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5213    { (exit 1); exit 1; }; }
5214     fi
5215     if test ${clang_static_analyzer} != "no" ; then
5216       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5217 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5218    { (exit 1); exit 1; }; }
5219     fi
5220     ENABLE_CLANG_REWRITER=0
5221
5222     ;;
5223   default) ENABLE_CLANG_REWRITER=1
5224 ;;
5225   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228 esac
5229
5230 # Check whether --enable-optimized was given.
5231 if test "${enable_optimized+set}" = set; then
5232   enableval=$enable_optimized;
5233 else
5234   enableval=$optimize
5235 fi
5236
5237 if test ${enableval} = "no" ; then
5238   ENABLE_OPTIMIZED=
5239
5240 else
5241   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5242
5243 fi
5244
5245 # Check whether --enable-profiling was given.
5246 if test "${enable_profiling+set}" = set; then
5247   enableval=$enable_profiling;
5248 else
5249   enableval="no"
5250 fi
5251
5252 if test ${enableval} = "no" ; then
5253   ENABLE_PROFILING=
5254
5255 else
5256   ENABLE_PROFILING=ENABLE_PROFILING=1
5257
5258 fi
5259
5260 # Check whether --enable-assertions was given.
5261 if test "${enable_assertions+set}" = set; then
5262   enableval=$enable_assertions;
5263 else
5264   enableval="yes"
5265 fi
5266
5267 if test ${enableval} = "yes" ; then
5268   DISABLE_ASSERTIONS=
5269
5270 else
5271   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5272
5273 fi
5274
5275 # Check whether --enable-werror was given.
5276 if test "${enable_werror+set}" = set; then
5277   enableval=$enable_werror;
5278 else
5279   enableval="no"
5280 fi
5281
5282 case "$enableval" in
5283   yes) ENABLE_WERROR=1
5284  ;;
5285   no)  ENABLE_WERROR=0
5286  ;;
5287   default) ENABLE_WERROR=0
5288 ;;
5289   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5291    { (exit 1); exit 1; }; } ;;
5292 esac
5293
5294 # Check whether --enable-expensive-checks was given.
5295 if test "${enable_expensive_checks+set}" = set; then
5296   enableval=$enable_expensive_checks;
5297 else
5298   enableval="no"
5299 fi
5300
5301 if test ${enableval} = "yes" ; then
5302   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5303
5304   EXPENSIVE_CHECKS=yes
5305
5306 else
5307   ENABLE_EXPENSIVE_CHECKS=
5308
5309   EXPENSIVE_CHECKS=no
5310
5311 fi
5312
5313 # Check whether --enable-debug-runtime was given.
5314 if test "${enable_debug_runtime+set}" = set; then
5315   enableval=$enable_debug_runtime;
5316 else
5317   enableval=no
5318 fi
5319
5320 if test ${enableval} = "no" ; then
5321   DEBUG_RUNTIME=
5322
5323 else
5324   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5325
5326 fi
5327
5328 # Check whether --enable-debug-symbols was given.
5329 if test "${enable_debug_symbols+set}" = set; then
5330   enableval=$enable_debug_symbols;
5331 else
5332   enableval=no
5333 fi
5334
5335 if test ${enableval} = "no" ; then
5336   DEBUG_SYMBOLS=
5337
5338 else
5339   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5340
5341 fi
5342
5343 # Check whether --enable-keep-symbols was given.
5344 if test "${enable_keep_symbols+set}" = set; then
5345   enableval=$enable_keep_symbols;
5346 else
5347   enableval=no
5348 fi
5349
5350 if test ${enableval} = "no" ; then
5351   KEEP_SYMBOLS=
5352
5353 else
5354   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5355
5356 fi
5357
5358 # Check whether --enable-jit was given.
5359 if test "${enable_jit+set}" = set; then
5360   enableval=$enable_jit;
5361 else
5362   enableval=default
5363 fi
5364
5365 if test ${enableval} = "no"
5366 then
5367   JIT=
5368
5369 else
5370   case "$llvm_cv_target_arch" in
5371     x86)         TARGET_HAS_JIT=1
5372  ;;
5373     Sparc)       TARGET_HAS_JIT=0
5374  ;;
5375     PowerPC)     TARGET_HAS_JIT=1
5376  ;;
5377     x86_64)      TARGET_HAS_JIT=1
5378  ;;
5379     ARM)         TARGET_HAS_JIT=1
5380  ;;
5381     AArch64)     TARGET_HAS_JIT=0
5382  ;;
5383     Mips)        TARGET_HAS_JIT=1
5384  ;;
5385     XCore)       TARGET_HAS_JIT=0
5386  ;;
5387     MSP430)      TARGET_HAS_JIT=0
5388  ;;
5389     Hexagon)     TARGET_HAS_JIT=0
5390  ;;
5391     MBlaze)      TARGET_HAS_JIT=0
5392  ;;
5393     NVPTX)       TARGET_HAS_JIT=0
5394  ;;
5395     *)           TARGET_HAS_JIT=0
5396  ;;
5397   esac
5398 fi
5399
5400 # Check whether --enable-docs was given.
5401 if test "${enable_docs+set}" = set; then
5402   enableval=$enable_docs;
5403 else
5404   enableval=default
5405 fi
5406
5407 case "$enableval" in
5408   yes) ENABLE_DOCS=1
5409  ;;
5410   no)  ENABLE_DOCS=0
5411  ;;
5412   default) ENABLE_DOCS=1
5413  ;;
5414   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5415 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5416    { (exit 1); exit 1; }; } ;;
5417 esac
5418
5419 # Check whether --enable-doxygen was given.
5420 if test "${enable_doxygen+set}" = set; then
5421   enableval=$enable_doxygen;
5422 else
5423   enableval=default
5424 fi
5425
5426 case "$enableval" in
5427   yes) ENABLE_DOXYGEN=1
5428  ;;
5429   no)  ENABLE_DOXYGEN=0
5430  ;;
5431   default) ENABLE_DOXYGEN=0
5432  ;;
5433   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5434 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5435    { (exit 1); exit 1; }; } ;;
5436 esac
5437
5438 # Check whether --enable-threads was given.
5439 if test "${enable_threads+set}" = set; then
5440   enableval=$enable_threads;
5441 else
5442   enableval=default
5443 fi
5444
5445 case "$enableval" in
5446   yes) LLVM_ENABLE_THREADS=1
5447  ;;
5448   no)  LLVM_ENABLE_THREADS=0
5449  ;;
5450   default) LLVM_ENABLE_THREADS=1
5451  ;;
5452   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5453 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5454    { (exit 1); exit 1; }; } ;;
5455 esac
5456
5457 cat >>confdefs.h <<_ACEOF
5458 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5459 _ACEOF
5460
5461
5462 # Check whether --enable-pthreads was given.
5463 if test "${enable_pthreads+set}" = set; then
5464   enableval=$enable_pthreads;
5465 else
5466   enableval=default
5467 fi
5468
5469 case "$enableval" in
5470   yes) ENABLE_PTHREADS=1
5471  ;;
5472   no)  ENABLE_PTHREADS=0
5473  ;;
5474   default) ENABLE_PTHREADS=1
5475  ;;
5476   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5477 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5478    { (exit 1); exit 1; }; } ;;
5479 esac
5480
5481 # Check whether --enable-pic was given.
5482 if test "${enable_pic+set}" = set; then
5483   enableval=$enable_pic;
5484 else
5485   enableval=default
5486 fi
5487
5488 case "$enableval" in
5489   yes) ENABLE_PIC=1
5490  ;;
5491   no)  ENABLE_PIC=0
5492  ;;
5493   default) ENABLE_PIC=1
5494  ;;
5495   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5496 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5497    { (exit 1); exit 1; }; } ;;
5498 esac
5499
5500 cat >>confdefs.h <<_ACEOF
5501 #define ENABLE_PIC $ENABLE_PIC
5502 _ACEOF
5503
5504
5505 # Check whether --enable-shared was given.
5506 if test "${enable_shared+set}" = set; then
5507   enableval=$enable_shared;
5508 else
5509   enableval=default
5510 fi
5511
5512 case "$enableval" in
5513   yes) ENABLE_SHARED=1
5514  ;;
5515   no)  ENABLE_SHARED=0
5516  ;;
5517   default) ENABLE_SHARED=0
5518  ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5520 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523
5524 # Check whether --enable-embed-stdcxx was given.
5525 if test "${enable_embed_stdcxx+set}" = set; then
5526   enableval=$enable_embed_stdcxx;
5527 else
5528   enableval=default
5529 fi
5530
5531 case "$enableval" in
5532   yes) ENABLE_EMBED_STDCXX=1
5533  ;;
5534   no)  ENABLE_EMBED_STDCXX=0
5535  ;;
5536   default) ENABLE_EMBED_STDCXX=0
5537  ;;
5538   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5539 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5540    { (exit 1); exit 1; }; } ;;
5541 esac
5542
5543 # Check whether --enable-timestamps was given.
5544 if test "${enable_timestamps+set}" = set; then
5545   enableval=$enable_timestamps;
5546 else
5547   enableval=default
5548 fi
5549
5550 case "$enableval" in
5551   yes) ENABLE_TIMESTAMPS=1
5552  ;;
5553   no)  ENABLE_TIMESTAMPS=0
5554  ;;
5555   default) ENABLE_TIMESTAMPS=1
5556  ;;
5557   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5558 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5559    { (exit 1); exit 1; }; } ;;
5560 esac
5561
5562 cat >>confdefs.h <<_ACEOF
5563 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5564 _ACEOF
5565
5566
5567
5568 # Check whether --enable-backtraces was given.
5569 if test "${enable_backtraces+set}" = set; then
5570   enableval=$enable_backtraces;
5571 else
5572   enableval=default
5573 fi
5574
5575 case "$enableval" in
5576   yes) ENABLE_BACKTRACES=1
5577  ;;
5578   no)  ENABLE_BACKTRACES=0
5579  ;;
5580   default) ENABLE_BACKTRACES=1
5581  ;;
5582   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5584    { (exit 1); exit 1; }; } ;;
5585 esac
5586
5587 cat >>confdefs.h <<_ACEOF
5588 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5589 _ACEOF
5590
5591
5592 TARGETS_TO_BUILD=""
5593 # Check whether --enable-targets was given.
5594 if test "${enable_targets+set}" = set; then
5595   enableval=$enable_targets;
5596 else
5597   enableval=all
5598 fi
5599
5600 if test "$enableval" = host-only ; then
5601   enableval=host
5602 fi
5603 case "$enableval" in
5604   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5605   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5606       case "$a_target" in
5607         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5608         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5610         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5611         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5612         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5613         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5616         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5618         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5619         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5620         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5621         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5622         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5623         host) case "$llvm_cv_target_arch" in
5624             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5625             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5627             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5628             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5629             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5630             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5631             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5632             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5633             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5634             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5635             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5636 echo "$as_me: error: Can not set target to build" >&2;}
5637    { (exit 1); exit 1; }; } ;;
5638           esac ;;
5639         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5640 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5641    { (exit 1); exit 1; }; } ;;
5642       esac
5643   done
5644   ;;
5645 esac
5646
5647 # Check whether --enable-experimental-targets was given.
5648 if test "${enable_experimental_targets+set}" = set; then
5649   enableval=$enable_experimental_targets;
5650 else
5651   enableval=disable
5652 fi
5653
5654
5655 if test ${enableval} != "disable"
5656 then
5657   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5658 fi
5659
5660 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5661
5662
5663 for a_target in $TARGETS_TO_BUILD; do
5664   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5665
5666 cat >>confdefs.h <<_ACEOF
5667 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5668 _ACEOF
5669
5670     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5671     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5672     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5673     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5674     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5675       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5676     fi
5677     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5678       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5679     fi
5680
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5683 _ACEOF
5684
5685
5686 cat >>confdefs.h <<_ACEOF
5687 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5688 _ACEOF
5689
5690
5691 cat >>confdefs.h <<_ACEOF
5692 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5693 _ACEOF
5694
5695
5696 cat >>confdefs.h <<_ACEOF
5697 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5698 _ACEOF
5699
5700     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5701
5702 cat >>confdefs.h <<_ACEOF
5703 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5704 _ACEOF
5705
5706     fi
5707     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5708
5709 cat >>confdefs.h <<_ACEOF
5710 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5711 _ACEOF
5712
5713     fi
5714   fi
5715 done
5716
5717 LLVM_ENUM_TARGETS=""
5718 LLVM_ENUM_ASM_PRINTERS=""
5719 LLVM_ENUM_ASM_PARSERS=""
5720 LLVM_ENUM_DISASSEMBLERS=""
5721 for target_to_build in $TARGETS_TO_BUILD; do
5722   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5723   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5724     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5725   fi
5726   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5727     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5728   fi
5729   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5730     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5731   fi
5732 done
5733
5734
5735
5736
5737
5738
5739 # Check whether --with-optimize-option was given.
5740 if test "${with_optimize_option+set}" = set; then
5741   withval=$with_optimize_option;
5742 else
5743   withval=default
5744 fi
5745
5746 { echo "$as_me:$LINENO: checking optimization flags" >&5
5747 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5748 case "$withval" in
5749   default)
5750     case "$llvm_cv_os_type" in
5751     FreeBSD) optimize_option=-O2 ;;
5752     MingW) optimize_option=-O2 ;;
5753     *)     optimize_option=-O3 ;;
5754     esac ;;
5755   *) optimize_option="$withval" ;;
5756 esac
5757 OPTIMIZE_OPTION=$optimize_option
5758
5759 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5760 echo "${ECHO_T}$optimize_option" >&6; }
5761
5762
5763 # Check whether --with-extra-options was given.
5764 if test "${with_extra_options+set}" = set; then
5765   withval=$with_extra_options;
5766 else
5767   withval=default
5768 fi
5769
5770 case "$withval" in
5771   default) EXTRA_OPTIONS= ;;
5772   *) EXTRA_OPTIONS=$withval ;;
5773 esac
5774 EXTRA_OPTIONS=$EXTRA_OPTIONS
5775
5776
5777
5778 # Check whether --with-extra-ld-options was given.
5779 if test "${with_extra_ld_options+set}" = set; then
5780   withval=$with_extra_ld_options;
5781 else
5782   withval=default
5783 fi
5784
5785 case "$withval" in
5786   default) EXTRA_LD_OPTIONS= ;;
5787   *) EXTRA_LD_OPTIONS=$withval ;;
5788 esac
5789 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5790
5791
5792 # Check whether --enable-bindings was given.
5793 if test "${enable_bindings+set}" = set; then
5794   enableval=$enable_bindings;
5795 else
5796   enableval=default
5797 fi
5798
5799 BINDINGS_TO_BUILD=""
5800 case "$enableval" in
5801   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5802   all ) BINDINGS_TO_BUILD="ocaml" ;;
5803   none | no) BINDINGS_TO_BUILD="" ;;
5804   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5805       case "$a_binding" in
5806         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5807         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5808 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5809    { (exit 1); exit 1; }; } ;;
5810       esac
5811   done
5812   ;;
5813 esac
5814
5815
5816 # Check whether --with-ocaml-libdir was given.
5817 if test "${with_ocaml_libdir+set}" = set; then
5818   withval=$with_ocaml_libdir;
5819 else
5820   withval=auto
5821 fi
5822
5823 case "$withval" in
5824   auto) with_ocaml_libdir="$withval" ;;
5825   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5826   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5827 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5828    { (exit 1); exit 1; }; } ;;
5829 esac
5830
5831
5832 # Check whether --with-clang-srcdir was given.
5833 if test "${with_clang_srcdir+set}" = set; then
5834   withval=$with_clang_srcdir;
5835 else
5836   withval="-"
5837 fi
5838
5839 case "$withval" in
5840   -) clang_src_root="" ;;
5841   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5842   *) clang_src_root="$ac_pwd/$withval" ;;
5843 esac
5844 CLANG_SRC_ROOT=$clang_src_root
5845
5846
5847
5848 # Check whether --with-clang-resource-dir was given.
5849 if test "${with_clang_resource_dir+set}" = set; then
5850   withval=$with_clang_resource_dir;
5851 else
5852   withval=""
5853 fi
5854
5855
5856 cat >>confdefs.h <<_ACEOF
5857 #define CLANG_RESOURCE_DIR "$withval"
5858 _ACEOF
5859
5860
5861
5862 # Check whether --with-c-include-dirs was given.
5863 if test "${with_c_include_dirs+set}" = set; then
5864   withval=$with_c_include_dirs;
5865 else
5866   withval=""
5867 fi
5868
5869
5870 cat >>confdefs.h <<_ACEOF
5871 #define C_INCLUDE_DIRS "$withval"
5872 _ACEOF
5873
5874
5875 # Clang normally uses the system c++ headers and libraries. With this option,
5876 # clang will use the ones provided by a gcc installation instead. This option should
5877 # be passed the same value that was used with --prefix when configuring gcc.
5878
5879 # Check whether --with-gcc-toolchain was given.
5880 if test "${with_gcc_toolchain+set}" = set; then
5881   withval=$with_gcc_toolchain;
5882 else
5883   withval=""
5884 fi
5885
5886
5887 cat >>confdefs.h <<_ACEOF
5888 #define GCC_INSTALL_PREFIX "$withval"
5889 _ACEOF
5890
5891
5892
5893 # Check whether --with-default-sysroot was given.
5894 if test "${with_default_sysroot+set}" = set; then
5895   withval=$with_default_sysroot;
5896 else
5897   withval=""
5898 fi
5899
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define DEFAULT_SYSROOT "$withval"
5903 _ACEOF
5904
5905
5906
5907 # Check whether --with-binutils-include was given.
5908 if test "${with_binutils_include+set}" = set; then
5909   withval=$with_binutils_include;
5910 else
5911   withval=default
5912 fi
5913
5914 case "$withval" in
5915   default) WITH_BINUTILS_INCDIR=default ;;
5916   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5917   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5918 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5919    { (exit 1); exit 1; }; } ;;
5920 esac
5921 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5922   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5923
5924   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5925      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5926      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5927 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5928    { (exit 1); exit 1; }; };
5929   fi
5930 fi
5931
5932
5933 # Check whether --with-bug-report-url was given.
5934 if test "${with_bug_report_url+set}" = set; then
5935   withval=$with_bug_report_url;
5936 else
5937   withval="http://llvm.org/bugs/"
5938 fi
5939
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define BUG_REPORT_URL "$withval"
5943 _ACEOF
5944
5945
5946 # Check whether --enable-libffi was given.
5947 if test "${enable_libffi+set}" = set; then
5948   enableval=$enable_libffi; case "$enableval" in
5949     yes) llvm_cv_enable_libffi="yes" ;;
5950     no)  llvm_cv_enable_libffi="no"  ;;
5951     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5952 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5953    { (exit 1); exit 1; }; } ;;
5954   esac
5955 else
5956   llvm_cv_enable_libffi=no
5957 fi
5958
5959
5960
5961 # Check whether --with-internal-prefix was given.
5962 if test "${with_internal_prefix+set}" = set; then
5963   withval=$with_internal_prefix;
5964 else
5965   withval=""
5966 fi
5967
5968 INTERNAL_PREFIX=$withval
5969
5970
5971
5972 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5974 if test "${lt_cv_path_NM+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   if test -n "$NM"; then
5978   # Let the user override the test.
5979   lt_cv_path_NM="$NM"
5980 else
5981   lt_nm_to_check="${ac_tool_prefix}nm"
5982   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983     lt_nm_to_check="$lt_nm_to_check nm"
5984   fi
5985   for lt_tmp_nm in $lt_nm_to_check; do
5986     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5988       IFS="$lt_save_ifs"
5989       test -z "$ac_dir" && ac_dir=.
5990       tmp_nm="$ac_dir/$lt_tmp_nm"
5991       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992         # Check to see if the nm accepts a BSD-compat flag.
5993         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994         #   nm: unknown option "B" ignored
5995         # Tru64's nm complains that /dev/null is an invalid object file
5996         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997         */dev/null* | *'Invalid file or object type'*)
5998           lt_cv_path_NM="$tmp_nm -B"
5999           break
6000           ;;
6001         *)
6002           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6003           */dev/null*)
6004             lt_cv_path_NM="$tmp_nm -p"
6005             break
6006             ;;
6007           *)
6008             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009             continue # so that we can try to find one that supports BSD flags
6010             ;;
6011           esac
6012           ;;
6013         esac
6014       fi
6015     done
6016     IFS="$lt_save_ifs"
6017   done
6018   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6019 fi
6020 fi
6021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6022 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6023 NM="$lt_cv_path_NM"
6024
6025
6026
6027 { echo "$as_me:$LINENO: checking for GNU make" >&5
6028 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6029 if test "${llvm_cv_gnu_make_command+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   llvm_cv_gnu_make_command=''
6033  for a in "$MAKE" make gmake gnumake ; do
6034   if test -z "$a" ; then continue ; fi ;
6035   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6036   then
6037    llvm_cv_gnu_make_command=$a ;
6038    break;
6039   fi
6040  done
6041 fi
6042 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6043 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6044  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6045    ifGNUmake='' ;
6046  else
6047    ifGNUmake='#' ;
6048    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6049 echo "${ECHO_T}\"Not found\"" >&6; };
6050  fi
6051
6052
6053 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6054 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6055 LN_S=$as_ln_s
6056 if test "$LN_S" = "ln -s"; then
6057   { echo "$as_me:$LINENO: result: yes" >&5
6058 echo "${ECHO_T}yes" >&6; }
6059 else
6060   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6061 echo "${ECHO_T}no, using $LN_S" >&6; }
6062 fi
6063
6064 # Extract the first word of "cmp", so it can be a program name with args.
6065 set dummy cmp; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_path_CMP+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   case $CMP in
6072   [\\/]* | ?:[\\/]*)
6073   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6074   ;;
6075   *)
6076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6092   ;;
6093 esac
6094 fi
6095 CMP=$ac_cv_path_CMP
6096 if test -n "$CMP"; then
6097   { echo "$as_me:$LINENO: result: $CMP" >&5
6098 echo "${ECHO_T}$CMP" >&6; }
6099 else
6100   { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6102 fi
6103
6104
6105 # Extract the first word of "cp", so it can be a program name with args.
6106 set dummy cp; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_CP+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   case $CP in
6113   [\\/]* | ?:[\\/]*)
6114   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6115   ;;
6116   *)
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6133   ;;
6134 esac
6135 fi
6136 CP=$ac_cv_path_CP
6137 if test -n "$CP"; then
6138   { echo "$as_me:$LINENO: result: $CP" >&5
6139 echo "${ECHO_T}$CP" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6143 fi
6144
6145
6146 # Extract the first word of "date", so it can be a program name with args.
6147 set dummy date; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_DATE+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   case $DATE in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6174   ;;
6175 esac
6176 fi
6177 DATE=$ac_cv_path_DATE
6178 if test -n "$DATE"; then
6179   { echo "$as_me:$LINENO: result: $DATE" >&5
6180 echo "${ECHO_T}$DATE" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186
6187 # Extract the first word of "find", so it can be a program name with args.
6188 set dummy find; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_FIND+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   case $FIND in
6195   [\\/]* | ?:[\\/]*)
6196   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6197   ;;
6198   *)
6199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6215   ;;
6216 esac
6217 fi
6218 FIND=$ac_cv_path_FIND
6219 if test -n "$FIND"; then
6220   { echo "$as_me:$LINENO: result: $FIND" >&5
6221 echo "${ECHO_T}$FIND" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227
6228 # Extract the first word of "grep", so it can be a program name with args.
6229 set dummy grep; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_GREP+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   case $GREP in
6236   [\\/]* | ?:[\\/]*)
6237   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6238   ;;
6239   *)
6240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6256   ;;
6257 esac
6258 fi
6259 GREP=$ac_cv_path_GREP
6260 if test -n "$GREP"; then
6261   { echo "$as_me:$LINENO: result: $GREP" >&5
6262 echo "${ECHO_T}$GREP" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269 # Extract the first word of "mkdir", so it can be a program name with args.
6270 set dummy mkdir; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_MKDIR+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   case $MKDIR in
6277   [\\/]* | ?:[\\/]*)
6278   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6279   ;;
6280   *)
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6297   ;;
6298 esac
6299 fi
6300 MKDIR=$ac_cv_path_MKDIR
6301 if test -n "$MKDIR"; then
6302   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6303 echo "${ECHO_T}$MKDIR" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309
6310 # Extract the first word of "mv", so it can be a program name with args.
6311 set dummy mv; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_MV+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   case $MV in
6318   [\\/]* | ?:[\\/]*)
6319   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6320   ;;
6321   *)
6322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327   for ac_exec_ext in '' $ac_executable_extensions; do
6328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6338   ;;
6339 esac
6340 fi
6341 MV=$ac_cv_path_MV
6342 if test -n "$MV"; then
6343   { echo "$as_me:$LINENO: result: $MV" >&5
6344 echo "${ECHO_T}$MV" >&6; }
6345 else
6346   { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6348 fi
6349
6350
6351 if test -n "$ac_tool_prefix"; then
6352   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_RANLIB+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   if test -n "$RANLIB"; then
6360   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367   for ac_exec_ext in '' $ac_executable_extensions; do
6368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 RANLIB=$ac_cv_prog_RANLIB
6380 if test -n "$RANLIB"; then
6381   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6382 echo "${ECHO_T}$RANLIB" >&6; }
6383 else
6384   { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_RANLIB"; then
6391   ac_ct_RANLIB=$RANLIB
6392   # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   if test -n "$ac_ct_RANLIB"; then
6400   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407   for ac_exec_ext in '' $ac_executable_extensions; do
6408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409     ac_cv_prog_ac_ct_RANLIB="ranlib"
6410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420 if test -n "$ac_ct_RANLIB"; then
6421   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6422 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6423 else
6424   { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 fi
6427
6428   if test "x$ac_ct_RANLIB" = x; then
6429     RANLIB=":"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet.  If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet.  If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441     RANLIB=$ac_ct_RANLIB
6442   fi
6443 else
6444   RANLIB="$ac_cv_prog_RANLIB"
6445 fi
6446
6447 if test -n "$ac_tool_prefix"; then
6448   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ar; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_AR+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   if test -n "$AR"; then
6456   ac_cv_prog_AR="$AR" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463   for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_prog_AR="${ac_tool_prefix}ar"
6466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 AR=$ac_cv_prog_AR
6476 if test -n "$AR"; then
6477   { echo "$as_me:$LINENO: result: $AR" >&5
6478 echo "${ECHO_T}$AR" >&6; }
6479 else
6480   { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_AR"; then
6487   ac_ct_AR=$AR
6488   # Extract the first word of "ar", so it can be a program name with args.
6489 set dummy ar; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   if test -n "$ac_ct_AR"; then
6496   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_prog_ac_ct_AR="ar"
6506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6516 if test -n "$ac_ct_AR"; then
6517   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6518 echo "${ECHO_T}$ac_ct_AR" >&6; }
6519 else
6520   { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6522 fi
6523
6524   if test "x$ac_ct_AR" = x; then
6525     AR="false"
6526   else
6527     case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet.  If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&5
6532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6533 whose name does not start with the host triplet.  If you think this
6534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537     AR=$ac_ct_AR
6538   fi
6539 else
6540   AR="$ac_cv_prog_AR"
6541 fi
6542
6543 # Extract the first word of "rm", so it can be a program name with args.
6544 set dummy rm; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_RM+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   case $RM in
6551   [\\/]* | ?:[\\/]*)
6552   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6553   ;;
6554   *)
6555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560   for ac_exec_ext in '' $ac_executable_extensions; do
6561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6571   ;;
6572 esac
6573 fi
6574 RM=$ac_cv_path_RM
6575 if test -n "$RM"; then
6576   { echo "$as_me:$LINENO: result: $RM" >&5
6577 echo "${ECHO_T}$RM" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583
6584 # Extract the first word of "sed", so it can be a program name with args.
6585 set dummy sed; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_SED+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   case $SED in
6592   [\\/]* | ?:[\\/]*)
6593   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6594   ;;
6595   *)
6596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601   for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6612   ;;
6613 esac
6614 fi
6615 SED=$ac_cv_path_SED
6616 if test -n "$SED"; then
6617   { echo "$as_me:$LINENO: result: $SED" >&5
6618 echo "${ECHO_T}$SED" >&6; }
6619 else
6620   { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6622 fi
6623
6624
6625 # Extract the first word of "tar", so it can be a program name with args.
6626 set dummy tar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_TAR+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   case $TAR in
6633   [\\/]* | ?:[\\/]*)
6634   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6635   ;;
6636   *)
6637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642   for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6653   ;;
6654 esac
6655 fi
6656 TAR=$ac_cv_path_TAR
6657 if test -n "$TAR"; then
6658   { echo "$as_me:$LINENO: result: $TAR" >&5
6659 echo "${ECHO_T}$TAR" >&6; }
6660 else
6661   { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6663 fi
6664
6665
6666 # Extract the first word of "pwd", so it can be a program name with args.
6667 set dummy pwd; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_BINPWD+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   case $BINPWD in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6694   ;;
6695 esac
6696 fi
6697 BINPWD=$ac_cv_path_BINPWD
6698 if test -n "$BINPWD"; then
6699   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6700 echo "${ECHO_T}$BINPWD" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707
6708 # Extract the first word of "Graphviz", so it can be a program name with args.
6709 set dummy Graphviz; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   case $GRAPHVIZ in
6716   [\\/]* | ?:[\\/]*)
6717   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6718   ;;
6719   *)
6720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6736   ;;
6737 esac
6738 fi
6739 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6740 if test -n "$GRAPHVIZ"; then
6741   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6742 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6743 else
6744   { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6746 fi
6747
6748
6749 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6750
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_GRAPHVIZ 1
6753 _ACEOF
6754
6755     if test "$llvm_cv_os_type" = "MingW" ; then
6756     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6757   fi
6758
6759 cat >>confdefs.h <<_ACEOF
6760 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6761 _ACEOF
6762
6763 fi
6764 # Extract the first word of "dot", so it can be a program name with args.
6765 set dummy dot; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_DOT+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   case $DOT in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6774   ;;
6775   *)
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6792   ;;
6793 esac
6794 fi
6795 DOT=$ac_cv_path_DOT
6796 if test -n "$DOT"; then
6797   { echo "$as_me:$LINENO: result: $DOT" >&5
6798 echo "${ECHO_T}$DOT" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 if test "$DOT" != "echo dot" ; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_DOT 1
6809 _ACEOF
6810
6811     if test "$llvm_cv_os_type" = "MingW" ; then
6812     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813   fi
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6817 _ACEOF
6818
6819 fi
6820 # Extract the first word of "fdp", so it can be a program name with args.
6821 set dummy fdp; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_FDP+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   case $FDP in
6828   [\\/]* | ?:[\\/]*)
6829   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6830   ;;
6831   *)
6832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6848   ;;
6849 esac
6850 fi
6851 FDP=$ac_cv_path_FDP
6852 if test -n "$FDP"; then
6853   { echo "$as_me:$LINENO: result: $FDP" >&5
6854 echo "${ECHO_T}$FDP" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861 if test "$FDP" != "echo fdp" ; then
6862
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_FDP 1
6865 _ACEOF
6866
6867     if test "$llvm_cv_os_type" = "MingW" ; then
6868     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6869   fi
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6873 _ACEOF
6874
6875 fi
6876 # Extract the first word of "neato", so it can be a program name with args.
6877 set dummy neato; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_NEATO+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   case $NEATO in
6884   [\\/]* | ?:[\\/]*)
6885   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6886   ;;
6887   *)
6888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6904   ;;
6905 esac
6906 fi
6907 NEATO=$ac_cv_path_NEATO
6908 if test -n "$NEATO"; then
6909   { echo "$as_me:$LINENO: result: $NEATO" >&5
6910 echo "${ECHO_T}$NEATO" >&6; }
6911 else
6912   { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6914 fi
6915
6916
6917 if test "$NEATO" != "echo neato" ; then
6918
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_NEATO 1
6921 _ACEOF
6922
6923     if test "$llvm_cv_os_type" = "MingW" ; then
6924     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925   fi
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6929 _ACEOF
6930
6931 fi
6932 # Extract the first word of "twopi", so it can be a program name with args.
6933 set dummy twopi; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_TWOPI+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   case $TWOPI in
6940   [\\/]* | ?:[\\/]*)
6941   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6942   ;;
6943   *)
6944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949   for ac_exec_ext in '' $ac_executable_extensions; do
6950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954   fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6960   ;;
6961 esac
6962 fi
6963 TWOPI=$ac_cv_path_TWOPI
6964 if test -n "$TWOPI"; then
6965   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6966 echo "${ECHO_T}$TWOPI" >&6; }
6967 else
6968   { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6970 fi
6971
6972
6973 if test "$TWOPI" != "echo twopi" ; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_TWOPI 1
6977 _ACEOF
6978
6979     if test "$llvm_cv_os_type" = "MingW" ; then
6980     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6981   fi
6982
6983 cat >>confdefs.h <<_ACEOF
6984 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6985 _ACEOF
6986
6987 fi
6988 # Extract the first word of "circo", so it can be a program name with args.
6989 set dummy circo; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_CIRCO+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   case $CIRCO in
6996   [\\/]* | ?:[\\/]*)
6997   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6998   ;;
6999   *)
7000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005   for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7016   ;;
7017 esac
7018 fi
7019 CIRCO=$ac_cv_path_CIRCO
7020 if test -n "$CIRCO"; then
7021   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7022 echo "${ECHO_T}$CIRCO" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029 if test "$CIRCO" != "echo circo" ; then
7030
7031 cat >>confdefs.h <<\_ACEOF
7032 #define HAVE_CIRCO 1
7033 _ACEOF
7034
7035     if test "$llvm_cv_os_type" = "MingW" ; then
7036     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7037   fi
7038
7039 cat >>confdefs.h <<_ACEOF
7040 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7041 _ACEOF
7042
7043 fi
7044 for ac_prog in gv gsview32
7045 do
7046   # Extract the first word of "$ac_prog", so it can be a program name with args.
7047 set dummy $ac_prog; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GV+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   case $GV in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063   for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073   ;;
7074 esac
7075 fi
7076 GV=$ac_cv_path_GV
7077 if test -n "$GV"; then
7078   { echo "$as_me:$LINENO: result: $GV" >&5
7079 echo "${ECHO_T}$GV" >&6; }
7080 else
7081   { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083 fi
7084
7085
7086   test -n "$GV" && break
7087 done
7088 test -n "$GV" || GV="echo gv"
7089
7090 if test "$GV" != "echo gv" ; then
7091
7092 cat >>confdefs.h <<\_ACEOF
7093 #define HAVE_GV 1
7094 _ACEOF
7095
7096     if test "$llvm_cv_os_type" = "MingW" ; then
7097     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7098   fi
7099
7100 cat >>confdefs.h <<_ACEOF
7101 #define LLVM_PATH_GV "$GV${EXEEXT}"
7102 _ACEOF
7103
7104 fi
7105 # Extract the first word of "dotty", so it can be a program name with args.
7106 set dummy dotty; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_DOTTY+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $DOTTY in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7133   ;;
7134 esac
7135 fi
7136 DOTTY=$ac_cv_path_DOTTY
7137 if test -n "$DOTTY"; then
7138   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7139 echo "${ECHO_T}$DOTTY" >&6; }
7140 else
7141   { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7143 fi
7144
7145
7146 if test "$DOTTY" != "echo dotty" ; then
7147
7148 cat >>confdefs.h <<\_ACEOF
7149 #define HAVE_DOTTY 1
7150 _ACEOF
7151
7152     if test "$llvm_cv_os_type" = "MingW" ; then
7153     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7154   fi
7155
7156 cat >>confdefs.h <<_ACEOF
7157 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7158 _ACEOF
7159
7160 fi
7161 # Extract the first word of "xdot.py", so it can be a program name with args.
7162 set dummy xdot.py; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   case $XDOT_PY in
7169   [\\/]* | ?:[\\/]*)
7170   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7171   ;;
7172   *)
7173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7189   ;;
7190 esac
7191 fi
7192 XDOT_PY=$ac_cv_path_XDOT_PY
7193 if test -n "$XDOT_PY"; then
7194   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7195 echo "${ECHO_T}$XDOT_PY" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 if test "$XDOT_PY" != "echo xdot.py" ; then
7203
7204 cat >>confdefs.h <<\_ACEOF
7205 #define HAVE_XDOT_PY 1
7206 _ACEOF
7207
7208     if test "$llvm_cv_os_type" = "MingW" ; then
7209     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7210   fi
7211
7212 cat >>confdefs.h <<_ACEOF
7213 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7214 _ACEOF
7215
7216 fi
7217
7218 # Find a good install program.  We prefer a C program (faster),
7219 # so one script is as good as another.  But avoid the broken or
7220 # incompatible versions:
7221 # SysV /etc/install, /usr/sbin/install
7222 # SunOS /usr/etc/install
7223 # IRIX /sbin/install
7224 # AIX /bin/install
7225 # AmigaOS /C/install, which installs bootblocks on floppy discs
7226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7229 # OS/2's system install, which has a completely different semantic
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   # Account for people who put trailing slashes in PATH elements.
7243 case $as_dir/ in
7244   ./ | .// | /cC/* | \
7245   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7246   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7247   /usr/ucb/* ) ;;
7248   *)
7249     # OSF1 and SCO ODT 3.0 have their own names for install.
7250     # Don't use installbsd from OSF since it installs stuff as root
7251     # by default.
7252     for ac_prog in ginstall scoinst install; do
7253       for ac_exec_ext in '' $ac_executable_extensions; do
7254         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7255           if test $ac_prog = install &&
7256             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7257             # AIX install.  It has an incompatible calling convention.
7258             :
7259           elif test $ac_prog = install &&
7260             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7261             # program-specific install script used by HP pwplus--don't use.
7262             :
7263           else
7264             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7265             break 3
7266           fi
7267         fi
7268       done
7269     done
7270     ;;
7271 esac
7272 done
7273 IFS=$as_save_IFS
7274
7275
7276 fi
7277   if test "${ac_cv_path_install+set}" = set; then
7278     INSTALL=$ac_cv_path_install
7279   else
7280     # As a last resort, use the slow shell script.  Don't cache a
7281     # value for INSTALL within a source directory, because that will
7282     # break other packages using the cache if that directory is
7283     # removed, or if the value is a relative name.
7284     INSTALL=$ac_install_sh
7285   fi
7286 fi
7287 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7288 echo "${ECHO_T}$INSTALL" >&6; }
7289
7290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7291 # It thinks the first close brace ends the variable substitution.
7292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7293
7294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7295
7296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7297
7298 case "$INSTALL" in
7299  [\\/$]* | ?:[\\/]* ) ;;
7300  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7301 esac
7302
7303 # Extract the first word of "bzip2", so it can be a program name with args.
7304 set dummy bzip2; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_BZIP2+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   case $BZIP2 in
7311   [\\/]* | ?:[\\/]*)
7312   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7313   ;;
7314   *)
7315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320   for ac_exec_ext in '' $ac_executable_extensions; do
7321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330   ;;
7331 esac
7332 fi
7333 BZIP2=$ac_cv_path_BZIP2
7334 if test -n "$BZIP2"; then
7335   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7336 echo "${ECHO_T}$BZIP2" >&6; }
7337 else
7338   { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7340 fi
7341
7342
7343 # Extract the first word of "cat", so it can be a program name with args.
7344 set dummy cat; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_CAT+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $CAT in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 CAT=$ac_cv_path_CAT
7374 if test -n "$CAT"; then
7375   { echo "$as_me:$LINENO: result: $CAT" >&5
7376 echo "${ECHO_T}$CAT" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383 # Extract the first word of "doxygen", so it can be a program name with args.
7384 set dummy doxygen; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   case $DOXYGEN in
7391   [\\/]* | ?:[\\/]*)
7392   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7393   ;;
7394   *)
7395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400   for ac_exec_ext in '' $ac_executable_extensions; do
7401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407 done
7408 IFS=$as_save_IFS
7409
7410   ;;
7411 esac
7412 fi
7413 DOXYGEN=$ac_cv_path_DOXYGEN
7414 if test -n "$DOXYGEN"; then
7415   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7416 echo "${ECHO_T}$DOXYGEN" >&6; }
7417 else
7418   { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7420 fi
7421
7422
7423 # Extract the first word of "groff", so it can be a program name with args.
7424 set dummy groff; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_GROFF+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   case $GROFF in
7431   [\\/]* | ?:[\\/]*)
7432   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7433   ;;
7434   *)
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440   for ac_exec_ext in '' $ac_executable_extensions; do
7441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450   ;;
7451 esac
7452 fi
7453 GROFF=$ac_cv_path_GROFF
7454 if test -n "$GROFF"; then
7455   { echo "$as_me:$LINENO: result: $GROFF" >&5
7456 echo "${ECHO_T}$GROFF" >&6; }
7457 else
7458   { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7460 fi
7461
7462
7463 # Extract the first word of "gzip", so it can be a program name with args.
7464 set dummy gzip; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $GZIPBIN in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490   ;;
7491 esac
7492 fi
7493 GZIPBIN=$ac_cv_path_GZIPBIN
7494 if test -n "$GZIPBIN"; then
7495   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7496 echo "${ECHO_T}$GZIPBIN" >&6; }
7497 else
7498   { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7500 fi
7501
7502
7503 # Extract the first word of "pdfroff", so it can be a program name with args.
7504 set dummy pdfroff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_PDFROFF+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   case $PDFROFF in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530   ;;
7531 esac
7532 fi
7533 PDFROFF=$ac_cv_path_PDFROFF
7534 if test -n "$PDFROFF"; then
7535   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7536 echo "${ECHO_T}$PDFROFF" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543 # Extract the first word of "zip", so it can be a program name with args.
7544 set dummy zip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_ZIP+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $ZIP in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 ZIP=$ac_cv_path_ZIP
7574 if test -n "$ZIP"; then
7575   { echo "$as_me:$LINENO: result: $ZIP" >&5
7576 echo "${ECHO_T}$ZIP" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583 for ac_prog in ocamlc
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLC+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $OCAMLC in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   ;;
7613 esac
7614 fi
7615 OCAMLC=$ac_cv_path_OCAMLC
7616 if test -n "$OCAMLC"; then
7617   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618 echo "${ECHO_T}$OCAMLC" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625   test -n "$OCAMLC" && break
7626 done
7627
7628 for ac_prog in ocamlopt
7629 do
7630   # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   case $OCAMLOPT in
7638   [\\/]* | ?:[\\/]*)
7639   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7640   ;;
7641   *)
7642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657   ;;
7658 esac
7659 fi
7660 OCAMLOPT=$ac_cv_path_OCAMLOPT
7661 if test -n "$OCAMLOPT"; then
7662   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663 echo "${ECHO_T}$OCAMLOPT" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669
7670   test -n "$OCAMLOPT" && break
7671 done
7672
7673 for ac_prog in ocamldep
7674 do
7675   # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   case $OCAMLDEP in
7683   [\\/]* | ?:[\\/]*)
7684   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7685   ;;
7686   *)
7687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692   for ac_exec_ext in '' $ac_executable_extensions; do
7693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702   ;;
7703 esac
7704 fi
7705 OCAMLDEP=$ac_cv_path_OCAMLDEP
7706 if test -n "$OCAMLDEP"; then
7707   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708 echo "${ECHO_T}$OCAMLDEP" >&6; }
7709 else
7710   { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7712 fi
7713
7714
7715   test -n "$OCAMLDEP" && break
7716 done
7717
7718 for ac_prog in ocamldoc
7719 do
7720   # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   case $OCAMLDOC in
7728   [\\/]* | ?:[\\/]*)
7729   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7730   ;;
7731   *)
7732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737   for ac_exec_ext in '' $ac_executable_extensions; do
7738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744 done
7745 IFS=$as_save_IFS
7746
7747   ;;
7748 esac
7749 fi
7750 OCAMLDOC=$ac_cv_path_OCAMLDOC
7751 if test -n "$OCAMLDOC"; then
7752   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753 echo "${ECHO_T}$OCAMLDOC" >&6; }
7754 else
7755   { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7757 fi
7758
7759
7760   test -n "$OCAMLDOC" && break
7761 done
7762
7763 for ac_prog in gas as
7764 do
7765   # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_GAS+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   case $GAS in
7773   [\\/]* | ?:[\\/]*)
7774   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7775   ;;
7776   *)
7777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792   ;;
7793 esac
7794 fi
7795 GAS=$ac_cv_path_GAS
7796 if test -n "$GAS"; then
7797   { echo "$as_me:$LINENO: result: $GAS" >&5
7798 echo "${ECHO_T}$GAS" >&6; }
7799 else
7800   { echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6; }
7802 fi
7803
7804
7805   test -n "$GAS" && break
7806 done
7807
7808
7809 { echo "$as_me:$LINENO: checking for linker version" >&5
7810 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_version+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814
7815    version_string="$(ld -v 2>&1 | head -1)"
7816
7817    # Check for ld64.
7818    if (echo "$version_string" | grep -q "ld64"); then
7819      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7820    else
7821      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7822    fi
7823
7824 fi
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7827
7828 cat >>confdefs.h <<_ACEOF
7829 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7830 _ACEOF
7831
7832
7833
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_r+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839    ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845   oldcflags="$CFLAGS"
7846   CFLAGS="$CFLAGS -Wl,-R."
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853
7854 int
7855 main ()
7856 {
7857
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7864 case "(($ac_try" in
7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866   *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869   (eval "$ac_link") 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } &&
7876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877   { (case "(($ac_try" in
7878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879   *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882   (eval "$ac_try") 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (case "(($ac_try" in
7888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889   *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892   (eval "$ac_try") 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   llvm_cv_link_use_r=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901         llvm_cv_link_use_r=no
7902 fi
7903
7904 rm -f core conftest.err conftest.$ac_objext \
7905       conftest$ac_exeext conftest.$ac_ext
7906   CFLAGS="$oldcflags"
7907   ac_ext=c
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913
7914 fi
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7917 if test "$llvm_cv_link_use_r" = yes ; then
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LINK_R 1
7921 _ACEOF
7922
7923   fi
7924
7925
7926 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931    ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937   oldcflags="$CFLAGS"
7938   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7939   cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 int
7947 main ()
7948 {
7949
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7956 case "(($ac_try" in
7957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958   *) ac_try_echo=$ac_try;;
7959 esac
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961   (eval "$ac_link") 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_try") 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   llvm_cv_link_use_export_dynamic=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         llvm_cv_link_use_export_dynamic=no
7994 fi
7995
7996 rm -f core conftest.err conftest.$ac_objext \
7997       conftest$ac_exeext conftest.$ac_ext
7998   CFLAGS="$oldcflags"
7999   ac_ext=c
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005
8006 fi
8007 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8009 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8010
8011 cat >>confdefs.h <<\_ACEOF
8012 #define HAVE_LINK_EXPORT_DYNAMIC 1
8013 _ACEOF
8014
8015   fi
8016
8017
8018 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020 if test "${llvm_cv_link_use_version_script+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023    ac_ext=c
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029   oldcflags="$CFLAGS"
8030
8031   # The following code is from the autoconf manual,
8032   # "11.13: Limitations of Usual Tools".
8033   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034   # Use mktemp if possible; otherwise fall back on mkdir,
8035   # with $RANDOM to make collisions less likely.
8036   : ${TMPDIR=/tmp}
8037   {
8038     tmp=`
8039       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8040     ` &&
8041     test -n "$tmp" && test -d "$tmp"
8042   } || {
8043     tmp=$TMPDIR/foo$$-$RANDOM
8044     (umask 077 && mkdir "$tmp")
8045   } || exit $?
8046
8047   echo "{" > "$tmp/export.map"
8048   echo "  global: main;" >> "$tmp/export.map"
8049   echo "  local: *;" >> "$tmp/export.map"
8050   echo "};" >> "$tmp/export.map"
8051
8052   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8053   cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059
8060 int
8061 main ()
8062 {
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_link") 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083   { (case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_try") 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; } &&
8092          { ac_try='test -s conftest$ac_exeext'
8093   { (case "(($ac_try" in
8094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095   *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098   (eval "$ac_try") 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; }; then
8102   llvm_cv_link_use_version_script=yes
8103 else
8104   echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107         llvm_cv_link_use_version_script=no
8108 fi
8109
8110 rm -f core conftest.err conftest.$ac_objext \
8111       conftest$ac_exeext conftest.$ac_ext
8112   rm "$tmp/export.map"
8113   rmdir "$tmp"
8114   CFLAGS="$oldcflags"
8115   ac_ext=c
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122 fi
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125 if test "$llvm_cv_link_use_version_script" = yes ; then
8126   HAVE_LINK_VERSION_SCRIPT=1
8127
8128   fi
8129
8130
8131
8132
8133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135 if test "${ac_cv_c_const+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144
8145 int
8146 main ()
8147 {
8148 /* FIXME: Include the comments suggested by Paul. */
8149 #ifndef __cplusplus
8150   /* Ultrix mips cc rejects this.  */
8151   typedef int charset[2];
8152   const charset x;
8153   /* SunOS 4.1.1 cc rejects this.  */
8154   char const *const *ccp;
8155   char **p;
8156   /* NEC SVR4.0.2 mips cc rejects this.  */
8157   struct point {int x, y;};
8158   static struct point const zero = {0,0};
8159   /* AIX XL C 1.02.0.0 rejects this.
8160      It does not let you subtract one const X* pointer from another in
8161      an arm of an if-expression whose if-part is not a constant
8162      expression */
8163   const char *g = "string";
8164   ccp = &g + (g ? g-g : 0);
8165   /* HPUX 7.0 cc rejects these. */
8166   ++ccp;
8167   p = (char**) ccp;
8168   ccp = (char const *const *) p;
8169   { /* SCO 3.2v4 cc rejects this.  */
8170     char *t;
8171     char const *s = 0 ? (char *) 0 : (char const *) 0;
8172
8173     *t++ = 0;
8174     if (s) return 0;
8175   }
8176   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8177     int x[] = {25, 17};
8178     const int *foo = &x[0];
8179     ++foo;
8180   }
8181   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182     typedef const int *iptr;
8183     iptr p = 0;
8184     ++p;
8185   }
8186   { /* AIX XL C 1.02.0.0 rejects this saying
8187        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188     struct s { int j; const int *ap[3]; };
8189     struct s *b; b->j = 5;
8190   }
8191   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8192     const int foo = 10;
8193     if (!foo) return 0;
8194   }
8195   return !x[0] && !zero.x;
8196 #endif
8197
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217   { (case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; } &&
8226          { ac_try='test -s conftest.$ac_objext'
8227   { (case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_try") 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_c_const=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241         ac_cv_c_const=no
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8248 if test $ac_cv_c_const = no; then
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define const
8252 _ACEOF
8253
8254 fi
8255
8256
8257
8258
8259
8260
8261 ac_header_dirent=no
8262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8263   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 #include <sys/types.h>
8276 #include <$ac_hdr>
8277
8278 int
8279 main ()
8280 {
8281 if ((DIR *) 0)
8282 return 0;
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8289 case "(($ac_try" in
8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291   *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294   (eval "$ac_compile") 2>conftest.er1
8295   ac_status=$?
8296   grep -v '^ *+' conftest.er1 >conftest.err
8297   rm -f conftest.er1
8298   cat conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_try") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; } &&
8311          { ac_try='test -s conftest.$ac_objext'
8312   { (case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_try") 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; }; then
8321   eval "$as_ac_Header=yes"
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         eval "$as_ac_Header=no"
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332                { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335   cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8337 _ACEOF
8338
8339 ac_header_dirent=$ac_hdr; break
8340 fi
8341
8342 done
8343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344 if test $ac_header_dirent = dirent.h; then
8345   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_func_search_save_LIBS=$LIBS
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h.  */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h.  */
8357
8358 /* Override any GCC internal prototype to avoid an error.
8359    Use char because int might match the return type of a GCC
8360    builtin and then its argument prototype would still apply.  */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 char opendir ();
8365 int
8366 main ()
8367 {
8368 return opendir ();
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 for ac_lib in '' dir; do
8374   if test -z "$ac_lib"; then
8375     ac_res="none required"
8376   else
8377     ac_res=-l$ac_lib
8378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8379   fi
8380   rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8382 case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_link") 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395   { (case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_try") 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_try") 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   ac_cv_search_opendir=$ac_res
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419
8420 fi
8421
8422 rm -f core conftest.err conftest.$ac_objext \
8423       conftest$ac_exeext
8424   if test "${ac_cv_search_opendir+set}" = set; then
8425   break
8426 fi
8427 done
8428 if test "${ac_cv_search_opendir+set}" = set; then
8429   :
8430 else
8431   ac_cv_search_opendir=no
8432 fi
8433 rm conftest.$ac_ext
8434 LIBS=$ac_func_search_save_LIBS
8435 fi
8436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8438 ac_res=$ac_cv_search_opendir
8439 if test "$ac_res" != no; then
8440   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8441
8442 fi
8443
8444 else
8445   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447 if test "${ac_cv_search_opendir+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   ac_func_search_save_LIBS=$LIBS
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457
8458 /* Override any GCC internal prototype to avoid an error.
8459    Use char because int might match the return type of a GCC
8460    builtin and then its argument prototype would still apply.  */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 char opendir ();
8465 int
8466 main ()
8467 {
8468 return opendir ();
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 for ac_lib in '' x; do
8474   if test -z "$ac_lib"; then
8475     ac_res="none required"
8476   else
8477     ac_res=-l$ac_lib
8478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8479   fi
8480   rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487   (eval "$ac_link") 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495   { (case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_try") 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; } &&
8504          { ac_try='test -s conftest$ac_exeext'
8505   { (case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_try") 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514   ac_cv_search_opendir=$ac_res
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519
8520 fi
8521
8522 rm -f core conftest.err conftest.$ac_objext \
8523       conftest$ac_exeext
8524   if test "${ac_cv_search_opendir+set}" = set; then
8525   break
8526 fi
8527 done
8528 if test "${ac_cv_search_opendir+set}" = set; then
8529   :
8530 else
8531   ac_cv_search_opendir=no
8532 fi
8533 rm conftest.$ac_ext
8534 LIBS=$ac_func_search_save_LIBS
8535 fi
8536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8538 ac_res=$ac_cv_search_opendir
8539 if test "$ac_res" != no; then
8540   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8541
8542 fi
8543
8544 fi
8545
8546
8547 for ac_header in dlfcn.h
8548 do
8549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 fi
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557                { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8559 else
8560   # Is the header compilable?
8561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569 $ac_includes_default
8570 #include <$ac_header>
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579   (eval "$ac_compile") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } &&
8586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587   { (case "(($ac_try" in
8588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589   *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592   (eval "$ac_try") 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; } &&
8596          { ac_try='test -s conftest.$ac_objext'
8597   { (case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_try") 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_header_compiler=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611         ac_header_compiler=no
8612 fi
8613
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6; }
8617
8618 # Is the header present?
8619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627 #include <$ac_header>
8628 _ACEOF
8629 if { (ac_try="$ac_cpp conftest.$ac_ext"
8630 case "(($ac_try" in
8631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632   *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8636   ac_status=$?
8637   grep -v '^ *+' conftest.er1 >conftest.err
8638   rm -f conftest.er1
8639   cat conftest.err >&5
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } >/dev/null; then
8642   if test -s conftest.err; then
8643     ac_cpp_err=$ac_c_preproc_warn_flag
8644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8645   else
8646     ac_cpp_err=
8647   fi
8648 else
8649   ac_cpp_err=yes
8650 fi
8651 if test -z "$ac_cpp_err"; then
8652   ac_header_preproc=yes
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657   ac_header_preproc=no
8658 fi
8659
8660 rm -f conftest.err conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662 echo "${ECHO_T}$ac_header_preproc" >&6; }
8663
8664 # So?  What about this header?
8665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8666   yes:no: )
8667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671     ac_header_preproc=yes
8672     ;;
8673   no:yes:* )
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8686     ( cat <<\_ASBOX
8687 ## ------------------------------------ ##
8688 ## Report this to http://llvm.org/bugs/ ##
8689 ## ------------------------------------ ##
8690 _ASBOX
8691      ) | sed "s/^/$as_me: WARNING:     /" >&2
8692     ;;
8693 esac
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699   eval "$as_ac_Header=\$ac_header_preproc"
8700 fi
8701 ac_res=`eval echo '${'$as_ac_Header'}'`
8702                { echo "$as_me:$LINENO: result: $ac_res" >&5
8703 echo "${ECHO_T}$ac_res" >&6; }
8704
8705 fi
8706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8707   cat >>confdefs.h <<_ACEOF
8708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709 _ACEOF
8710
8711 fi
8712
8713 done
8714
8715 # Check whether --enable-ltdl-install was given.
8716 if test "${enable_ltdl_install+set}" = set; then
8717   enableval=$enable_ltdl_install;
8718 fi
8719
8720
8721
8722
8723 if test x"${enable_ltdl_install-no}" != xno; then
8724   INSTALL_LTDL_TRUE=
8725   INSTALL_LTDL_FALSE='#'
8726 else
8727   INSTALL_LTDL_TRUE='#'
8728   INSTALL_LTDL_FALSE=
8729 fi
8730
8731
8732
8733 if test x"${enable_ltdl_convenience-no}" != xno; then
8734   CONVENIENCE_LTDL_TRUE=
8735   CONVENIENCE_LTDL_FALSE='#'
8736 else
8737   CONVENIENCE_LTDL_TRUE='#'
8738   CONVENIENCE_LTDL_FALSE=
8739 fi
8740
8741
8742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8744 library_names_spec=
8745 libname_spec='lib$name'
8746 soname_spec=
8747 shrext_cmds=".so"
8748 postinstall_cmds=
8749 postuninstall_cmds=
8750 finish_cmds=
8751 finish_eval=
8752 shlibpath_var=
8753 shlibpath_overrides_runpath=unknown
8754 version_type=none
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 if test "$GCC" = yes; then
8758   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760     # if the path contains ";" then we assume it to be the separator
8761     # otherwise default to the standard path separator (i.e. ":") - it is
8762     # assumed that no part of a normal pathname contains ";" but that should
8763     # okay in the real world where ";" in dirpaths is itself problematic.
8764     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765   else
8766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8767   fi
8768 else
8769   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8770 fi
8771 need_lib_prefix=unknown
8772 hardcode_into_libs=no
8773
8774 # when you set need_version to no, make sure it does not cause -set_version
8775 # flags to be left without arguments
8776 need_version=unknown
8777
8778 case $host_os in
8779 aix3*)
8780   version_type=linux
8781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782   shlibpath_var=LIBPATH
8783
8784   # AIX 3 has no versioning support, so we append a major version to the name.
8785   soname_spec='${libname}${release}${shared_ext}$major'
8786   ;;
8787
8788 aix4* | aix5*)
8789   version_type=linux
8790   need_lib_prefix=no
8791   need_version=no
8792   hardcode_into_libs=yes
8793   if test "$host_cpu" = ia64; then
8794     # AIX 5 supports IA64
8795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796     shlibpath_var=LD_LIBRARY_PATH
8797   else
8798     # With GCC up to 2.95.x, collect2 would create an import file
8799     # for dependence libraries.  The import file would start with
8800     # the line `#! .'.  This would cause the generated library to
8801     # depend on `.', always an invalid library.  This was fixed in
8802     # development snapshots of GCC prior to 3.0.
8803     case $host_os in
8804       aix4 | aix4.[01] | aix4.[01].*)
8805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8806            echo ' yes '
8807            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8808         :
8809       else
8810         can_build_shared=no
8811       fi
8812       ;;
8813     esac
8814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815     # soname into executable. Probably we can add versioning support to
8816     # collect2, so additional links can be useful in future.
8817     if test "$aix_use_runtimelinking" = yes; then
8818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819       # instead of lib<name>.a to let people know that these are not
8820       # typical AIX shared libraries.
8821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822     else
8823       # We preserve .a as extension for shared libraries through AIX4.2
8824       # and later when we are not doing run time linking.
8825       library_names_spec='${libname}${release}.a $libname.a'
8826       soname_spec='${libname}${release}${shared_ext}$major'
8827     fi
8828     shlibpath_var=LIBPATH
8829   fi
8830   ;;
8831
8832 amigaos*)
8833   library_names_spec='$libname.ixlibrary $libname.a'
8834   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835   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'
8836   ;;
8837
8838 beos*)
8839   library_names_spec='${libname}${shared_ext}'
8840   dynamic_linker="$host_os ld.so"
8841   shlibpath_var=LIBRARY_PATH
8842   ;;
8843
8844 bsdi[45]*)
8845   version_type=linux
8846   need_version=no
8847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848   soname_spec='${libname}${release}${shared_ext}$major'
8849   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850   shlibpath_var=LD_LIBRARY_PATH
8851   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853   # the default ld.so.conf also contains /usr/contrib/lib and
8854   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855   # libtool to hard-code these into programs
8856   ;;
8857
8858 cygwin* | mingw* | pw32*)
8859   version_type=windows
8860   shrext_cmds=".dll"
8861   need_version=no
8862   need_lib_prefix=no
8863
8864   case $GCC,$host_os in
8865   yes,cygwin* | yes,mingw* | yes,pw32*)
8866     library_names_spec='$libname.dll.a'
8867     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868     postinstall_cmds='base_file=`basename \${file}`~
8869       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870       dldir=$destdir/`dirname \$dlpath`~
8871       test -d \$dldir || mkdir -p \$dldir~
8872       $install_prog $dir/$dlname \$dldir/$dlname~
8873       chmod a+x \$dldir/$dlname'
8874     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875       dlpath=$dir/\$dldll~
8876        $rm \$dlpath'
8877     shlibpath_overrides_runpath=yes
8878
8879     case $host_os in
8880     cygwin*)
8881       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8884       ;;
8885     mingw*)
8886       # MinGW DLLs use traditional 'lib' prefix
8887       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890         # It is most probably a Windows format PATH printed by
8891         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892         # path with ; separators, and with drive letters. We can handle the
8893         # drive letters (cygwin fileutils understands them), so leave them,
8894         # especially as we might pass files found there to a mingw objdump,
8895         # which wouldn't understand a cygwinified path. Ahh.
8896         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897       else
8898         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8899       fi
8900       ;;
8901     pw32*)
8902       # pw32 DLLs use 'pw' prefix rather than 'lib'
8903       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8904       ;;
8905     esac
8906     ;;
8907
8908   *)
8909     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8910     ;;
8911   esac
8912   dynamic_linker='Win32 ld.exe'
8913   # FIXME: first we should search . and the directory the executable is in
8914   shlibpath_var=PATH
8915   ;;
8916
8917 darwin* | rhapsody*)
8918   dynamic_linker="$host_os dyld"
8919   version_type=darwin
8920   need_lib_prefix=no
8921   need_version=no
8922   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923   soname_spec='${libname}${release}${major}$shared_ext'
8924   shlibpath_overrides_runpath=yes
8925   shlibpath_var=DYLD_LIBRARY_PATH
8926   shrext_cmds='.dylib'
8927   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928   if test "$GCC" = yes; then
8929     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"`
8930   else
8931     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8932   fi
8933   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8934   ;;
8935
8936 dgux*)
8937   version_type=linux
8938   need_lib_prefix=no
8939   need_version=no
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941   soname_spec='${libname}${release}${shared_ext}$major'
8942   shlibpath_var=LD_LIBRARY_PATH
8943   ;;
8944
8945 freebsd1.*)
8946   dynamic_linker=no
8947   ;;
8948
8949 kfreebsd*-gnu)
8950   version_type=linux
8951   need_lib_prefix=no
8952   need_version=no
8953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   shlibpath_overrides_runpath=no
8957   hardcode_into_libs=yes
8958   dynamic_linker='GNU ld.so'
8959   ;;
8960
8961 freebsd* | dragonfly*)
8962   # DragonFly does not have aout.  When/if they implement a new
8963   # versioning mechanism, adjust this.
8964   if test -x /usr/bin/objformat; then
8965     objformat=`/usr/bin/objformat`
8966   else
8967     case $host_os in
8968     freebsd[123].*) objformat=aout ;;
8969     *) objformat=elf ;;
8970     esac
8971   fi
8972   version_type=freebsd-$objformat
8973   case $version_type in
8974     freebsd-elf*)
8975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8976       need_version=no
8977       need_lib_prefix=no
8978       ;;
8979     freebsd-*)
8980       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8981       need_version=yes
8982       ;;
8983   esac
8984   shlibpath_var=LD_LIBRARY_PATH
8985   case $host_os in
8986   freebsd2.*)
8987     shlibpath_overrides_runpath=yes
8988     ;;
8989   freebsd3.[01]* | freebsdelf3.[01]*)
8990     shlibpath_overrides_runpath=yes
8991     hardcode_into_libs=yes
8992     ;;
8993   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8995     shlibpath_overrides_runpath=no
8996     hardcode_into_libs=yes
8997     ;;
8998   freebsd*) # from 4.6 on
8999     shlibpath_overrides_runpath=yes
9000     hardcode_into_libs=yes
9001     ;;
9002   esac
9003   ;;
9004
9005 gnu*)
9006   version_type=linux
9007   need_lib_prefix=no
9008   need_version=no
9009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010   soname_spec='${libname}${release}${shared_ext}$major'
9011   shlibpath_var=LD_LIBRARY_PATH
9012   hardcode_into_libs=yes
9013   ;;
9014
9015 hpux9* | hpux10* | hpux11*)
9016   # Give a soname corresponding to the major version so that dld.sl refuses to
9017   # link against other versions.
9018   version_type=sunos
9019   need_lib_prefix=no
9020   need_version=no
9021   case $host_cpu in
9022   ia64*)
9023     shrext_cmds='.so'
9024     hardcode_into_libs=yes
9025     dynamic_linker="$host_os dld.so"
9026     shlibpath_var=LD_LIBRARY_PATH
9027     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029     soname_spec='${libname}${release}${shared_ext}$major'
9030     if test "X$HPUX_IA64_MODE" = X32; then
9031       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9032     else
9033       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9034     fi
9035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036     ;;
9037    hppa*64*)
9038      shrext_cmds='.sl'
9039      hardcode_into_libs=yes
9040      dynamic_linker="$host_os dld.sl"
9041      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047      ;;
9048    *)
9049     shrext_cmds='.sl'
9050     dynamic_linker="$host_os dld.sl"
9051     shlibpath_var=SHLIB_PATH
9052     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054     soname_spec='${libname}${release}${shared_ext}$major'
9055     ;;
9056   esac
9057   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058   postinstall_cmds='chmod 555 $lib'
9059   ;;
9060
9061 interix3*)
9062   version_type=linux
9063   need_lib_prefix=no
9064   need_version=no
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   shlibpath_overrides_runpath=no
9070   hardcode_into_libs=yes
9071   ;;
9072
9073 irix5* | irix6* | nonstopux*)
9074   case $host_os in
9075     nonstopux*) version_type=nonstopux ;;
9076     *)
9077         if test "$lt_cv_prog_gnu_ld" = yes; then
9078                 version_type=linux
9079         else
9080                 version_type=irix
9081         fi ;;
9082   esac
9083   need_lib_prefix=no
9084   need_version=no
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9087   case $host_os in
9088   irix5* | nonstopux*)
9089     libsuff= shlibsuff=
9090     ;;
9091   *)
9092     case $LD in # libtool.m4 will add one of these switches to LD
9093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094       libsuff= shlibsuff= libmagic=32-bit;;
9095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096       libsuff=32 shlibsuff=N32 libmagic=N32;;
9097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099     *) libsuff= shlibsuff= libmagic=never-match;;
9100     esac
9101     ;;
9102   esac
9103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104   shlibpath_overrides_runpath=no
9105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107   hardcode_into_libs=yes
9108   ;;
9109
9110 # No shared lib support for Linux oldld, aout, or coff.
9111 linux*oldld* | linux*aout* | linux*coff*)
9112   dynamic_linker=no
9113   ;;
9114
9115 # This must be Linux ELF.
9116 linux*)
9117   version_type=linux
9118   need_lib_prefix=no
9119   need_version=no
9120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121   soname_spec='${libname}${release}${shared_ext}$major'
9122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   shlibpath_overrides_runpath=no
9125   # This implies no fast_install, which is unacceptable.
9126   # Some rework will be needed to allow for fast_install
9127   # before this can be enabled.
9128   hardcode_into_libs=yes
9129
9130   # Append ld.so.conf contents to the search path
9131   if test -f /etc/ld.so.conf; then
9132     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' ' '`
9133     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9134   fi
9135
9136   # We used to test for /lib/ld.so.1 and disable shared libraries on
9137   # powerpc, because MkLinux only supported shared libraries with the
9138   # GNU dynamic linker.  Since this was broken with cross compilers,
9139   # most powerpc-linux boxes support dynamic linking these days and
9140   # people can always --disable-shared, the test was removed, and we
9141   # assume the GNU/Linux dynamic linker is in use.
9142   dynamic_linker='GNU/Linux ld.so'
9143   ;;
9144
9145 knetbsd*-gnu)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   shlibpath_var=LD_LIBRARY_PATH
9152   shlibpath_overrides_runpath=no
9153   hardcode_into_libs=yes
9154   dynamic_linker='GNU ld.so'
9155   ;;
9156
9157 netbsd*)
9158   version_type=sunos
9159   need_lib_prefix=no
9160   need_version=no
9161   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164     dynamic_linker='NetBSD (a.out) ld.so'
9165   else
9166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167     soname_spec='${libname}${release}${shared_ext}$major'
9168     dynamic_linker='NetBSD ld.elf_so'
9169   fi
9170   shlibpath_var=LD_LIBRARY_PATH
9171   shlibpath_overrides_runpath=yes
9172   hardcode_into_libs=yes
9173   ;;
9174
9175 newsos6)
9176   version_type=linux
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   shlibpath_overrides_runpath=yes
9180   ;;
9181
9182 nto-qnx*)
9183   version_type=linux
9184   need_lib_prefix=no
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   shlibpath_overrides_runpath=yes
9190   ;;
9191
9192 openbsd* | bitrig*)
9193   version_type=sunos
9194   sys_lib_dlsearch_path_spec="/usr/lib"
9195   need_lib_prefix=no
9196   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9197   case $host_os in
9198     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199     *)                         need_version=no  ;;
9200   esac
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203   shlibpath_var=LD_LIBRARY_PATH
9204   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9205     case $host_os in
9206       openbsd2.[89] | openbsd2.[89].*)
9207         shlibpath_overrides_runpath=no
9208         ;;
9209       *)
9210         shlibpath_overrides_runpath=yes
9211         ;;
9212       esac
9213   else
9214     shlibpath_overrides_runpath=yes
9215   fi
9216   ;;
9217
9218 os2*)
9219   libname_spec='$name'
9220   shrext_cmds=".dll"
9221   need_lib_prefix=no
9222   library_names_spec='$libname${shared_ext} $libname.a'
9223   dynamic_linker='OS/2 ld.exe'
9224   shlibpath_var=LIBPATH
9225   ;;
9226
9227 osf3* | osf4* | osf5*)
9228   version_type=osf
9229   need_lib_prefix=no
9230   need_version=no
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9236   ;;
9237
9238 solaris*)
9239   version_type=linux
9240   need_lib_prefix=no
9241   need_version=no
9242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243   soname_spec='${libname}${release}${shared_ext}$major'
9244   shlibpath_var=LD_LIBRARY_PATH
9245   shlibpath_overrides_runpath=yes
9246   hardcode_into_libs=yes
9247   # ldd complains unless libraries are executable
9248   postinstall_cmds='chmod +x $lib'
9249   ;;
9250
9251 sunos4*)
9252   version_type=sunos
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   shlibpath_overrides_runpath=yes
9257   if test "$with_gnu_ld" = yes; then
9258     need_lib_prefix=no
9259   fi
9260   need_version=yes
9261   ;;
9262
9263 sysv4 | sysv4.3*)
9264   version_type=linux
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   case $host_vendor in
9269     sni)
9270       shlibpath_overrides_runpath=no
9271       need_lib_prefix=no
9272       export_dynamic_flag_spec='${wl}-Blargedynsym'
9273       runpath_var=LD_RUN_PATH
9274       ;;
9275     siemens)
9276       need_lib_prefix=no
9277       ;;
9278     motorola)
9279       need_lib_prefix=no
9280       need_version=no
9281       shlibpath_overrides_runpath=no
9282       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9283       ;;
9284   esac
9285   ;;
9286
9287 sysv4*MP*)
9288   if test -d /usr/nec ;then
9289     version_type=linux
9290     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291     soname_spec='$libname${shared_ext}.$major'
9292     shlibpath_var=LD_LIBRARY_PATH
9293   fi
9294   ;;
9295
9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297   version_type=freebsd-elf
9298   need_lib_prefix=no
9299   need_version=no
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   hardcode_into_libs=yes
9304   if test "$with_gnu_ld" = yes; then
9305     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306     shlibpath_overrides_runpath=no
9307   else
9308     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309     shlibpath_overrides_runpath=yes
9310     case $host_os in
9311       sco3.2v5*)
9312         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9313         ;;
9314     esac
9315   fi
9316   sys_lib_dlsearch_path_spec='/usr/lib'
9317   ;;
9318
9319 uts4*)
9320   version_type=linux
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322   soname_spec='${libname}${release}${shared_ext}$major'
9323   shlibpath_var=LD_LIBRARY_PATH
9324   ;;
9325
9326 *)
9327   dynamic_linker=no
9328   ;;
9329 esac
9330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331 echo "${ECHO_T}$dynamic_linker" >&6; }
9332 test "$dynamic_linker" = no && can_build_shared=no
9333
9334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335 if test "$GCC" = yes; then
9336   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9337 fi
9338
9339
9340 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibext+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345
9346 module=yes
9347 eval libltdl_cv_shlibext=$shrext_cmds
9348
9349 fi
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9352 if test -n "$libltdl_cv_shlibext"; then
9353
9354 cat >>confdefs.h <<_ACEOF
9355 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9356 _ACEOF
9357
9358 fi
9359
9360
9361 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   libltdl_cv_shlibpath_var="$shlibpath_var"
9367 fi
9368 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9370 if test -n "$libltdl_cv_shlibpath_var"; then
9371
9372 cat >>confdefs.h <<_ACEOF
9373 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9374 _ACEOF
9375
9376 fi
9377
9378
9379 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9380 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_sys_search_path+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9385 fi
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9388 if test -n "$libltdl_cv_sys_search_path"; then
9389   sys_search_path=
9390   for dir in $libltdl_cv_sys_search_path; do
9391     if test -z "$sys_search_path"; then
9392       sys_search_path="$dir"
9393     else
9394       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9395     fi
9396   done
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9400 _ACEOF
9401
9402 fi
9403
9404 { echo "$as_me:$LINENO: checking for objdir" >&5
9405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406 if test "${libltdl_cv_objdir+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   libltdl_cv_objdir="$objdir"
9410   if test -n "$objdir"; then
9411     :
9412   else
9413     rm -f .libs 2>/dev/null
9414     mkdir .libs 2>/dev/null
9415     if test -d .libs; then
9416       libltdl_cv_objdir=.libs
9417     else
9418       # MS-DOS does not allow filenames that begin with a dot.
9419       libltdl_cv_objdir=_libs
9420     fi
9421   rmdir .libs 2>/dev/null
9422   fi
9423
9424 fi
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9427
9428 cat >>confdefs.h <<_ACEOF
9429 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9430 _ACEOF
9431
9432
9433
9434
9435
9436
9437 # Check for command to grab the raw symbol name followed by C symbol from nm.
9438 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443
9444 # These are sane defaults that work on at least a few old systems.
9445 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9446
9447 # Character class describing NM global symbol codes.
9448 symcode='[BCDEGRST]'
9449
9450 # Regexp to match symbols that can be accessed directly from C.
9451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9452
9453 # Transform an extracted symbol line into a proper C declaration
9454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9455
9456 # Transform an extracted symbol line into symbol name and symbol address
9457 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9458
9459 # Define system-specific variables.
9460 case $host_os in
9461 aix*)
9462   symcode='[BCDT]'
9463   ;;
9464 cygwin* | mingw* | pw32*)
9465   symcode='[ABCDGISTW]'
9466   ;;
9467 hpux*) # Its linker distinguishes data from code symbols
9468   if test "$host_cpu" = ia64; then
9469     symcode='[ABCDEGRST]'
9470   fi
9471   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472   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'"
9473   ;;
9474 linux*)
9475   if test "$host_cpu" = ia64; then
9476     symcode='[ABCDGIRSTW]'
9477     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478     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'"
9479   fi
9480   ;;
9481 irix* | nonstopux*)
9482   symcode='[BCDEGRST]'
9483   ;;
9484 osf*)
9485   symcode='[BCDEGQRST]'
9486   ;;
9487 solaris*)
9488   symcode='[BDRT]'
9489   ;;
9490 sco3.2v5*)
9491   symcode='[DT]'
9492   ;;
9493 sysv4.2uw2*)
9494   symcode='[DT]'
9495   ;;
9496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9497   symcode='[ABDT]'
9498   ;;
9499 sysv4)
9500   symcode='[DFNSTU]'
9501   ;;
9502 esac
9503
9504 # Handle CRLF in mingw tool chain
9505 opt_cr=
9506 case $build_os in
9507 mingw*)
9508   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9509   ;;
9510 esac
9511
9512 # If we're using GNU nm, then use its standard symbol codes.
9513 case `$NM -V 2>&1` in
9514 *GNU* | *'with BFD'*)
9515   symcode='[ABCDGIRSTW]' ;;
9516 esac
9517
9518 # Try without a prefix undercore, then with it.
9519 for ac_symprfx in "" "_"; do
9520
9521   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522   symxfrm="\\1 $ac_symprfx\\2 \\2"
9523
9524   # Write the raw and C identifiers.
9525   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9526
9527   # Check to see that the pipe works correctly.
9528   pipe_works=no
9529
9530   rm -f conftest*
9531   cat > conftest.$ac_ext <<EOF
9532 #ifdef __cplusplus
9533 extern "C" {
9534 #endif
9535 char nm_test_var;
9536 void nm_test_func(){}
9537 #ifdef __cplusplus
9538 }
9539 #endif
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9541 EOF
9542
9543   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544   (eval $ac_compile) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; then
9548     # Now try to grab the symbols.
9549     nlist=conftest.nm
9550     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9551   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } && test -s "$nlist"; then
9555       # Try sorting and uniquifying the output.
9556       if sort "$nlist" | uniq > "$nlist"T; then
9557         mv -f "$nlist"T "$nlist"
9558       else
9559         rm -f "$nlist"T
9560       fi
9561
9562       # Make sure that we snagged all the symbols we need.
9563       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565           cat <<EOF > conftest.$ac_ext
9566 #ifdef __cplusplus
9567 extern "C" {
9568 #endif
9569
9570 EOF
9571           # Now generate the symbol file.
9572           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9573
9574           cat <<EOF >> conftest.$ac_ext
9575 #if defined (__STDC__) && __STDC__
9576 # define lt_ptr_t void *
9577 #else
9578 # define lt_ptr_t char *
9579 # define const
9580 #endif
9581
9582 /* The mapping between symbol names and symbols. */
9583 const struct {
9584   const char *name;
9585   lt_ptr_t address;
9586 }
9587 lt_preloaded_symbols[] =
9588 {
9589 EOF
9590           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591           cat <<\EOF >> conftest.$ac_ext
9592   {0, (lt_ptr_t) 0}
9593 };
9594
9595 #ifdef __cplusplus
9596 }
9597 #endif
9598 EOF
9599           # Now try linking the two files.
9600           mv conftest.$ac_objext conftstm.$ac_objext
9601           lt_save_LIBS="$LIBS"
9602           lt_save_CFLAGS="$CFLAGS"
9603           LIBS="conftstm.$ac_objext"
9604           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9605           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9610             pipe_works=yes
9611           fi
9612           LIBS="$lt_save_LIBS"
9613           CFLAGS="$lt_save_CFLAGS"
9614         else
9615           echo "cannot find nm_test_func in $nlist" >&5
9616         fi
9617       else
9618         echo "cannot find nm_test_var in $nlist" >&5
9619       fi
9620     else
9621       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9622     fi
9623   else
9624     echo "$progname: failed program was:" >&5
9625     cat conftest.$ac_ext >&5
9626   fi
9627   rm -f conftest* conftst*
9628
9629   # Do not use the global_symbol_pipe unless it works.
9630   if test "$pipe_works" = yes; then
9631     break
9632   else
9633     lt_cv_sys_global_symbol_pipe=
9634   fi
9635 done
9636
9637 fi
9638
9639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640   lt_cv_sys_global_symbol_to_cdecl=
9641 fi
9642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9643   { echo "$as_me:$LINENO: result: failed" >&5
9644 echo "${ECHO_T}failed" >&6; }
9645 else
9646   { echo "$as_me:$LINENO: result: ok" >&5
9647 echo "${ECHO_T}ok" >&6; }
9648 fi
9649
9650
9651 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657     libltdl_cv_preloaded_symbols=yes
9658   else
9659     libltdl_cv_preloaded_symbols=no
9660   fi
9661
9662 fi
9663 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9665 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_PRELOADED_SYMBOLS 1
9669 _ACEOF
9670
9671 fi
9672
9673 LIBADD_DL=
9674
9675 ac_ext=c
9676 ac_cpp='$CPP $CPPFLAGS'
9677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9680
9681
9682 { echo "$as_me:$LINENO: checking for shl_load" >&5
9683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_shl_load+set}" = set; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h.  */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h.  */
9693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9695 #define shl_load innocuous_shl_load
9696
9697 /* System header to define __stub macros and hopefully few prototypes,
9698     which can conflict with char shl_load (); below.
9699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700     <limits.h> exists even on freestanding compilers.  */
9701
9702 #ifdef __STDC__
9703 # include <limits.h>
9704 #else
9705 # include <assert.h>
9706 #endif
9707
9708 #undef shl_load
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711    Use char because int might match the return type of a GCC
9712    builtin and then its argument prototype would still apply.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char shl_load ();
9717 /* The GNU C library defines this for functions which it implements
9718     to always fail with ENOSYS.  Some functions are actually named
9719     something starting with __ and the normal name is an alias.  */
9720 #if defined __stub_shl_load || defined __stub___shl_load
9721 choke me
9722 #endif
9723
9724 int
9725 main ()
9726 {
9727 return shl_load ();
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736   *) ac_try_echo=$ac_try;;
9737 esac
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739   (eval "$ac_link") 2>conftest.er1
9740   ac_status=$?
9741   grep -v '^ *+' conftest.er1 >conftest.err
9742   rm -f conftest.er1
9743   cat conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747   { (case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_try") 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_try") 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   ac_cv_func_shl_load=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771         ac_cv_func_shl_load=no
9772 fi
9773
9774 rm -f core conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779 if test $ac_cv_func_shl_load = yes; then
9780
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_SHL_LOAD 1
9783 _ACEOF
9784
9785 else
9786   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   ac_check_lib_save_LIBS=$LIBS
9792 LIBS="-ldld  $LIBS"
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799
9800 /* Override any GCC internal prototype to avoid an error.
9801    Use char because int might match the return type of a GCC
9802    builtin and then its argument prototype would still apply.  */
9803 #ifdef __cplusplus
9804 extern "C"
9805 #endif
9806 char shl_load ();
9807 int
9808 main ()
9809 {
9810 return shl_load ();
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9817 case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_link") 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830   { (case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_try") 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; } &&
9839          { ac_try='test -s conftest$ac_exeext'
9840   { (case "(($ac_try" in
9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842   *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845   (eval "$ac_try") 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   ac_cv_lib_dld_shl_load=yes
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854         ac_cv_lib_dld_shl_load=no
9855 fi
9856
9857 rm -f core conftest.err conftest.$ac_objext \
9858       conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9860 fi
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9864
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_SHL_LOAD 1
9867 _ACEOF
9868
9869         LIBADD_DL="$LIBADD_DL -ldld"
9870 else
9871   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874   echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldl  $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 dlopen ();
9892 int
9893 main ()
9894 {
9895 return dlopen ();
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_dl_dlopen=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939         ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_LIBDL 1
9952 _ACEOF
9953
9954                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9955 else
9956   cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962 #if HAVE_DLFCN_H
9963 #  include <dlfcn.h>
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 dlopen(0, 0);
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_link") 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989   { (case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_try") 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; } &&
9998          { ac_try='test -s conftest$ac_exeext'
9999   { (case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_try") 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10011 _ACEOF
10012  libltdl_cv_func_dlopen="yes"
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld  $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char dlopen ();
10038 int
10039 main ()
10040 {
10041 return dlopen ();
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_link") 2>conftest.er1
10054   ac_status=$?
10055   grep -v '^ *+' conftest.er1 >conftest.err
10056   rm -f conftest.er1
10057   cat conftest.err >&5
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } &&
10060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; } &&
10070          { ac_try='test -s conftest$ac_exeext'
10071   { (case "(($ac_try" in
10072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073   *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076   (eval "$ac_try") 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   ac_cv_lib_svld_dlopen=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085         ac_cv_lib_svld_dlopen=no
10086 fi
10087
10088 rm -f core conftest.err conftest.$ac_objext \
10089       conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10091 fi
10092 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094 if test $ac_cv_lib_svld_dlopen = yes; then
10095
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10098 _ACEOF
10099
10100                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10101 else
10102   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-ldld  $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 dld_link ();
10123 int
10124 main ()
10125 {
10126 return dld_link ();
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_dld_dld_link=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170         ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
10178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179 if test $ac_cv_lib_dld_dld_link = yes; then
10180
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_DLD 1
10183 _ACEOF
10184
10185                 LIBADD_DL="$LIBADD_DL -ldld"
10186 else
10187   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h.  */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h.  */
10198 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10200 #define _dyld_func_lookup innocuous__dyld_func_lookup
10201
10202 /* System header to define __stub macros and hopefully few prototypes,
10203     which can conflict with char _dyld_func_lookup (); below.
10204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205     <limits.h> exists even on freestanding compilers.  */
10206
10207 #ifdef __STDC__
10208 # include <limits.h>
10209 #else
10210 # include <assert.h>
10211 #endif
10212
10213 #undef _dyld_func_lookup
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216    Use char because int might match the return type of a GCC
10217    builtin and then its argument prototype would still apply.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char _dyld_func_lookup ();
10222 /* The GNU C library defines this for functions which it implements
10223     to always fail with ENOSYS.  Some functions are actually named
10224     something starting with __ and the normal name is an alias.  */
10225 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10226 choke me
10227 #endif
10228
10229 int
10230 main ()
10231 {
10232 return _dyld_func_lookup ();
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241   *) ac_try_echo=$ac_try;;
10242 esac
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244   (eval "$ac_link") 2>conftest.er1
10245   ac_status=$?
10246   grep -v '^ *+' conftest.er1 >conftest.err
10247   rm -f conftest.er1
10248   cat conftest.err >&5
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252   { (case "(($ac_try" in
10253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254   *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257   (eval "$ac_try") 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; } &&
10261          { ac_try='test -s conftest$ac_exeext'
10262   { (case "(($ac_try" in
10263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264   *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267   (eval "$ac_try") 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; }; then
10271   ac_cv_func__dyld_func_lookup=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276         ac_cv_func__dyld_func_lookup=no
10277 fi
10278
10279 rm -f core conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 fi
10282 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284 if test $ac_cv_func__dyld_func_lookup = yes; then
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DYLD 1
10288 _ACEOF
10289
10290 fi
10291
10292
10293 fi
10294
10295
10296 fi
10297
10298
10299 fi
10300
10301 rm -f core conftest.err conftest.$ac_objext \
10302       conftest$ac_exeext conftest.$ac_ext
10303
10304 fi
10305
10306
10307 fi
10308
10309
10310 fi
10311
10312
10313 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10314 then
10315   lt_save_LIBS="$LIBS"
10316   LIBS="$LIBS $LIBADD_DL"
10317
10318 for ac_func in dlerror
10319 do
10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334 #define $ac_func innocuous_$ac_func
10335
10336 /* System header to define __stub macros and hopefully few prototypes,
10337     which can conflict with char $ac_func (); below.
10338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339     <limits.h> exists even on freestanding compilers.  */
10340
10341 #ifdef __STDC__
10342 # include <limits.h>
10343 #else
10344 # include <assert.h>
10345 #endif
10346
10347 #undef $ac_func
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350    Use char because int might match the return type of a GCC
10351    builtin and then its argument prototype would still apply.  */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char $ac_func ();
10356 /* The GNU C library defines this for functions which it implements
10357     to always fail with ENOSYS.  Some functions are actually named
10358     something starting with __ and the normal name is an alias.  */
10359 #if defined __stub_$ac_func || defined __stub___$ac_func
10360 choke me
10361 #endif
10362
10363 int
10364 main ()
10365 {
10366 return $ac_func ();
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_link") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } &&
10385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386   { (case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_try") 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; } &&
10395          { ac_try='test -s conftest$ac_exeext'
10396   { (case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401   (eval "$ac_try") 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   eval "$as_ac_var=yes"
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410         eval "$as_ac_var=no"
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext \
10414       conftest$ac_exeext conftest.$ac_ext
10415 fi
10416 ac_res=`eval echo '${'$as_ac_var'}'`
10417                { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10419 if test `eval echo '${'$as_ac_var'}'` = yes; then
10420   cat >>confdefs.h <<_ACEOF
10421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10422 _ACEOF
10423
10424 fi
10425 done
10426
10427   LIBS="$lt_save_LIBS"
10428 fi
10429 ac_ext=c
10430 ac_cpp='$CPP $CPPFLAGS'
10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434
10435
10436
10437 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   ac_cv_sys_symbol_underscore=no
10443   cat > conftest.$ac_ext <<EOF
10444 void nm_test_func(){}
10445 int main(){nm_test_func;return 0;}
10446 EOF
10447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448   (eval $ac_compile) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; then
10452     # Now try to grab the symbols.
10453     ac_nlist=conftest.nm
10454     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10455   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } && test -s "$ac_nlist"; then
10459       # See whether the symbols have a leading underscore.
10460       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461         ac_cv_sys_symbol_underscore=yes
10462       else
10463         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10464           :
10465         else
10466           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10467         fi
10468       fi
10469     else
10470       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10471     fi
10472   else
10473     echo "configure: failed program was:" >&5
10474     cat conftest.c >&5
10475   fi
10476   rm -rf conftest*
10477
10478 fi
10479 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10481
10482
10483 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484   if test x"$libltdl_cv_func_dlopen" = xyes ||
10485      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10486         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488 if test "${libltdl_cv_need_uscore+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   libltdl_cv_need_uscore=unknown
10492           save_LIBS="$LIBS"
10493           LIBS="$LIBS $LIBADD_DL"
10494           if test "$cross_compiling" = yes; then :
10495   libltdl_cv_need_uscore=cross
10496 else
10497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498   lt_status=$lt_dlunknown
10499   cat > conftest.$ac_ext <<EOF
10500 #line 10500 "configure"
10501 #include "confdefs.h"
10502
10503 #if HAVE_DLFCN_H
10504 #include <dlfcn.h>
10505 #endif
10506
10507 #include <stdio.h>
10508
10509 #ifdef RTLD_GLOBAL
10510 #  define LT_DLGLOBAL           RTLD_GLOBAL
10511 #else
10512 #  ifdef DL_GLOBAL
10513 #    define LT_DLGLOBAL         DL_GLOBAL
10514 #  else
10515 #    define LT_DLGLOBAL         0
10516 #  endif
10517 #endif
10518
10519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520    find out it does not work in some platform. */
10521 #ifndef LT_DLLAZY_OR_NOW
10522 #  ifdef RTLD_LAZY
10523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10524 #  else
10525 #    ifdef DL_LAZY
10526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10527 #    else
10528 #      ifdef RTLD_NOW
10529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10530 #      else
10531 #        ifdef DL_NOW
10532 #          define LT_DLLAZY_OR_NOW      DL_NOW
10533 #        else
10534 #          define LT_DLLAZY_OR_NOW      0
10535 #        endif
10536 #      endif
10537 #    endif
10538 #  endif
10539 #endif
10540
10541 #ifdef __cplusplus
10542 extern "C" void exit (int);
10543 #endif
10544
10545 void fnord() { int i=42;}
10546 int main ()
10547 {
10548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549   int status = $lt_dlunknown;
10550
10551   if (self)
10552     {
10553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555       /* dlclose (self); */
10556     }
10557   else
10558     puts (dlerror ());
10559
10560     exit (status);
10561 }
10562 EOF
10563   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564   (eval $ac_link) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568     (./conftest; exit; ) >&5 2>/dev/null
10569     lt_status=$?
10570     case x$lt_status in
10571       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10573       x$lt_dlunknown|x*)  ;;
10574     esac
10575   else :
10576     # compilation failed
10577
10578   fi
10579 fi
10580 rm -fr conftest*
10581
10582           LIBS="$save_LIBS"
10583
10584 fi
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10587   fi
10588 fi
10589
10590 if test x"$libltdl_cv_need_uscore" = xyes; then
10591
10592 cat >>confdefs.h <<\_ACEOF
10593 #define NEED_USCORE 1
10594 _ACEOF
10595
10596 fi
10597
10598
10599 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   # PORTME does your system automatically load deplibs for dlopen?
10605   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606   # For now, we just catch OSes we know something about -- in the
10607   # future, we'll try test this programmatically.
10608   libltdl_cv_sys_dlopen_deplibs=unknown
10609   case "$host_os" in
10610   aix3*|aix4.1.*|aix4.2.*)
10611     # Unknown whether this is true for these versions of AIX, but
10612     # we want this `case' here to explicitly catch those versions.
10613     libltdl_cv_sys_dlopen_deplibs=unknown
10614     ;;
10615   aix[45]*)
10616     libltdl_cv_sys_dlopen_deplibs=yes
10617     ;;
10618   darwin*)
10619     # Assuming the user has installed a libdl from somewhere, this is true
10620     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621     libltdl_cv_sys_dlopen_deplibs=yes
10622     ;;
10623   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624     # GNU and its variants, using gnu ld.so (Glibc)
10625     libltdl_cv_sys_dlopen_deplibs=yes
10626     ;;
10627   hpux10*|hpux11*)
10628     libltdl_cv_sys_dlopen_deplibs=yes
10629     ;;
10630   interix*)
10631     libltdl_cv_sys_dlopen_deplibs=yes
10632     ;;
10633   irix[12345]*|irix6.[01]*)
10634     # Catch all versions of IRIX before 6.2, and indicate that we don't
10635     # know how it worked for any of those versions.
10636     libltdl_cv_sys_dlopen_deplibs=unknown
10637     ;;
10638   irix*)
10639     # The case above catches anything before 6.2, and it's known that
10640     # at 6.2 and later dlopen does load deplibs.
10641     libltdl_cv_sys_dlopen_deplibs=yes
10642     ;;
10643   netbsd*)
10644     libltdl_cv_sys_dlopen_deplibs=yes
10645     ;;
10646   openbsd*)
10647     libltdl_cv_sys_dlopen_deplibs=yes
10648     ;;
10649   osf[1234]*)
10650     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651     # it did *not* use an RPATH in a shared library to find objects the
10652     # library depends on, so we explicitly say `no'.
10653     libltdl_cv_sys_dlopen_deplibs=no
10654     ;;
10655   osf5.0|osf5.0a|osf5.1)
10656     # dlopen *does* load deplibs and with the right loader patch applied
10657     # it even uses RPATH in a shared library to search for shared objects
10658     # that the library depends on, but there's no easy way to know if that
10659     # patch is installed.  Since this is the case, all we can really
10660     # say is unknown -- it depends on the patch being installed.  If
10661     # it is, this changes to `yes'.  Without it, it would be `no'.
10662     libltdl_cv_sys_dlopen_deplibs=unknown
10663     ;;
10664   osf*)
10665     # the two cases above should catch all versions of osf <= 5.1.  Read
10666     # the comments above for what we know about them.
10667     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668     # is used to find them so we can finally say `yes'.
10669     libltdl_cv_sys_dlopen_deplibs=yes
10670     ;;
10671   solaris*)
10672     libltdl_cv_sys_dlopen_deplibs=yes
10673     ;;
10674   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675     libltdl_cv_sys_dlopen_deplibs=yes
10676     ;;
10677   esac
10678
10679 fi
10680 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10682 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10683
10684 cat >>confdefs.h <<\_ACEOF
10685 #define LTDL_DLOPEN_DEPLIBS 1
10686 _ACEOF
10687
10688 fi
10689
10690
10691 for ac_header in argz.h
10692 do
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 fi
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701                { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10703 else
10704   # Is the header compilable?
10705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h.  */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h.  */
10713 $ac_includes_default
10714 #include <$ac_header>
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_compile") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } &&
10730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731   { (case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736   (eval "$ac_try") 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; } &&
10740          { ac_try='test -s conftest.$ac_objext'
10741   { (case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_try") 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_header_compiler=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755         ac_header_compiler=no
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 echo "${ECHO_T}$ac_header_compiler" >&6; }
10761
10762 # Is the header present?
10763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <$ac_header>
10772 _ACEOF
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_c_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   ac_header_preproc=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   ac_header_preproc=no
10802 fi
10803
10804 rm -f conftest.err conftest.$ac_ext
10805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806 echo "${ECHO_T}$ac_header_preproc" >&6; }
10807
10808 # So?  What about this header?
10809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810   yes:no: )
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815     ac_header_preproc=yes
10816     ;;
10817   no:yes:* )
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10830     ( cat <<\_ASBOX
10831 ## ------------------------------------ ##
10832 ## Report this to http://llvm.org/bugs/ ##
10833 ## ------------------------------------ ##
10834 _ASBOX
10835      ) | sed "s/^/$as_me: WARNING:     /" >&2
10836     ;;
10837 esac
10838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   eval "$as_ac_Header=\$ac_header_preproc"
10844 fi
10845 ac_res=`eval echo '${'$as_ac_Header'}'`
10846                { echo "$as_me:$LINENO: result: $ac_res" >&5
10847 echo "${ECHO_T}$ac_res" >&6; }
10848
10849 fi
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 fi
10856
10857 done
10858
10859
10860 { echo "$as_me:$LINENO: checking for error_t" >&5
10861 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862 if test "${ac_cv_type_error_t+set}" = set; then
10863   echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865   cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 #if HAVE_ARGZ_H
10872 #  include <argz.h>
10873 #endif
10874
10875 typedef error_t ac__type_new_;
10876 int
10877 main ()
10878 {
10879 if ((ac__type_new_ *) 0)
10880   return 0;
10881 if (sizeof (ac__type_new_))
10882   return 0;
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894   (eval "$ac_compile") 2>conftest.er1
10895   ac_status=$?
10896   grep -v '^ *+' conftest.er1 >conftest.err
10897   rm -f conftest.er1
10898   cat conftest.err >&5
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902   { (case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_try") 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; } &&
10911          { ac_try='test -s conftest.$ac_objext'
10912   { (case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_try") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_cv_type_error_t=yes
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926         ac_cv_type_error_t=no
10927 fi
10928
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 fi
10931 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933 if test $ac_cv_type_error_t = yes; then
10934
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_ERROR_T 1
10937 _ACEOF
10938
10939
10940 else
10941
10942 cat >>confdefs.h <<\_ACEOF
10943 #define error_t int
10944 _ACEOF
10945
10946 fi
10947
10948
10949
10950
10951
10952
10953
10954 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10955 do
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10970 #define $ac_func innocuous_$ac_func
10971
10972 /* System header to define __stub macros and hopefully few prototypes,
10973     which can conflict with char $ac_func (); below.
10974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975     <limits.h> exists even on freestanding compilers.  */
10976
10977 #ifdef __STDC__
10978 # include <limits.h>
10979 #else
10980 # include <assert.h>
10981 #endif
10982
10983 #undef $ac_func
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986    Use char because int might match the return type of a GCC
10987    builtin and then its argument prototype would still apply.  */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char $ac_func ();
10992 /* The GNU C library defines this for functions which it implements
10993     to always fail with ENOSYS.  Some functions are actually named
10994     something starting with __ and the normal name is an alias.  */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
10996 choke me
10997 #endif
10998
10999 int
11000 main ()
11001 {
11002 return $ac_func ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_link") 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; } &&
11031          { ac_try='test -s conftest$ac_exeext'
11032   { (case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_try") 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; }; then
11041   eval "$as_ac_var=yes"
11042 else
11043   echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046         eval "$as_ac_var=no"
11047 fi
11048
11049 rm -f core conftest.err conftest.$ac_objext \
11050       conftest$ac_exeext conftest.$ac_ext
11051 fi
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053                { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056   cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 _ACEOF
11059
11060 fi
11061 done
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11091                   stdio.h unistd.h
11092 do
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 fi
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101                { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 else
11104   # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 $ac_includes_default
11114 #include <$ac_header>
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_compile") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest.$ac_objext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_header_compiler=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_header_compiler=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 #include <$ac_header>
11172 _ACEOF
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } >/dev/null; then
11186   if test -s conftest.err; then
11187     ac_cpp_err=$ac_c_preproc_warn_flag
11188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189   else
11190     ac_cpp_err=
11191   fi
11192 else
11193   ac_cpp_err=yes
11194 fi
11195 if test -z "$ac_cpp_err"; then
11196   ac_header_preproc=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   eval "$as_ac_Header=\$ac_header_preproc"
11244 fi
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246                { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11248
11249 fi
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251   cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259
11260
11261
11262
11263 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11264 do
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273                { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11275 else
11276   # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 $ac_includes_default
11286 #include <$ac_header>
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_compile") 2>conftest.er1
11296   ac_status=$?
11297   grep -v '^ *+' conftest.er1 >conftest.err
11298   rm -f conftest.er1
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } &&
11302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303   { (case "(($ac_try" in
11304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305   *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308   (eval "$ac_try") 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; } &&
11312          { ac_try='test -s conftest.$ac_objext'
11313   { (case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_try") 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_header_compiler=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327         ac_header_compiler=no
11328 fi
11329
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11333
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 #include <$ac_header>
11344 _ACEOF
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } >/dev/null; then
11358   if test -s conftest.err; then
11359     ac_cpp_err=$ac_c_preproc_warn_flag
11360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361   else
11362     ac_cpp_err=
11363   fi
11364 else
11365   ac_cpp_err=yes
11366 fi
11367 if test -z "$ac_cpp_err"; then
11368   ac_header_preproc=yes
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373   ac_header_preproc=no
11374 fi
11375
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11379
11380 # So?  What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382   yes:no: )
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387     ac_header_preproc=yes
11388     ;;
11389   no:yes:* )
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402     ( cat <<\_ASBOX
11403 ## ------------------------------------ ##
11404 ## Report this to http://llvm.org/bugs/ ##
11405 ## ------------------------------------ ##
11406 _ASBOX
11407      ) | sed "s/^/$as_me: WARNING:     /" >&2
11408     ;;
11409 esac
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   eval "$as_ac_Header=\$ac_header_preproc"
11416 fi
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418                { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420
11421 fi
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423   cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 _ACEOF
11426
11427 fi
11428
11429 done
11430
11431
11432
11433 for ac_header in string.h strings.h
11434 do
11435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 fi
11442 ac_res=`eval echo '${'$as_ac_Header'}'`
11443                { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11445 else
11446   # Is the header compilable?
11447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 $ac_includes_default
11456 #include <$ac_header>
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465   (eval "$ac_compile") 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473   { (case "(($ac_try" in
11474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475   *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478   (eval "$ac_try") 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; } &&
11482          { ac_try='test -s conftest.$ac_objext'
11483   { (case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_try") 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   ac_header_compiler=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497         ac_header_compiler=no
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11503
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 #include <$ac_header>
11514 _ACEOF
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } >/dev/null; then
11528   if test -s conftest.err; then
11529     ac_cpp_err=$ac_c_preproc_warn_flag
11530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11531   else
11532     ac_cpp_err=
11533   fi
11534 else
11535   ac_cpp_err=yes
11536 fi
11537 if test -z "$ac_cpp_err"; then
11538   ac_header_preproc=yes
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543   ac_header_preproc=no
11544 fi
11545
11546 rm -f conftest.err conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11549
11550 # So?  What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552   yes:no: )
11553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557     ac_header_preproc=yes
11558     ;;
11559   no:yes:* )
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11572     ( cat <<\_ASBOX
11573 ## ------------------------------------ ##
11574 ## Report this to http://llvm.org/bugs/ ##
11575 ## ------------------------------------ ##
11576 _ASBOX
11577      ) | sed "s/^/$as_me: WARNING:     /" >&2
11578     ;;
11579 esac
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   eval "$as_ac_Header=\$ac_header_preproc"
11586 fi
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588                { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590
11591 fi
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593   cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11595 _ACEOF
11596  break
11597 fi
11598
11599 done
11600
11601
11602
11603
11604 for ac_func in strchr index
11605 do
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11620 #define $ac_func innocuous_$ac_func
11621
11622 /* System header to define __stub macros and hopefully few prototypes,
11623     which can conflict with char $ac_func (); below.
11624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625     <limits.h> exists even on freestanding compilers.  */
11626
11627 #ifdef __STDC__
11628 # include <limits.h>
11629 #else
11630 # include <assert.h>
11631 #endif
11632
11633 #undef $ac_func
11634
11635 /* Override any GCC internal prototype to avoid an error.
11636    Use char because int might match the return type of a GCC
11637    builtin and then its argument prototype would still apply.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char $ac_func ();
11642 /* The GNU C library defines this for functions which it implements
11643     to always fail with ENOSYS.  Some functions are actually named
11644     something starting with __ and the normal name is an alias.  */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11646 choke me
11647 #endif
11648
11649 int
11650 main ()
11651 {
11652 return $ac_func ();
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661   *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664   (eval "$ac_link") 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672   { (case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677   (eval "$ac_try") 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; } &&
11681          { ac_try='test -s conftest$ac_exeext'
11682   { (case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_try") 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; }; then
11691   eval "$as_ac_var=yes"
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696         eval "$as_ac_var=no"
11697 fi
11698
11699 rm -f core conftest.err conftest.$ac_objext \
11700       conftest$ac_exeext conftest.$ac_ext
11701 fi
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703                { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706   cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 _ACEOF
11709  break
11710 fi
11711 done
11712
11713
11714
11715 for ac_func in strrchr rindex
11716 do
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h.  */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h.  */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11731 #define $ac_func innocuous_$ac_func
11732
11733 /* System header to define __stub macros and hopefully few prototypes,
11734     which can conflict with char $ac_func (); below.
11735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736     <limits.h> exists even on freestanding compilers.  */
11737
11738 #ifdef __STDC__
11739 # include <limits.h>
11740 #else
11741 # include <assert.h>
11742 #endif
11743
11744 #undef $ac_func
11745
11746 /* Override any GCC internal prototype to avoid an error.
11747    Use char because int might match the return type of a GCC
11748    builtin and then its argument prototype would still apply.  */
11749 #ifdef __cplusplus
11750 extern "C"
11751 #endif
11752 char $ac_func ();
11753 /* The GNU C library defines this for functions which it implements
11754     to always fail with ENOSYS.  Some functions are actually named
11755     something starting with __ and the normal name is an alias.  */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11757 choke me
11758 #endif
11759
11760 int
11761 main ()
11762 {
11763 return $ac_func ();
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_link") 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783   { (case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_try") 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; } &&
11792          { ac_try='test -s conftest$ac_exeext'
11793   { (case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_try") 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   eval "$as_ac_var=yes"
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807         eval "$as_ac_var=no"
11808 fi
11809
11810 rm -f core conftest.err conftest.$ac_objext \
11811       conftest$ac_exeext conftest.$ac_ext
11812 fi
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814                { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817   cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819 _ACEOF
11820  break
11821 fi
11822 done
11823
11824
11825
11826 for ac_func in memcpy bcopy
11827 do
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11842 #define $ac_func innocuous_$ac_func
11843
11844 /* System header to define __stub macros and hopefully few prototypes,
11845     which can conflict with char $ac_func (); below.
11846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847     <limits.h> exists even on freestanding compilers.  */
11848
11849 #ifdef __STDC__
11850 # include <limits.h>
11851 #else
11852 # include <assert.h>
11853 #endif
11854
11855 #undef $ac_func
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858    Use char because int might match the return type of a GCC
11859    builtin and then its argument prototype would still apply.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char $ac_func ();
11864 /* The GNU C library defines this for functions which it implements
11865     to always fail with ENOSYS.  Some functions are actually named
11866     something starting with __ and the normal name is an alias.  */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 choke me
11869 #endif
11870
11871 int
11872 main ()
11873 {
11874 return $ac_func ();
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_link") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894   { (case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899   (eval "$ac_try") 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; } &&
11903          { ac_try='test -s conftest$ac_exeext'
11904   { (case "(($ac_try" in
11905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906   *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909   (eval "$ac_try") 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   eval "$as_ac_var=yes"
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918         eval "$as_ac_var=no"
11919 fi
11920
11921 rm -f core conftest.err conftest.$ac_objext \
11922       conftest$ac_exeext conftest.$ac_ext
11923 fi
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925                { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928   cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 _ACEOF
11931  break
11932 fi
11933 done
11934
11935
11936
11937 for ac_func in memmove strcmp
11938 do
11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11953 #define $ac_func innocuous_$ac_func
11954
11955 /* System header to define __stub macros and hopefully few prototypes,
11956     which can conflict with char $ac_func (); below.
11957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958     <limits.h> exists even on freestanding compilers.  */
11959
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965
11966 #undef $ac_func
11967
11968 /* Override any GCC internal prototype to avoid an error.
11969    Use char because int might match the return type of a GCC
11970    builtin and then its argument prototype would still apply.  */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char $ac_func ();
11975 /* The GNU C library defines this for functions which it implements
11976     to always fail with ENOSYS.  Some functions are actually named
11977     something starting with __ and the normal name is an alias.  */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11979 choke me
11980 #endif
11981
11982 int
11983 main ()
11984 {
11985 return $ac_func ();
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_link") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } &&
12004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005   { (case "(($ac_try" in
12006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007   *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010   (eval "$ac_try") 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_try") 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   eval "$as_ac_var=yes"
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029         eval "$as_ac_var=no"
12030 fi
12031
12032 rm -f core conftest.err conftest.$ac_objext \
12033       conftest$ac_exeext conftest.$ac_ext
12034 fi
12035 ac_res=`eval echo '${'$as_ac_var'}'`
12036                { echo "$as_me:$LINENO: result: $ac_res" >&5
12037 echo "${ECHO_T}$ac_res" >&6; }
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039   cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 _ACEOF
12042
12043 fi
12044 done
12045
12046
12047
12048
12049 for ac_func in closedir opendir readdir
12050 do
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12065 #define $ac_func innocuous_$ac_func
12066
12067 /* System header to define __stub macros and hopefully few prototypes,
12068     which can conflict with char $ac_func (); below.
12069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070     <limits.h> exists even on freestanding compilers.  */
12071
12072 #ifdef __STDC__
12073 # include <limits.h>
12074 #else
12075 # include <assert.h>
12076 #endif
12077
12078 #undef $ac_func
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081    Use char because int might match the return type of a GCC
12082    builtin and then its argument prototype would still apply.  */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 char $ac_func ();
12087 /* The GNU C library defines this for functions which it implements
12088     to always fail with ENOSYS.  Some functions are actually named
12089     something starting with __ and the normal name is an alias.  */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12091 choke me
12092 #endif
12093
12094 int
12095 main ()
12096 {
12097 return $ac_func ();
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106   *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109   (eval "$ac_link") 2>conftest.er1
12110   ac_status=$?
12111   grep -v '^ *+' conftest.er1 >conftest.err
12112   rm -f conftest.er1
12113   cat conftest.err >&5
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117   { (case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_try") 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; } &&
12126          { ac_try='test -s conftest$ac_exeext'
12127   { (case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_try") 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; }; then
12136   eval "$as_ac_var=yes"
12137 else
12138   echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141         eval "$as_ac_var=no"
12142 fi
12143
12144 rm -f core conftest.err conftest.$ac_objext \
12145       conftest$ac_exeext conftest.$ac_ext
12146 fi
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148                { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151   cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153 _ACEOF
12154
12155 fi
12156 done
12157
12158
12159
12160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12162
12163 ICC=no
12164 IXX=no
12165 case $CC in
12166   icc*|icpc*)
12167     ICC=yes
12168     IXX=yes
12169     ;;
12170    *)
12171     ;;
12172 esac
12173
12174 if test "$GCC" != "yes" && test "$ICC" != "yes"
12175 then
12176   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177 echo "$as_me: error: gcc|icc required but not found" >&2;}
12178    { (exit 1); exit 1; }; }
12179 fi
12180
12181 if test "$GXX" != "yes" && test "$IXX" != "yes"
12182 then
12183   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12185    { (exit 1); exit 1; }; }
12186 fi
12187
12188 if test "$GCC" = "yes"
12189 then
12190   cat >conftest.$ac_ext <<_ACEOF
12191
12192   /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197
12198     #if !defined(__GNUC__) || __GNUC__ < 3
12199     #error Unsupported GCC version
12200     #endif
12201
12202
12203 _ACEOF
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_compile") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest.$ac_objext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   :
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12244 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12245    { (exit 1); exit 1; }; }
12246 fi
12247
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249 fi
12250
12251 if test -z "$llvm_cv_gnu_make_command"
12252 then
12253   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12254 echo "$as_me: error: GNU Make required but not found" >&2;}
12255    { (exit 1); exit 1; }; }
12256 fi
12257
12258 { echo "$as_me:$LINENO: result: ok" >&5
12259 echo "${ECHO_T}ok" >&6; }
12260
12261 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12262 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12263 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12264
12265 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12266
12267 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12268
12269
12270 NO_UNINITIALIZED=
12271 NO_MAYBE_UNINITIALIZED=
12272 if test "$GXX" = "yes"
12273 then
12274   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12275
12276         if test -z "$NO_MAYBE_UNINITIALIZED"
12277   then
12278     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12279
12280   fi
12281 fi
12282 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12283 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12284
12285
12286 # Check whether --with-python was given.
12287 if test "${with_python+set}" = set; then
12288   withval=$with_python; PYTHON="$withval"
12289 fi
12290
12291
12292 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12293   { echo "$as_me:$LINENO: checking for python" >&5
12294 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12295   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12296 echo "${ECHO_T}user defined: $with_python" >&6; }
12297 else
12298   if test -n "$PYTHON" ; then
12299     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12300 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12301   fi
12302
12303   # Extract the first word of "python python2 python26", so it can be a program name with args.
12304 set dummy python python2 python26; ac_word=$2
12305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12307 if test "${ac_cv_path_PYTHON+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   case $PYTHON in
12311   [\\/]* | ?:[\\/]*)
12312   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12313   ;;
12314   *)
12315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318   IFS=$as_save_IFS
12319   test -z "$as_dir" && as_dir=.
12320   for ac_exec_ext in '' $ac_executable_extensions; do
12321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12322     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12324     break 2
12325   fi
12326 done
12327 done
12328 IFS=$as_save_IFS
12329
12330   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12331 echo "${ECHO_T}not found" >&6; }
12332                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12333 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12334    { (exit 1); exit 1; }; }"
12335   ;;
12336 esac
12337 fi
12338 PYTHON=$ac_cv_path_PYTHON
12339 if test -n "$PYTHON"; then
12340   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12341 echo "${ECHO_T}$PYTHON" >&6; }
12342 else
12343   { echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6; }
12345 fi
12346
12347
12348 fi
12349
12350 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12351 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12352 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12353 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12354 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12355 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12356 if   test "$ac_python_version_major" -eq "2" \
12357    && test "$ac_python_version_minor" -ge "5" ; then
12358   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12359 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12360 else
12361   { echo "$as_me:$LINENO: result: not found" >&5
12362 echo "${ECHO_T}not found" >&6; }
12363   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12364 See \`config.log' for more details." >&5
12365 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12366 See \`config.log' for more details." >&2;}
12367    { (exit 1); exit 1; }; }
12368 fi
12369
12370
12371
12372 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12373 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12374 if test "${ac_cv_lib_m_sin+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-lm  $LIBS"
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385
12386 /* Override any GCC internal prototype to avoid an error.
12387    Use char because int might match the return type of a GCC
12388    builtin and then its argument prototype would still apply.  */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char sin ();
12393 int
12394 main ()
12395 {
12396 return sin ();
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (ac_try="$ac_link"
12403 case "(($ac_try" in
12404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405   *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408   (eval "$ac_link") 2>conftest.er1
12409   ac_status=$?
12410   grep -v '^ *+' conftest.er1 >conftest.err
12411   rm -f conftest.er1
12412   cat conftest.err >&5
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); } &&
12415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416   { (case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_try") 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest$ac_exeext'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_cv_lib_m_sin=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440         ac_cv_lib_m_sin=no
12441 fi
12442
12443 rm -f core conftest.err conftest.$ac_objext \
12444       conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12448 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12449 if test $ac_cv_lib_m_sin = yes; then
12450   cat >>confdefs.h <<_ACEOF
12451 #define HAVE_LIBM 1
12452 _ACEOF
12453
12454   LIBS="-lm $LIBS"
12455
12456 fi
12457
12458 if test "$llvm_cv_os_type" = "MingW" ; then
12459
12460 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12461 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-limagehlp  $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473
12474
12475 int
12476 main ()
12477 {
12478 return main ();
12479   ;
12480   return 0;
12481 }
12482 _ACEOF
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490   (eval "$ac_link") 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498   { (case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest$ac_exeext'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   ac_cv_lib_imagehlp_main=yes
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522         ac_cv_lib_imagehlp_main=no
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext \
12526       conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12528 fi
12529 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12530 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12531 if test $ac_cv_lib_imagehlp_main = yes; then
12532   cat >>confdefs.h <<_ACEOF
12533 #define HAVE_LIBIMAGEHLP 1
12534 _ACEOF
12535
12536   LIBS="-limagehlp $LIBS"
12537
12538 fi
12539
12540
12541 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12542 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12543 if test "${ac_cv_lib_psapi_main+set}" = set; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546   ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lpsapi  $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554
12555
12556 int
12557 main ()
12558 {
12559 return main ();
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_link") 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579   { (case "(($ac_try" in
12580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581   *) ac_try_echo=$ac_try;;
12582 esac
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584   (eval "$ac_try") 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; } &&
12588          { ac_try='test -s conftest$ac_exeext'
12589   { (case "(($ac_try" in
12590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591   *) ac_try_echo=$ac_try;;
12592 esac
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594   (eval "$ac_try") 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   ac_cv_lib_psapi_main=yes
12599 else
12600   echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603         ac_cv_lib_psapi_main=no
12604 fi
12605
12606 rm -f core conftest.err conftest.$ac_objext \
12607       conftest$ac_exeext conftest.$ac_ext
12608 LIBS=$ac_check_lib_save_LIBS
12609 fi
12610 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12611 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12612 if test $ac_cv_lib_psapi_main = yes; then
12613   cat >>confdefs.h <<_ACEOF
12614 #define HAVE_LIBPSAPI 1
12615 _ACEOF
12616
12617   LIBS="-lpsapi $LIBS"
12618
12619 fi
12620
12621 fi
12622
12623 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12624 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_dlopen+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628   ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char dlopen ();
12643 int
12644 main ()
12645 {
12646 return dlopen ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 for ac_lib in '' dl; do
12652   if test -z "$ac_lib"; then
12653     ac_res="none required"
12654   else
12655     ac_res=-l$ac_lib
12656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12657   fi
12658   rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665   (eval "$ac_link") 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673   { (case "(($ac_try" in
12674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675   *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678   (eval "$ac_try") 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; } &&
12682          { ac_try='test -s conftest$ac_exeext'
12683   { (case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; }; then
12692   ac_cv_search_dlopen=$ac_res
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697
12698 fi
12699
12700 rm -f core conftest.err conftest.$ac_objext \
12701       conftest$ac_exeext
12702   if test "${ac_cv_search_dlopen+set}" = set; then
12703   break
12704 fi
12705 done
12706 if test "${ac_cv_search_dlopen+set}" = set; then
12707   :
12708 else
12709   ac_cv_search_dlopen=no
12710 fi
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12713 fi
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12715 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12716 ac_res=$ac_cv_search_dlopen
12717 if test "$ac_res" != no; then
12718   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12719
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_DLOPEN 1
12722 _ACEOF
12723
12724 else
12725   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12726 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12727 fi
12728
12729
12730 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12731 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12732 if test "${ac_cv_search_clock_gettime+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   ac_func_search_save_LIBS=$LIBS
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742
12743 /* Override any GCC internal prototype to avoid an error.
12744    Use char because int might match the return type of a GCC
12745    builtin and then its argument prototype would still apply.  */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 char clock_gettime ();
12750 int
12751 main ()
12752 {
12753 return clock_gettime ();
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 for ac_lib in '' rt; do
12759   if test -z "$ac_lib"; then
12760     ac_res="none required"
12761   else
12762     ac_res=-l$ac_lib
12763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12764   fi
12765   rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769   *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772   (eval "$ac_link") 2>conftest.er1
12773   ac_status=$?
12774   grep -v '^ *+' conftest.er1 >conftest.err
12775   rm -f conftest.er1
12776   cat conftest.err >&5
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); } &&
12779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780   { (case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_try") 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; } &&
12789          { ac_try='test -s conftest$ac_exeext'
12790   { (case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_try") 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; }; then
12799   ac_cv_search_clock_gettime=$ac_res
12800 else
12801   echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804
12805 fi
12806
12807 rm -f core conftest.err conftest.$ac_objext \
12808       conftest$ac_exeext
12809   if test "${ac_cv_search_clock_gettime+set}" = set; then
12810   break
12811 fi
12812 done
12813 if test "${ac_cv_search_clock_gettime+set}" = set; then
12814   :
12815 else
12816   ac_cv_search_clock_gettime=no
12817 fi
12818 rm conftest.$ac_ext
12819 LIBS=$ac_func_search_save_LIBS
12820 fi
12821 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12822 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12823 ac_res=$ac_cv_search_clock_gettime
12824 if test "$ac_res" != no; then
12825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12826
12827 fi
12828
12829
12830 if test "$llvm_cv_enable_libffi" = "yes" ; then
12831   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12832 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_ffi_call+set}" = set; then
12834   echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836   ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845    Use char because int might match the return type of a GCC
12846    builtin and then its argument prototype would still apply.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char ffi_call ();
12851 int
12852 main ()
12853 {
12854 return ffi_call ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 for ac_lib in '' ffi; do
12860   if test -z "$ac_lib"; then
12861     ac_res="none required"
12862   else
12863     ac_res=-l$ac_lib
12864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12865   fi
12866   rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870   *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873   (eval "$ac_link") 2>conftest.er1
12874   ac_status=$?
12875   grep -v '^ *+' conftest.er1 >conftest.err
12876   rm -f conftest.er1
12877   cat conftest.err >&5
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); } &&
12880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881   { (case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_try") 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; } &&
12890          { ac_try='test -s conftest$ac_exeext'
12891   { (case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_try") 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900   ac_cv_search_ffi_call=$ac_res
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905
12906 fi
12907
12908 rm -f core conftest.err conftest.$ac_objext \
12909       conftest$ac_exeext
12910   if test "${ac_cv_search_ffi_call+set}" = set; then
12911   break
12912 fi
12913 done
12914 if test "${ac_cv_search_ffi_call+set}" = set; then
12915   :
12916 else
12917   ac_cv_search_ffi_call=no
12918 fi
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12921 fi
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12923 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12924 ac_res=$ac_cv_search_ffi_call
12925 if test "$ac_res" != no; then
12926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12927
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_FFI_CALL 1
12930 _ACEOF
12931
12932 else
12933   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12934 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12935    { (exit 1); exit 1; }; }
12936 fi
12937
12938 fi
12939
12940 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12941 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12942 if test "${ac_cv_search_mallinfo+set}" = set; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945   ac_func_search_save_LIBS=$LIBS
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952
12953 /* Override any GCC internal prototype to avoid an error.
12954    Use char because int might match the return type of a GCC
12955    builtin and then its argument prototype would still apply.  */
12956 #ifdef __cplusplus
12957 extern "C"
12958 #endif
12959 char mallinfo ();
12960 int
12961 main ()
12962 {
12963 return mallinfo ();
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 for ac_lib in '' malloc; do
12969   if test -z "$ac_lib"; then
12970     ac_res="none required"
12971   else
12972     ac_res=-l$ac_lib
12973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12974   fi
12975   rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_link") 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990   { (case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995   (eval "$ac_try") 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; } &&
12999          { ac_try='test -s conftest$ac_exeext'
13000   { (case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_try") 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; }; then
13009   ac_cv_search_mallinfo=$ac_res
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014
13015 fi
13016
13017 rm -f core conftest.err conftest.$ac_objext \
13018       conftest$ac_exeext
13019   if test "${ac_cv_search_mallinfo+set}" = set; then
13020   break
13021 fi
13022 done
13023 if test "${ac_cv_search_mallinfo+set}" = set; then
13024   :
13025 else
13026   ac_cv_search_mallinfo=no
13027 fi
13028 rm conftest.$ac_ext
13029 LIBS=$ac_func_search_save_LIBS
13030 fi
13031 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13032 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13033 ac_res=$ac_cv_search_mallinfo
13034 if test "$ac_res" != no; then
13035   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13036
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_MALLINFO 1
13039 _ACEOF
13040
13041 fi
13042
13043
13044 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13045
13046 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13047 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13048 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13049   echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051   ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lpthread  $LIBS"
13053 cat >conftest.$ac_ext <<_ACEOF
13054 /* confdefs.h.  */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h.  */
13059
13060 /* Override any GCC internal prototype to avoid an error.
13061    Use char because int might match the return type of a GCC
13062    builtin and then its argument prototype would still apply.  */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char pthread_mutex_init ();
13067 int
13068 main ()
13069 {
13070 return pthread_mutex_init ();
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_link") 2>conftest.er1
13083   ac_status=$?
13084   grep -v '^ *+' conftest.er1 >conftest.err
13085   rm -f conftest.er1
13086   cat conftest.err >&5
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); } &&
13089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13090   { (case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095   (eval "$ac_try") 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; } &&
13099          { ac_try='test -s conftest$ac_exeext'
13100   { (case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105   (eval "$ac_try") 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; }; then
13109   ac_cv_lib_pthread_pthread_mutex_init=yes
13110 else
13111   echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114         ac_cv_lib_pthread_pthread_mutex_init=no
13115 fi
13116
13117 rm -f core conftest.err conftest.$ac_objext \
13118       conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13120 fi
13121 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13122 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13123 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13124   cat >>confdefs.h <<_ACEOF
13125 #define HAVE_LIBPTHREAD 1
13126 _ACEOF
13127
13128   LIBS="-lpthread $LIBS"
13129
13130 fi
13131
13132   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13133 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13134 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13135   echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137   ac_func_search_save_LIBS=$LIBS
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144
13145 /* Override any GCC internal prototype to avoid an error.
13146    Use char because int might match the return type of a GCC
13147    builtin and then its argument prototype would still apply.  */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char pthread_mutex_lock ();
13152 int
13153 main ()
13154 {
13155 return pthread_mutex_lock ();
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 for ac_lib in '' pthread; do
13161   if test -z "$ac_lib"; then
13162     ac_res="none required"
13163   else
13164     ac_res=-l$ac_lib
13165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13166   fi
13167   rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_link") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182   { (case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_try") 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; } &&
13191          { ac_try='test -s conftest$ac_exeext'
13192   { (case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_try") 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; }; then
13201   ac_cv_search_pthread_mutex_lock=$ac_res
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext \
13210       conftest$ac_exeext
13211   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13212   break
13213 fi
13214 done
13215 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13216   :
13217 else
13218   ac_cv_search_pthread_mutex_lock=no
13219 fi
13220 rm conftest.$ac_ext
13221 LIBS=$ac_func_search_save_LIBS
13222 fi
13223 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13224 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13225 ac_res=$ac_cv_search_pthread_mutex_lock
13226 if test "$ac_res" != no; then
13227   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13228
13229 cat >>confdefs.h <<\_ACEOF
13230 #define HAVE_PTHREAD_MUTEX_LOCK 1
13231 _ACEOF
13232
13233 fi
13234
13235   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13236 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13237 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   ac_func_search_save_LIBS=$LIBS
13241 cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247
13248 /* Override any GCC internal prototype to avoid an error.
13249    Use char because int might match the return type of a GCC
13250    builtin and then its argument prototype would still apply.  */
13251 #ifdef __cplusplus
13252 extern "C"
13253 #endif
13254 char pthread_rwlock_init ();
13255 int
13256 main ()
13257 {
13258 return pthread_rwlock_init ();
13259   ;
13260   return 0;
13261 }
13262 _ACEOF
13263 for ac_lib in '' pthread; do
13264   if test -z "$ac_lib"; then
13265     ac_res="none required"
13266   else
13267     ac_res=-l$ac_lib
13268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13269   fi
13270   rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (ac_try="$ac_link"
13272 case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_link") 2>conftest.er1
13278   ac_status=$?
13279   grep -v '^ *+' conftest.er1 >conftest.err
13280   rm -f conftest.er1
13281   cat conftest.err >&5
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } &&
13284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285   { (case "(($ac_try" in
13286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287   *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290   (eval "$ac_try") 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); }; } &&
13294          { ac_try='test -s conftest$ac_exeext'
13295   { (case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_try") 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304   ac_cv_search_pthread_rwlock_init=$ac_res
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309
13310 fi
13311
13312 rm -f core conftest.err conftest.$ac_objext \
13313       conftest$ac_exeext
13314   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13315   break
13316 fi
13317 done
13318 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13319   :
13320 else
13321   ac_cv_search_pthread_rwlock_init=no
13322 fi
13323 rm conftest.$ac_ext
13324 LIBS=$ac_func_search_save_LIBS
13325 fi
13326 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13327 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13328 ac_res=$ac_cv_search_pthread_rwlock_init
13329 if test "$ac_res" != no; then
13330   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13331
13332 cat >>confdefs.h <<\_ACEOF
13333 #define HAVE_PTHREAD_RWLOCK_INIT 1
13334 _ACEOF
13335
13336 fi
13337
13338   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13339 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13340 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   ac_func_search_save_LIBS=$LIBS
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350
13351 /* Override any GCC internal prototype to avoid an error.
13352    Use char because int might match the return type of a GCC
13353    builtin and then its argument prototype would still apply.  */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char pthread_getspecific ();
13358 int
13359 main ()
13360 {
13361 return pthread_getspecific ();
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 for ac_lib in '' pthread; do
13367   if test -z "$ac_lib"; then
13368     ac_res="none required"
13369   else
13370     ac_res=-l$ac_lib
13371     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13372   fi
13373   rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13381   ac_status=$?
13382   grep -v '^ *+' conftest.er1 >conftest.err
13383   rm -f conftest.er1
13384   cat conftest.err >&5
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); } &&
13387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388   { (case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_try") 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; } &&
13397          { ac_try='test -s conftest$ac_exeext'
13398   { (case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_try") 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407   ac_cv_search_pthread_getspecific=$ac_res
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412
13413 fi
13414
13415 rm -f core conftest.err conftest.$ac_objext \
13416       conftest$ac_exeext
13417   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13418   break
13419 fi
13420 done
13421 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13422   :
13423 else
13424   ac_cv_search_pthread_getspecific=no
13425 fi
13426 rm conftest.$ac_ext
13427 LIBS=$ac_func_search_save_LIBS
13428 fi
13429 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13430 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13431 ac_res=$ac_cv_search_pthread_getspecific
13432 if test "$ac_res" != no; then
13433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13434
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_PTHREAD_GETSPECIFIC 1
13437 _ACEOF
13438
13439 fi
13440
13441 fi
13442
13443
13444 # Check whether --with-udis86 was given.
13445 if test "${with_udis86+set}" = set; then
13446   withval=$with_udis86;
13447       USE_UDIS86=1
13448
13449       case "$withval" in
13450         /usr/lib|yes) ;;
13451         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13452       esac
13453
13454 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13455 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-ludis86  $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467
13468 /* Override any GCC internal prototype to avoid an error.
13469    Use char because int might match the return type of a GCC
13470    builtin and then its argument prototype would still apply.  */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char ud_init ();
13475 int
13476 main ()
13477 {
13478 return ud_init ();
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (ac_try="$ac_link"
13485 case "(($ac_try" in
13486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487   *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490   (eval "$ac_link") 2>conftest.er1
13491   ac_status=$?
13492   grep -v '^ *+' conftest.er1 >conftest.err
13493   rm -f conftest.er1
13494   cat conftest.err >&5
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } &&
13497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13498   { (case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_try") 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; } &&
13507          { ac_try='test -s conftest$ac_exeext'
13508   { (case "(($ac_try" in
13509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510   *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513   (eval "$ac_try") 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517   ac_cv_lib_udis86_ud_init=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522         ac_cv_lib_udis86_ud_init=no
13523 fi
13524
13525 rm -f core conftest.err conftest.$ac_objext \
13526       conftest$ac_exeext conftest.$ac_ext
13527 LIBS=$ac_check_lib_save_LIBS
13528 fi
13529 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13530 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13531 if test $ac_cv_lib_udis86_ud_init = yes; then
13532   cat >>confdefs.h <<_ACEOF
13533 #define HAVE_LIBUDIS86 1
13534 _ACEOF
13535
13536   LIBS="-ludis86 $LIBS"
13537
13538 else
13539
13540         echo "Error! You need to have libudis86 around."
13541         exit -1
13542
13543 fi
13544
13545
13546 else
13547   USE_UDIS86=0
13548
13549 fi
13550
13551
13552 cat >>confdefs.h <<_ACEOF
13553 #define USE_UDIS86 $USE_UDIS86
13554 _ACEOF
13555
13556
13557
13558 # Check whether --with-oprofile was given.
13559 if test "${with_oprofile+set}" = set; then
13560   withval=$with_oprofile;
13561       USE_OPROFILE=1
13562
13563       case "$withval" in
13564         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13565         no) llvm_cv_oppath=
13566             USE_OPROFILE=0
13567  ;;
13568         *) llvm_cv_oppath="${withval}/lib/oprofile"
13569            CPPFLAGS="-I${withval}/include";;
13570       esac
13571       case $llvm_cv_os_type in
13572         Linux)
13573           if test -n "$llvm_cv_oppath" ; then
13574             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13575                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13577 if test "${ac_cv_search_bfd_init+set}" = set; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580   ac_func_search_save_LIBS=$LIBS
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h.  */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h.  */
13587
13588 /* Override any GCC internal prototype to avoid an error.
13589    Use char because int might match the return type of a GCC
13590    builtin and then its argument prototype would still apply.  */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char bfd_init ();
13595 int
13596 main ()
13597 {
13598 return bfd_init ();
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 for ac_lib in '' bfd; do
13604   if test -z "$ac_lib"; then
13605     ac_res="none required"
13606   else
13607     ac_res=-l$ac_lib
13608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13609   fi
13610   rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617   (eval "$ac_link") 2>conftest.er1
13618   ac_status=$?
13619   grep -v '^ *+' conftest.er1 >conftest.err
13620   rm -f conftest.er1
13621   cat conftest.err >&5
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } &&
13624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13625   { (case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630   (eval "$ac_try") 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; } &&
13634          { ac_try='test -s conftest$ac_exeext'
13635   { (case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_try") 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; }; then
13644   ac_cv_search_bfd_init=$ac_res
13645 else
13646   echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649
13650 fi
13651
13652 rm -f core conftest.err conftest.$ac_objext \
13653       conftest$ac_exeext
13654   if test "${ac_cv_search_bfd_init+set}" = set; then
13655   break
13656 fi
13657 done
13658 if test "${ac_cv_search_bfd_init+set}" = set; then
13659   :
13660 else
13661   ac_cv_search_bfd_init=no
13662 fi
13663 rm conftest.$ac_ext
13664 LIBS=$ac_func_search_save_LIBS
13665 fi
13666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13668 ac_res=$ac_cv_search_bfd_init
13669 if test "$ac_res" != no; then
13670   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13671
13672 fi
13673
13674             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13676 if test "${ac_cv_search_op_open_agent+set}" = set; then
13677   echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679   ac_func_search_save_LIBS=$LIBS
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686
13687 /* Override any GCC internal prototype to avoid an error.
13688    Use char because int might match the return type of a GCC
13689    builtin and then its argument prototype would still apply.  */
13690 #ifdef __cplusplus
13691 extern "C"
13692 #endif
13693 char op_open_agent ();
13694 int
13695 main ()
13696 {
13697 return op_open_agent ();
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 for ac_lib in '' opagent; do
13703   if test -z "$ac_lib"; then
13704     ac_res="none required"
13705   else
13706     ac_res=-l$ac_lib
13707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13708   fi
13709   rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716   (eval "$ac_link") 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } &&
13723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724   { (case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_try") 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; } &&
13733          { ac_try='test -s conftest$ac_exeext'
13734   { (case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_try") 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_cv_search_op_open_agent=$ac_res
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748
13749 fi
13750
13751 rm -f core conftest.err conftest.$ac_objext \
13752       conftest$ac_exeext
13753   if test "${ac_cv_search_op_open_agent+set}" = set; then
13754   break
13755 fi
13756 done
13757 if test "${ac_cv_search_op_open_agent+set}" = set; then
13758   :
13759 else
13760   ac_cv_search_op_open_agent=no
13761 fi
13762 rm conftest.$ac_ext
13763 LIBS=$ac_func_search_save_LIBS
13764 fi
13765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13767 ac_res=$ac_cv_search_op_open_agent
13768 if test "$ac_res" != no; then
13769   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13770
13771 else
13772
13773               echo "Error! You need to have libopagent around."
13774               exit -1
13775
13776 fi
13777
13778             if test "${ac_cv_header_opagent_h+set}" = set; then
13779   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13781 if test "${ac_cv_header_opagent_h+set}" = set; then
13782   echo $ECHO_N "(cached) $ECHO_C" >&6
13783 fi
13784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13786 else
13787   # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796 $ac_includes_default
13797 #include <opagent.h>
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803   *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806   (eval "$ac_compile") 2>conftest.er1
13807   ac_status=$?
13808   grep -v '^ *+' conftest.er1 >conftest.err
13809   rm -f conftest.er1
13810   cat conftest.err >&5
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); } &&
13813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814   { (case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_try") 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; } &&
13823          { ac_try='test -s conftest.$ac_objext'
13824   { (case "(($ac_try" in
13825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826   *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829   (eval "$ac_try") 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833   ac_header_compiler=yes
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838         ac_header_compiler=no
13839 fi
13840
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13843 echo "${ECHO_T}$ac_header_compiler" >&6; }
13844
13845 # Is the header present?
13846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854 #include <opagent.h>
13855 _ACEOF
13856 if { (ac_try="$ac_cpp conftest.$ac_ext"
13857 case "(($ac_try" in
13858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859   *) ac_try_echo=$ac_try;;
13860 esac
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13863   ac_status=$?
13864   grep -v '^ *+' conftest.er1 >conftest.err
13865   rm -f conftest.er1
13866   cat conftest.err >&5
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); } >/dev/null; then
13869   if test -s conftest.err; then
13870     ac_cpp_err=$ac_c_preproc_warn_flag
13871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13872   else
13873     ac_cpp_err=
13874   fi
13875 else
13876   ac_cpp_err=yes
13877 fi
13878 if test -z "$ac_cpp_err"; then
13879   ac_header_preproc=yes
13880 else
13881   echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13883
13884   ac_header_preproc=no
13885 fi
13886
13887 rm -f conftest.err conftest.$ac_ext
13888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6; }
13890
13891 # So?  What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13893   yes:no: )
13894     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13898     ac_header_preproc=yes
13899     ;;
13900   no:yes:* )
13901     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13903     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13905     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13907     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13909     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13911     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13913     ( cat <<\_ASBOX
13914 ## ------------------------------------ ##
13915 ## Report this to http://llvm.org/bugs/ ##
13916 ## ------------------------------------ ##
13917 _ASBOX
13918      ) | sed "s/^/$as_me: WARNING:     /" >&2
13919     ;;
13920 esac
13921 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13923 if test "${ac_cv_header_opagent_h+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   ac_cv_header_opagent_h=$ac_header_preproc
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13930
13931 fi
13932 if test $ac_cv_header_opagent_h = yes; then
13933   :
13934 else
13935
13936               echo "Error! You need to have opagent.h around."
13937               exit -1
13938
13939 fi
13940
13941
13942           fi ;;
13943         *)
13944           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13945 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13946    { (exit 1); exit 1; }; } ;;
13947       esac
13948
13949 else
13950
13951       USE_OPROFILE=0
13952
13953
13954 fi
13955
13956
13957 cat >>confdefs.h <<_ACEOF
13958 #define LLVM_USE_OPROFILE $USE_OPROFILE
13959 _ACEOF
13960
13961
13962
13963 # Check whether --with-intel-jitevents was given.
13964 if test "${with_intel_jitevents+set}" = set; then
13965   withval=$with_intel_jitevents;
13966        case "$withval" in
13967           yes) USE_INTEL_JITEVENTS=1
13968 ;;
13969           no)  USE_INTEL_JITEVENTS=0
13970 ;;
13971           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13972 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13973    { (exit 1); exit 1; }; };;
13974        esac
13975
13976       case $llvm_cv_os_type in
13977         Linux|Win32|Cygwin|MingW) ;;
13978         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13979 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13980    { (exit 1); exit 1; }; };;
13981       esac
13982
13983       case "$llvm_cv_target_arch" in
13984         x86|x86_64) ;;
13985         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13986 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13987    { (exit 1); exit 1; }; };;
13988       esac
13989
13990 else
13991
13992       USE_INTEL_JITEVENTS=0
13993
13994
13995 fi
13996
13997
13998 cat >>confdefs.h <<_ACEOF
13999 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14000 _ACEOF
14001
14002
14003 for ac_prog in xml2-config
14004 do
14005   # Extract the first word of "$ac_prog", so it can be a program name with args.
14006 set dummy $ac_prog; ac_word=$2
14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14009 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14010   echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012   if test -n "$XML2CONFIG"; then
14013   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14014 else
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018   IFS=$as_save_IFS
14019   test -z "$as_dir" && as_dir=.
14020   for ac_exec_ext in '' $ac_executable_extensions; do
14021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14022     ac_cv_prog_XML2CONFIG="$ac_prog"
14023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024     break 2
14025   fi
14026 done
14027 done
14028 IFS=$as_save_IFS
14029
14030 fi
14031 fi
14032 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14033 if test -n "$XML2CONFIG"; then
14034   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14035 echo "${ECHO_T}$XML2CONFIG" >&6; }
14036 else
14037   { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14039 fi
14040
14041
14042   test -n "$XML2CONFIG" && break
14043 done
14044
14045
14046 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14047 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14048 if test "x$XML2CONFIG" = "x"; then
14049  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14050 echo "${ECHO_T}xml2-config not found" >&6; }
14051 else
14052  LIBXML2_INC=`$XML2CONFIG --cflags`
14053  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14054 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14055  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14056 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-lxml2  $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068
14069 /* Override any GCC internal prototype to avoid an error.
14070    Use char because int might match the return type of a GCC
14071    builtin and then its argument prototype would still apply.  */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 char xmlReadFile ();
14076 int
14077 main ()
14078 {
14079 return xmlReadFile ();
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088   *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091   (eval "$ac_link") 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14099   { (case "(($ac_try" in
14100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101   *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104   (eval "$ac_try") 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest$ac_exeext'
14109   { (case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_try") 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; }; then
14118   ac_cv_lib_xml2_xmlReadFile=yes
14119 else
14120   echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123         ac_cv_lib_xml2_xmlReadFile=no
14124 fi
14125
14126 rm -f core conftest.err conftest.$ac_objext \
14127       conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14129 fi
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14131 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14132 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14133
14134 cat >>confdefs.h <<\_ACEOF
14135 #define CLANG_HAVE_LIBXML 1
14136 _ACEOF
14137
14138                                 LIBXML2_LIBS="-lxml2"
14139 fi
14140
14141 fi
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151 ac_header_dirent=no
14152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14153   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14154 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 #include <sys/types.h>
14166 #include <$ac_hdr>
14167
14168 int
14169 main ()
14170 {
14171 if ((DIR *) 0)
14172 return 0;
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 rm -f conftest.$ac_objext
14178 if { (ac_try="$ac_compile"
14179 case "(($ac_try" in
14180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181   *) ac_try_echo=$ac_try;;
14182 esac
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184   (eval "$ac_compile") 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192   { (case "(($ac_try" in
14193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194   *) ac_try_echo=$ac_try;;
14195 esac
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197   (eval "$ac_try") 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; } &&
14201          { ac_try='test -s conftest.$ac_objext'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; }; then
14211   eval "$as_ac_Header=yes"
14212 else
14213   echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216         eval "$as_ac_Header=no"
14217 fi
14218
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 ac_res=`eval echo '${'$as_ac_Header'}'`
14222                { echo "$as_me:$LINENO: result: $ac_res" >&5
14223 echo "${ECHO_T}$ac_res" >&6; }
14224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14225   cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14227 _ACEOF
14228
14229 ac_header_dirent=$ac_hdr; break
14230 fi
14231
14232 done
14233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14234 if test $ac_header_dirent = dirent.h; then
14235   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14237 if test "${ac_cv_search_opendir+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   ac_func_search_save_LIBS=$LIBS
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h.  */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h.  */
14247
14248 /* Override any GCC internal prototype to avoid an error.
14249    Use char because int might match the return type of a GCC
14250    builtin and then its argument prototype would still apply.  */
14251 #ifdef __cplusplus
14252 extern "C"
14253 #endif
14254 char opendir ();
14255 int
14256 main ()
14257 {
14258 return opendir ();
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 for ac_lib in '' dir; do
14264   if test -z "$ac_lib"; then
14265     ac_res="none required"
14266   else
14267     ac_res=-l$ac_lib
14268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14269   fi
14270   rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (ac_try="$ac_link"
14272 case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_link") 2>conftest.er1
14278   ac_status=$?
14279   grep -v '^ *+' conftest.er1 >conftest.err
14280   rm -f conftest.er1
14281   cat conftest.err >&5
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14285   { (case "(($ac_try" in
14286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287   *) ac_try_echo=$ac_try;;
14288 esac
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290   (eval "$ac_try") 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; } &&
14294          { ac_try='test -s conftest$ac_exeext'
14295   { (case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_try") 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; }; then
14304   ac_cv_search_opendir=$ac_res
14305 else
14306   echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309
14310 fi
14311
14312 rm -f core conftest.err conftest.$ac_objext \
14313       conftest$ac_exeext
14314   if test "${ac_cv_search_opendir+set}" = set; then
14315   break
14316 fi
14317 done
14318 if test "${ac_cv_search_opendir+set}" = set; then
14319   :
14320 else
14321   ac_cv_search_opendir=no
14322 fi
14323 rm conftest.$ac_ext
14324 LIBS=$ac_func_search_save_LIBS
14325 fi
14326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14328 ac_res=$ac_cv_search_opendir
14329 if test "$ac_res" != no; then
14330   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14331
14332 fi
14333
14334 else
14335   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14337 if test "${ac_cv_search_opendir+set}" = set; then
14338   echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340   ac_func_search_save_LIBS=$LIBS
14341 cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h.  */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h.  */
14347
14348 /* Override any GCC internal prototype to avoid an error.
14349    Use char because int might match the return type of a GCC
14350    builtin and then its argument prototype would still apply.  */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char opendir ();
14355 int
14356 main ()
14357 {
14358 return opendir ();
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 for ac_lib in '' x; do
14364   if test -z "$ac_lib"; then
14365     ac_res="none required"
14366   else
14367     ac_res=-l$ac_lib
14368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14369   fi
14370   rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_link") 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385   { (case "(($ac_try" in
14386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387   *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390   (eval "$ac_try") 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; } &&
14394          { ac_try='test -s conftest$ac_exeext'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; }; then
14404   ac_cv_search_opendir=$ac_res
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409
14410 fi
14411
14412 rm -f core conftest.err conftest.$ac_objext \
14413       conftest$ac_exeext
14414   if test "${ac_cv_search_opendir+set}" = set; then
14415   break
14416 fi
14417 done
14418 if test "${ac_cv_search_opendir+set}" = set; then
14419   :
14420 else
14421   ac_cv_search_opendir=no
14422 fi
14423 rm conftest.$ac_ext
14424 LIBS=$ac_func_search_save_LIBS
14425 fi
14426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14428 ac_res=$ac_cv_search_opendir
14429 if test "$ac_res" != no; then
14430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14431
14432 fi
14433
14434 fi
14435
14436 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14437 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_mmap_anon+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441    ac_ext=c
14442 ac_cpp='$CPP $CPPFLAGS'
14443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14446
14447   cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h.  */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h.  */
14453 #include <sys/mman.h>
14454 #include <unistd.h>
14455 #include <fcntl.h>
14456 int
14457 main ()
14458 {
14459 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471   (eval "$ac_compile") 2>conftest.er1
14472   ac_status=$?
14473   grep -v '^ *+' conftest.er1 >conftest.err
14474   rm -f conftest.er1
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14479   { (case "(($ac_try" in
14480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481   *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484   (eval "$ac_try") 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; } &&
14488          { ac_try='test -s conftest.$ac_objext'
14489   { (case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_try") 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_cv_header_mmap_anon=yes
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503         ac_cv_header_mmap_anon=no
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507   ac_ext=c
14508 ac_cpp='$CPP $CPPFLAGS'
14509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14512
14513
14514 fi
14515 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14516 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14517 if test "$ac_cv_header_mmap_anon" = yes; then
14518
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_MMAP_ANONYMOUS 1
14521 _ACEOF
14522
14523 fi
14524
14525 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14526 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_stat_broken+set}" = set; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530   cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h.  */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h.  */
14536 #include <sys/types.h>
14537 #include <sys/stat.h>
14538
14539 #if defined S_ISBLK && defined S_IFDIR
14540 # if S_ISBLK (S_IFDIR)
14541 You lose.
14542 # endif
14543 #endif
14544
14545 #if defined S_ISBLK && defined S_IFCHR
14546 # if S_ISBLK (S_IFCHR)
14547 You lose.
14548 # endif
14549 #endif
14550
14551 #if defined S_ISLNK && defined S_IFREG
14552 # if S_ISLNK (S_IFREG)
14553 You lose.
14554 # endif
14555 #endif
14556
14557 #if defined S_ISSOCK && defined S_IFREG
14558 # if S_ISSOCK (S_IFREG)
14559 You lose.
14560 # endif
14561 #endif
14562
14563 _ACEOF
14564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14565   $EGREP "You lose" >/dev/null 2>&1; then
14566   ac_cv_header_stat_broken=yes
14567 else
14568   ac_cv_header_stat_broken=no
14569 fi
14570 rm -f conftest*
14571
14572 fi
14573 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14574 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14575 if test $ac_cv_header_stat_broken = yes; then
14576
14577 cat >>confdefs.h <<\_ACEOF
14578 #define STAT_MACROS_BROKEN 1
14579 _ACEOF
14580
14581 fi
14582
14583 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14584 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14585 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594 #include <sys/types.h>
14595 #include <sys/wait.h>
14596 #ifndef WEXITSTATUS
14597 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14598 #endif
14599 #ifndef WIFEXITED
14600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14601 #endif
14602
14603 int
14604 main ()
14605 {
14606   int s;
14607   wait (&s);
14608   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620   (eval "$ac_compile") 2>conftest.er1
14621   ac_status=$?
14622   grep -v '^ *+' conftest.er1 >conftest.err
14623   rm -f conftest.er1
14624   cat conftest.err >&5
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628   { (case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_try") 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; } &&
14637          { ac_try='test -s conftest.$ac_objext'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   ac_cv_header_sys_wait_h=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652         ac_cv_header_sys_wait_h=no
14653 fi
14654
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 fi
14657 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14658 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14659 if test $ac_cv_header_sys_wait_h = yes; then
14660
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_SYS_WAIT_H 1
14663 _ACEOF
14664
14665 fi
14666
14667 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14668 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14669 if test "${ac_cv_header_time+set}" = set; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 #include <sys/types.h>
14679 #include <sys/time.h>
14680 #include <time.h>
14681
14682 int
14683 main ()
14684 {
14685 if ((struct tm *) 0)
14686 return 0;
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695   *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698   (eval "$ac_compile") 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14706   { (case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_try") 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; } &&
14715          { ac_try='test -s conftest.$ac_objext'
14716   { (case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_try") 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; }; then
14725   ac_cv_header_time=yes
14726 else
14727   echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14729
14730         ac_cv_header_time=no
14731 fi
14732
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734 fi
14735 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14736 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14737 if test $ac_cv_header_time = yes; then
14738
14739 cat >>confdefs.h <<\_ACEOF
14740 #define TIME_WITH_SYS_TIME 1
14741 _ACEOF
14742
14743 fi
14744
14745
14746
14747
14748
14749
14750
14751
14752 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14753 do
14754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 fi
14761 ac_res=`eval echo '${'$as_ac_Header'}'`
14762                { echo "$as_me:$LINENO: result: $ac_res" >&5
14763 echo "${ECHO_T}$ac_res" >&6; }
14764 else
14765   # Is the header compilable?
14766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774 $ac_includes_default
14775 #include <$ac_header>
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_compile") 2>conftest.er1
14785   ac_status=$?
14786   grep -v '^ *+' conftest.er1 >conftest.err
14787   rm -f conftest.er1
14788   cat conftest.err >&5
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } &&
14791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14792   { (case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_try") 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; } &&
14801          { ac_try='test -s conftest.$ac_objext'
14802   { (case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; }; then
14811   ac_header_compiler=yes
14812 else
14813   echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816         ac_header_compiler=no
14817 fi
14818
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 echo "${ECHO_T}$ac_header_compiler" >&6; }
14822
14823 # Is the header present?
14824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832 #include <$ac_header>
14833 _ACEOF
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } >/dev/null; then
14847   if test -s conftest.err; then
14848     ac_cpp_err=$ac_c_preproc_warn_flag
14849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14850   else
14851     ac_cpp_err=
14852   fi
14853 else
14854   ac_cpp_err=yes
14855 fi
14856 if test -z "$ac_cpp_err"; then
14857   ac_header_preproc=yes
14858 else
14859   echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862   ac_header_preproc=no
14863 fi
14864
14865 rm -f conftest.err conftest.$ac_ext
14866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14867 echo "${ECHO_T}$ac_header_preproc" >&6; }
14868
14869 # So?  What about this header?
14870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14871   yes:no: )
14872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14876     ac_header_preproc=yes
14877     ;;
14878   no:yes:* )
14879     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14882 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14886 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14891     ( cat <<\_ASBOX
14892 ## ------------------------------------ ##
14893 ## Report this to http://llvm.org/bugs/ ##
14894 ## ------------------------------------ ##
14895 _ASBOX
14896      ) | sed "s/^/$as_me: WARNING:     /" >&2
14897     ;;
14898 esac
14899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14902   echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904   eval "$as_ac_Header=\$ac_header_preproc"
14905 fi
14906 ac_res=`eval echo '${'$as_ac_Header'}'`
14907                { echo "$as_me:$LINENO: result: $ac_res" >&5
14908 echo "${ECHO_T}$ac_res" >&6; }
14909
14910 fi
14911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14912   cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14914 _ACEOF
14915
14916 fi
14917
14918 done
14919
14920
14921
14922
14923
14924
14925
14926 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14927 do
14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 fi
14935 ac_res=`eval echo '${'$as_ac_Header'}'`
14936                { echo "$as_me:$LINENO: result: $ac_res" >&5
14937 echo "${ECHO_T}$ac_res" >&6; }
14938 else
14939   # Is the header compilable?
14940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h.  */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h.  */
14948 $ac_includes_default
14949 #include <$ac_header>
14950 _ACEOF
14951 rm -f conftest.$ac_objext
14952 if { (ac_try="$ac_compile"
14953 case "(($ac_try" in
14954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955   *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958   (eval "$ac_compile") 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
14962   cat conftest.err >&5
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } &&
14965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14966   { (case "(($ac_try" in
14967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968   *) ac_try_echo=$ac_try;;
14969 esac
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971   (eval "$ac_try") 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; } &&
14975          { ac_try='test -s conftest.$ac_objext'
14976   { (case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_try") 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985   ac_header_compiler=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990         ac_header_compiler=no
14991 fi
14992
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 echo "${ECHO_T}$ac_header_compiler" >&6; }
14996
14997 # Is the header present?
14998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h.  */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h.  */
15006 #include <$ac_header>
15007 _ACEOF
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15015   ac_status=$?
15016   grep -v '^ *+' conftest.er1 >conftest.err
15017   rm -f conftest.er1
15018   cat conftest.err >&5
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); } >/dev/null; then
15021   if test -s conftest.err; then
15022     ac_cpp_err=$ac_c_preproc_warn_flag
15023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15024   else
15025     ac_cpp_err=
15026   fi
15027 else
15028   ac_cpp_err=yes
15029 fi
15030 if test -z "$ac_cpp_err"; then
15031   ac_header_preproc=yes
15032 else
15033   echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036   ac_header_preproc=no
15037 fi
15038
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15042
15043 # So?  What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15045   yes:no: )
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050     ac_header_preproc=yes
15051     ;;
15052   no:yes:* )
15053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15065     ( cat <<\_ASBOX
15066 ## ------------------------------------ ##
15067 ## Report this to http://llvm.org/bugs/ ##
15068 ## ------------------------------------ ##
15069 _ASBOX
15070      ) | sed "s/^/$as_me: WARNING:     /" >&2
15071     ;;
15072 esac
15073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078   eval "$as_ac_Header=\$ac_header_preproc"
15079 fi
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081                { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083
15084 fi
15085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15086   cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15088 _ACEOF
15089
15090 fi
15091
15092 done
15093
15094
15095
15096 for ac_header in utime.h windows.h
15097 do
15098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 fi
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106                { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15108 else
15109   # Is the header compilable?
15110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15112 cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118 $ac_includes_default
15119 #include <$ac_header>
15120 _ACEOF
15121 rm -f conftest.$ac_objext
15122 if { (ac_try="$ac_compile"
15123 case "(($ac_try" in
15124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125   *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128   (eval "$ac_compile") 2>conftest.er1
15129   ac_status=$?
15130   grep -v '^ *+' conftest.er1 >conftest.err
15131   rm -f conftest.er1
15132   cat conftest.err >&5
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } &&
15135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15136   { (case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_try") 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; } &&
15145          { ac_try='test -s conftest.$ac_objext'
15146   { (case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151   (eval "$ac_try") 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; }; then
15155   ac_header_compiler=yes
15156 else
15157   echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15159
15160         ac_header_compiler=no
15161 fi
15162
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15165 echo "${ECHO_T}$ac_header_compiler" >&6; }
15166
15167 # Is the header present?
15168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h.  */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h.  */
15176 #include <$ac_header>
15177 _ACEOF
15178 if { (ac_try="$ac_cpp conftest.$ac_ext"
15179 case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15185   ac_status=$?
15186   grep -v '^ *+' conftest.er1 >conftest.err
15187   rm -f conftest.er1
15188   cat conftest.err >&5
15189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190   (exit $ac_status); } >/dev/null; then
15191   if test -s conftest.err; then
15192     ac_cpp_err=$ac_c_preproc_warn_flag
15193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15194   else
15195     ac_cpp_err=
15196   fi
15197 else
15198   ac_cpp_err=yes
15199 fi
15200 if test -z "$ac_cpp_err"; then
15201   ac_header_preproc=yes
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206   ac_header_preproc=no
15207 fi
15208
15209 rm -f conftest.err conftest.$ac_ext
15210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15211 echo "${ECHO_T}$ac_header_preproc" >&6; }
15212
15213 # So?  What about this header?
15214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15215   yes:no: )
15216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15220     ac_header_preproc=yes
15221     ;;
15222   no:yes:* )
15223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15235     ( cat <<\_ASBOX
15236 ## ------------------------------------ ##
15237 ## Report this to http://llvm.org/bugs/ ##
15238 ## ------------------------------------ ##
15239 _ASBOX
15240      ) | sed "s/^/$as_me: WARNING:     /" >&2
15241     ;;
15242 esac
15243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15246   echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248   eval "$as_ac_Header=\$ac_header_preproc"
15249 fi
15250 ac_res=`eval echo '${'$as_ac_Header'}'`
15251                { echo "$as_me:$LINENO: result: $ac_res" >&5
15252 echo "${ECHO_T}$ac_res" >&6; }
15253
15254 fi
15255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15256   cat >>confdefs.h <<_ACEOF
15257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15258 _ACEOF
15259
15260 fi
15261
15262 done
15263
15264
15265
15266
15267
15268
15269 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15270 do
15271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15273   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 fi
15278 ac_res=`eval echo '${'$as_ac_Header'}'`
15279                { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15281 else
15282   # Is the header compilable?
15283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h.  */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h.  */
15291 $ac_includes_default
15292 #include <$ac_header>
15293 _ACEOF
15294 rm -f conftest.$ac_objext
15295 if { (ac_try="$ac_compile"
15296 case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301   (eval "$ac_compile") 2>conftest.er1
15302   ac_status=$?
15303   grep -v '^ *+' conftest.er1 >conftest.err
15304   rm -f conftest.er1
15305   cat conftest.err >&5
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } &&
15308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15309   { (case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_try") 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; } &&
15318          { ac_try='test -s conftest.$ac_objext'
15319   { (case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_try") 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; }; then
15328   ac_header_compiler=yes
15329 else
15330   echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333         ac_header_compiler=no
15334 fi
15335
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 echo "${ECHO_T}$ac_header_compiler" >&6; }
15339
15340 # Is the header present?
15341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h.  */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h.  */
15349 #include <$ac_header>
15350 _ACEOF
15351 if { (ac_try="$ac_cpp conftest.$ac_ext"
15352 case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } >/dev/null; then
15364   if test -s conftest.err; then
15365     ac_cpp_err=$ac_c_preproc_warn_flag
15366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15367   else
15368     ac_cpp_err=
15369   fi
15370 else
15371   ac_cpp_err=yes
15372 fi
15373 if test -z "$ac_cpp_err"; then
15374   ac_header_preproc=yes
15375 else
15376   echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379   ac_header_preproc=no
15380 fi
15381
15382 rm -f conftest.err conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384 echo "${ECHO_T}$ac_header_preproc" >&6; }
15385
15386 # So?  What about this header?
15387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15388   yes:no: )
15389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393     ac_header_preproc=yes
15394     ;;
15395   no:yes:* )
15396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15408     ( cat <<\_ASBOX
15409 ## ------------------------------------ ##
15410 ## Report this to http://llvm.org/bugs/ ##
15411 ## ------------------------------------ ##
15412 _ASBOX
15413      ) | sed "s/^/$as_me: WARNING:     /" >&2
15414     ;;
15415 esac
15416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419   echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421   eval "$as_ac_Header=\$ac_header_preproc"
15422 fi
15423 ac_res=`eval echo '${'$as_ac_Header'}'`
15424                { echo "$as_me:$LINENO: result: $ac_res" >&5
15425 echo "${ECHO_T}$ac_res" >&6; }
15426
15427 fi
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429   cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15431 _ACEOF
15432
15433 fi
15434
15435 done
15436
15437
15438
15439
15440
15441 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15442 do
15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 fi
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451                { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 else
15454   # Is the header compilable?
15455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15458 /* confdefs.h.  */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h.  */
15463 $ac_includes_default
15464 #include <$ac_header>
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_compile") 2>conftest.er1
15474   ac_status=$?
15475   grep -v '^ *+' conftest.er1 >conftest.err
15476   rm -f conftest.er1
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481   { (case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_try") 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; } &&
15490          { ac_try='test -s conftest.$ac_objext'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_header_compiler=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505         ac_header_compiler=no
15506 fi
15507
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15511
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h.  */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h.  */
15521 #include <$ac_header>
15522 _ACEOF
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } >/dev/null; then
15536   if test -s conftest.err; then
15537     ac_cpp_err=$ac_c_preproc_warn_flag
15538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15539   else
15540     ac_cpp_err=
15541   fi
15542 else
15543   ac_cpp_err=yes
15544 fi
15545 if test -z "$ac_cpp_err"; then
15546   ac_header_preproc=yes
15547 else
15548   echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15550
15551   ac_header_preproc=no
15552 fi
15553
15554 rm -f conftest.err conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15556 echo "${ECHO_T}$ac_header_preproc" >&6; }
15557
15558 # So?  What about this header?
15559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15560   yes:no: )
15561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15565     ac_header_preproc=yes
15566     ;;
15567   no:yes:* )
15568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580     ( cat <<\_ASBOX
15581 ## ------------------------------------ ##
15582 ## Report this to http://llvm.org/bugs/ ##
15583 ## ------------------------------------ ##
15584 _ASBOX
15585      ) | sed "s/^/$as_me: WARNING:     /" >&2
15586     ;;
15587 esac
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   eval "$as_ac_Header=\$ac_header_preproc"
15594 fi
15595 ac_res=`eval echo '${'$as_ac_Header'}'`
15596                { echo "$as_me:$LINENO: result: $ac_res" >&5
15597 echo "${ECHO_T}$ac_res" >&6; }
15598
15599 fi
15600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15601   cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15603 _ACEOF
15604
15605 fi
15606
15607 done
15608
15609
15610 for ac_header in valgrind/valgrind.h
15611 do
15612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15614   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 fi
15619 ac_res=`eval echo '${'$as_ac_Header'}'`
15620                { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 else
15623   # Is the header compilable?
15624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 $ac_includes_default
15633 #include <$ac_header>
15634 _ACEOF
15635 rm -f conftest.$ac_objext
15636 if { (ac_try="$ac_compile"
15637 case "(($ac_try" in
15638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639   *) ac_try_echo=$ac_try;;
15640 esac
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642   (eval "$ac_compile") 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } &&
15649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15650   { (case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_try") 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; } &&
15659          { ac_try='test -s conftest.$ac_objext'
15660   { (case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_try") 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; }; then
15669   ac_header_compiler=yes
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674         ac_header_compiler=no
15675 fi
15676
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15679 echo "${ECHO_T}$ac_header_compiler" >&6; }
15680
15681 # Is the header present?
15682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690 #include <$ac_header>
15691 _ACEOF
15692 if { (ac_try="$ac_cpp conftest.$ac_ext"
15693 case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15699   ac_status=$?
15700   grep -v '^ *+' conftest.er1 >conftest.err
15701   rm -f conftest.er1
15702   cat conftest.err >&5
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } >/dev/null; then
15705   if test -s conftest.err; then
15706     ac_cpp_err=$ac_c_preproc_warn_flag
15707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15708   else
15709     ac_cpp_err=
15710   fi
15711 else
15712   ac_cpp_err=yes
15713 fi
15714 if test -z "$ac_cpp_err"; then
15715   ac_header_preproc=yes
15716 else
15717   echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15719
15720   ac_header_preproc=no
15721 fi
15722
15723 rm -f conftest.err conftest.$ac_ext
15724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15725 echo "${ECHO_T}$ac_header_preproc" >&6; }
15726
15727 # So?  What about this header?
15728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15729   yes:no: )
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15734     ac_header_preproc=yes
15735     ;;
15736   no:yes:* )
15737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15749     ( cat <<\_ASBOX
15750 ## ------------------------------------ ##
15751 ## Report this to http://llvm.org/bugs/ ##
15752 ## ------------------------------------ ##
15753 _ASBOX
15754      ) | sed "s/^/$as_me: WARNING:     /" >&2
15755     ;;
15756 esac
15757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   eval "$as_ac_Header=\$ac_header_preproc"
15763 fi
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765                { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15767
15768 fi
15769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15770   cat >>confdefs.h <<_ACEOF
15771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15772 _ACEOF
15773
15774 fi
15775
15776 done
15777
15778
15779 for ac_header in fenv.h
15780 do
15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 fi
15788 ac_res=`eval echo '${'$as_ac_Header'}'`
15789                { echo "$as_me:$LINENO: result: $ac_res" >&5
15790 echo "${ECHO_T}$ac_res" >&6; }
15791 else
15792   # Is the header compilable?
15793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801 $ac_includes_default
15802 #include <$ac_header>
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_compile") 2>conftest.er1
15812   ac_status=$?
15813   grep -v '^ *+' conftest.er1 >conftest.err
15814   rm -f conftest.er1
15815   cat conftest.err >&5
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819   { (case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824   (eval "$ac_try") 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; } &&
15828          { ac_try='test -s conftest.$ac_objext'
15829   { (case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_try") 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; }; then
15838   ac_header_compiler=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843         ac_header_compiler=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15849
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 #include <$ac_header>
15860 _ACEOF
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } >/dev/null; then
15874   if test -s conftest.err; then
15875     ac_cpp_err=$ac_c_preproc_warn_flag
15876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15877   else
15878     ac_cpp_err=
15879   fi
15880 else
15881   ac_cpp_err=yes
15882 fi
15883 if test -z "$ac_cpp_err"; then
15884   ac_header_preproc=yes
15885 else
15886   echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15888
15889   ac_header_preproc=no
15890 fi
15891
15892 rm -f conftest.err conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15894 echo "${ECHO_T}$ac_header_preproc" >&6; }
15895
15896 # So?  What about this header?
15897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15898   yes:no: )
15899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15903     ac_header_preproc=yes
15904     ;;
15905   no:yes:* )
15906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15918     ( cat <<\_ASBOX
15919 ## ------------------------------------ ##
15920 ## Report this to http://llvm.org/bugs/ ##
15921 ## ------------------------------------ ##
15922 _ASBOX
15923      ) | sed "s/^/$as_me: WARNING:     /" >&2
15924     ;;
15925 esac
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   eval "$as_ac_Header=\$ac_header_preproc"
15932 fi
15933 ac_res=`eval echo '${'$as_ac_Header'}'`
15934                { echo "$as_me:$LINENO: result: $ac_res" >&5
15935 echo "${ECHO_T}$ac_res" >&6; }
15936
15937 fi
15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15939   cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15941 _ACEOF
15942
15943 fi
15944
15945 done
15946
15947 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15948 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15949 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958 #include <fenv.h>
15959
15960 int
15961 main ()
15962 {
15963 #ifndef FE_ALL_EXCEPT
15964   char *p = (char *) FE_ALL_EXCEPT;
15965   return !p;
15966 #endif
15967
15968   ;
15969   return 0;
15970 }
15971 _ACEOF
15972 rm -f conftest.$ac_objext
15973 if { (ac_try="$ac_compile"
15974 case "(($ac_try" in
15975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976   *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979   (eval "$ac_compile") 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } &&
15986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15987   { (case "(($ac_try" in
15988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989   *) ac_try_echo=$ac_try;;
15990 esac
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992   (eval "$ac_try") 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; } &&
15996          { ac_try='test -s conftest.$ac_objext'
15997   { (case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002   (eval "$ac_try") 2>&5
16003   ac_status=$?
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); }; }; then
16006   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16007 else
16008   echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011         ac_cv_have_decl_FE_ALL_EXCEPT=no
16012 fi
16013
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16017 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16018 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16019
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_DECL_FE_ALL_EXCEPT 1
16022 _ACEOF
16023
16024
16025 else
16026   cat >>confdefs.h <<_ACEOF
16027 #define HAVE_DECL_FE_ALL_EXCEPT 0
16028 _ACEOF
16029
16030
16031 fi
16032 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16033 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16034 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037   cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 #include <fenv.h>
16044
16045 int
16046 main ()
16047 {
16048 #ifndef FE_INEXACT
16049   char *p = (char *) FE_INEXACT;
16050   return !p;
16051 #endif
16052
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_compile") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } &&
16071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072   { (case "(($ac_try" in
16073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074   *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077   (eval "$ac_try") 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; } &&
16081          { ac_try='test -s conftest.$ac_objext'
16082   { (case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_try") 2>&5
16088   ac_status=$?
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); }; }; then
16091   ac_cv_have_decl_FE_INEXACT=yes
16092 else
16093   echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096         ac_cv_have_decl_FE_INEXACT=no
16097 fi
16098
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 fi
16101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16102 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16103 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16104
16105 cat >>confdefs.h <<_ACEOF
16106 #define HAVE_DECL_FE_INEXACT 1
16107 _ACEOF
16108
16109
16110 else
16111   cat >>confdefs.h <<_ACEOF
16112 #define HAVE_DECL_FE_INEXACT 0
16113 _ACEOF
16114
16115
16116 fi
16117
16118
16119 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16120
16121 for ac_header in pthread.h
16122 do
16123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 fi
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131                { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16133 else
16134   # Is the header compilable?
16135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16137 cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h.  */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h.  */
16143 $ac_includes_default
16144 #include <$ac_header>
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_compile") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161   { (case "(($ac_try" in
16162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163   *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166   (eval "$ac_try") 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; } &&
16170          { ac_try='test -s conftest.$ac_objext'
16171   { (case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_try") 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180   ac_header_compiler=yes
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185         ac_header_compiler=no
16186 fi
16187
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190 echo "${ECHO_T}$ac_header_compiler" >&6; }
16191
16192 # Is the header present?
16193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201 #include <$ac_header>
16202 _ACEOF
16203 if { (ac_try="$ac_cpp conftest.$ac_ext"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } >/dev/null; then
16216   if test -s conftest.err; then
16217     ac_cpp_err=$ac_c_preproc_warn_flag
16218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16219   else
16220     ac_cpp_err=
16221   fi
16222 else
16223   ac_cpp_err=yes
16224 fi
16225 if test -z "$ac_cpp_err"; then
16226   ac_header_preproc=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231   ac_header_preproc=no
16232 fi
16233
16234 rm -f conftest.err conftest.$ac_ext
16235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16236 echo "${ECHO_T}$ac_header_preproc" >&6; }
16237
16238 # So?  What about this header?
16239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16240   yes:no: )
16241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16245     ac_header_preproc=yes
16246     ;;
16247   no:yes:* )
16248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16260     ( cat <<\_ASBOX
16261 ## ------------------------------------ ##
16262 ## Report this to http://llvm.org/bugs/ ##
16263 ## ------------------------------------ ##
16264 _ASBOX
16265      ) | sed "s/^/$as_me: WARNING:     /" >&2
16266     ;;
16267 esac
16268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273   eval "$as_ac_Header=\$ac_header_preproc"
16274 fi
16275 ac_res=`eval echo '${'$as_ac_Header'}'`
16276                { echo "$as_me:$LINENO: result: $ac_res" >&5
16277 echo "${ECHO_T}$ac_res" >&6; }
16278
16279 fi
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281   cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16283 _ACEOF
16284  HAVE_PTHREAD=1
16285
16286 else
16287   HAVE_PTHREAD=0
16288
16289 fi
16290
16291 done
16292
16293 else
16294   HAVE_PTHREAD=0
16295
16296 fi
16297
16298 if test "$llvm_cv_enable_libffi" = "yes" ; then
16299
16300
16301 for ac_header in ffi.h ffi/ffi.h
16302 do
16303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 fi
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311                { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16313 else
16314   # Is the header compilable?
16315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 $ac_includes_default
16324 #include <$ac_header>
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (ac_try="$ac_compile"
16328 case "(($ac_try" in
16329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330   *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333   (eval "$ac_compile") 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16341   { (case "(($ac_try" in
16342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343   *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346   (eval "$ac_try") 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; } &&
16350          { ac_try='test -s conftest.$ac_objext'
16351   { (case "(($ac_try" in
16352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353   *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   ac_header_compiler=yes
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365         ac_header_compiler=no
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370 echo "${ECHO_T}$ac_header_compiler" >&6; }
16371
16372 # Is the header present?
16373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 #include <$ac_header>
16382 _ACEOF
16383 if { (ac_try="$ac_cpp conftest.$ac_ext"
16384 case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } >/dev/null; then
16396   if test -s conftest.err; then
16397     ac_cpp_err=$ac_c_preproc_warn_flag
16398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16399   else
16400     ac_cpp_err=
16401   fi
16402 else
16403   ac_cpp_err=yes
16404 fi
16405 if test -z "$ac_cpp_err"; then
16406   ac_header_preproc=yes
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411   ac_header_preproc=no
16412 fi
16413
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16417
16418 # So?  What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420   yes:no: )
16421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425     ac_header_preproc=yes
16426     ;;
16427   no:yes:* )
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440     ( cat <<\_ASBOX
16441 ## ------------------------------------ ##
16442 ## Report this to http://llvm.org/bugs/ ##
16443 ## ------------------------------------ ##
16444 _ASBOX
16445      ) | sed "s/^/$as_me: WARNING:     /" >&2
16446     ;;
16447 esac
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   eval "$as_ac_Header=\$ac_header_preproc"
16454 fi
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456                { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458
16459 fi
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461   cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466
16467 done
16468
16469 fi
16470
16471
16472 for ac_header in CrashReporterClient.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
16636 fi
16637
16638 done
16639
16640
16641 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16642 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16644
16645   /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650
16651     extern const char *__crashreporter_info__;
16652     int main() {
16653       __crashreporter_info__ = "test";
16654       return 0;
16655     }
16656
16657
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (ac_try="$ac_link"
16661 case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_link") 2>conftest.er1
16667   ac_status=$?
16668   grep -v '^ *+' conftest.er1 >conftest.err
16669   rm -f conftest.er1
16670   cat conftest.err >&5
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } &&
16673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; } &&
16683          { ac_try='test -s conftest$ac_exeext'
16684   { (case "(($ac_try" in
16685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686   *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689   (eval "$ac_try") 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; }; then
16693
16694   { echo "$as_me:$LINENO: result: yes" >&5
16695 echo "${ECHO_T}yes" >&6; }
16696
16697 cat >>confdefs.h <<\_ACEOF
16698 #define HAVE_CRASHREPORTER_INFO 1
16699 _ACEOF
16700
16701
16702 else
16703   echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706
16707   { echo "$as_me:$LINENO: result: no" >&5
16708 echo "${ECHO_T}no" >&6; }
16709
16710 cat >>confdefs.h <<\_ACEOF
16711 #define HAVE_CRASHREPORTER_INFO 0
16712 _ACEOF
16713
16714
16715 fi
16716
16717 rm -f core conftest.err conftest.$ac_objext \
16718       conftest$ac_exeext conftest.$ac_ext
16719
16720
16721
16722   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16723 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16724 if test "${ac_cv_huge_val_sanity+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727
16728     ac_ext=cpp
16729 ac_cpp='$CXXCPP $CPPFLAGS'
16730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16733
16734     ac_save_CXXFLAGS=$CXXFLAGS
16735     CXXFLAGS="$CXXFLAGS -pedantic"
16736     if test "$cross_compiling" = yes; then
16737   ac_cv_huge_val_sanity=yes
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 #include <math.h>
16746 int
16747 main ()
16748 {
16749 double x = HUGE_VAL; return x != x;
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761   (eval "$ac_link") 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16765   { (case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_try") 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ac_cv_huge_val_sanity=yes
16775 else
16776   echo "$as_me: program exited with status $ac_status" >&5
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ( exit $ac_status )
16781 ac_cv_huge_val_sanity=no
16782 fi
16783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16784 fi
16785
16786
16787     CXXFLAGS=$ac_save_CXXFLAGS
16788     ac_ext=c
16789 ac_cpp='$CPP $CPPFLAGS'
16790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16793
16794
16795 fi
16796 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16797 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16798   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16799
16800
16801 { echo "$as_me:$LINENO: checking for pid_t" >&5
16802 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16803 if test "${ac_cv_type_pid_t+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h.  */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h.  */
16812 $ac_includes_default
16813 typedef pid_t ac__type_new_;
16814 int
16815 main ()
16816 {
16817 if ((ac__type_new_ *) 0)
16818   return 0;
16819 if (sizeof (ac__type_new_))
16820   return 0;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_compile") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } &&
16839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840   { (case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_try") 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; } &&
16849          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; }; then
16859   ac_cv_type_pid_t=yes
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864         ac_cv_type_pid_t=no
16865 fi
16866
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 fi
16869 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16870 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16871 if test $ac_cv_type_pid_t = yes; then
16872   :
16873 else
16874
16875 cat >>confdefs.h <<_ACEOF
16876 #define pid_t int
16877 _ACEOF
16878
16879 fi
16880
16881 { echo "$as_me:$LINENO: checking for size_t" >&5
16882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16883 if test "${ac_cv_type_size_t+set}" = set; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892 $ac_includes_default
16893 typedef size_t ac__type_new_;
16894 int
16895 main ()
16896 {
16897 if ((ac__type_new_ *) 0)
16898   return 0;
16899 if (sizeof (ac__type_new_))
16900   return 0;
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 rm -f conftest.$ac_objext
16906 if { (ac_try="$ac_compile"
16907 case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_compile") 2>conftest.er1
16913   ac_status=$?
16914   grep -v '^ *+' conftest.er1 >conftest.err
16915   rm -f conftest.er1
16916   cat conftest.err >&5
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } &&
16919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16920   { (case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_try") 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; } &&
16929          { ac_try='test -s conftest.$ac_objext'
16930   { (case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_try") 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   ac_cv_type_size_t=yes
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944         ac_cv_type_size_t=no
16945 fi
16946
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 fi
16949 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16950 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16951 if test $ac_cv_type_size_t = yes; then
16952   :
16953 else
16954
16955 cat >>confdefs.h <<_ACEOF
16956 #define size_t unsigned int
16957 _ACEOF
16958
16959 fi
16960
16961
16962 cat >>confdefs.h <<_ACEOF
16963 #define RETSIGTYPE void
16964 _ACEOF
16965
16966 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16968 if test "${ac_cv_struct_tm+set}" = set; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977 #include <sys/types.h>
16978 #include <time.h>
16979
16980 int
16981 main ()
16982 {
16983 struct tm *tp; tp->tm_sec;
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest.$ac_objext
16989 if { (ac_try="$ac_compile"
16990 case "(($ac_try" in
16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992   *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995   (eval "$ac_compile") 2>conftest.er1
16996   ac_status=$?
16997   grep -v '^ *+' conftest.er1 >conftest.err
16998   rm -f conftest.er1
16999   cat conftest.err >&5
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } &&
17002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17003   { (case "(($ac_try" in
17004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005   *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008   (eval "$ac_try") 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); }; } &&
17012          { ac_try='test -s conftest.$ac_objext'
17013   { (case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_try") 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022   ac_cv_struct_tm=time.h
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027         ac_cv_struct_tm=sys/time.h
17028 fi
17029
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 fi
17032 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17033 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17034 if test $ac_cv_struct_tm = sys/time.h; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define TM_IN_SYS_TIME 1
17038 _ACEOF
17039
17040 fi
17041
17042 { echo "$as_me:$LINENO: checking for int64_t" >&5
17043 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17044 if test "${ac_cv_type_int64_t+set}" = set; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047   cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 $ac_includes_default
17054 typedef int64_t ac__type_new_;
17055 int
17056 main ()
17057 {
17058 if ((ac__type_new_ *) 0)
17059   return 0;
17060 if (sizeof (ac__type_new_))
17061   return 0;
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (ac_try="$ac_compile"
17068 case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_compile") 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081   { (case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_try") 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; } &&
17090          { ac_try='test -s conftest.$ac_objext'
17091   { (case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_try") 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   ac_cv_type_int64_t=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105         ac_cv_type_int64_t=no
17106 fi
17107
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 fi
17110 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17111 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17112 if test $ac_cv_type_int64_t = yes; then
17113
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_INT64_T 1
17116 _ACEOF
17117
17118
17119 else
17120   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17121 echo "$as_me: error: Type int64_t required but not found" >&2;}
17122    { (exit 1); exit 1; }; }
17123 fi
17124
17125 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17126 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17127 if test "${ac_cv_type_uint64_t+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 $ac_includes_default
17137 typedef uint64_t ac__type_new_;
17138 int
17139 main ()
17140 {
17141 if ((ac__type_new_ *) 0)
17142   return 0;
17143 if (sizeof (ac__type_new_))
17144   return 0;
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext
17150 if { (ac_try="$ac_compile"
17151 case "(($ac_try" in
17152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153   *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156   (eval "$ac_compile") 2>conftest.er1
17157   ac_status=$?
17158   grep -v '^ *+' conftest.er1 >conftest.err
17159   rm -f conftest.er1
17160   cat conftest.err >&5
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); } &&
17163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164   { (case "(($ac_try" in
17165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166   *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169   (eval "$ac_try") 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; } &&
17173          { ac_try='test -s conftest.$ac_objext'
17174   { (case "(($ac_try" in
17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176   *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179   (eval "$ac_try") 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); }; }; then
17183   ac_cv_type_uint64_t=yes
17184 else
17185   echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17187
17188         ac_cv_type_uint64_t=no
17189 fi
17190
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 fi
17193 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17194 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17195 if test $ac_cv_type_uint64_t = yes; then
17196
17197 cat >>confdefs.h <<_ACEOF
17198 #define HAVE_UINT64_T 1
17199 _ACEOF
17200
17201
17202 else
17203   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17204 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17205 if test "${ac_cv_type_u_int64_t+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214 $ac_includes_default
17215 typedef u_int64_t ac__type_new_;
17216 int
17217 main ()
17218 {
17219 if ((ac__type_new_ *) 0)
17220   return 0;
17221 if (sizeof (ac__type_new_))
17222   return 0;
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext
17228 if { (ac_try="$ac_compile"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_compile") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest.$ac_objext'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   ac_cv_type_u_int64_t=yes
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         ac_cv_type_u_int64_t=no
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270 fi
17271 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17272 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17273 if test $ac_cv_type_u_int64_t = yes; then
17274
17275 cat >>confdefs.h <<_ACEOF
17276 #define HAVE_U_INT64_T 1
17277 _ACEOF
17278
17279
17280 else
17281   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17282 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17283    { (exit 1); exit 1; }; }
17284 fi
17285
17286 fi
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17298 do
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303   echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305   cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17313 #define $ac_func innocuous_$ac_func
17314
17315 /* System header to define __stub macros and hopefully few prototypes,
17316     which can conflict with char $ac_func (); below.
17317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318     <limits.h> exists even on freestanding compilers.  */
17319
17320 #ifdef __STDC__
17321 # include <limits.h>
17322 #else
17323 # include <assert.h>
17324 #endif
17325
17326 #undef $ac_func
17327
17328 /* Override any GCC internal prototype to avoid an error.
17329    Use char because int might match the return type of a GCC
17330    builtin and then its argument prototype would still apply.  */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char $ac_func ();
17335 /* The GNU C library defines this for functions which it implements
17336     to always fail with ENOSYS.  Some functions are actually named
17337     something starting with __ and the normal name is an alias.  */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 choke me
17340 #endif
17341
17342 int
17343 main ()
17344 {
17345 return $ac_func ();
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_link") 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365   { (case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_try") 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; } &&
17374          { ac_try='test -s conftest$ac_exeext'
17375   { (case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_try") 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   eval "$as_ac_var=yes"
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389         eval "$as_ac_var=no"
17390 fi
17391
17392 rm -f core conftest.err conftest.$ac_objext \
17393       conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396                { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399   cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401 _ACEOF
17402
17403 fi
17404 done
17405
17406
17407
17408
17409
17410 for ac_func in powf fmodf strtof round
17411 do
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17426 #define $ac_func innocuous_$ac_func
17427
17428 /* System header to define __stub macros and hopefully few prototypes,
17429     which can conflict with char $ac_func (); below.
17430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431     <limits.h> exists even on freestanding compilers.  */
17432
17433 #ifdef __STDC__
17434 # include <limits.h>
17435 #else
17436 # include <assert.h>
17437 #endif
17438
17439 #undef $ac_func
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442    Use char because int might match the return type of a GCC
17443    builtin and then its argument prototype would still apply.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char $ac_func ();
17448 /* The GNU C library defines this for functions which it implements
17449     to always fail with ENOSYS.  Some functions are actually named
17450     something starting with __ and the normal name is an alias.  */
17451 #if defined __stub_$ac_func || defined __stub___$ac_func
17452 choke me
17453 #endif
17454
17455 int
17456 main ()
17457 {
17458 return $ac_func ();
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467   *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470   (eval "$ac_link") 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } &&
17477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478   { (case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_try") 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; } &&
17487          { ac_try='test -s conftest$ac_exeext'
17488   { (case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493   (eval "$ac_try") 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   eval "$as_ac_var=yes"
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502         eval "$as_ac_var=no"
17503 fi
17504
17505 rm -f core conftest.err conftest.$ac_objext \
17506       conftest$ac_exeext conftest.$ac_ext
17507 fi
17508 ac_res=`eval echo '${'$as_ac_var'}'`
17509                { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_var'}'` = yes; then
17512   cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17514 _ACEOF
17515
17516 fi
17517 done
17518
17519
17520
17521
17522
17523
17524 for ac_func in log log2 log10 exp exp2
17525 do
17526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17530   echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532   cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17540 #define $ac_func innocuous_$ac_func
17541
17542 /* System header to define __stub macros and hopefully few prototypes,
17543     which can conflict with char $ac_func (); below.
17544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545     <limits.h> exists even on freestanding compilers.  */
17546
17547 #ifdef __STDC__
17548 # include <limits.h>
17549 #else
17550 # include <assert.h>
17551 #endif
17552
17553 #undef $ac_func
17554
17555 /* Override any GCC internal prototype to avoid an error.
17556    Use char because int might match the return type of a GCC
17557    builtin and then its argument prototype would still apply.  */
17558 #ifdef __cplusplus
17559 extern "C"
17560 #endif
17561 char $ac_func ();
17562 /* The GNU C library defines this for functions which it implements
17563     to always fail with ENOSYS.  Some functions are actually named
17564     something starting with __ and the normal name is an alias.  */
17565 #if defined __stub_$ac_func || defined __stub___$ac_func
17566 choke me
17567 #endif
17568
17569 int
17570 main ()
17571 {
17572 return $ac_func ();
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_link") 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592   { (case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_try") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; } &&
17601          { ac_try='test -s conftest$ac_exeext'
17602   { (case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_try") 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   eval "$as_ac_var=yes"
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616         eval "$as_ac_var=no"
17617 fi
17618
17619 rm -f core conftest.err conftest.$ac_objext \
17620       conftest$ac_exeext conftest.$ac_ext
17621 fi
17622 ac_res=`eval echo '${'$as_ac_var'}'`
17623                { echo "$as_me:$LINENO: result: $ac_res" >&5
17624 echo "${ECHO_T}$ac_res" >&6; }
17625 if test `eval echo '${'$as_ac_var'}'` = yes; then
17626   cat >>confdefs.h <<_ACEOF
17627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17628 _ACEOF
17629
17630 fi
17631 done
17632
17633
17634
17635
17636
17637
17638 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17639 do
17640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646   cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17654 #define $ac_func innocuous_$ac_func
17655
17656 /* System header to define __stub macros and hopefully few prototypes,
17657     which can conflict with char $ac_func (); below.
17658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659     <limits.h> exists even on freestanding compilers.  */
17660
17661 #ifdef __STDC__
17662 # include <limits.h>
17663 #else
17664 # include <assert.h>
17665 #endif
17666
17667 #undef $ac_func
17668
17669 /* Override any GCC internal prototype to avoid an error.
17670    Use char because int might match the return type of a GCC
17671    builtin and then its argument prototype would still apply.  */
17672 #ifdef __cplusplus
17673 extern "C"
17674 #endif
17675 char $ac_func ();
17676 /* The GNU C library defines this for functions which it implements
17677     to always fail with ENOSYS.  Some functions are actually named
17678     something starting with __ and the normal name is an alias.  */
17679 #if defined __stub_$ac_func || defined __stub___$ac_func
17680 choke me
17681 #endif
17682
17683 int
17684 main ()
17685 {
17686 return $ac_func ();
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695   *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698   (eval "$ac_link") 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } &&
17705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706   { (case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_try") 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; } &&
17715          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17725   eval "$as_ac_var=yes"
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730         eval "$as_ac_var=no"
17731 fi
17732
17733 rm -f core conftest.err conftest.$ac_objext \
17734       conftest$ac_exeext conftest.$ac_ext
17735 fi
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737                { echo "$as_me:$LINENO: result: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740   cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17742 _ACEOF
17743
17744 fi
17745 done
17746
17747
17748
17749
17750 for ac_func in isatty mkdtemp mkstemp
17751 do
17752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h.  */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h.  */
17764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17766 #define $ac_func innocuous_$ac_func
17767
17768 /* System header to define __stub macros and hopefully few prototypes,
17769     which can conflict with char $ac_func (); below.
17770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17771     <limits.h> exists even on freestanding compilers.  */
17772
17773 #ifdef __STDC__
17774 # include <limits.h>
17775 #else
17776 # include <assert.h>
17777 #endif
17778
17779 #undef $ac_func
17780
17781 /* Override any GCC internal prototype to avoid an error.
17782    Use char because int might match the return type of a GCC
17783    builtin and then its argument prototype would still apply.  */
17784 #ifdef __cplusplus
17785 extern "C"
17786 #endif
17787 char $ac_func ();
17788 /* The GNU C library defines this for functions which it implements
17789     to always fail with ENOSYS.  Some functions are actually named
17790     something starting with __ and the normal name is an alias.  */
17791 #if defined __stub_$ac_func || defined __stub___$ac_func
17792 choke me
17793 #endif
17794
17795 int
17796 main ()
17797 {
17798 return $ac_func ();
17799   ;
17800   return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext conftest$ac_exeext
17804 if { (ac_try="$ac_link"
17805 case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_link") 2>conftest.er1
17811   ac_status=$?
17812   grep -v '^ *+' conftest.er1 >conftest.err
17813   rm -f conftest.er1
17814   cat conftest.err >&5
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); } &&
17817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17818   { (case "(($ac_try" in
17819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820   *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823   (eval "$ac_try") 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; } &&
17827          { ac_try='test -s conftest$ac_exeext'
17828   { (case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_try") 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); }; }; then
17837   eval "$as_ac_var=yes"
17838 else
17839   echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842         eval "$as_ac_var=no"
17843 fi
17844
17845 rm -f core conftest.err conftest.$ac_objext \
17846       conftest$ac_exeext conftest.$ac_ext
17847 fi
17848 ac_res=`eval echo '${'$as_ac_var'}'`
17849                { echo "$as_me:$LINENO: result: $ac_res" >&5
17850 echo "${ECHO_T}$ac_res" >&6; }
17851 if test `eval echo '${'$as_ac_var'}'` = yes; then
17852   cat >>confdefs.h <<_ACEOF
17853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17854 _ACEOF
17855
17856 fi
17857 done
17858
17859
17860
17861
17862
17863
17864
17865
17866 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17867 do
17868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17872   echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874   cat >conftest.$ac_ext <<_ACEOF
17875 /* confdefs.h.  */
17876 _ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h.  */
17880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17882 #define $ac_func innocuous_$ac_func
17883
17884 /* System header to define __stub macros and hopefully few prototypes,
17885     which can conflict with char $ac_func (); below.
17886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17887     <limits.h> exists even on freestanding compilers.  */
17888
17889 #ifdef __STDC__
17890 # include <limits.h>
17891 #else
17892 # include <assert.h>
17893 #endif
17894
17895 #undef $ac_func
17896
17897 /* Override any GCC internal prototype to avoid an error.
17898    Use char because int might match the return type of a GCC
17899    builtin and then its argument prototype would still apply.  */
17900 #ifdef __cplusplus
17901 extern "C"
17902 #endif
17903 char $ac_func ();
17904 /* The GNU C library defines this for functions which it implements
17905     to always fail with ENOSYS.  Some functions are actually named
17906     something starting with __ and the normal name is an alias.  */
17907 #if defined __stub_$ac_func || defined __stub___$ac_func
17908 choke me
17909 #endif
17910
17911 int
17912 main ()
17913 {
17914 return $ac_func ();
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923   *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926   (eval "$ac_link") 2>conftest.er1
17927   ac_status=$?
17928   grep -v '^ *+' conftest.er1 >conftest.err
17929   rm -f conftest.er1
17930   cat conftest.err >&5
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); } &&
17933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17934   { (case "(($ac_try" in
17935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936   *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939   (eval "$ac_try") 2>&5
17940   ac_status=$?
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); }; } &&
17943          { ac_try='test -s conftest$ac_exeext'
17944   { (case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_try") 2>&5
17950   ac_status=$?
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); }; }; then
17953   eval "$as_ac_var=yes"
17954 else
17955   echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17957
17958         eval "$as_ac_var=no"
17959 fi
17960
17961 rm -f core conftest.err conftest.$ac_objext \
17962       conftest$ac_exeext conftest.$ac_ext
17963 fi
17964 ac_res=`eval echo '${'$as_ac_var'}'`
17965                { echo "$as_me:$LINENO: result: $ac_res" >&5
17966 echo "${ECHO_T}$ac_res" >&6; }
17967 if test `eval echo '${'$as_ac_var'}'` = yes; then
17968   cat >>confdefs.h <<_ACEOF
17969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17970 _ACEOF
17971
17972 fi
17973 done
17974
17975
17976
17977
17978
17979 for ac_func in strerror strerror_r setenv arc4random
17980 do
17981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17985   echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987   cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17995 #define $ac_func innocuous_$ac_func
17996
17997 /* System header to define __stub macros and hopefully few prototypes,
17998     which can conflict with char $ac_func (); below.
17999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000     <limits.h> exists even on freestanding compilers.  */
18001
18002 #ifdef __STDC__
18003 # include <limits.h>
18004 #else
18005 # include <assert.h>
18006 #endif
18007
18008 #undef $ac_func
18009
18010 /* Override any GCC internal prototype to avoid an error.
18011    Use char because int might match the return type of a GCC
18012    builtin and then its argument prototype would still apply.  */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 char $ac_func ();
18017 /* The GNU C library defines this for functions which it implements
18018     to always fail with ENOSYS.  Some functions are actually named
18019     something starting with __ and the normal name is an alias.  */
18020 #if defined __stub_$ac_func || defined __stub___$ac_func
18021 choke me
18022 #endif
18023
18024 int
18025 main ()
18026 {
18027 return $ac_func ();
18028   ;
18029   return 0;
18030 }
18031 _ACEOF
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (ac_try="$ac_link"
18034 case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_link") 2>conftest.er1
18040   ac_status=$?
18041   grep -v '^ *+' conftest.er1 >conftest.err
18042   rm -f conftest.er1
18043   cat conftest.err >&5
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); } &&
18046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18047   { (case "(($ac_try" in
18048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049   *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052   (eval "$ac_try") 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; } &&
18056          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18066   eval "$as_ac_var=yes"
18067 else
18068   echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071         eval "$as_ac_var=no"
18072 fi
18073
18074 rm -f core conftest.err conftest.$ac_objext \
18075       conftest$ac_exeext conftest.$ac_ext
18076 fi
18077 ac_res=`eval echo '${'$as_ac_var'}'`
18078                { echo "$as_me:$LINENO: result: $ac_res" >&5
18079 echo "${ECHO_T}$ac_res" >&6; }
18080 if test `eval echo '${'$as_ac_var'}'` = yes; then
18081   cat >>confdefs.h <<_ACEOF
18082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18083 _ACEOF
18084
18085 fi
18086 done
18087
18088
18089
18090
18091
18092 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18093 do
18094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100   cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18108 #define $ac_func innocuous_$ac_func
18109
18110 /* System header to define __stub macros and hopefully few prototypes,
18111     which can conflict with char $ac_func (); below.
18112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18113     <limits.h> exists even on freestanding compilers.  */
18114
18115 #ifdef __STDC__
18116 # include <limits.h>
18117 #else
18118 # include <assert.h>
18119 #endif
18120
18121 #undef $ac_func
18122
18123 /* Override any GCC internal prototype to avoid an error.
18124    Use char because int might match the return type of a GCC
18125    builtin and then its argument prototype would still apply.  */
18126 #ifdef __cplusplus
18127 extern "C"
18128 #endif
18129 char $ac_func ();
18130 /* The GNU C library defines this for functions which it implements
18131     to always fail with ENOSYS.  Some functions are actually named
18132     something starting with __ and the normal name is an alias.  */
18133 #if defined __stub_$ac_func || defined __stub___$ac_func
18134 choke me
18135 #endif
18136
18137 int
18138 main ()
18139 {
18140 return $ac_func ();
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_link") 2>conftest.er1
18153   ac_status=$?
18154   grep -v '^ *+' conftest.er1 >conftest.err
18155   rm -f conftest.er1
18156   cat conftest.err >&5
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } &&
18159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160   { (case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_try") 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest$ac_exeext'
18170   { (case "(($ac_try" in
18171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172   *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175   (eval "$ac_try") 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; }; then
18179   eval "$as_ac_var=yes"
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184         eval "$as_ac_var=no"
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext \
18188       conftest$ac_exeext conftest.$ac_ext
18189 fi
18190 ac_res=`eval echo '${'$as_ac_var'}'`
18191                { echo "$as_me:$LINENO: result: $ac_res" >&5
18192 echo "${ECHO_T}$ac_res" >&6; }
18193 if test `eval echo '${'$as_ac_var'}'` = yes; then
18194   cat >>confdefs.h <<_ACEOF
18195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18196 _ACEOF
18197
18198 fi
18199 done
18200
18201
18202
18203
18204
18205
18206 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18207 do
18208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h.  */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h.  */
18220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18222 #define $ac_func innocuous_$ac_func
18223
18224 /* System header to define __stub macros and hopefully few prototypes,
18225     which can conflict with char $ac_func (); below.
18226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227     <limits.h> exists even on freestanding compilers.  */
18228
18229 #ifdef __STDC__
18230 # include <limits.h>
18231 #else
18232 # include <assert.h>
18233 #endif
18234
18235 #undef $ac_func
18236
18237 /* Override any GCC internal prototype to avoid an error.
18238    Use char because int might match the return type of a GCC
18239    builtin and then its argument prototype would still apply.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char $ac_func ();
18244 /* The GNU C library defines this for functions which it implements
18245     to always fail with ENOSYS.  Some functions are actually named
18246     something starting with __ and the normal name is an alias.  */
18247 #if defined __stub_$ac_func || defined __stub___$ac_func
18248 choke me
18249 #endif
18250
18251 int
18252 main ()
18253 {
18254 return $ac_func ();
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_link") 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; } &&
18283          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18293   eval "$as_ac_var=yes"
18294 else
18295   echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298         eval "$as_ac_var=no"
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext \
18302       conftest$ac_exeext conftest.$ac_ext
18303 fi
18304 ac_res=`eval echo '${'$as_ac_var'}'`
18305                { echo "$as_me:$LINENO: result: $ac_res" >&5
18306 echo "${ECHO_T}$ac_res" >&6; }
18307 if test `eval echo '${'$as_ac_var'}'` = yes; then
18308   cat >>confdefs.h <<_ACEOF
18309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18310 _ACEOF
18311
18312 fi
18313 done
18314
18315 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18316 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18317 if test "${llvm_cv_c_printf_a+set}" = set; then
18318   echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320   ac_ext=c
18321 ac_cpp='$CPP $CPPFLAGS'
18322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18325
18326  if test "$cross_compiling" = yes; then
18327   llvmac_cv_c_printf_a=no
18328 else
18329   cat >conftest.$ac_ext <<_ACEOF
18330
18331   /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336
18337 #include <stdio.h>
18338 #include <stdlib.h>
18339
18340 int
18341 main ()
18342 {
18343
18344 volatile double A, B;
18345 char Buffer[100];
18346 A = 1;
18347 A /= 10.0;
18348 sprintf(Buffer, "%a", A);
18349 B = atof(Buffer);
18350 if (A != B)
18351   return (1);
18352 if (A != 0x1.999999999999ap-4)
18353   return (1);
18354 return (0);
18355   ;
18356   return 0;
18357 }
18358 _ACEOF
18359 rm -f conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363   *) ac_try_echo=$ac_try;;
18364 esac
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366   (eval "$ac_link") 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18370   { (case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_try") 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; }; then
18379   llvm_cv_c_printf_a=yes
18380 else
18381   echo "$as_me: program exited with status $ac_status" >&5
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ( exit $ac_status )
18386 llvmac_cv_c_printf_a=no
18387 fi
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18389 fi
18390
18391
18392  ac_ext=c
18393 ac_cpp='$CPP $CPPFLAGS'
18394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18397
18398 fi
18399 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18400 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18401  if test "$llvm_cv_c_printf_a" = "yes"; then
18402
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_PRINTF_A 1
18405 _ACEOF
18406
18407  fi
18408
18409
18410
18411   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18412 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18413 if test "${ac_cv_func_rand48+set}" = set; then
18414   echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416
18417     ac_ext=cpp
18418 ac_cpp='$CXXCPP $CPPFLAGS'
18419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18422
18423     cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429 #include <stdlib.h>
18430 int
18431 main ()
18432 {
18433 srand48(0);lrand48();drand48();
18434   ;
18435   return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext
18439 if { (ac_try="$ac_compile"
18440 case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_compile") 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453   { (case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_try") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest.$ac_objext'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   ac_cv_func_rand48=yes
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477         ac_cv_func_rand48=no
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481     ac_ext=c
18482 ac_cpp='$CPP $CPPFLAGS'
18483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486
18487
18488 fi
18489 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18490 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18491
18492 if test "$ac_cv_func_rand48" = "yes" ; then
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_RAND48 1
18496 _ACEOF
18497
18498 fi
18499
18500
18501 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18502 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18503 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512 $ac_includes_default
18513 int
18514 main ()
18515 {
18516 #ifndef strerror_s
18517   char *p = (char *) strerror_s;
18518   return !p;
18519 #endif
18520
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext
18526 if { (ac_try="$ac_compile"
18527 case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_compile") 2>conftest.er1
18533   ac_status=$?
18534   grep -v '^ *+' conftest.er1 >conftest.err
18535   rm -f conftest.er1
18536   cat conftest.err >&5
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } &&
18539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540   { (case "(($ac_try" in
18541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542   *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545   (eval "$ac_try") 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; } &&
18549          { ac_try='test -s conftest.$ac_objext'
18550   { (case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_try") 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   ac_cv_have_decl_strerror_s=yes
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564         ac_cv_have_decl_strerror_s=no
18565 fi
18566
18567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18568 fi
18569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18570 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18571 if test $ac_cv_have_decl_strerror_s = yes; then
18572
18573 cat >>confdefs.h <<_ACEOF
18574 #define HAVE_DECL_STRERROR_S 1
18575 _ACEOF
18576
18577
18578 else
18579   cat >>confdefs.h <<_ACEOF
18580 #define HAVE_DECL_STRERROR_S 0
18581 _ACEOF
18582
18583
18584 fi
18585
18586
18587
18588 if test "$llvm_cv_os_type" = "MingW" ; then
18589   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18590 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18591 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18592   echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594   ac_check_lib_save_LIBS=$LIBS
18595 LIBS="-lgcc  $LIBS"
18596 cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h.  */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h.  */
18602
18603 /* Override any GCC internal prototype to avoid an error.
18604    Use char because int might match the return type of a GCC
18605    builtin and then its argument prototype would still apply.  */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 char _alloca ();
18610 int
18611 main ()
18612 {
18613 return _alloca ();
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (ac_try="$ac_link"
18620 case "(($ac_try" in
18621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622   *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625   (eval "$ac_link") 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } &&
18632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18633   { (case "(($ac_try" in
18634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635   *) ac_try_echo=$ac_try;;
18636 esac
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638   (eval "$ac_try") 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; } &&
18642          { ac_try='test -s conftest$ac_exeext'
18643   { (case "(($ac_try" in
18644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645   *) ac_try_echo=$ac_try;;
18646 esac
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648   (eval "$ac_try") 2>&5
18649   ac_status=$?
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); }; }; then
18652   ac_cv_lib_gcc__alloca=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_lib_gcc__alloca=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext \
18661       conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18663 fi
18664 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18665 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18666 if test $ac_cv_lib_gcc__alloca = yes; then
18667
18668 cat >>confdefs.h <<\_ACEOF
18669 #define HAVE__ALLOCA 1
18670 _ACEOF
18671
18672 fi
18673
18674   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18675 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18676 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   ac_check_lib_save_LIBS=$LIBS
18680 LIBS="-lgcc  $LIBS"
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h.  */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h.  */
18687
18688 /* Override any GCC internal prototype to avoid an error.
18689    Use char because int might match the return type of a GCC
18690    builtin and then its argument prototype would still apply.  */
18691 #ifdef __cplusplus
18692 extern "C"
18693 #endif
18694 char __alloca ();
18695 int
18696 main ()
18697 {
18698 return __alloca ();
18699   ;
18700   return 0;
18701 }
18702 _ACEOF
18703 rm -f conftest.$ac_objext conftest$ac_exeext
18704 if { (ac_try="$ac_link"
18705 case "(($ac_try" in
18706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707   *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710   (eval "$ac_link") 2>conftest.er1
18711   ac_status=$?
18712   grep -v '^ *+' conftest.er1 >conftest.err
18713   rm -f conftest.er1
18714   cat conftest.err >&5
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); } &&
18717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718   { (case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_try") 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; } &&
18727          { ac_try='test -s conftest$ac_exeext'
18728   { (case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_try") 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; }; then
18737   ac_cv_lib_gcc___alloca=yes
18738 else
18739   echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18741
18742         ac_cv_lib_gcc___alloca=no
18743 fi
18744
18745 rm -f core conftest.err conftest.$ac_objext \
18746       conftest$ac_exeext conftest.$ac_ext
18747 LIBS=$ac_check_lib_save_LIBS
18748 fi
18749 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18750 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18751 if test $ac_cv_lib_gcc___alloca = yes; then
18752
18753 cat >>confdefs.h <<\_ACEOF
18754 #define HAVE___ALLOCA 1
18755 _ACEOF
18756
18757 fi
18758
18759   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18760 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18761 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   ac_check_lib_save_LIBS=$LIBS
18765 LIBS="-lgcc  $LIBS"
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772
18773 /* Override any GCC internal prototype to avoid an error.
18774    Use char because int might match the return type of a GCC
18775    builtin and then its argument prototype would still apply.  */
18776 #ifdef __cplusplus
18777 extern "C"
18778 #endif
18779 char __chkstk ();
18780 int
18781 main ()
18782 {
18783 return __chkstk ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_link") 2>conftest.er1
18796   ac_status=$?
18797   grep -v '^ *+' conftest.er1 >conftest.err
18798   rm -f conftest.er1
18799   cat conftest.err >&5
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); } &&
18802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18803   { (case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_try") 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; } &&
18812          { ac_try='test -s conftest$ac_exeext'
18813   { (case "(($ac_try" in
18814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815   *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818   (eval "$ac_try") 2>&5
18819   ac_status=$?
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); }; }; then
18822   ac_cv_lib_gcc___chkstk=yes
18823 else
18824   echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827         ac_cv_lib_gcc___chkstk=no
18828 fi
18829
18830 rm -f core conftest.err conftest.$ac_objext \
18831       conftest$ac_exeext conftest.$ac_ext
18832 LIBS=$ac_check_lib_save_LIBS
18833 fi
18834 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18835 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18836 if test $ac_cv_lib_gcc___chkstk = yes; then
18837
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE___CHKSTK 1
18840 _ACEOF
18841
18842 fi
18843
18844   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18845 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18846 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18847   echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849   ac_check_lib_save_LIBS=$LIBS
18850 LIBS="-lgcc  $LIBS"
18851 cat >conftest.$ac_ext <<_ACEOF
18852 /* confdefs.h.  */
18853 _ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h.  */
18857
18858 /* Override any GCC internal prototype to avoid an error.
18859    Use char because int might match the return type of a GCC
18860    builtin and then its argument prototype would still apply.  */
18861 #ifdef __cplusplus
18862 extern "C"
18863 #endif
18864 char ___chkstk ();
18865 int
18866 main ()
18867 {
18868 return ___chkstk ();
18869   ;
18870   return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877   *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880   (eval "$ac_link") 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18888   { (case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_try") 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; } &&
18897          { ac_try='test -s conftest$ac_exeext'
18898   { (case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_try") 2>&5
18904   ac_status=$?
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); }; }; then
18907   ac_cv_lib_gcc____chkstk=yes
18908 else
18909   echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912         ac_cv_lib_gcc____chkstk=no
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext \
18916       conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18918 fi
18919 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18920 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18921 if test $ac_cv_lib_gcc____chkstk = yes; then
18922
18923 cat >>confdefs.h <<\_ACEOF
18924 #define HAVE____CHKSTK 1
18925 _ACEOF
18926
18927 fi
18928
18929
18930   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18931 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18932 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lgcc  $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943
18944 /* Override any GCC internal prototype to avoid an error.
18945    Use char because int might match the return type of a GCC
18946    builtin and then its argument prototype would still apply.  */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 char __ashldi3 ();
18951 int
18952 main ()
18953 {
18954 return __ashldi3 ();
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966   (eval "$ac_link") 2>conftest.er1
18967   ac_status=$?
18968   grep -v '^ *+' conftest.er1 >conftest.err
18969   rm -f conftest.er1
18970   cat conftest.err >&5
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); } &&
18973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18974   { (case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979   (eval "$ac_try") 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; } &&
18983          { ac_try='test -s conftest$ac_exeext'
18984   { (case "(($ac_try" in
18985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986   *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989   (eval "$ac_try") 2>&5
18990   ac_status=$?
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); }; }; then
18993   ac_cv_lib_gcc___ashldi3=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998         ac_cv_lib_gcc___ashldi3=no
18999 fi
19000
19001 rm -f core conftest.err conftest.$ac_objext \
19002       conftest$ac_exeext conftest.$ac_ext
19003 LIBS=$ac_check_lib_save_LIBS
19004 fi
19005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19006 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19007 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19008
19009 cat >>confdefs.h <<\_ACEOF
19010 #define HAVE___ASHLDI3 1
19011 _ACEOF
19012
19013 fi
19014
19015   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19016 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19017 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020   ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lgcc  $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028
19029 /* Override any GCC internal prototype to avoid an error.
19030    Use char because int might match the return type of a GCC
19031    builtin and then its argument prototype would still apply.  */
19032 #ifdef __cplusplus
19033 extern "C"
19034 #endif
19035 char __ashrdi3 ();
19036 int
19037 main ()
19038 {
19039 return __ashrdi3 ();
19040   ;
19041   return 0;
19042 }
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048   *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051   (eval "$ac_link") 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } &&
19058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19059   { (case "(($ac_try" in
19060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061   *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064   (eval "$ac_try") 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; } &&
19068          { ac_try='test -s conftest$ac_exeext'
19069   { (case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_try") 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; }; then
19078   ac_cv_lib_gcc___ashrdi3=yes
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083         ac_cv_lib_gcc___ashrdi3=no
19084 fi
19085
19086 rm -f core conftest.err conftest.$ac_objext \
19087       conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19089 fi
19090 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19091 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19092 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19093
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE___ASHRDI3 1
19096 _ACEOF
19097
19098 fi
19099
19100   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19101 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19102 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19103   echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105   ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lgcc  $LIBS"
19107 cat >conftest.$ac_ext <<_ACEOF
19108 /* confdefs.h.  */
19109 _ACEOF
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h.  */
19113
19114 /* Override any GCC internal prototype to avoid an error.
19115    Use char because int might match the return type of a GCC
19116    builtin and then its argument prototype would still apply.  */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 char __divdi3 ();
19121 int
19122 main ()
19123 {
19124 return __divdi3 ();
19125   ;
19126   return 0;
19127 }
19128 _ACEOF
19129 rm -f conftest.$ac_objext conftest$ac_exeext
19130 if { (ac_try="$ac_link"
19131 case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_link") 2>conftest.er1
19137   ac_status=$?
19138   grep -v '^ *+' conftest.er1 >conftest.err
19139   rm -f conftest.er1
19140   cat conftest.err >&5
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } &&
19143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19144   { (case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149   (eval "$ac_try") 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; } &&
19153          { ac_try='test -s conftest$ac_exeext'
19154   { (case "(($ac_try" in
19155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156   *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159   (eval "$ac_try") 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; }; then
19163   ac_cv_lib_gcc___divdi3=yes
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168         ac_cv_lib_gcc___divdi3=no
19169 fi
19170
19171 rm -f core conftest.err conftest.$ac_objext \
19172       conftest$ac_exeext conftest.$ac_ext
19173 LIBS=$ac_check_lib_save_LIBS
19174 fi
19175 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19176 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19177 if test $ac_cv_lib_gcc___divdi3 = yes; then
19178
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE___DIVDI3 1
19181 _ACEOF
19182
19183 fi
19184
19185   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19186 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19187 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-lgcc  $LIBS"
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198
19199 /* Override any GCC internal prototype to avoid an error.
19200    Use char because int might match the return type of a GCC
19201    builtin and then its argument prototype would still apply.  */
19202 #ifdef __cplusplus
19203 extern "C"
19204 #endif
19205 char __fixdfdi ();
19206 int
19207 main ()
19208 {
19209 return __fixdfdi ();
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_link") 2>conftest.er1
19222   ac_status=$?
19223   grep -v '^ *+' conftest.er1 >conftest.err
19224   rm -f conftest.er1
19225   cat conftest.err >&5
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); } &&
19228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19229   { (case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_try") 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; } &&
19238          { ac_try='test -s conftest$ac_exeext'
19239   { (case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244   (eval "$ac_try") 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; }; then
19248   ac_cv_lib_gcc___fixdfdi=yes
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253         ac_cv_lib_gcc___fixdfdi=no
19254 fi
19255
19256 rm -f core conftest.err conftest.$ac_objext \
19257       conftest$ac_exeext conftest.$ac_ext
19258 LIBS=$ac_check_lib_save_LIBS
19259 fi
19260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19261 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19262 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE___FIXDFDI 1
19266 _ACEOF
19267
19268 fi
19269
19270   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19271 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19272 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lgcc  $LIBS"
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283
19284 /* Override any GCC internal prototype to avoid an error.
19285    Use char because int might match the return type of a GCC
19286    builtin and then its argument prototype would still apply.  */
19287 #ifdef __cplusplus
19288 extern "C"
19289 #endif
19290 char __fixsfdi ();
19291 int
19292 main ()
19293 {
19294 return __fixsfdi ();
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_link") 2>conftest.er1
19307   ac_status=$?
19308   grep -v '^ *+' conftest.er1 >conftest.err
19309   rm -f conftest.er1
19310   cat conftest.err >&5
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } &&
19313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19314   { (case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_try") 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; } &&
19323          { ac_try='test -s conftest$ac_exeext'
19324   { (case "(($ac_try" in
19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326   *) ac_try_echo=$ac_try;;
19327 esac
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329   (eval "$ac_try") 2>&5
19330   ac_status=$?
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); }; }; then
19333   ac_cv_lib_gcc___fixsfdi=yes
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338         ac_cv_lib_gcc___fixsfdi=no
19339 fi
19340
19341 rm -f core conftest.err conftest.$ac_objext \
19342       conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19344 fi
19345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19346 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19347 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19348
19349 cat >>confdefs.h <<\_ACEOF
19350 #define HAVE___FIXSFDI 1
19351 _ACEOF
19352
19353 fi
19354
19355   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19356 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19357 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19358   echo $ECHO_N "(cached) $ECHO_C" >&6
19359 else
19360   ac_check_lib_save_LIBS=$LIBS
19361 LIBS="-lgcc  $LIBS"
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368
19369 /* Override any GCC internal prototype to avoid an error.
19370    Use char because int might match the return type of a GCC
19371    builtin and then its argument prototype would still apply.  */
19372 #ifdef __cplusplus
19373 extern "C"
19374 #endif
19375 char __floatdidf ();
19376 int
19377 main ()
19378 {
19379 return __floatdidf ();
19380   ;
19381   return 0;
19382 }
19383 _ACEOF
19384 rm -f conftest.$ac_objext conftest$ac_exeext
19385 if { (ac_try="$ac_link"
19386 case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_link") 2>conftest.er1
19392   ac_status=$?
19393   grep -v '^ *+' conftest.er1 >conftest.err
19394   rm -f conftest.er1
19395   cat conftest.err >&5
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); } &&
19398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19399   { (case "(($ac_try" in
19400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401   *) ac_try_echo=$ac_try;;
19402 esac
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404   (eval "$ac_try") 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; } &&
19408          { ac_try='test -s conftest$ac_exeext'
19409   { (case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_try") 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; }; then
19418   ac_cv_lib_gcc___floatdidf=yes
19419 else
19420   echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423         ac_cv_lib_gcc___floatdidf=no
19424 fi
19425
19426 rm -f core conftest.err conftest.$ac_objext \
19427       conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19429 fi
19430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19431 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19432 if test $ac_cv_lib_gcc___floatdidf = yes; then
19433
19434 cat >>confdefs.h <<\_ACEOF
19435 #define HAVE___FLOATDIDF 1
19436 _ACEOF
19437
19438 fi
19439
19440   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19441 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19442 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lgcc  $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453
19454 /* Override any GCC internal prototype to avoid an error.
19455    Use char because int might match the return type of a GCC
19456    builtin and then its argument prototype would still apply.  */
19457 #ifdef __cplusplus
19458 extern "C"
19459 #endif
19460 char __lshrdi3 ();
19461 int
19462 main ()
19463 {
19464 return __lshrdi3 ();
19465   ;
19466   return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_link") 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } &&
19483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19484   { (case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_try") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; } &&
19493          { ac_try='test -s conftest$ac_exeext'
19494   { (case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_try") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   ac_cv_lib_gcc___lshrdi3=yes
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508         ac_cv_lib_gcc___lshrdi3=no
19509 fi
19510
19511 rm -f core conftest.err conftest.$ac_objext \
19512       conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19514 fi
19515 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19516 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19517 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19518
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE___LSHRDI3 1
19521 _ACEOF
19522
19523 fi
19524
19525   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19526 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19527 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19528   echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530   ac_check_lib_save_LIBS=$LIBS
19531 LIBS="-lgcc  $LIBS"
19532 cat >conftest.$ac_ext <<_ACEOF
19533 /* confdefs.h.  */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h.  */
19538
19539 /* Override any GCC internal prototype to avoid an error.
19540    Use char because int might match the return type of a GCC
19541    builtin and then its argument prototype would still apply.  */
19542 #ifdef __cplusplus
19543 extern "C"
19544 #endif
19545 char __moddi3 ();
19546 int
19547 main ()
19548 {
19549 return __moddi3 ();
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_link") 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } &&
19568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19569   { (case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_try") 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; } &&
19578          { ac_try='test -s conftest$ac_exeext'
19579   { (case "(($ac_try" in
19580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581   *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584   (eval "$ac_try") 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   ac_cv_lib_gcc___moddi3=yes
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593         ac_cv_lib_gcc___moddi3=no
19594 fi
19595
19596 rm -f core conftest.err conftest.$ac_objext \
19597       conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19601 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19602 if test $ac_cv_lib_gcc___moddi3 = yes; then
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE___MODDI3 1
19606 _ACEOF
19607
19608 fi
19609
19610   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19611 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19612 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   ac_check_lib_save_LIBS=$LIBS
19616 LIBS="-lgcc  $LIBS"
19617 cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h.  */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h.  */
19623
19624 /* Override any GCC internal prototype to avoid an error.
19625    Use char because int might match the return type of a GCC
19626    builtin and then its argument prototype would still apply.  */
19627 #ifdef __cplusplus
19628 extern "C"
19629 #endif
19630 char __udivdi3 ();
19631 int
19632 main ()
19633 {
19634 return __udivdi3 ();
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (ac_try="$ac_link"
19641 case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_link") 2>conftest.er1
19647   ac_status=$?
19648   grep -v '^ *+' conftest.er1 >conftest.err
19649   rm -f conftest.er1
19650   cat conftest.err >&5
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); } &&
19653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19654   { (case "(($ac_try" in
19655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656   *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659   (eval "$ac_try") 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; } &&
19663          { ac_try='test -s conftest$ac_exeext'
19664   { (case "(($ac_try" in
19665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666   *) ac_try_echo=$ac_try;;
19667 esac
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669   (eval "$ac_try") 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); }; }; then
19673   ac_cv_lib_gcc___udivdi3=yes
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678         ac_cv_lib_gcc___udivdi3=no
19679 fi
19680
19681 rm -f core conftest.err conftest.$ac_objext \
19682       conftest$ac_exeext conftest.$ac_ext
19683 LIBS=$ac_check_lib_save_LIBS
19684 fi
19685 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19686 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19687 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE___UDIVDI3 1
19691 _ACEOF
19692
19693 fi
19694
19695   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19696 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19697 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19698   echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700   ac_check_lib_save_LIBS=$LIBS
19701 LIBS="-lgcc  $LIBS"
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h.  */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h.  */
19708
19709 /* Override any GCC internal prototype to avoid an error.
19710    Use char because int might match the return type of a GCC
19711    builtin and then its argument prototype would still apply.  */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 char __umoddi3 ();
19716 int
19717 main ()
19718 {
19719 return __umoddi3 ();
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_link") 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19739   { (case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744   (eval "$ac_try") 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; } &&
19748          { ac_try='test -s conftest$ac_exeext'
19749   { (case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_try") 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); }; }; then
19758   ac_cv_lib_gcc___umoddi3=yes
19759 else
19760   echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763         ac_cv_lib_gcc___umoddi3=no
19764 fi
19765
19766 rm -f core conftest.err conftest.$ac_objext \
19767       conftest$ac_exeext conftest.$ac_ext
19768 LIBS=$ac_check_lib_save_LIBS
19769 fi
19770 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19771 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19772 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19773
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE___UMODDI3 1
19776 _ACEOF
19777
19778 fi
19779
19780
19781   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19782 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19783 if test "${ac_cv_lib_gcc___main+set}" = set; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lgcc  $LIBS"
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794
19795 /* Override any GCC internal prototype to avoid an error.
19796    Use char because int might match the return type of a GCC
19797    builtin and then its argument prototype would still apply.  */
19798 #ifdef __cplusplus
19799 extern "C"
19800 #endif
19801 char __main ();
19802 int
19803 main ()
19804 {
19805 return __main ();
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_link") 2>conftest.er1
19818   ac_status=$?
19819   grep -v '^ *+' conftest.er1 >conftest.err
19820   rm -f conftest.er1
19821   cat conftest.err >&5
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } &&
19824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19825   { (case "(($ac_try" in
19826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827   *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830   (eval "$ac_try") 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; } &&
19834          { ac_try='test -s conftest$ac_exeext'
19835   { (case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_try") 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); }; }; then
19844   ac_cv_lib_gcc___main=yes
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849         ac_cv_lib_gcc___main=no
19850 fi
19851
19852 rm -f core conftest.err conftest.$ac_objext \
19853       conftest$ac_exeext conftest.$ac_ext
19854 LIBS=$ac_check_lib_save_LIBS
19855 fi
19856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19857 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19858 if test $ac_cv_lib_gcc___main = yes; then
19859
19860 cat >>confdefs.h <<\_ACEOF
19861 #define HAVE___MAIN 1
19862 _ACEOF
19863
19864 fi
19865
19866   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19867 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19868 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19869   echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871   ac_check_lib_save_LIBS=$LIBS
19872 LIBS="-lgcc  $LIBS"
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879
19880 /* Override any GCC internal prototype to avoid an error.
19881    Use char because int might match the return type of a GCC
19882    builtin and then its argument prototype would still apply.  */
19883 #ifdef __cplusplus
19884 extern "C"
19885 #endif
19886 char __cmpdi2 ();
19887 int
19888 main ()
19889 {
19890 return __cmpdi2 ();
19891   ;
19892   return 0;
19893 }
19894 _ACEOF
19895 rm -f conftest.$ac_objext conftest$ac_exeext
19896 if { (ac_try="$ac_link"
19897 case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_link") 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } &&
19909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19910   { (case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_try") 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; } &&
19919          { ac_try='test -s conftest$ac_exeext'
19920   { (case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_try") 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   ac_cv_lib_gcc___cmpdi2=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         ac_cv_lib_gcc___cmpdi2=no
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext \
19938       conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19940 fi
19941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19942 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19943 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19944
19945 cat >>confdefs.h <<\_ACEOF
19946 #define HAVE___CMPDI2 1
19947 _ACEOF
19948
19949 fi
19950
19951 fi
19952
19953 if test "$llvm_cv_os_type" = "MingW" ; then
19954   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19955 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19956   cat >conftest.$ac_ext <<_ACEOF
19957
19958   /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963
19964     #include <windows.h>
19965     #include <imagehlp.h>
19966     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19967     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19968
19969
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_compile") 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986   { (case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_try") 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); }; } &&
19995          { ac_try='test -s conftest.$ac_objext'
19996   { (case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_try") 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005
20006   { echo "$as_me:$LINENO: result: yes" >&5
20007 echo "${ECHO_T}yes" >&6; }
20008   llvm_cv_win32_elmcb_pcstr="PCSTR"
20009
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014
20015   { echo "$as_me:$LINENO: result: no" >&5
20016 echo "${ECHO_T}no" >&6; }
20017   llvm_cv_win32_elmcb_pcstr="PSTR"
20018
20019 fi
20020
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022
20023 cat >>confdefs.h <<_ACEOF
20024 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20025 _ACEOF
20026
20027 fi
20028
20029
20030
20031   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20032 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20033 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20034   echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036
20037     ac_ext=cpp
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
20043     cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 #include <math.h>
20050 int
20051 main ()
20052 {
20053 float f; isnan(f);
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_compile") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } &&
20072          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073   { (case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_try") 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; } &&
20082          { ac_try='test -s conftest.$ac_objext'
20083   { (case "(($ac_try" in
20084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085   *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088   (eval "$ac_try") 2>&5
20089   ac_status=$?
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); }; }; then
20092   ac_cv_func_isnan_in_math_h=yes
20093 else
20094   echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20096
20097         ac_cv_func_isnan_in_math_h=no
20098 fi
20099
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101     ac_ext=c
20102 ac_cpp='$CPP $CPPFLAGS'
20103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106
20107
20108 fi
20109 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20110 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20111
20112
20113 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20114
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_ISNAN_IN_MATH_H 1
20117 _ACEOF
20118
20119 fi
20120
20121
20122   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20123 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20124 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127
20128     ac_ext=cpp
20129 ac_cpp='$CXXCPP $CPPFLAGS'
20130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20133
20134     cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 #include <cmath>
20141 int
20142 main ()
20143 {
20144 float f; isnan(f);
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compile") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } &&
20163          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20164   { (case "(($ac_try" in
20165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166   *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169   (eval "$ac_try") 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; } &&
20173          { ac_try='test -s conftest.$ac_objext'
20174   { (case "(($ac_try" in
20175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176   *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179   (eval "$ac_try") 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   ac_cv_func_isnan_in_cmath=yes
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188         ac_cv_func_isnan_in_cmath=no
20189 fi
20190
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192     ac_ext=c
20193 ac_cpp='$CPP $CPPFLAGS'
20194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20197
20198
20199 fi
20200 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20201 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20202
20203 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20204
20205 cat >>confdefs.h <<\_ACEOF
20206 #define HAVE_ISNAN_IN_CMATH 1
20207 _ACEOF
20208
20209 fi
20210
20211
20212   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20213 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20214 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20215   echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217
20218     ac_ext=cpp
20219 ac_cpp='$CXXCPP $CPPFLAGS'
20220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20223
20224     cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h.  */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h.  */
20230 #include <cmath>
20231 int
20232 main ()
20233 {
20234 float f; std::isnan(f);
20235   ;
20236   return 0;
20237 }
20238 _ACEOF
20239 rm -f conftest.$ac_objext
20240 if { (ac_try="$ac_compile"
20241 case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_compile") 2>conftest.er1
20247   ac_status=$?
20248   grep -v '^ *+' conftest.er1 >conftest.err
20249   rm -f conftest.er1
20250   cat conftest.err >&5
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); } &&
20253          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20254   { (case "(($ac_try" in
20255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256   *) ac_try_echo=$ac_try;;
20257 esac
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259   (eval "$ac_try") 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; } &&
20263          { ac_try='test -s conftest.$ac_objext'
20264   { (case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_try") 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; }; then
20273   ac_cv_func_std_isnan_in_cmath=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278         ac_cv_func_std_isnan_in_cmath=no
20279 fi
20280
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282     ac_ext=c
20283 ac_cpp='$CPP $CPPFLAGS'
20284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287
20288
20289 fi
20290 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20291 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20292
20293 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20294
20295 cat >>confdefs.h <<\_ACEOF
20296 #define HAVE_STD_ISNAN_IN_CMATH 1
20297 _ACEOF
20298
20299 fi
20300
20301
20302
20303
20304   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20305 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20306 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20307   echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309
20310     ac_ext=cpp
20311 ac_cpp='$CXXCPP $CPPFLAGS'
20312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20315
20316     cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322 #include <math.h>
20323 int
20324 main ()
20325 {
20326 float f; isinf(f);
20327   ;
20328   return 0;
20329 }
20330 _ACEOF
20331 rm -f conftest.$ac_objext
20332 if { (ac_try="$ac_compile"
20333 case "(($ac_try" in
20334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335   *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338   (eval "$ac_compile") 2>conftest.er1
20339   ac_status=$?
20340   grep -v '^ *+' conftest.er1 >conftest.err
20341   rm -f conftest.er1
20342   cat conftest.err >&5
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } &&
20345          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20346   { (case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_try") 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; } &&
20355          { ac_try='test -s conftest.$ac_objext'
20356   { (case "(($ac_try" in
20357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358   *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361   (eval "$ac_try") 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; }; then
20365   ac_cv_func_isinf_in_math_h=yes
20366 else
20367   echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20369
20370         ac_cv_func_isinf_in_math_h=no
20371 fi
20372
20373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20374     ac_ext=c
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379
20380
20381 fi
20382 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20383 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20384
20385 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20386
20387 cat >>confdefs.h <<\_ACEOF
20388 #define HAVE_ISINF_IN_MATH_H 1
20389 _ACEOF
20390
20391 fi
20392
20393
20394   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20395 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399
20400     ac_ext=cpp
20401 ac_cpp='$CXXCPP $CPPFLAGS'
20402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20405
20406     cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412 #include <cmath>
20413 int
20414 main ()
20415 {
20416 float f; isinf(f);
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (ac_try="$ac_compile"
20423 case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_compile") 2>conftest.er1
20429   ac_status=$?
20430   grep -v '^ *+' conftest.er1 >conftest.err
20431   rm -f conftest.er1
20432   cat conftest.err >&5
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } &&
20435          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20436   { (case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_try") 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; } &&
20445          { ac_try='test -s conftest.$ac_objext'
20446   { (case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451   (eval "$ac_try") 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); }; }; then
20455   ac_cv_func_isinf_in_cmath=yes
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460         ac_cv_func_isinf_in_cmath=no
20461 fi
20462
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464     ac_ext=c
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20469
20470
20471 fi
20472 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20473 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20474
20475 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20476
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE_ISINF_IN_CMATH 1
20479 _ACEOF
20480
20481 fi
20482
20483
20484   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20485 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20486 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20487   echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489
20490     ac_ext=cpp
20491 ac_cpp='$CXXCPP $CPPFLAGS'
20492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20495
20496     cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502 #include <cmath>
20503 int
20504 main ()
20505 {
20506 float f; std::isinf(f);
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515   *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518   (eval "$ac_compile") 2>conftest.er1
20519   ac_status=$?
20520   grep -v '^ *+' conftest.er1 >conftest.err
20521   rm -f conftest.er1
20522   cat conftest.err >&5
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } &&
20525          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20526   { (case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531   (eval "$ac_try") 2>&5
20532   ac_status=$?
20533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); }; } &&
20535          { ac_try='test -s conftest.$ac_objext'
20536   { (case "(($ac_try" in
20537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538   *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541   (eval "$ac_try") 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; }; then
20545   ac_cv_func_std_isinf_in_cmath=yes
20546 else
20547   echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550         ac_cv_func_std_isinf_in_cmath=no
20551 fi
20552
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554     ac_ext=c
20555 ac_cpp='$CPP $CPPFLAGS'
20556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20559
20560
20561 fi
20562 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20563 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20564
20565 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20566
20567 cat >>confdefs.h <<\_ACEOF
20568 #define HAVE_STD_ISINF_IN_CMATH 1
20569 _ACEOF
20570
20571 fi
20572
20573
20574   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20575 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20576 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579
20580     ac_ext=cpp
20581 ac_cpp='$CXXCPP $CPPFLAGS'
20582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585
20586     cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h.  */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h.  */
20592 #include <ieeefp.h>
20593 int
20594 main ()
20595 {
20596 float f; finite(f);
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_compile") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } &&
20615          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20616   { (case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_try") 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; } &&
20625          { ac_try='test -s conftest.$ac_objext'
20626   { (case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_try") 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_cv_func_finite_in_ieeefp_h=yes
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640         ac_cv_func_finite_in_ieeefp_h=no
20641 fi
20642
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644     ac_ext=c
20645 ac_cpp='$CPP $CPPFLAGS'
20646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20649
20650
20651 fi
20652 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20653 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20654
20655 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20656
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_FINITE_IN_IEEEFP_H 1
20659 _ACEOF
20660
20661 fi
20662
20663
20664
20665 if test "$llvm_cv_platform_type" = "Unix" ; then
20666
20667
20668 for ac_header in stdlib.h unistd.h
20669 do
20670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20675   echo $ECHO_N "(cached) $ECHO_C" >&6
20676 fi
20677 ac_res=`eval echo '${'$as_ac_Header'}'`
20678                { echo "$as_me:$LINENO: result: $ac_res" >&5
20679 echo "${ECHO_T}$ac_res" >&6; }
20680 else
20681   # Is the header compilable?
20682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690 $ac_includes_default
20691 #include <$ac_header>
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697   *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700   (eval "$ac_compile") 2>conftest.er1
20701   ac_status=$?
20702   grep -v '^ *+' conftest.er1 >conftest.err
20703   rm -f conftest.er1
20704   cat conftest.err >&5
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20708   { (case "(($ac_try" in
20709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710   *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713   (eval "$ac_try") 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; } &&
20717          { ac_try='test -s conftest.$ac_objext'
20718   { (case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_try") 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   ac_header_compiler=yes
20728 else
20729   echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20731
20732         ac_header_compiler=no
20733 fi
20734
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20737 echo "${ECHO_T}$ac_header_compiler" >&6; }
20738
20739 # Is the header present?
20740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 #include <$ac_header>
20749 _ACEOF
20750 if { (ac_try="$ac_cpp conftest.$ac_ext"
20751 case "(($ac_try" in
20752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753   *) ac_try_echo=$ac_try;;
20754 esac
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20757   ac_status=$?
20758   grep -v '^ *+' conftest.er1 >conftest.err
20759   rm -f conftest.er1
20760   cat conftest.err >&5
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); } >/dev/null; then
20763   if test -s conftest.err; then
20764     ac_cpp_err=$ac_c_preproc_warn_flag
20765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20766   else
20767     ac_cpp_err=
20768   fi
20769 else
20770   ac_cpp_err=yes
20771 fi
20772 if test -z "$ac_cpp_err"; then
20773   ac_header_preproc=yes
20774 else
20775   echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778   ac_header_preproc=no
20779 fi
20780
20781 rm -f conftest.err conftest.$ac_ext
20782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20783 echo "${ECHO_T}$ac_header_preproc" >&6; }
20784
20785 # So?  What about this header?
20786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20787   yes:no: )
20788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20792     ac_header_preproc=yes
20793     ;;
20794   no:yes:* )
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20807     ( cat <<\_ASBOX
20808 ## ------------------------------------ ##
20809 ## Report this to http://llvm.org/bugs/ ##
20810 ## ------------------------------------ ##
20811 _ASBOX
20812      ) | sed "s/^/$as_me: WARNING:     /" >&2
20813     ;;
20814 esac
20815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818   echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820   eval "$as_ac_Header=\$ac_header_preproc"
20821 fi
20822 ac_res=`eval echo '${'$as_ac_Header'}'`
20823                { echo "$as_me:$LINENO: result: $ac_res" >&5
20824 echo "${ECHO_T}$ac_res" >&6; }
20825
20826 fi
20827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20828   cat >>confdefs.h <<_ACEOF
20829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20830 _ACEOF
20831
20832 fi
20833
20834 done
20835
20836
20837 for ac_func in getpagesize
20838 do
20839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20843   echo $ECHO_N "(cached) $ECHO_C" >&6
20844 else
20845   cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20853 #define $ac_func innocuous_$ac_func
20854
20855 /* System header to define __stub macros and hopefully few prototypes,
20856     which can conflict with char $ac_func (); below.
20857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20858     <limits.h> exists even on freestanding compilers.  */
20859
20860 #ifdef __STDC__
20861 # include <limits.h>
20862 #else
20863 # include <assert.h>
20864 #endif
20865
20866 #undef $ac_func
20867
20868 /* Override any GCC internal prototype to avoid an error.
20869    Use char because int might match the return type of a GCC
20870    builtin and then its argument prototype would still apply.  */
20871 #ifdef __cplusplus
20872 extern "C"
20873 #endif
20874 char $ac_func ();
20875 /* The GNU C library defines this for functions which it implements
20876     to always fail with ENOSYS.  Some functions are actually named
20877     something starting with __ and the normal name is an alias.  */
20878 #if defined __stub_$ac_func || defined __stub___$ac_func
20879 choke me
20880 #endif
20881
20882 int
20883 main ()
20884 {
20885 return $ac_func ();
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (ac_try="$ac_link"
20892 case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897   (eval "$ac_link") 2>conftest.er1
20898   ac_status=$?
20899   grep -v '^ *+' conftest.er1 >conftest.err
20900   rm -f conftest.er1
20901   cat conftest.err >&5
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); } &&
20904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20905   { (case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_try") 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; } &&
20914          { ac_try='test -s conftest$ac_exeext'
20915   { (case "(($ac_try" in
20916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917   *) ac_try_echo=$ac_try;;
20918 esac
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920   (eval "$ac_try") 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   eval "$as_ac_var=yes"
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929         eval "$as_ac_var=no"
20930 fi
20931
20932 rm -f core conftest.err conftest.$ac_objext \
20933       conftest$ac_exeext conftest.$ac_ext
20934 fi
20935 ac_res=`eval echo '${'$as_ac_var'}'`
20936                { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938 if test `eval echo '${'$as_ac_var'}'` = yes; then
20939   cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20941 _ACEOF
20942
20943 fi
20944 done
20945
20946 { echo "$as_me:$LINENO: checking for working mmap" >&5
20947 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20948 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   if test "$cross_compiling" = yes; then
20952   ac_cv_func_mmap_fixed_mapped=no
20953 else
20954   cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 $ac_includes_default
20961 /* malloc might have been renamed as rpl_malloc. */
20962 #undef malloc
20963
20964 /* Thanks to Mike Haertel and Jim Avera for this test.
20965    Here is a matrix of mmap possibilities:
20966         mmap private not fixed
20967         mmap private fixed at somewhere currently unmapped
20968         mmap private fixed at somewhere already mapped
20969         mmap shared not fixed
20970         mmap shared fixed at somewhere currently unmapped
20971         mmap shared fixed at somewhere already mapped
20972    For private mappings, we should verify that changes cannot be read()
20973    back from the file, nor mmap's back from the file at a different
20974    address.  (There have been systems where private was not correctly
20975    implemented like the infamous i386 svr4.0, and systems where the
20976    VM page cache was not coherent with the file system buffer cache
20977    like early versions of FreeBSD and possibly contemporary NetBSD.)
20978    For shared mappings, we should conversely verify that changes get
20979    propagated back to all the places they're supposed to be.
20980
20981    Grep wants private fixed already mapped.
20982    The main things grep needs to know about mmap are:
20983    * does it exist and is it safe to write into the mmap'd area
20984    * how to use it (BSD variants)  */
20985
20986 #include <fcntl.h>
20987 #include <sys/mman.h>
20988
20989 #if !STDC_HEADERS && !HAVE_STDLIB_H
20990 char *malloc ();
20991 #endif
20992
20993 /* This mess was copied from the GNU getpagesize.h.  */
20994 #if !HAVE_GETPAGESIZE
20995 /* Assume that all systems that can run configure have sys/param.h.  */
20996 # if !HAVE_SYS_PARAM_H
20997 #  define HAVE_SYS_PARAM_H 1
20998 # endif
20999
21000 # ifdef _SC_PAGESIZE
21001 #  define getpagesize() sysconf(_SC_PAGESIZE)
21002 # else /* no _SC_PAGESIZE */
21003 #  if HAVE_SYS_PARAM_H
21004 #   include <sys/param.h>
21005 #   ifdef EXEC_PAGESIZE
21006 #    define getpagesize() EXEC_PAGESIZE
21007 #   else /* no EXEC_PAGESIZE */
21008 #    ifdef NBPG
21009 #     define getpagesize() NBPG * CLSIZE
21010 #     ifndef CLSIZE
21011 #      define CLSIZE 1
21012 #     endif /* no CLSIZE */
21013 #    else /* no NBPG */
21014 #     ifdef NBPC
21015 #      define getpagesize() NBPC
21016 #     else /* no NBPC */
21017 #      ifdef PAGESIZE
21018 #       define getpagesize() PAGESIZE
21019 #      endif /* PAGESIZE */
21020 #     endif /* no NBPC */
21021 #    endif /* no NBPG */
21022 #   endif /* no EXEC_PAGESIZE */
21023 #  else /* no HAVE_SYS_PARAM_H */
21024 #   define getpagesize() 8192   /* punt totally */
21025 #  endif /* no HAVE_SYS_PARAM_H */
21026 # endif /* no _SC_PAGESIZE */
21027
21028 #endif /* no HAVE_GETPAGESIZE */
21029
21030 int
21031 main ()
21032 {
21033   char *data, *data2, *data3;
21034   int i, pagesize;
21035   int fd;
21036
21037   pagesize = getpagesize ();
21038
21039   /* First, make a file with some known garbage in it. */
21040   data = (char *) malloc (pagesize);
21041   if (!data)
21042     return 1;
21043   for (i = 0; i < pagesize; ++i)
21044     *(data + i) = rand ();
21045   umask (0);
21046   fd = creat ("conftest.mmap", 0600);
21047   if (fd < 0)
21048     return 1;
21049   if (write (fd, data, pagesize) != pagesize)
21050     return 1;
21051   close (fd);
21052
21053   /* Next, try to mmap the file at a fixed address which already has
21054      something else allocated at it.  If we can, also make sure that
21055      we see the same garbage.  */
21056   fd = open ("conftest.mmap", O_RDWR);
21057   if (fd < 0)
21058     return 1;
21059   data2 = (char *) malloc (2 * pagesize);
21060   if (!data2)
21061     return 1;
21062   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21063   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21064                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21065     return 1;
21066   for (i = 0; i < pagesize; ++i)
21067     if (*(data + i) != *(data2 + i))
21068       return 1;
21069
21070   /* Finally, make sure that changes to the mapped area do not
21071      percolate back to the file as seen by read().  (This is a bug on
21072      some variants of i386 svr4.0.)  */
21073   for (i = 0; i < pagesize; ++i)
21074     *(data2 + i) = *(data2 + i) + 1;
21075   data3 = (char *) malloc (pagesize);
21076   if (!data3)
21077     return 1;
21078   if (read (fd, data3, pagesize) != pagesize)
21079     return 1;
21080   for (i = 0; i < pagesize; ++i)
21081     if (*(data + i) != *(data3 + i))
21082       return 1;
21083   close (fd);
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest$ac_exeext
21088 if { (ac_try="$ac_link"
21089 case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094   (eval "$ac_link") 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21098   { (case "(($ac_try" in
21099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100   *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103   (eval "$ac_try") 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; }; then
21107   ac_cv_func_mmap_fixed_mapped=yes
21108 else
21109   echo "$as_me: program exited with status $ac_status" >&5
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113 ( exit $ac_status )
21114 ac_cv_func_mmap_fixed_mapped=no
21115 fi
21116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21117 fi
21118
21119
21120 fi
21121 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21122 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21123 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21124
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_MMAP 1
21127 _ACEOF
21128
21129 fi
21130 rm -f conftest.mmap
21131
21132   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21133 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21134 if test "${ac_cv_func_mmap_file+set}" = set; then
21135   echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137    ac_ext=c
21138 ac_cpp='$CPP $CPPFLAGS'
21139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21142
21143   if test "$cross_compiling" = yes; then
21144   ac_cv_func_mmap_file=no
21145 else
21146   cat >conftest.$ac_ext <<_ACEOF
21147
21148     /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153
21154 #include <sys/types.h>
21155 #include <sys/mman.h>
21156 #include <fcntl.h>
21157
21158 int
21159 main ()
21160 {
21161
21162   int fd;
21163   fd = creat ("foo",0777);
21164   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21165   unlink ("foo");
21166   return (fd != (int) MAP_FAILED);
21167   ;
21168   return 0;
21169 }
21170 _ACEOF
21171 rm -f conftest$ac_exeext
21172 if { (ac_try="$ac_link"
21173 case "(($ac_try" in
21174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175   *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178   (eval "$ac_link") 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182   { (case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_try") 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; }; then
21191   ac_cv_func_mmap_file=yes
21192 else
21193   echo "$as_me: program exited with status $ac_status" >&5
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 ( exit $ac_status )
21198 ac_cv_func_mmap_file=no
21199 fi
21200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21201 fi
21202
21203
21204   ac_ext=c
21205 ac_cpp='$CPP $CPPFLAGS'
21206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21209
21210
21211 fi
21212 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21213 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21214 if test "$ac_cv_func_mmap_file" = yes; then
21215
21216 cat >>confdefs.h <<\_ACEOF
21217 #define HAVE_MMAP_FILE
21218 _ACEOF
21219
21220    MMAP_FILE=yes
21221
21222 fi
21223
21224   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21225 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21226 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21227   echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229   if test "$llvm_cv_os_type" = "Interix" ; then
21230    ac_cv_need_dev_zero_for_mmap=yes
21231  else
21232    ac_cv_need_dev_zero_for_mmap=no
21233  fi
21234
21235 fi
21236 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21237 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21238 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21239
21240 cat >>confdefs.h <<\_ACEOF
21241 #define NEED_DEV_ZERO_FOR_MMAP 1
21242 _ACEOF
21243
21244 fi
21245
21246   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21247   then
21248     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21249 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21250   fi
21251   if test "$ac_cv_func_mmap_file" = "no"
21252   then
21253     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21254 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21255   fi
21256 fi
21257
21258 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21259 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21260 ac_ext=cpp
21261 ac_cpp='$CXXCPP $CPPFLAGS'
21262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21265
21266 cat >conftest.$ac_ext <<_ACEOF
21267
21268   /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273
21274     int main() {
21275       volatile unsigned long val = 1;
21276       __sync_synchronize();
21277       __sync_val_compare_and_swap(&val, 1, 0);
21278       __sync_add_and_fetch(&val, 1);
21279       __sync_sub_and_fetch(&val, 1);
21280       return 0;
21281     }
21282
21283
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_link") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } &&
21299          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21300   { (case "(($ac_try" in
21301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302   *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305   (eval "$ac_try") 2>&5
21306   ac_status=$?
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); }; } &&
21309          { ac_try='test -s conftest$ac_exeext'
21310   { (case "(($ac_try" in
21311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312   *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315   (eval "$ac_try") 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319
21320   { echo "$as_me:$LINENO: result: yes" >&5
21321 echo "${ECHO_T}yes" >&6; }
21322
21323 cat >>confdefs.h <<\_ACEOF
21324 #define LLVM_HAS_ATOMICS 1
21325 _ACEOF
21326
21327
21328 else
21329   echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332
21333   { echo "$as_me:$LINENO: result: no" >&5
21334 echo "${ECHO_T}no" >&6; }
21335
21336 cat >>confdefs.h <<\_ACEOF
21337 #define LLVM_HAS_ATOMICS 0
21338 _ACEOF
21339
21340   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21341 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21342
21343 fi
21344
21345 rm -f core conftest.err conftest.$ac_objext \
21346       conftest$ac_exeext conftest.$ac_ext
21347 ac_ext=c
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21352
21353
21354
21355 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21356   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21357 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21358 if test "${llvm_cv_linux_mixed+set}" = set; then
21359   echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361    ac_ext=c
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366
21367   cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373 #ifndef __x86_64__
21374        error: Not x86-64 even if uname says so!
21375       #endif
21376
21377 int
21378 main ()
21379 {
21380
21381   ;
21382   return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest.$ac_objext
21386 if { (ac_try="$ac_compile"
21387 case "(($ac_try" in
21388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389   *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392   (eval "$ac_compile") 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } &&
21399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21400   { (case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_try") 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; } &&
21409          { ac_try='test -s conftest.$ac_objext'
21410   { (case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_try") 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; }; then
21419   llvm_cv_linux_mixed=no
21420 else
21421   echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424         llvm_cv_linux_mixed=yes
21425 fi
21426
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21428   ac_ext=c
21429 ac_cpp='$CPP $CPPFLAGS'
21430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21433
21434
21435 fi
21436 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21437 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21438
21439   if test "$llvm_cv_linux_mixed" = "yes"; then
21440     llvm_cv_target_arch="x86"
21441     ARCH="x86"
21442   fi
21443 fi
21444
21445
21446 for ac_func in __dso_handle
21447 do
21448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21452   echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454   cat >conftest.$ac_ext <<_ACEOF
21455 /* confdefs.h.  */
21456 _ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h.  */
21460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21462 #define $ac_func innocuous_$ac_func
21463
21464 /* System header to define __stub macros and hopefully few prototypes,
21465     which can conflict with char $ac_func (); below.
21466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21467     <limits.h> exists even on freestanding compilers.  */
21468
21469 #ifdef __STDC__
21470 # include <limits.h>
21471 #else
21472 # include <assert.h>
21473 #endif
21474
21475 #undef $ac_func
21476
21477 /* Override any GCC internal prototype to avoid an error.
21478    Use char because int might match the return type of a GCC
21479    builtin and then its argument prototype would still apply.  */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 char $ac_func ();
21484 /* The GNU C library defines this for functions which it implements
21485     to always fail with ENOSYS.  Some functions are actually named
21486     something starting with __ and the normal name is an alias.  */
21487 #if defined __stub_$ac_func || defined __stub___$ac_func
21488 choke me
21489 #endif
21490
21491 int
21492 main ()
21493 {
21494 return $ac_func ();
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext conftest$ac_exeext
21500 if { (ac_try="$ac_link"
21501 case "(($ac_try" in
21502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503   *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506   (eval "$ac_link") 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } &&
21513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21514   { (case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_try") 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; } &&
21523          { ac_try='test -s conftest$ac_exeext'
21524   { (case "(($ac_try" in
21525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526   *) ac_try_echo=$ac_try;;
21527 esac
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529   (eval "$ac_try") 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; }; then
21533   eval "$as_ac_var=yes"
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         eval "$as_ac_var=no"
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext \
21542       conftest$ac_exeext conftest.$ac_ext
21543 fi
21544 ac_res=`eval echo '${'$as_ac_var'}'`
21545                { echo "$as_me:$LINENO: result: $ac_res" >&5
21546 echo "${ECHO_T}$ac_res" >&6; }
21547 if test `eval echo '${'$as_ac_var'}'` = yes; then
21548   cat >>confdefs.h <<_ACEOF
21549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21550 _ACEOF
21551
21552 fi
21553 done
21554
21555
21556 SHLIBEXT=$libltdl_cv_shlibext
21557
21558
21559 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21560
21561
21562 if test "${prefix}" = "NONE" ; then
21563   prefix="/usr/local"
21564 fi
21565 eval LLVM_PREFIX="${prefix}";
21566 eval LLVM_BINDIR="${prefix}/bin";
21567 eval LLVM_LIBDIR="${prefix}/lib";
21568 eval LLVM_DATADIR="${prefix}/share/llvm";
21569 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21570 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21571 eval LLVM_INCLUDEDIR="${prefix}/include";
21572 eval LLVM_INFODIR="${prefix}/info";
21573 eval LLVM_MANDIR="${prefix}/man";
21574 LLVM_CONFIGTIME=`date`
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21587   LLVM_CONFIGTIME="(timestamp not enabled)"
21588 fi
21589
21590
21591 cat >>confdefs.h <<_ACEOF
21592 #define LLVM_PREFIX "$LLVM_PREFIX"
21593 _ACEOF
21594
21595
21596 cat >>confdefs.h <<_ACEOF
21597 #define LLVM_BINDIR "$LLVM_BINDIR"
21598 _ACEOF
21599
21600
21601 cat >>confdefs.h <<_ACEOF
21602 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21603 _ACEOF
21604
21605
21606 cat >>confdefs.h <<_ACEOF
21607 #define LLVM_DATADIR "$LLVM_DATADIR"
21608 _ACEOF
21609
21610
21611 cat >>confdefs.h <<_ACEOF
21612 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21613 _ACEOF
21614
21615
21616 cat >>confdefs.h <<_ACEOF
21617 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21618 _ACEOF
21619
21620
21621 cat >>confdefs.h <<_ACEOF
21622 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21623 _ACEOF
21624
21625
21626 cat >>confdefs.h <<_ACEOF
21627 #define LLVM_INFODIR "$LLVM_INFODIR"
21628 _ACEOF
21629
21630
21631 cat >>confdefs.h <<_ACEOF
21632 #define LLVM_MANDIR "$LLVM_MANDIR"
21633 _ACEOF
21634
21635
21636 cat >>confdefs.h <<_ACEOF
21637 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21638 _ACEOF
21639
21640
21641 cat >>confdefs.h <<_ACEOF
21642 #define LLVM_HOSTTRIPLE "$host"
21643 _ACEOF
21644
21645
21646 cat >>confdefs.h <<_ACEOF
21647 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21648 _ACEOF
21649
21650
21651 if test "$BINDINGS_TO_BUILD" = auto ; then
21652   BINDINGS_TO_BUILD=""
21653   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21654     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21655   fi
21656 fi
21657 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21658
21659
21660 ALL_BINDINGS=ocaml
21661
21662
21663 binding_prereqs_failed=0
21664 for a_binding in $BINDINGS_TO_BUILD ; do
21665   case "$a_binding" in
21666   ocaml)
21667     if test "x$OCAMLC" = x ; then
21668       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21669 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21670       binding_prereqs_failed=1
21671     fi
21672     if test "x$OCAMLDEP" = x ; then
21673       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21674 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21675       binding_prereqs_failed=1
21676     fi
21677     if test "x$OCAMLOPT" = x ; then
21678       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21679 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21680           fi
21681     if test "x$with_ocaml_libdir" != xauto ; then
21682       OCAML_LIBDIR=$with_ocaml_libdir
21683
21684     else
21685       ocaml_stdlib="`"$OCAMLC" -where`"
21686       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21687       then
21688         # ocaml stdlib is beneath our prefix; use stdlib
21689         OCAML_LIBDIR=$ocaml_stdlib
21690
21691       else
21692         # ocaml stdlib is outside our prefix; use libdir/ocaml
21693         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21694
21695       fi
21696     fi
21697     ;;
21698   esac
21699 done
21700 if test "$binding_prereqs_failed" = 1 ; then
21701   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21702 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21703    { (exit 1); exit 1; }; }
21704 fi
21705
21706 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21707 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21708 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21709   echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711    ac_ext=cpp
21712 ac_cpp='$CXXCPP $CPPFLAGS'
21713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21716
21717   oldcxxflags="$CXXFLAGS"
21718   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21719   cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21726 int
21727 main ()
21728 {
21729 X<int>().f();
21730   ;
21731   return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (ac_try="$ac_compile"
21736 case "(($ac_try" in
21737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738   *) ac_try_echo=$ac_try;;
21739 esac
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741   (eval "$ac_compile") 2>conftest.er1
21742   ac_status=$?
21743   grep -v '^ *+' conftest.er1 >conftest.err
21744   rm -f conftest.er1
21745   cat conftest.err >&5
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); } &&
21748          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21749   { (case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754   (eval "$ac_try") 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; } &&
21758          { ac_try='test -s conftest.$ac_objext'
21759   { (case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764   (eval "$ac_try") 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; }; then
21768   llvm_cv_cxx_visibility_inlines_hidden=yes
21769 else
21770   echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773         llvm_cv_cxx_visibility_inlines_hidden=no
21774 fi
21775
21776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777   CXXFLAGS="$oldcxxflags"
21778   ac_ext=c
21779 ac_cpp='$CPP $CPPFLAGS'
21780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21783
21784
21785 fi
21786 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21787 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21788 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21789   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21790
21791 else
21792   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21793
21794 fi
21795
21796
21797 if test "$llvm_cv_link_use_r" = "yes" ; then
21798   RPATH="-Wl,-R"
21799 else
21800   RPATH="-Wl,-rpath"
21801 fi
21802
21803
21804 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21805   RDYNAMIC="-Wl,-export-dynamic"
21806 else
21807   RDYNAMIC=""
21808 fi
21809
21810
21811
21812 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21813
21814
21815
21816
21817
21818
21819 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21820
21821 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21822
21823 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21824
21825 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21826
21827 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21828
21829
21830 ac_config_files="$ac_config_files Makefile.config"
21831
21832
21833 ac_config_files="$ac_config_files llvm.spec"
21834
21835
21836 ac_config_files="$ac_config_files docs/doxygen.cfg"
21837
21838
21839 if test "${clang_src_root}" = ""; then
21840   clang_src_root="$srcdir/tools/clang"
21841 fi
21842 if test -f ${clang_src_root}/README.txt; then
21843     configh="include/clang/Config/config.h"
21844   doxy="docs/doxygen.cfg"
21845   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21846
21847   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21848
21849 fi
21850
21851 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21852
21853
21854 test "x$program_prefix" = "xNONE" && program_prefix=""
21855
21856
21857
21858 ac_config_commands="$ac_config_commands setup"
21859
21860 ac_config_commands="$ac_config_commands Makefile"
21861
21862
21863 ac_config_commands="$ac_config_commands Makefile.common"
21864
21865
21866 ac_config_commands="$ac_config_commands examples/Makefile"
21867
21868
21869 ac_config_commands="$ac_config_commands lib/Makefile"
21870
21871
21872 ac_config_commands="$ac_config_commands runtime/Makefile"
21873
21874
21875 ac_config_commands="$ac_config_commands test/Makefile"
21876
21877
21878 ac_config_commands="$ac_config_commands test/Makefile.tests"
21879
21880
21881 ac_config_commands="$ac_config_commands unittests/Makefile"
21882
21883
21884 ac_config_commands="$ac_config_commands tools/Makefile"
21885
21886
21887 ac_config_commands="$ac_config_commands utils/Makefile"
21888
21889
21890 ac_config_commands="$ac_config_commands projects/Makefile"
21891
21892
21893 ac_config_commands="$ac_config_commands bindings/Makefile"
21894
21895
21896 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21897
21898
21899
21900 cat >confcache <<\_ACEOF
21901 # This file is a shell script that caches the results of configure
21902 # tests run on this system so they can be shared between configure
21903 # scripts and configure runs, see configure's option --config-cache.
21904 # It is not useful on other systems.  If it contains results you don't
21905 # want to keep, you may remove or edit it.
21906 #
21907 # config.status only pays attention to the cache file if you give it
21908 # the --recheck option to rerun configure.
21909 #
21910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21912 # following values.
21913
21914 _ACEOF
21915
21916 # The following way of writing the cache mishandles newlines in values,
21917 # but we know of no workaround that is simple, portable, and efficient.
21918 # So, we kill variables containing newlines.
21919 # Ultrix sh set writes to stderr and can't be redirected directly,
21920 # and sets the high bit in the cache file unless we assign to the vars.
21921 (
21922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21923     eval ac_val=\$$ac_var
21924     case $ac_val in #(
21925     *${as_nl}*)
21926       case $ac_var in #(
21927       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21928 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21929       esac
21930       case $ac_var in #(
21931       _ | IFS | as_nl) ;; #(
21932       *) $as_unset $ac_var ;;
21933       esac ;;
21934     esac
21935   done
21936
21937   (set) 2>&1 |
21938     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21939     *${as_nl}ac_space=\ *)
21940       # `set' does not quote correctly, so add quotes (double-quote
21941       # substitution turns \\\\ into \\, and sed turns \\ into \).
21942       sed -n \
21943         "s/'/'\\\\''/g;
21944           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21945       ;; #(
21946     *)
21947       # `set' quotes correctly as required by POSIX, so do not add quotes.
21948       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21949       ;;
21950     esac |
21951     sort
21952 ) |
21953   sed '
21954      /^ac_cv_env_/b end
21955      t clear
21956      :clear
21957      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21958      t end
21959      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21960      :end' >>confcache
21961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21962   if test -w "$cache_file"; then
21963     test "x$cache_file" != "x/dev/null" &&
21964       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21965 echo "$as_me: updating cache $cache_file" >&6;}
21966     cat confcache >$cache_file
21967   else
21968     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21969 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21970   fi
21971 fi
21972 rm -f confcache
21973
21974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21975 # Let make expand exec_prefix.
21976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21977
21978 DEFS=-DHAVE_CONFIG_H
21979
21980 ac_libobjs=
21981 ac_ltlibobjs=
21982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21983   # 1. Remove the extension, and $U if already installed.
21984   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21985   ac_i=`echo "$ac_i" | sed "$ac_script"`
21986   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21987   #    will be set to the directory where LIBOBJS objects are built.
21988   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21989   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21990 done
21991 LIBOBJS=$ac_libobjs
21992
21993 LTLIBOBJS=$ac_ltlibobjs
21994
21995
21996 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21997   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21998 Usually this means the macro was only invoked conditionally." >&5
21999 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22000 Usually this means the macro was only invoked conditionally." >&2;}
22001    { (exit 1); exit 1; }; }
22002 fi
22003 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22004   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22005 Usually this means the macro was only invoked conditionally." >&5
22006 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22007 Usually this means the macro was only invoked conditionally." >&2;}
22008    { (exit 1); exit 1; }; }
22009 fi
22010
22011 : ${CONFIG_STATUS=./config.status}
22012 ac_clean_files_save=$ac_clean_files
22013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22016 cat >$CONFIG_STATUS <<_ACEOF
22017 #! $SHELL
22018 # Generated by $as_me.
22019 # Run this file to recreate the current configuration.
22020 # Compiler output produced by configure, useful for debugging
22021 # configure, is in config.log if it exists.
22022
22023 debug=false
22024 ac_cs_recheck=false
22025 ac_cs_silent=false
22026 SHELL=\${CONFIG_SHELL-$SHELL}
22027 _ACEOF
22028
22029 cat >>$CONFIG_STATUS <<\_ACEOF
22030 ## --------------------- ##
22031 ## M4sh Initialization.  ##
22032 ## --------------------- ##
22033
22034 # Be Bourne compatible
22035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22036   emulate sh
22037   NULLCMD=:
22038   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22039   # is contrary to our usage.  Disable this feature.
22040   alias -g '${1+"$@"}'='"$@"'
22041   setopt NO_GLOB_SUBST
22042 else
22043   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22044 fi
22045 BIN_SH=xpg4; export BIN_SH # for Tru64
22046 DUALCASE=1; export DUALCASE # for MKS sh
22047
22048
22049 # PATH needs CR
22050 # Avoid depending upon Character Ranges.
22051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22054 as_cr_digits='0123456789'
22055 as_cr_alnum=$as_cr_Letters$as_cr_digits
22056
22057 # The user is always right.
22058 if test "${PATH_SEPARATOR+set}" != set; then
22059   echo "#! /bin/sh" >conf$$.sh
22060   echo  "exit 0"   >>conf$$.sh
22061   chmod +x conf$$.sh
22062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22063     PATH_SEPARATOR=';'
22064   else
22065     PATH_SEPARATOR=:
22066   fi
22067   rm -f conf$$.sh
22068 fi
22069
22070 # Support unset when possible.
22071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22072   as_unset=unset
22073 else
22074   as_unset=false
22075 fi
22076
22077
22078 # IFS
22079 # We need space, tab and new line, in precisely that order.  Quoting is
22080 # there to prevent editors from complaining about space-tab.
22081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22082 # splitting by setting IFS to empty value.)
22083 as_nl='
22084 '
22085 IFS=" ""        $as_nl"
22086
22087 # Find who we are.  Look in the path if we contain no directory separator.
22088 case $0 in
22089   *[\\/]* ) as_myself=$0 ;;
22090   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22091 for as_dir in $PATH
22092 do
22093   IFS=$as_save_IFS
22094   test -z "$as_dir" && as_dir=.
22095   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22096 done
22097 IFS=$as_save_IFS
22098
22099      ;;
22100 esac
22101 # We did not find ourselves, most probably we were run as `sh COMMAND'
22102 # in which case we are not to be found in the path.
22103 if test "x$as_myself" = x; then
22104   as_myself=$0
22105 fi
22106 if test ! -f "$as_myself"; then
22107   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22108   { (exit 1); exit 1; }
22109 fi
22110
22111 # Work around bugs in pre-3.0 UWIN ksh.
22112 for as_var in ENV MAIL MAILPATH
22113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22114 done
22115 PS1='$ '
22116 PS2='> '
22117 PS4='+ '
22118
22119 # NLS nuisances.
22120 for as_var in \
22121   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22122   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22123   LC_TELEPHONE LC_TIME
22124 do
22125   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22126     eval $as_var=C; export $as_var
22127   else
22128     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22129   fi
22130 done
22131
22132 # Required to use basename.
22133 if expr a : '\(a\)' >/dev/null 2>&1 &&
22134    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22135   as_expr=expr
22136 else
22137   as_expr=false
22138 fi
22139
22140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22141   as_basename=basename
22142 else
22143   as_basename=false
22144 fi
22145
22146
22147 # Name of the executable.
22148 as_me=`$as_basename -- "$0" ||
22149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22150          X"$0" : 'X\(//\)$' \| \
22151          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22152 echo X/"$0" |
22153     sed '/^.*\/\([^/][^/]*\)\/*$/{
22154             s//\1/
22155             q
22156           }
22157           /^X\/\(\/\/\)$/{
22158             s//\1/
22159             q
22160           }
22161           /^X\/\(\/\).*/{
22162             s//\1/
22163             q
22164           }
22165           s/.*/./; q'`
22166
22167 # CDPATH.
22168 $as_unset CDPATH
22169
22170
22171
22172   as_lineno_1=$LINENO
22173   as_lineno_2=$LINENO
22174   test "x$as_lineno_1" != "x$as_lineno_2" &&
22175   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22176
22177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22178   # uniformly replaced by the line number.  The first 'sed' inserts a
22179   # line-number line after each line using $LINENO; the second 'sed'
22180   # does the real work.  The second script uses 'N' to pair each
22181   # line-number line with the line containing $LINENO, and appends
22182   # trailing '-' during substitution so that $LINENO is not a special
22183   # case at line end.
22184   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22185   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22186   # E. McMahon (1931-1989) for sed's syntax.  :-)
22187   sed -n '
22188     p
22189     /[$]LINENO/=
22190   ' <$as_myself |
22191     sed '
22192       s/[$]LINENO.*/&-/
22193       t lineno
22194       b
22195       :lineno
22196       N
22197       :loop
22198       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22199       t loop
22200       s/-\n.*//
22201     ' >$as_me.lineno &&
22202   chmod +x "$as_me.lineno" ||
22203     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22204    { (exit 1); exit 1; }; }
22205
22206   # Don't try to exec as it changes $[0], causing all sort of problems
22207   # (the dirname of $[0] is not the place where we might find the
22208   # original and so on.  Autoconf is especially sensitive to this).
22209   . "./$as_me.lineno"
22210   # Exit status is that of the last command.
22211   exit
22212 }
22213
22214
22215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22216   as_dirname=dirname
22217 else
22218   as_dirname=false
22219 fi
22220
22221 ECHO_C= ECHO_N= ECHO_T=
22222 case `echo -n x` in
22223 -n*)
22224   case `echo 'x\c'` in
22225   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22226   *)   ECHO_C='\c';;
22227   esac;;
22228 *)
22229   ECHO_N='-n';;
22230 esac
22231
22232 if expr a : '\(a\)' >/dev/null 2>&1 &&
22233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22234   as_expr=expr
22235 else
22236   as_expr=false
22237 fi
22238
22239 rm -f conf$$ conf$$.exe conf$$.file
22240 if test -d conf$$.dir; then
22241   rm -f conf$$.dir/conf$$.file
22242 else
22243   rm -f conf$$.dir
22244   mkdir conf$$.dir
22245 fi
22246 echo >conf$$.file
22247 if ln -s conf$$.file conf$$ 2>/dev/null; then
22248   as_ln_s='ln -s'
22249   # ... but there are two gotchas:
22250   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22251   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22252   # In both cases, we have to default to `cp -p'.
22253   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22254     as_ln_s='cp -p'
22255 elif ln conf$$.file conf$$ 2>/dev/null; then
22256   as_ln_s=ln
22257 else
22258   as_ln_s='cp -p'
22259 fi
22260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22261 rmdir conf$$.dir 2>/dev/null
22262
22263 if mkdir -p . 2>/dev/null; then
22264   as_mkdir_p=:
22265 else
22266   test -d ./-p && rmdir ./-p
22267   as_mkdir_p=false
22268 fi
22269
22270 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22271 # systems may use methods other than mode bits to determine executability.
22272 cat >conf$$.file <<_ASEOF
22273 #! /bin/sh
22274 exit 0
22275 _ASEOF
22276 chmod +x conf$$.file
22277 if test -x conf$$.file >/dev/null 2>&1; then
22278   as_executable_p="test -x"
22279 else
22280   as_executable_p=:
22281 fi
22282 rm -f conf$$.file
22283
22284 # Sed expression to map a string onto a valid CPP name.
22285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22286
22287 # Sed expression to map a string onto a valid variable name.
22288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22289
22290
22291 exec 6>&1
22292
22293 # Save the log message, to keep $[0] and so on meaningful, and to
22294 # report actual input values of CONFIG_FILES etc. instead of their
22295 # values after options handling.
22296 ac_log="
22297 This file was extended by LLVM $as_me 3.3svn, which was
22298 generated by GNU Autoconf 2.60.  Invocation command line was
22299
22300   CONFIG_FILES    = $CONFIG_FILES
22301   CONFIG_HEADERS  = $CONFIG_HEADERS
22302   CONFIG_LINKS    = $CONFIG_LINKS
22303   CONFIG_COMMANDS = $CONFIG_COMMANDS
22304   $ $0 $@
22305
22306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22307 "
22308
22309 _ACEOF
22310
22311 cat >>$CONFIG_STATUS <<_ACEOF
22312 # Files that config.status was made for.
22313 config_files="$ac_config_files"
22314 config_headers="$ac_config_headers"
22315 config_commands="$ac_config_commands"
22316
22317 _ACEOF
22318
22319 cat >>$CONFIG_STATUS <<\_ACEOF
22320 ac_cs_usage="\
22321 \`$as_me' instantiates files from templates according to the
22322 current configuration.
22323
22324 Usage: $0 [OPTIONS] [FILE]...
22325
22326   -h, --help       print this help, then exit
22327   -V, --version    print version number, then exit
22328   -q, --quiet      do not print progress messages
22329   -d, --debug      don't remove temporary files
22330       --recheck    update $as_me by reconfiguring in the same conditions
22331   --file=FILE[:TEMPLATE]
22332                    instantiate the configuration file FILE
22333   --header=FILE[:TEMPLATE]
22334                    instantiate the configuration header FILE
22335
22336 Configuration files:
22337 $config_files
22338
22339 Configuration headers:
22340 $config_headers
22341
22342 Configuration commands:
22343 $config_commands
22344
22345 Report bugs to <bug-autoconf@gnu.org>."
22346
22347 _ACEOF
22348 cat >>$CONFIG_STATUS <<_ACEOF
22349 ac_cs_version="\\
22350 LLVM config.status 3.3svn
22351 configured by $0, generated by GNU Autoconf 2.60,
22352   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22353
22354 Copyright (C) 2006 Free Software Foundation, Inc.
22355 This config.status script is free software; the Free Software Foundation
22356 gives unlimited permission to copy, distribute and modify it."
22357
22358 ac_pwd='$ac_pwd'
22359 srcdir='$srcdir'
22360 INSTALL='$INSTALL'
22361 _ACEOF
22362
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 # If no file are specified by the user, then we need to provide default
22365 # value.  By we need to know if files were specified by the user.
22366 ac_need_defaults=:
22367 while test $# != 0
22368 do
22369   case $1 in
22370   --*=*)
22371     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22372     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22373     ac_shift=:
22374     ;;
22375   *)
22376     ac_option=$1
22377     ac_optarg=$2
22378     ac_shift=shift
22379     ;;
22380   esac
22381
22382   case $ac_option in
22383   # Handling of the options.
22384   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22385     ac_cs_recheck=: ;;
22386   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22387     echo "$ac_cs_version"; exit ;;
22388   --debug | --debu | --deb | --de | --d | -d )
22389     debug=: ;;
22390   --file | --fil | --fi | --f )
22391     $ac_shift
22392     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22393     ac_need_defaults=false;;
22394   --header | --heade | --head | --hea )
22395     $ac_shift
22396     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22397     ac_need_defaults=false;;
22398   --he | --h)
22399     # Conflict between --help and --header
22400     { echo "$as_me: error: ambiguous option: $1
22401 Try \`$0 --help' for more information." >&2
22402    { (exit 1); exit 1; }; };;
22403   --help | --hel | -h )
22404     echo "$ac_cs_usage"; exit ;;
22405   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22406   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22407     ac_cs_silent=: ;;
22408
22409   # This is an error.
22410   -*) { echo "$as_me: error: unrecognized option: $1
22411 Try \`$0 --help' for more information." >&2
22412    { (exit 1); exit 1; }; } ;;
22413
22414   *) ac_config_targets="$ac_config_targets $1"
22415      ac_need_defaults=false ;;
22416
22417   esac
22418   shift
22419 done
22420
22421 ac_configure_extra_args=
22422
22423 if $ac_cs_silent; then
22424   exec 6>/dev/null
22425   ac_configure_extra_args="$ac_configure_extra_args --silent"
22426 fi
22427
22428 _ACEOF
22429 cat >>$CONFIG_STATUS <<_ACEOF
22430 if \$ac_cs_recheck; then
22431   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22432   CONFIG_SHELL=$SHELL
22433   export CONFIG_SHELL
22434   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22435 fi
22436
22437 _ACEOF
22438 cat >>$CONFIG_STATUS <<\_ACEOF
22439 exec 5>>config.log
22440 {
22441   echo
22442   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22443 ## Running $as_me. ##
22444 _ASBOX
22445   echo "$ac_log"
22446 } >&5
22447
22448 _ACEOF
22449 cat >>$CONFIG_STATUS <<_ACEOF
22450 #
22451 # INIT-COMMANDS
22452 #
22453 llvm_src="${srcdir}"
22454
22455 _ACEOF
22456
22457 cat >>$CONFIG_STATUS <<\_ACEOF
22458
22459 # Handling of arguments.
22460 for ac_config_target in $ac_config_targets
22461 do
22462   case $ac_config_target in
22463     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22464     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22465     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22466     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22467     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22468     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22469     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22470     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22471     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22472     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22473     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22474     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22475     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22476     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22477     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22478     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22479     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22480     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22481     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22482     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22483     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22484     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22485     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22486     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22487     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22488     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22489     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22490
22491   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22493    { (exit 1); exit 1; }; };;
22494   esac
22495 done
22496
22497
22498 # If the user did not use the arguments to specify the items to instantiate,
22499 # then the envvar interface is used.  Set only those that are not.
22500 # We use the long form for the default assignment because of an extremely
22501 # bizarre bug on SunOS 4.1.3.
22502 if $ac_need_defaults; then
22503   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22504   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22505   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22506 fi
22507
22508 # Have a temporary directory for convenience.  Make it in the build tree
22509 # simply because there is no reason against having it here, and in addition,
22510 # creating and moving files from /tmp can sometimes cause problems.
22511 # Hook for its removal unless debugging.
22512 # Note that there is a small window in which the directory will not be cleaned:
22513 # after its creation but before its name has been assigned to `$tmp'.
22514 $debug ||
22515 {
22516   tmp=
22517   trap 'exit_status=$?
22518   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22519 ' 0
22520   trap '{ (exit 1); exit 1; }' 1 2 13 15
22521 }
22522 # Create a (secure) tmp directory for tmp files.
22523
22524 {
22525   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22526   test -n "$tmp" && test -d "$tmp"
22527 }  ||
22528 {
22529   tmp=./conf$$-$RANDOM
22530   (umask 077 && mkdir "$tmp")
22531 } ||
22532 {
22533    echo "$me: cannot create a temporary directory in ." >&2
22534    { (exit 1); exit 1; }
22535 }
22536
22537 #
22538 # Set up the sed scripts for CONFIG_FILES section.
22539 #
22540
22541 # No need to generate the scripts if there are no CONFIG_FILES.
22542 # This happens for instance when ./config.status config.h
22543 if test -n "$CONFIG_FILES"; then
22544
22545 _ACEOF
22546
22547
22548
22549 ac_delim='%!_!# '
22550 for ac_last_try in false false false false false :; do
22551   cat >conf$$subs.sed <<_ACEOF
22552 SHELL!$SHELL$ac_delim
22553 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22554 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22555 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22556 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22557 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22558 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22559 exec_prefix!$exec_prefix$ac_delim
22560 prefix!$prefix$ac_delim
22561 program_transform_name!$program_transform_name$ac_delim
22562 bindir!$bindir$ac_delim
22563 sbindir!$sbindir$ac_delim
22564 libexecdir!$libexecdir$ac_delim
22565 datarootdir!$datarootdir$ac_delim
22566 datadir!$datadir$ac_delim
22567 sysconfdir!$sysconfdir$ac_delim
22568 sharedstatedir!$sharedstatedir$ac_delim
22569 localstatedir!$localstatedir$ac_delim
22570 includedir!$includedir$ac_delim
22571 oldincludedir!$oldincludedir$ac_delim
22572 docdir!$docdir$ac_delim
22573 infodir!$infodir$ac_delim
22574 htmldir!$htmldir$ac_delim
22575 dvidir!$dvidir$ac_delim
22576 pdfdir!$pdfdir$ac_delim
22577 psdir!$psdir$ac_delim
22578 libdir!$libdir$ac_delim
22579 localedir!$localedir$ac_delim
22580 mandir!$mandir$ac_delim
22581 DEFS!$DEFS$ac_delim
22582 ECHO_C!$ECHO_C$ac_delim
22583 ECHO_N!$ECHO_N$ac_delim
22584 ECHO_T!$ECHO_T$ac_delim
22585 LIBS!$LIBS$ac_delim
22586 build_alias!$build_alias$ac_delim
22587 host_alias!$host_alias$ac_delim
22588 target_alias!$target_alias$ac_delim
22589 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22590 CC!$CC$ac_delim
22591 CFLAGS!$CFLAGS$ac_delim
22592 LDFLAGS!$LDFLAGS$ac_delim
22593 CPPFLAGS!$CPPFLAGS$ac_delim
22594 ac_ct_CC!$ac_ct_CC$ac_delim
22595 EXEEXT!$EXEEXT$ac_delim
22596 OBJEXT!$OBJEXT$ac_delim
22597 CXX!$CXX$ac_delim
22598 CXXFLAGS!$CXXFLAGS$ac_delim
22599 ac_ct_CXX!$ac_ct_CXX$ac_delim
22600 CPP!$CPP$ac_delim
22601 subdirs!$subdirs$ac_delim
22602 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22603 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22604 build!$build$ac_delim
22605 build_cpu!$build_cpu$ac_delim
22606 build_vendor!$build_vendor$ac_delim
22607 build_os!$build_os$ac_delim
22608 host!$host$ac_delim
22609 host_cpu!$host_cpu$ac_delim
22610 host_vendor!$host_vendor$ac_delim
22611 host_os!$host_os$ac_delim
22612 target!$target$ac_delim
22613 target_cpu!$target_cpu$ac_delim
22614 target_vendor!$target_vendor$ac_delim
22615 target_os!$target_os$ac_delim
22616 OS!$OS$ac_delim
22617 HOST_OS!$HOST_OS$ac_delim
22618 TARGET_OS!$TARGET_OS$ac_delim
22619 LINKALL!$LINKALL$ac_delim
22620 NOLINKALL!$NOLINKALL$ac_delim
22621 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22622 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22623 ARCH!$ARCH$ac_delim
22624 HOST_ARCH!$HOST_ARCH$ac_delim
22625 ENDIAN!$ENDIAN$ac_delim
22626 GREP!$GREP$ac_delim
22627 EGREP!$EGREP$ac_delim
22628 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22629 BUILD_CC!$BUILD_CC$ac_delim
22630 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22631 BUILD_CXX!$BUILD_CXX$ac_delim
22632 CVSBUILD!$CVSBUILD$ac_delim
22633 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22634 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22635 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22636 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22637 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22638 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22639 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22640 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22641 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22642 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22643 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22644 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22645 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22646 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22647 JIT!$JIT$ac_delim
22648 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22649 _ACEOF
22650
22651   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22652     break
22653   elif $ac_last_try; then
22654     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22656    { (exit 1); exit 1; }; }
22657   else
22658     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22659   fi
22660 done
22661
22662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22663 if test -n "$ac_eof"; then
22664   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22665   ac_eof=`expr $ac_eof + 1`
22666 fi
22667
22668 cat >>$CONFIG_STATUS <<_ACEOF
22669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22671 _ACEOF
22672 sed '
22673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22674 s/^/s,@/; s/!/@,|#_!!_#|/
22675 :n
22676 t n
22677 s/'"$ac_delim"'$/,g/; t
22678 s/$/\\/; p
22679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22680 ' >>$CONFIG_STATUS <conf$$subs.sed
22681 rm -f conf$$subs.sed
22682 cat >>$CONFIG_STATUS <<_ACEOF
22683 CEOF$ac_eof
22684 _ACEOF
22685
22686
22687 ac_delim='%!_!# '
22688 for ac_last_try in false false false false false :; do
22689   cat >conf$$subs.sed <<_ACEOF
22690 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22691 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22692 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22693 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22694 ENABLE_PIC!$ENABLE_PIC$ac_delim
22695 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22696 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22697 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22698 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22699 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22700 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22701 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22702 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22703 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22704 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22705 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22706 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22707 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22708 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22709 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22710 NM!$NM$ac_delim
22711 ifGNUmake!$ifGNUmake$ac_delim
22712 LN_S!$LN_S$ac_delim
22713 CMP!$CMP$ac_delim
22714 CP!$CP$ac_delim
22715 DATE!$DATE$ac_delim
22716 FIND!$FIND$ac_delim
22717 MKDIR!$MKDIR$ac_delim
22718 MV!$MV$ac_delim
22719 RANLIB!$RANLIB$ac_delim
22720 AR!$AR$ac_delim
22721 RM!$RM$ac_delim
22722 SED!$SED$ac_delim
22723 TAR!$TAR$ac_delim
22724 BINPWD!$BINPWD$ac_delim
22725 GRAPHVIZ!$GRAPHVIZ$ac_delim
22726 DOT!$DOT$ac_delim
22727 FDP!$FDP$ac_delim
22728 NEATO!$NEATO$ac_delim
22729 TWOPI!$TWOPI$ac_delim
22730 CIRCO!$CIRCO$ac_delim
22731 GV!$GV$ac_delim
22732 DOTTY!$DOTTY$ac_delim
22733 XDOT_PY!$XDOT_PY$ac_delim
22734 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22735 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22736 INSTALL_DATA!$INSTALL_DATA$ac_delim
22737 BZIP2!$BZIP2$ac_delim
22738 CAT!$CAT$ac_delim
22739 DOXYGEN!$DOXYGEN$ac_delim
22740 GROFF!$GROFF$ac_delim
22741 GZIPBIN!$GZIPBIN$ac_delim
22742 PDFROFF!$PDFROFF$ac_delim
22743 ZIP!$ZIP$ac_delim
22744 OCAMLC!$OCAMLC$ac_delim
22745 OCAMLOPT!$OCAMLOPT$ac_delim
22746 OCAMLDEP!$OCAMLDEP$ac_delim
22747 OCAMLDOC!$OCAMLDOC$ac_delim
22748 GAS!$GAS$ac_delim
22749 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22750 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22751 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22752 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22753 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22754 LIBADD_DL!$LIBADD_DL$ac_delim
22755 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22756 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22757 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22758 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22759 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22760 PYTHON!$PYTHON$ac_delim
22761 USE_UDIS86!$USE_UDIS86$ac_delim
22762 USE_OPROFILE!$USE_OPROFILE$ac_delim
22763 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22764 XML2CONFIG!$XML2CONFIG$ac_delim
22765 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22766 LIBXML2_INC!$LIBXML2_INC$ac_delim
22767 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22768 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22769 MMAP_FILE!$MMAP_FILE$ac_delim
22770 SHLIBEXT!$SHLIBEXT$ac_delim
22771 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22772 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22773 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22774 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22775 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22776 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22777 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22778 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22779 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22780 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22781 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22782 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22783 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22784 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22785 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22786 RPATH!$RPATH$ac_delim
22787 _ACEOF
22788
22789   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22790     break
22791   elif $ac_last_try; then
22792     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22794    { (exit 1); exit 1; }; }
22795   else
22796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22797   fi
22798 done
22799
22800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22801 if test -n "$ac_eof"; then
22802   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22803   ac_eof=`expr $ac_eof + 1`
22804 fi
22805
22806 cat >>$CONFIG_STATUS <<_ACEOF
22807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22809 _ACEOF
22810 sed '
22811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22812 s/^/s,@/; s/!/@,|#_!!_#|/
22813 :n
22814 t n
22815 s/'"$ac_delim"'$/,g/; t
22816 s/$/\\/; p
22817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22818 ' >>$CONFIG_STATUS <conf$$subs.sed
22819 rm -f conf$$subs.sed
22820 cat >>$CONFIG_STATUS <<_ACEOF
22821 CEOF$ac_eof
22822 _ACEOF
22823
22824
22825 ac_delim='%!_!# '
22826 for ac_last_try in false false false false false :; do
22827   cat >conf$$subs.sed <<_ACEOF
22828 RDYNAMIC!$RDYNAMIC$ac_delim
22829 program_prefix!$program_prefix$ac_delim
22830 LIBOBJS!$LIBOBJS$ac_delim
22831 LTLIBOBJS!$LTLIBOBJS$ac_delim
22832 _ACEOF
22833
22834   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22835     break
22836   elif $ac_last_try; then
22837     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22838 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22839    { (exit 1); exit 1; }; }
22840   else
22841     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22842   fi
22843 done
22844
22845 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22846 if test -n "$ac_eof"; then
22847   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22848   ac_eof=`expr $ac_eof + 1`
22849 fi
22850
22851 cat >>$CONFIG_STATUS <<_ACEOF
22852 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22854 _ACEOF
22855 sed '
22856 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22857 s/^/s,@/; s/!/@,|#_!!_#|/
22858 :n
22859 t n
22860 s/'"$ac_delim"'$/,g/; t
22861 s/$/\\/; p
22862 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22863 ' >>$CONFIG_STATUS <conf$$subs.sed
22864 rm -f conf$$subs.sed
22865 cat >>$CONFIG_STATUS <<_ACEOF
22866 :end
22867 s/|#_!!_#|//g
22868 CEOF$ac_eof
22869 _ACEOF
22870
22871
22872 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22873 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22874 # trailing colons and then remove the whole line if VPATH becomes empty
22875 # (actually we leave an empty line to preserve line numbers).
22876 if test "x$srcdir" = x.; then
22877   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22878 s/:*\$(srcdir):*/:/
22879 s/:*\${srcdir}:*/:/
22880 s/:*@srcdir@:*/:/
22881 s/^\([^=]*=[     ]*\):*/\1/
22882 s/:*$//
22883 s/^[^=]*=[       ]*$//
22884 }'
22885 fi
22886
22887 cat >>$CONFIG_STATUS <<\_ACEOF
22888 fi # test -n "$CONFIG_FILES"
22889
22890
22891 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22892 do
22893   case $ac_tag in
22894   :[FHLC]) ac_mode=$ac_tag; continue;;
22895   esac
22896   case $ac_mode$ac_tag in
22897   :[FHL]*:*);;
22898   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22899 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22900    { (exit 1); exit 1; }; };;
22901   :[FH]-) ac_tag=-:-;;
22902   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22903   esac
22904   ac_save_IFS=$IFS
22905   IFS=:
22906   set x $ac_tag
22907   IFS=$ac_save_IFS
22908   shift
22909   ac_file=$1
22910   shift
22911
22912   case $ac_mode in
22913   :L) ac_source=$1;;
22914   :[FH])
22915     ac_file_inputs=
22916     for ac_f
22917     do
22918       case $ac_f in
22919       -) ac_f="$tmp/stdin";;
22920       *) # Look for the file first in the build tree, then in the source tree
22921          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22922          # because $ac_f cannot contain `:'.
22923          test -f "$ac_f" ||
22924            case $ac_f in
22925            [\\/$]*) false;;
22926            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22927            esac ||
22928            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22929 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22930    { (exit 1); exit 1; }; };;
22931       esac
22932       ac_file_inputs="$ac_file_inputs $ac_f"
22933     done
22934
22935     # Let's still pretend it is `configure' which instantiates (i.e., don't
22936     # use $as_me), people would be surprised to read:
22937     #    /* config.h.  Generated by config.status.  */
22938     configure_input="Generated from "`IFS=:
22939           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22940     if test x"$ac_file" != x-; then
22941       configure_input="$ac_file.  $configure_input"
22942       { echo "$as_me:$LINENO: creating $ac_file" >&5
22943 echo "$as_me: creating $ac_file" >&6;}
22944     fi
22945
22946     case $ac_tag in
22947     *:-:* | *:-) cat >"$tmp/stdin";;
22948     esac
22949     ;;
22950   esac
22951
22952   ac_dir=`$as_dirname -- "$ac_file" ||
22953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954          X"$ac_file" : 'X\(//\)[^/]' \| \
22955          X"$ac_file" : 'X\(//\)$' \| \
22956          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22957 echo X"$ac_file" |
22958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22959             s//\1/
22960             q
22961           }
22962           /^X\(\/\/\)[^/].*/{
22963             s//\1/
22964             q
22965           }
22966           /^X\(\/\/\)$/{
22967             s//\1/
22968             q
22969           }
22970           /^X\(\/\).*/{
22971             s//\1/
22972             q
22973           }
22974           s/.*/./; q'`
22975   { as_dir="$ac_dir"
22976   case $as_dir in #(
22977   -*) as_dir=./$as_dir;;
22978   esac
22979   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22980     as_dirs=
22981     while :; do
22982       case $as_dir in #(
22983       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22984       *) as_qdir=$as_dir;;
22985       esac
22986       as_dirs="'$as_qdir' $as_dirs"
22987       as_dir=`$as_dirname -- "$as_dir" ||
22988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22989          X"$as_dir" : 'X\(//\)[^/]' \| \
22990          X"$as_dir" : 'X\(//\)$' \| \
22991          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22992 echo X"$as_dir" |
22993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22994             s//\1/
22995             q
22996           }
22997           /^X\(\/\/\)[^/].*/{
22998             s//\1/
22999             q
23000           }
23001           /^X\(\/\/\)$/{
23002             s//\1/
23003             q
23004           }
23005           /^X\(\/\).*/{
23006             s//\1/
23007             q
23008           }
23009           s/.*/./; q'`
23010       test -d "$as_dir" && break
23011     done
23012     test -z "$as_dirs" || eval "mkdir $as_dirs"
23013   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23014 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23015    { (exit 1); exit 1; }; }; }
23016   ac_builddir=.
23017
23018 case "$ac_dir" in
23019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23020 *)
23021   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23022   # A ".." for each directory in $ac_dir_suffix.
23023   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23024   case $ac_top_builddir_sub in
23025   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23026   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23027   esac ;;
23028 esac
23029 ac_abs_top_builddir=$ac_pwd
23030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23031 # for backward compatibility:
23032 ac_top_builddir=$ac_top_build_prefix
23033
23034 case $srcdir in
23035   .)  # We are building in place.
23036     ac_srcdir=.
23037     ac_top_srcdir=$ac_top_builddir_sub
23038     ac_abs_top_srcdir=$ac_pwd ;;
23039   [\\/]* | ?:[\\/]* )  # Absolute name.
23040     ac_srcdir=$srcdir$ac_dir_suffix;
23041     ac_top_srcdir=$srcdir
23042     ac_abs_top_srcdir=$srcdir ;;
23043   *) # Relative name.
23044     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23045     ac_top_srcdir=$ac_top_build_prefix$srcdir
23046     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23047 esac
23048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23049
23050
23051   case $ac_mode in
23052   :F)
23053   #
23054   # CONFIG_FILE
23055   #
23056
23057   case $INSTALL in
23058   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23059   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23060   esac
23061 _ACEOF
23062
23063 cat >>$CONFIG_STATUS <<\_ACEOF
23064 # If the template does not know about datarootdir, expand it.
23065 # FIXME: This hack should be removed a few years after 2.60.
23066 ac_datarootdir_hack=; ac_datarootdir_seen=
23067
23068 case `sed -n '/datarootdir/ {
23069   p
23070   q
23071 }
23072 /@datadir@/p
23073 /@docdir@/p
23074 /@infodir@/p
23075 /@localedir@/p
23076 /@mandir@/p
23077 ' $ac_file_inputs` in
23078 *datarootdir*) ac_datarootdir_seen=yes;;
23079 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23080   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23081 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23082 _ACEOF
23083 cat >>$CONFIG_STATUS <<_ACEOF
23084   ac_datarootdir_hack='
23085   s&@datadir@&$datadir&g
23086   s&@docdir@&$docdir&g
23087   s&@infodir@&$infodir&g
23088   s&@localedir@&$localedir&g
23089   s&@mandir@&$mandir&g
23090     s&\\\${datarootdir}&$datarootdir&g' ;;
23091 esac
23092 _ACEOF
23093
23094 # Neutralize VPATH when `$srcdir' = `.'.
23095 # Shell code in configure.ac might set extrasub.
23096 # FIXME: do we really want to maintain this feature?
23097 cat >>$CONFIG_STATUS <<_ACEOF
23098   sed "$ac_vpsub
23099 $extrasub
23100 _ACEOF
23101 cat >>$CONFIG_STATUS <<\_ACEOF
23102 :t
23103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23104 s&@configure_input@&$configure_input&;t t
23105 s&@top_builddir@&$ac_top_builddir_sub&;t t
23106 s&@srcdir@&$ac_srcdir&;t t
23107 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23108 s&@top_srcdir@&$ac_top_srcdir&;t t
23109 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23110 s&@builddir@&$ac_builddir&;t t
23111 s&@abs_builddir@&$ac_abs_builddir&;t t
23112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23113 s&@INSTALL@&$ac_INSTALL&;t t
23114 $ac_datarootdir_hack
23115 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23116
23117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23118   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23119   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23120   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23121 which seems to be undefined.  Please make sure it is defined." >&5
23122 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23123 which seems to be undefined.  Please make sure it is defined." >&2;}
23124
23125   rm -f "$tmp/stdin"
23126   case $ac_file in
23127   -) cat "$tmp/out"; rm -f "$tmp/out";;
23128   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23129   esac
23130  ;;
23131   :H)
23132   #
23133   # CONFIG_HEADER
23134   #
23135 _ACEOF
23136
23137 # Transform confdefs.h into a sed script `conftest.defines', that
23138 # substitutes the proper values into config.h.in to produce config.h.
23139 rm -f conftest.defines conftest.tail
23140 # First, append a space to every undef/define line, to ease matching.
23141 echo 's/$/ /' >conftest.defines
23142 # Then, protect against being on the right side of a sed subst, or in
23143 # an unquoted here document, in config.status.  If some macros were
23144 # called several times there might be several #defines for the same
23145 # symbol, which is useless.  But do not sort them, since the last
23146 # AC_DEFINE must be honored.
23147 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23148 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23149 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23150 # PARAMS is the parameter list in the macro definition--in most cases, it's
23151 # just an empty string.
23152 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23153 ac_dB='\\)[      (].*,\\1define\\2'
23154 ac_dC=' '
23155 ac_dD=' ,'
23156
23157 uniq confdefs.h |
23158   sed -n '
23159         t rset
23160         :rset
23161         s/^[     ]*#[    ]*define[       ][      ]*//
23162         t ok
23163         d
23164         :ok
23165         s/[\\&,]/\\&/g
23166         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23167         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23168   ' >>conftest.defines
23169
23170 # Remove the space that was appended to ease matching.
23171 # Then replace #undef with comments.  This is necessary, for
23172 # example, in the case of _POSIX_SOURCE, which is predefined and required
23173 # on some systems where configure will not decide to define it.
23174 # (The regexp can be short, since the line contains either #define or #undef.)
23175 echo 's/ $//
23176 s,^[     #]*u.*,/* & */,' >>conftest.defines
23177
23178 # Break up conftest.defines:
23179 ac_max_sed_lines=50
23180
23181 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23182 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23183 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23184 # et cetera.
23185 ac_in='$ac_file_inputs'
23186 ac_out='"$tmp/out1"'
23187 ac_nxt='"$tmp/out2"'
23188
23189 while :
23190 do
23191   # Write a here document:
23192     cat >>$CONFIG_STATUS <<_ACEOF
23193     # First, check the format of the line:
23194     cat >"\$tmp/defines.sed" <<\\CEOF
23195 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23196 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23197 b
23198 :def
23199 _ACEOF
23200   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23201   echo 'CEOF
23202     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23203   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23204   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23205   grep . conftest.tail >/dev/null || break
23206   rm -f conftest.defines
23207   mv conftest.tail conftest.defines
23208 done
23209 rm -f conftest.defines conftest.tail
23210
23211 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23212 cat >>$CONFIG_STATUS <<\_ACEOF
23213   if test x"$ac_file" != x-; then
23214     echo "/* $configure_input  */" >"$tmp/config.h"
23215     cat "$ac_result" >>"$tmp/config.h"
23216     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23217       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23218 echo "$as_me: $ac_file is unchanged" >&6;}
23219     else
23220       rm -f $ac_file
23221       mv "$tmp/config.h" $ac_file
23222     fi
23223   else
23224     echo "/* $configure_input  */"
23225     cat "$ac_result"
23226   fi
23227   rm -f "$tmp/out12"
23228  ;;
23229
23230   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23231 echo "$as_me: executing $ac_file commands" >&6;}
23232  ;;
23233   esac
23234
23235
23236   case $ac_file$ac_mode in
23237     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23238    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23239     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23240    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23241     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23242    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23243     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23244    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23245     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23246    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23247     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23248    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23249     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23250    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23251     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23252    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23253     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23254    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23255     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23256    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23257     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23258    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23259     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23260    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23261     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23262    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23263
23264   esac
23265 done # for ac_tag
23266
23267
23268 { (exit 0); exit 0; }
23269 _ACEOF
23270 chmod +x $CONFIG_STATUS
23271 ac_clean_files=$ac_clean_files_save
23272
23273
23274 # configure is writing to config.log, and then calls config.status.
23275 # config.status does its own redirection, appending to config.log.
23276 # Unfortunately, on DOS this fails, as config.log is still kept open
23277 # by configure, so config.status won't be able to write to it; its
23278 # output is simply discarded.  So we exec the FD to /dev/null,
23279 # effectively closing config.log, so it can be properly (re)opened and
23280 # appended to by config.status.  When coming back to configure, we
23281 # need to make the FD available again.
23282 if test "$no_create" != yes; then
23283   ac_cs_success=:
23284   ac_config_status_args=
23285   test "$silent" = yes &&
23286     ac_config_status_args="$ac_config_status_args --quiet"
23287   exec 5>/dev/null
23288   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23289   exec 5>>config.log
23290   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23291   # would make configure fail if this is the last instruction.
23292   $ac_cs_success || { (exit 1); exit 1; }
23293 fi
23294
23295 #
23296 # CONFIG_SUBDIRS section.
23297 #
23298 if test "$no_recursion" != yes; then
23299
23300   # Remove --cache-file and --srcdir arguments so they do not pile up.
23301   ac_sub_configure_args=
23302   ac_prev=
23303   eval "set x $ac_configure_args"
23304   shift
23305   for ac_arg
23306   do
23307     if test -n "$ac_prev"; then
23308       ac_prev=
23309       continue
23310     fi
23311     case $ac_arg in
23312     -cache-file | --cache-file | --cache-fil | --cache-fi \
23313     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23314       ac_prev=cache_file ;;
23315     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23316     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23317     | --c=*)
23318       ;;
23319     --config-cache | -C)
23320       ;;
23321     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23322       ac_prev=srcdir ;;
23323     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23324       ;;
23325     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23326       ac_prev=prefix ;;
23327     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23328       ;;
23329     *)
23330       case $ac_arg in
23331       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23332       esac
23333       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23334     esac
23335   done
23336
23337   # Always prepend --prefix to ensure using the same prefix
23338   # in subdir configurations.
23339   ac_arg="--prefix=$prefix"
23340   case $ac_arg in
23341   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23342   esac
23343   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23344
23345   ac_popdir=`pwd`
23346   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23347
23348     # Do not complain, so a configure script can configure whichever
23349     # parts of a large source tree are present.
23350     test -d "$srcdir/$ac_dir" || continue
23351
23352     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23353     echo "$as_me:$LINENO: $ac_msg" >&5
23354     echo "$ac_msg" >&6
23355     { as_dir="$ac_dir"
23356   case $as_dir in #(
23357   -*) as_dir=./$as_dir;;
23358   esac
23359   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23360     as_dirs=
23361     while :; do
23362       case $as_dir in #(
23363       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23364       *) as_qdir=$as_dir;;
23365       esac
23366       as_dirs="'$as_qdir' $as_dirs"
23367       as_dir=`$as_dirname -- "$as_dir" ||
23368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23369          X"$as_dir" : 'X\(//\)[^/]' \| \
23370          X"$as_dir" : 'X\(//\)$' \| \
23371          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23372 echo X"$as_dir" |
23373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23374             s//\1/
23375             q
23376           }
23377           /^X\(\/\/\)[^/].*/{
23378             s//\1/
23379             q
23380           }
23381           /^X\(\/\/\)$/{
23382             s//\1/
23383             q
23384           }
23385           /^X\(\/\).*/{
23386             s//\1/
23387             q
23388           }
23389           s/.*/./; q'`
23390       test -d "$as_dir" && break
23391     done
23392     test -z "$as_dirs" || eval "mkdir $as_dirs"
23393   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23394 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23395    { (exit 1); exit 1; }; }; }
23396     ac_builddir=.
23397
23398 case "$ac_dir" in
23399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23400 *)
23401   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23402   # A ".." for each directory in $ac_dir_suffix.
23403   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23404   case $ac_top_builddir_sub in
23405   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23406   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23407   esac ;;
23408 esac
23409 ac_abs_top_builddir=$ac_pwd
23410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23411 # for backward compatibility:
23412 ac_top_builddir=$ac_top_build_prefix
23413
23414 case $srcdir in
23415   .)  # We are building in place.
23416     ac_srcdir=.
23417     ac_top_srcdir=$ac_top_builddir_sub
23418     ac_abs_top_srcdir=$ac_pwd ;;
23419   [\\/]* | ?:[\\/]* )  # Absolute name.
23420     ac_srcdir=$srcdir$ac_dir_suffix;
23421     ac_top_srcdir=$srcdir
23422     ac_abs_top_srcdir=$srcdir ;;
23423   *) # Relative name.
23424     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23425     ac_top_srcdir=$ac_top_build_prefix$srcdir
23426     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23427 esac
23428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23429
23430
23431     cd "$ac_dir"
23432
23433     # Check for guested configure; otherwise get Cygnus style configure.
23434     if test -f "$ac_srcdir/configure.gnu"; then
23435       ac_sub_configure=$ac_srcdir/configure.gnu
23436     elif test -f "$ac_srcdir/configure"; then
23437       ac_sub_configure=$ac_srcdir/configure
23438     elif test -f "$ac_srcdir/configure.in"; then
23439       # This should be Cygnus configure.
23440       ac_sub_configure=$ac_aux_dir/configure
23441     else
23442       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23444       ac_sub_configure=
23445     fi
23446
23447     # The recursion is here.
23448     if test -n "$ac_sub_configure"; then
23449       # Make the cache file name correct relative to the subdirectory.
23450       case $cache_file in
23451       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23452       *) # Relative name.
23453         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23454       esac
23455
23456       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23457 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23458       # The eval makes quoting arguments work.
23459       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23460            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23461         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23462 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23463    { (exit 1); exit 1; }; }
23464     fi
23465
23466     cd "$ac_popdir"
23467   done
23468 fi
23469