73326a773d54d9badcae310fb2bc04538cd95ac8
[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, mips, hexagon, xcore,
1442                           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 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988 if test -n "$ac_tool_prefix"; then
1989   for ac_prog in clang llvm-gcc gcc
1990   do
1991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$CC"; then
1999   ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2008     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014 IFS=$as_save_IFS
2015
2016 fi
2017 fi
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020   { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2022 else
2023   { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2025 fi
2026
2027
2028     test -n "$CC" && break
2029   done
2030 fi
2031 if test -z "$CC"; then
2032   ac_ct_CC=$CC
2033   for ac_prog in clang llvm-gcc gcc
2034 do
2035   # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$ac_ct_CC"; then
2043   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     ac_cv_prog_ac_ct_CC="$ac_prog"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6; }
2066 else
2067   { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2069 fi
2070
2071
2072   test -n "$ac_ct_CC" && break
2073 done
2074
2075   if test "x$ac_ct_CC" = x; then
2076     CC=""
2077   else
2078     case $cross_compiling:$ac_tool_warned in
2079 yes:)
2080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet.  If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&5
2083 echo "$as_me: 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." >&2;}
2086 ac_tool_warned=yes ;;
2087 esac
2088     CC=$ac_ct_CC
2089   fi
2090 fi
2091
2092
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO: checking for C compiler version" >&5
2101 ac_compiler=`set X $ac_compile; echo $2`
2102 { (ac_try="$ac_compiler --version >&5"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108   (eval "$ac_compiler --version >&5") 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112 { (ac_try="$ac_compiler -v >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler -v >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -V >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -V >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2154 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 #
2157 # List of possible output files, starting from the most likely.
2158 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2159 # only as a last resort.  b.out is created by i960 compilers.
2160 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2161 #
2162 # The IRIX 6 linker writes into existing files which may not be
2163 # executable, retaining their permissions.  Remove them first so a
2164 # subsequent execution test works.
2165 ac_rmfiles=
2166 for ac_file in $ac_files
2167 do
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2171   esac
2172 done
2173 rm -f $ac_rmfiles
2174
2175 if { (ac_try="$ac_link_default"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181   (eval "$ac_link_default") 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; then
2185   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2187 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2188 # so that the user can short-circuit this test for compilers unknown to
2189 # Autoconf.
2190 for ac_file in $ac_files
2191 do
2192   test -f "$ac_file" || continue
2193   case $ac_file in
2194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2195         ;;
2196     [ab].out )
2197         # We found the default executable, but exeext='' is most
2198         # certainly right.
2199         break;;
2200     *.* )
2201         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2202         then :; else
2203            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204         fi
2205         # We set ac_cv_exeext here because the later test for it is not
2206         # safe: cross compilers may not add the suffix if given an `-o'
2207         # argument, so we may need to know it at that point already.
2208         # Even if this section looks crufty: it has the advantage of
2209         # actually working.
2210         break;;
2211     * )
2212         break;;
2213   esac
2214 done
2215 test "$ac_cv_exeext" = no && ac_cv_exeext=
2216
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225    { (exit 77); exit 77; }; }
2226 fi
2227
2228 ac_exeext=$ac_cv_exeext
2229 { echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6; }
2231
2232 # Check that the compiler produces executables we can run.  If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239   if { ac_try='./$ac_file'
2240   { (case "(($ac_try" in
2241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242   *) ac_try_echo=$ac_try;;
2243 esac
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245   (eval "$ac_try") 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; }; then
2249     cross_compiling=no
2250   else
2251     if test "$cross_compiling" = maybe; then
2252         cross_compiling=yes
2253     else
2254         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260    { (exit 1); exit 1; }; }
2261     fi
2262   fi
2263 fi
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run.  If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2275
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2279 case "(($ac_try" in
2280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281   *) ac_try_echo=$ac_try;;
2282 esac
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284   (eval "$ac_link") 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; then
2288   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 # `rm'.
2292 for ac_file in conftest.exe conftest conftest.*; do
2293   test -f "$ac_file" || continue
2294   case $ac_file in
2295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2296     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297           break;;
2298     * ) break;;
2299   esac
2300 done
2301 else
2302   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327
2328 int
2329 main ()
2330 {
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try="$ac_compile"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_compile") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   for ac_file in conftest.o conftest.obj conftest.*; do
2348   test -f "$ac_file" || continue;
2349   case $ac_file in
2350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352        break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363    { (exit 1); exit 1; }; }
2364 fi
2365
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367 fi
2368 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383
2384 int
2385 main ()
2386 {
2387 #ifndef __GNUC__
2388        choke me
2389 #endif
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_compile") 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410   { (case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415   (eval "$ac_try") 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; } &&
2419          { ac_try='test -s conftest.$ac_objext'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; }; then
2429   ac_compiler_gnu=yes
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434         ac_compiler_gnu=no
2435 fi
2436
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2439
2440 fi
2441 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2443 GCC=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2446 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_cc_g+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   ac_save_c_werror_flag=$ac_c_werror_flag
2452    ac_c_werror_flag=yes
2453    ac_cv_prog_cc_g=no
2454    CFLAGS="-g"
2455    cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465
2466   ;
2467   return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (ac_try="$ac_compile"
2472 case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_compile") 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2485   { (case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_try") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; } &&
2494          { ac_try='test -s conftest.$ac_objext'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; }; then
2504   ac_cv_prog_cc_g=yes
2505 else
2506   echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509         CFLAGS=""
2510       cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (ac_try="$ac_compile"
2527 case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_compile") 2>conftest.er1
2533   ac_status=$?
2534   grep -v '^ *+' conftest.er1 >conftest.err
2535   rm -f conftest.er1
2536   cat conftest.err >&5
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2540   { (case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest.$ac_objext'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   :
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564         ac_c_werror_flag=$ac_save_c_werror_flag
2565          CFLAGS="-g"
2566          cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 int
2574 main ()
2575 {
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2583 case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_compile") 2>conftest.er1
2589   ac_status=$?
2590   grep -v '^ *+' conftest.er1 >conftest.err
2591   rm -f conftest.er1
2592   cat conftest.err >&5
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } &&
2595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2596   { (case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601   (eval "$ac_try") 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   ac_cv_prog_cc_g=yes
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2619
2620
2621 fi
2622
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
2631 fi
2632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2634 if test "$ac_test_CFLAGS" = set; then
2635   CFLAGS=$ac_save_CFLAGS
2636 elif test $ac_cv_prog_cc_g = yes; then
2637   if test "$GCC" = yes; then
2638     CFLAGS="-g -O2"
2639   else
2640     CFLAGS="-g"
2641   fi
2642 else
2643   if test "$GCC" = yes; then
2644     CFLAGS="-O2"
2645   else
2646     CFLAGS=
2647   fi
2648 fi
2649 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2650 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_cc_c89+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   ac_cv_prog_cc_c89=no
2655 ac_save_CC=$CC
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662 #include <stdarg.h>
2663 #include <stdio.h>
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2670      char **p;
2671      int i;
2672 {
2673   return p[i];
2674 }
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2676 {
2677   char *s;
2678   va_list v;
2679   va_start (v,p);
2680   s = g (p, va_arg (v,int));
2681   va_end (v);
2682   return s;
2683 }
2684
2685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2686    function prototypes and stuff, but not '\xHH' hex character constants.
2687    These don't provoke an error unfortunately, instead are silently treated
2688    as 'x'.  The following induces an error, until -std is added to get
2689    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2690    array size at least.  It's necessary to write '\x00'==0 to get something
2691    that's true only with -std.  */
2692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2693
2694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2695    inside strings and character constants.  */
2696 #define FOO(x) 'x'
2697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2698
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2703 int argc;
2704 char **argv;
2705 int
2706 main ()
2707 {
2708 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2714         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715 do
2716   CC="$ac_save_CC $ac_arg"
2717   rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_compile") 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2732   { (case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_try") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   ac_cv_prog_cc_c89=$ac_arg
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756
2757 fi
2758
2759 rm -f core conftest.err conftest.$ac_objext
2760   test "x$ac_cv_prog_cc_c89" != "xno" && break
2761 done
2762 rm -f conftest.$ac_ext
2763 CC=$ac_save_CC
2764
2765 fi
2766 # AC_CACHE_VAL
2767 case "x$ac_cv_prog_cc_c89" in
2768   x)
2769     { echo "$as_me:$LINENO: result: none needed" >&5
2770 echo "${ECHO_T}none needed" >&6; } ;;
2771   xno)
2772     { echo "$as_me:$LINENO: result: unsupported" >&5
2773 echo "${ECHO_T}unsupported" >&6; } ;;
2774   *)
2775     CC="$CC $ac_cv_prog_cc_c89"
2776     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2778 esac
2779
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787 ac_ext=cpp
2788 ac_cpp='$CXXCPP $CPPFLAGS'
2789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792 if test -z "$CXX"; then
2793   if test -n "$CCC"; then
2794     CXX=$CCC
2795   else
2796     if test -n "$ac_tool_prefix"; then
2797   for ac_prog in clang++ llvm-g++ g++
2798   do
2799     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CXX+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$CXX"; then
2807   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CXX=$ac_cv_prog_CXX
2827 if test -n "$CXX"; then
2828   { echo "$as_me:$LINENO: result: $CXX" >&5
2829 echo "${ECHO_T}$CXX" >&6; }
2830 else
2831   { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2833 fi
2834
2835
2836     test -n "$CXX" && break
2837   done
2838 fi
2839 if test -z "$CXX"; then
2840   ac_ct_CXX=$CXX
2841   for ac_prog in clang++ llvm-g++ g++
2842 do
2843   # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   if test -n "$ac_ct_CXX"; then
2851   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858   for ac_exec_ext in '' $ac_executable_extensions; do
2859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2860     ac_cv_prog_ac_ct_CXX="$ac_prog"
2861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2871 if test -n "$ac_ct_CXX"; then
2872   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2873 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2874 else
2875   { echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6; }
2877 fi
2878
2879
2880   test -n "$ac_ct_CXX" && break
2881 done
2882
2883   if test "x$ac_ct_CXX" = x; then
2884     CXX="g++"
2885   else
2886     case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2889 whose name does not start with the host triplet.  If you think this
2890 configuration is useful to you, please write to autoconf@gnu.org." >&5
2891 echo "$as_me: 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." >&2;}
2894 ac_tool_warned=yes ;;
2895 esac
2896     CXX=$ac_ct_CXX
2897   fi
2898 fi
2899
2900   fi
2901 fi
2902 # Provide some information about the compiler.
2903 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2904 ac_compiler=`set X $ac_compile; echo $2`
2905 { (ac_try="$ac_compiler --version >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compiler --version >&5") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915 { (ac_try="$ac_compiler -v >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler -v >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -V >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -V >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951 #ifndef __GNUC__
2952        choke me
2953 #endif
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compile") 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2974   { (case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979   (eval "$ac_try") 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; } &&
2983          { ac_try='test -s conftest.$ac_objext'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   ac_compiler_gnu=yes
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998         ac_compiler_gnu=no
2999 fi
3000
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3003
3004 fi
3005 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3007 GXX=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CXXFLAGS=${CXXFLAGS+set}
3009 ac_save_CXXFLAGS=$CXXFLAGS
3010 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cxx_g+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3016    ac_cxx_werror_flag=yes
3017    ac_cv_prog_cxx_g=no
3018    CXXFLAGS="-g"
3019    cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025
3026 int
3027 main ()
3028 {
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_compile") 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } &&
3048          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   ac_cv_prog_cxx_g=yes
3069 else
3070   echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3072
3073         CXXFLAGS=""
3074       cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_compile") 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; } &&
3113          { ac_try='test -s conftest.$ac_objext'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; }; then
3123   :
3124 else
3125   echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3129          CXXFLAGS="-g"
3130          cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_compile") 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   ac_cv_prog_cxx_g=yes
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184
3185 fi
3186
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3195 fi
3196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3197 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3198 if test "$ac_test_CXXFLAGS" = set; then
3199   CXXFLAGS=$ac_save_CXXFLAGS
3200 elif test $ac_cv_prog_cxx_g = yes; then
3201   if test "$GXX" = yes; then
3202     CXXFLAGS="-g -O2"
3203   else
3204     CXXFLAGS="-g"
3205   fi
3206 else
3207   if test "$GXX" = yes; then
3208     CXXFLAGS="-O2"
3209   else
3210     CXXFLAGS=
3211   fi
3212 fi
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219 ac_ext=c
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3226 # On Suns, sometimes $CPP names a directory.
3227 if test -n "$CPP" && test -d "$CPP"; then
3228   CPP=
3229 fi
3230 if test -z "$CPP"; then
3231   if test "${ac_cv_prog_CPP+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234       # Double quotes because CPP needs to be expanded
3235     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236     do
3237       ac_preproc_ok=false
3238 for ac_c_preproc_warn_flag in '' yes
3239 do
3240   # Use a header file that comes with gcc, so configuring glibc
3241   # with a fresh cross-compiler works.
3242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243   # <limits.h> exists even on freestanding compilers.
3244   # On the NeXT, cc -E runs the code through the compiler's parser,
3245   # not just through cpp. "Syntax error" is here to catch this case.
3246   cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h.  */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h.  */
3252 #ifdef __STDC__
3253 # include <limits.h>
3254 #else
3255 # include <assert.h>
3256 #endif
3257                      Syntax error
3258 _ACEOF
3259 if { (ac_try="$ac_cpp conftest.$ac_ext"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3266   ac_status=$?
3267   grep -v '^ *+' conftest.er1 >conftest.err
3268   rm -f conftest.er1
3269   cat conftest.err >&5
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); } >/dev/null; then
3272   if test -s conftest.err; then
3273     ac_cpp_err=$ac_c_preproc_warn_flag
3274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3275   else
3276     ac_cpp_err=
3277   fi
3278 else
3279   ac_cpp_err=yes
3280 fi
3281 if test -z "$ac_cpp_err"; then
3282   :
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287   # Broken: fails on valid input.
3288 continue
3289 fi
3290
3291 rm -f conftest.err conftest.$ac_ext
3292
3293   # OK, works on sane cases.  Now check whether nonexistent headers
3294   # can be detected and how.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #include <ac_nonexistent.h>
3302 _ACEOF
3303 if { (ac_try="$ac_cpp conftest.$ac_ext"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   # Broken: success on invalid input.
3327 continue
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3335 fi
3336
3337 rm -f conftest.err conftest.$ac_ext
3338
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3343   break
3344 fi
3345
3346     done
3347     ac_cv_prog_CPP=$CPP
3348
3349 fi
3350   CPP=$ac_cv_prog_CPP
3351 else
3352   ac_cv_prog_CPP=$CPP
3353 fi
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359   # Use a header file that comes with gcc, so configuring glibc
3360   # with a fresh cross-compiler works.
3361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362   # <limits.h> exists even on freestanding compilers.
3363   # On the NeXT, cc -E runs the code through the compiler's parser,
3364   # not just through cpp. "Syntax error" is here to catch this case.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376                      Syntax error
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null; then
3391   if test -s conftest.err; then
3392     ac_cpp_err=$ac_c_preproc_warn_flag
3393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394   else
3395     ac_cpp_err=
3396   fi
3397 else
3398   ac_cpp_err=yes
3399 fi
3400 if test -z "$ac_cpp_err"; then
3401   :
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406   # Broken: fails on valid input.
3407 continue
3408 fi
3409
3410 rm -f conftest.err conftest.$ac_ext
3411
3412   # OK, works on sane cases.  Now check whether nonexistent headers
3413   # can be detected and how.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #include <ac_nonexistent.h>
3421 _ACEOF
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } >/dev/null; then
3435   if test -s conftest.err; then
3436     ac_cpp_err=$ac_c_preproc_warn_flag
3437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438   else
3439     ac_cpp_err=
3440   fi
3441 else
3442   ac_cpp_err=yes
3443 fi
3444 if test -z "$ac_cpp_err"; then
3445   # Broken: success on invalid input.
3446 continue
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451   # Passes both tests.
3452 ac_preproc_ok=:
3453 break
3454 fi
3455
3456 rm -f conftest.err conftest.$ac_ext
3457
3458 done
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3462   :
3463 else
3464   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details." >&5
3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3467 See \`config.log' for more details." >&2;}
3468    { (exit 1); exit 1; }; }
3469 fi
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478 if test "$CXX" = "clang++" ; then
3479   { echo "$as_me:$LINENO: checking whether clang works" >&5
3480 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3481   ac_ext=cpp
3482 ac_cpp='$CXXCPP $CPPFLAGS'
3483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3486
3487
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #include <limits>
3495 #if __has_include (<cxxabi.h>)
3496 #include <cxxabi.h>
3497 #endif
3498 #if __has_include (<unwind.h>)
3499 #include <unwind.h>
3500 #endif
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 rm -f conftest.$ac_objext
3511 if { (ac_try="$ac_compile"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517   (eval "$ac_compile") 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3525   { (case "(($ac_try" in
3526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527   *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530   (eval "$ac_try") 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; } &&
3534          { ac_try='test -s conftest.$ac_objext'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; }; then
3544
3545   { echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6; }
3547
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552
3553   { echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6; }
3555   { { 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
3556 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;}
3557    { (exit 1); exit 1; }; }
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562   ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568 fi
3569
3570
3571
3572 if test -d ${srcdir}/projects/llvm-gcc ; then
3573   subdirs="$subdirs projects/llvm-gcc"
3574
3575 fi
3576
3577 if test -d ${srcdir}/projects/test-suite ; then
3578   subdirs="$subdirs projects/test-suite"
3579
3580 fi
3581
3582 if test -d ${srcdir}/projects/llvm-test ; then
3583   subdirs="$subdirs projects/llvm-test"
3584
3585 fi
3586
3587 if test -d ${srcdir}/projects/poolalloc ; then
3588   subdirs="$subdirs projects/poolalloc"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3593   subdirs="$subdirs projects/llvm-poolalloc"
3594
3595 fi
3596
3597 for i in `ls ${srcdir}/projects`
3598 do
3599   if test -d ${srcdir}/projects/${i} ; then
3600     case ${i} in
3601       sample)       subdirs="$subdirs projects/sample"
3602     ;;
3603       privbracket)  subdirs="$subdirs projects/privbracket"
3604  ;;
3605       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3606  ;;
3607       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3608 ;;
3609       llvm-java)    subdirs="$subdirs projects/llvm-java"
3610  ;;
3611       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3612    ;;
3613       safecode)     subdirs="$subdirs projects/safecode"
3614  ;;
3615       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3616  ;;
3617       compiler-rt)       ;;
3618       llvm-gcc)       ;;
3619       test-suite)     ;;
3620       llvm-test)      ;;
3621       poolalloc)      ;;
3622       llvm-poolalloc) ;;
3623       *)
3624         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3625 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3626         ;;
3627     esac
3628   fi
3629 done
3630
3631 # Check whether --enable-polly was given.
3632 if test "${enable_polly+set}" = set; then
3633   enableval=$enable_polly;
3634 else
3635   enableval=default
3636 fi
3637
3638 case "$enableval" in
3639   yes) ENABLE_POLLY=1
3640  ;;
3641   no)  ENABLE_POLLY=0
3642  ;;
3643   default) ENABLE_POLLY=1
3644  ;;
3645   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3646 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3647    { (exit 1); exit 1; }; } ;;
3648 esac
3649
3650
3651 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3652   LLVM_HAS_POLLY=1
3653
3654   subdirs="$subdirs tools/polly"
3655
3656 fi
3657
3658
3659 # Make sure we can run config.sub.
3660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3661   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3662 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3663    { (exit 1); exit 1; }; }
3664
3665 { echo "$as_me:$LINENO: checking build system type" >&5
3666 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3667 if test "${ac_cv_build+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   ac_build_alias=$build_alias
3671 test "x$ac_build_alias" = x &&
3672   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3673 test "x$ac_build_alias" = x &&
3674   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3675 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3676    { (exit 1); exit 1; }; }
3677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3678   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3679 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3680    { (exit 1); exit 1; }; }
3681
3682 fi
3683 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3684 echo "${ECHO_T}$ac_cv_build" >&6; }
3685 case $ac_cv_build in
3686 *-*-*) ;;
3687 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3688 echo "$as_me: error: invalid value of canonical build" >&2;}
3689    { (exit 1); exit 1; }; };;
3690 esac
3691 build=$ac_cv_build
3692 ac_save_IFS=$IFS; IFS='-'
3693 set x $ac_cv_build
3694 shift
3695 build_cpu=$1
3696 build_vendor=$2
3697 shift; shift
3698 # Remember, the first character of IFS is used to create $*,
3699 # except with old shells:
3700 build_os=$*
3701 IFS=$ac_save_IFS
3702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3703
3704
3705 { echo "$as_me:$LINENO: checking host system type" >&5
3706 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3707 if test "${ac_cv_host+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   if test "x$host_alias" = x; then
3711   ac_cv_host=$ac_cv_build
3712 else
3713   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3714     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3715 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3716    { (exit 1); exit 1; }; }
3717 fi
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3721 echo "${ECHO_T}$ac_cv_host" >&6; }
3722 case $ac_cv_host in
3723 *-*-*) ;;
3724 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3725 echo "$as_me: error: invalid value of canonical host" >&2;}
3726    { (exit 1); exit 1; }; };;
3727 esac
3728 host=$ac_cv_host
3729 ac_save_IFS=$IFS; IFS='-'
3730 set x $ac_cv_host
3731 shift
3732 host_cpu=$1
3733 host_vendor=$2
3734 shift; shift
3735 # Remember, the first character of IFS is used to create $*,
3736 # except with old shells:
3737 host_os=$*
3738 IFS=$ac_save_IFS
3739 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3740
3741
3742 { echo "$as_me:$LINENO: checking target system type" >&5
3743 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3744 if test "${ac_cv_target+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if test "x$target_alias" = x; then
3748   ac_cv_target=$ac_cv_host
3749 else
3750   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3751     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3752 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 fi
3757 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3758 echo "${ECHO_T}$ac_cv_target" >&6; }
3759 case $ac_cv_target in
3760 *-*-*) ;;
3761 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3762 echo "$as_me: error: invalid value of canonical target" >&2;}
3763    { (exit 1); exit 1; }; };;
3764 esac
3765 target=$ac_cv_target
3766 ac_save_IFS=$IFS; IFS='-'
3767 set x $ac_cv_target
3768 shift
3769 target_cpu=$1
3770 target_vendor=$2
3771 shift; shift
3772 # Remember, the first character of IFS is used to create $*,
3773 # except with old shells:
3774 target_os=$*
3775 IFS=$ac_save_IFS
3776 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3777
3778
3779 # The aliases save the names the user supplied, while $host etc.
3780 # will get canonicalized.
3781 test -n "$target_alias" &&
3782   test "$program_prefix$program_suffix$program_transform_name" = \
3783     NONENONEs,x,x, &&
3784   program_prefix=${target_alias}-
3785
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3787 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3788 if test "${llvm_cv_os_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case $host in
3792   *-*-aix*)
3793     llvm_cv_link_all_option="-Wl,--whole-archive"
3794     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3795     llvm_cv_os_type="AIX"
3796     llvm_cv_platform_type="Unix" ;;
3797   *-*-irix*)
3798     llvm_cv_link_all_option="-Wl,--whole-archive"
3799     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3800     llvm_cv_os_type="IRIX"
3801     llvm_cv_platform_type="Unix" ;;
3802   *-*-cygwin*)
3803     llvm_cv_link_all_option="-Wl,--whole-archive"
3804     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805     llvm_cv_os_type="Cygwin"
3806     llvm_cv_platform_type="Unix" ;;
3807   *-*-darwin*)
3808     llvm_cv_link_all_option="-Wl,-all_load"
3809     llvm_cv_no_link_all_option="-Wl,-noall_load"
3810     llvm_cv_os_type="Darwin"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-minix*)
3813     llvm_cv_link_all_option="-Wl,-all_load"
3814     llvm_cv_no_link_all_option="-Wl,-noall_load"
3815     llvm_cv_os_type="Minix"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-freebsd* | *-*-kfreebsd-gnu)
3818     llvm_cv_link_all_option="-Wl,--whole-archive"
3819     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820     llvm_cv_os_type="FreeBSD"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-openbsd*)
3823     llvm_cv_link_all_option="-Wl,--whole-archive"
3824     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3825     llvm_cv_os_type="OpenBSD"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-netbsd*)
3828     llvm_cv_link_all_option="-Wl,--whole-archive"
3829     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830     llvm_cv_os_type="NetBSD"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-dragonfly*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="DragonFly"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-hpux*)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="HP-UX"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-interix*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="Interix"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-linux*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="Linux"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-gnu*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="GNU"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-solaris*)
3858     llvm_cv_link_all_option="-Wl,-z,allextract"
3859     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3860     llvm_cv_os_type="SunOS"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-auroraux*)
3863     llvm_cv_link_all_option="-Wl,-z,allextract"
3864     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3865     llvm_cv_os_type="AuroraUX"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-win32*)
3868     llvm_cv_link_all_option="-Wl,--whole-archive"
3869     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870     llvm_cv_os_type="Win32"
3871     llvm_cv_platform_type="Win32" ;;
3872   *-*-mingw*)
3873     llvm_cv_link_all_option="-Wl,--whole-archive"
3874     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875     llvm_cv_os_type="MingW"
3876     llvm_cv_platform_type="Win32" ;;
3877   *-*-haiku*)
3878     llvm_cv_link_all_option="-Wl,--whole-archive"
3879     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880     llvm_cv_os_type="Haiku"
3881     llvm_cv_platform_type="Unix" ;;
3882   *-unknown-eabi*)
3883     llvm_cv_link_all_option="-Wl,--whole-archive"
3884     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885     llvm_cv_os_type="Freestanding"
3886     llvm_cv_platform_type="Unix" ;;
3887   *-unknown-elf*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Freestanding"
3891     llvm_cv_platform_type="Unix" ;;
3892   *)
3893     llvm_cv_link_all_option=""
3894     llvm_cv_no_link_all_option=""
3895     llvm_cv_os_type="Unknown"
3896     llvm_cv_platform_type="Unknown" ;;
3897 esac
3898 fi
3899 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3900 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3901
3902 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3903 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3904 if test "${llvm_cv_target_os_type+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   case $target in
3908   *-*-aix*)
3909     llvm_cv_target_os_type="AIX" ;;
3910   *-*-irix*)
3911     llvm_cv_target_os_type="IRIX" ;;
3912   *-*-cygwin*)
3913     llvm_cv_target_os_type="Cygwin" ;;
3914   *-*-darwin*)
3915     llvm_cv_target_os_type="Darwin" ;;
3916   *-*-minix*)
3917     llvm_cv_target_os_type="Minix" ;;
3918   *-*-freebsd* | *-*-kfreebsd-gnu)
3919     llvm_cv_target_os_type="FreeBSD" ;;
3920   *-*-openbsd*)
3921     llvm_cv_target_os_type="OpenBSD" ;;
3922   *-*-netbsd*)
3923     llvm_cv_target_os_type="NetBSD" ;;
3924   *-*-dragonfly*)
3925     llvm_cv_target_os_type="DragonFly" ;;
3926   *-*-hpux*)
3927     llvm_cv_target_os_type="HP-UX" ;;
3928   *-*-interix*)
3929     llvm_cv_target_os_type="Interix" ;;
3930   *-*-linux*)
3931     llvm_cv_target_os_type="Linux" ;;
3932   *-*-gnu*)
3933     llvm_cv_target_os_type="GNU" ;;
3934   *-*-solaris*)
3935     llvm_cv_target_os_type="SunOS" ;;
3936   *-*-auroraux*)
3937     llvm_cv_target_os_type="AuroraUX" ;;
3938   *-*-win32*)
3939     llvm_cv_target_os_type="Win32" ;;
3940   *-*-mingw*)
3941     llvm_cv_target_os_type="MingW" ;;
3942   *-*-haiku*)
3943     llvm_cv_target_os_type="Haiku" ;;
3944   *-*-rtems*)
3945     llvm_cv_target_os_type="RTEMS" ;;
3946   *-*-nacl*)
3947     llvm_cv_target_os_type="NativeClient" ;;
3948   *-unknown-eabi*)
3949     llvm_cv_target_os_type="Freestanding" ;;
3950   *)
3951     llvm_cv_target_os_type="Unknown" ;;
3952 esac
3953 fi
3954 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3955 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3956
3957 if test "$llvm_cv_os_type" = "Unknown" ; then
3958   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3959 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3960    { (exit 1); exit 1; }; }
3961 fi
3962
3963 OS=$llvm_cv_os_type
3964
3965 HOST_OS=$llvm_cv_os_type
3966
3967 TARGET_OS=$llvm_cv_target_os_type
3968
3969
3970 LINKALL=$llvm_cv_link_all_option
3971
3972 NOLINKALL=$llvm_cv_no_link_all_option
3973
3974
3975 case $llvm_cv_platform_type in
3976   Unix)
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define LLVM_ON_UNIX 1
3980 _ACEOF
3981
3982     LLVM_ON_UNIX=1
3983
3984     LLVM_ON_WIN32=0
3985
3986     ;;
3987   Win32)
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LLVM_ON_WIN32 1
3991 _ACEOF
3992
3993     LLVM_ON_UNIX=0
3994
3995     LLVM_ON_WIN32=1
3996
3997     ;;
3998 esac
3999
4000 { echo "$as_me:$LINENO: checking target architecture" >&5
4001 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4002 if test "${llvm_cv_target_arch+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   case $target in
4006   i?86-*)                 llvm_cv_target_arch="x86" ;;
4007   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4008   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4009   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4010   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4011   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4012   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4013   xcore-*)                llvm_cv_target_arch="XCore" ;;
4014   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4015   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4016   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4017   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4018   *)                      llvm_cv_target_arch="Unknown" ;;
4019 esac
4020 fi
4021 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4022 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4023
4024 if test "$llvm_cv_target_arch" = "Unknown" ; then
4025   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4026 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4027 fi
4028
4029 case "$llvm_cv_target_arch" in
4030     x86)     LLVM_NATIVE_ARCH="X86" ;;
4031     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4032     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4033 esac
4034
4035 ARCH=$llvm_cv_target_arch
4036
4037
4038 case $host in
4039   i?86-*)                 host_arch="x86" ;;
4040   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4041   sparc*-*)               host_arch="Sparc" ;;
4042   powerpc*-*)             host_arch="PowerPC" ;;
4043   arm*-*)                 host_arch="ARM" ;;
4044   mips-* | mips64-*)      host_arch="Mips" ;;
4045   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4046   xcore-*)                host_arch="XCore" ;;
4047   msp430-*)               host_arch="MSP430" ;;
4048   hexagon-*)              host_arch="Hexagon" ;;
4049   mblaze-*)               host_arch="MBlaze" ;;
4050   *)                      host_arch="Unknown" ;;
4051 esac
4052
4053 if test "$host_arch" = "Unknown" ; then
4054   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4055 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4056 fi
4057
4058 HOST_ARCH=$host_arch
4059
4060
4061
4062
4063 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4064 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4065 if test "${ac_cv_path_GREP+set}" = set; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   # Extract the first word of "grep ggrep" to use in msg output
4069 if test -z "$GREP"; then
4070 set dummy grep ggrep; ac_prog_name=$2
4071 if test "${ac_cv_path_GREP+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   ac_path_GREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081   for ac_prog in grep ggrep; do
4082   for ac_exec_ext in '' $ac_executable_extensions; do
4083     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4085     # Check for GNU ac_path_GREP and select it if it is found.
4086   # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4088 *GNU*)
4089   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4090 *)
4091   ac_count=0
4092   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093   while :
4094   do
4095     cat "conftest.in" "conftest.in" >"conftest.tmp"
4096     mv "conftest.tmp" "conftest.in"
4097     cp "conftest.in" "conftest.nl"
4098     echo 'GREP' >> "conftest.nl"
4099     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101     ac_count=`expr $ac_count + 1`
4102     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103       # Best one so far, save it but keep looking for a better one
4104       ac_cv_path_GREP="$ac_path_GREP"
4105       ac_path_GREP_max=$ac_count
4106     fi
4107     # 10*(2^10) chars as input seems more than enough
4108     test $ac_count -gt 10 && break
4109   done
4110   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113
4114     $ac_path_GREP_found && break 3
4115   done
4116 done
4117
4118 done
4119 IFS=$as_save_IFS
4120
4121
4122 fi
4123
4124 GREP="$ac_cv_path_GREP"
4125 if test -z "$GREP"; then
4126   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4127 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4128    { (exit 1); exit 1; }; }
4129 fi
4130
4131 else
4132   ac_cv_path_GREP=$GREP
4133 fi
4134
4135
4136 fi
4137 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4138 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4139  GREP="$ac_cv_path_GREP"
4140
4141
4142 { echo "$as_me:$LINENO: checking for egrep" >&5
4143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4144 if test "${ac_cv_path_EGREP+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148    then ac_cv_path_EGREP="$GREP -E"
4149    else
4150      # Extract the first word of "egrep" to use in msg output
4151 if test -z "$EGREP"; then
4152 set dummy egrep; ac_prog_name=$2
4153 if test "${ac_cv_path_EGREP+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   ac_path_EGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163   for ac_prog in egrep; do
4164   for ac_exec_ext in '' $ac_executable_extensions; do
4165     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4166     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4167     # Check for GNU ac_path_EGREP and select it if it is found.
4168   # Check for GNU $ac_path_EGREP
4169 case `"$ac_path_EGREP" --version 2>&1` in
4170 *GNU*)
4171   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4172 *)
4173   ac_count=0
4174   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4175   while :
4176   do
4177     cat "conftest.in" "conftest.in" >"conftest.tmp"
4178     mv "conftest.tmp" "conftest.in"
4179     cp "conftest.in" "conftest.nl"
4180     echo 'EGREP' >> "conftest.nl"
4181     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183     ac_count=`expr $ac_count + 1`
4184     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4185       # Best one so far, save it but keep looking for a better one
4186       ac_cv_path_EGREP="$ac_path_EGREP"
4187       ac_path_EGREP_max=$ac_count
4188     fi
4189     # 10*(2^10) chars as input seems more than enough
4190     test $ac_count -gt 10 && break
4191   done
4192   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4194
4195
4196     $ac_path_EGREP_found && break 3
4197   done
4198 done
4199
4200 done
4201 IFS=$as_save_IFS
4202
4203
4204 fi
4205
4206 EGREP="$ac_cv_path_EGREP"
4207 if test -z "$EGREP"; then
4208   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4210    { (exit 1); exit 1; }; }
4211 fi
4212
4213 else
4214   ac_cv_path_EGREP=$EGREP
4215 fi
4216
4217
4218    fi
4219 fi
4220 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4221 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4222  EGREP="$ac_cv_path_EGREP"
4223
4224
4225 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4227 if test "${ac_cv_header_stdc+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236 #include <stdlib.h>
4237 #include <stdarg.h>
4238 #include <string.h>
4239 #include <float.h>
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4251 case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256   (eval "$ac_compile") 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264   { (case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_try") 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; } &&
4273          { ac_try='test -s conftest.$ac_objext'
4274   { (case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_try") 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   ac_cv_header_stdc=yes
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288         ac_cv_header_stdc=no
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292
4293 if test $ac_cv_header_stdc = yes; then
4294   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 #include <string.h>
4302
4303 _ACEOF
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305   $EGREP "memchr" >/dev/null 2>&1; then
4306   :
4307 else
4308   ac_cv_header_stdc=no
4309 fi
4310 rm -f conftest*
4311
4312 fi
4313
4314 if test $ac_cv_header_stdc = yes; then
4315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 #include <stdlib.h>
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326   $EGREP "free" >/dev/null 2>&1; then
4327   :
4328 else
4329   ac_cv_header_stdc=no
4330 fi
4331 rm -f conftest*
4332
4333 fi
4334
4335 if test $ac_cv_header_stdc = yes; then
4336   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4337   if test "$cross_compiling" = yes; then
4338   :
4339 else
4340   cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 #include <ctype.h>
4347 #include <stdlib.h>
4348 #if ((' ' & 0x0FF) == 0x020)
4349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4351 #else
4352 # define ISLOWER(c) \
4353                    (('a' <= (c) && (c) <= 'i') \
4354                      || ('j' <= (c) && (c) <= 'r') \
4355                      || ('s' <= (c) && (c) <= 'z'))
4356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4357 #endif
4358
4359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4360 int
4361 main ()
4362 {
4363   int i;
4364   for (i = 0; i < 256; i++)
4365     if (XOR (islower (i), ISLOWER (i))
4366         || toupper (i) != TOUPPER (i))
4367       return 2;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest$ac_exeext
4372 if { (ac_try="$ac_link"
4373 case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378   (eval "$ac_link") 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4382   { (case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_try") 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; }; then
4391   :
4392 else
4393   echo "$as_me: program exited with status $ac_status" >&5
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397 ( exit $ac_status )
4398 ac_cv_header_stdc=no
4399 fi
4400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4401 fi
4402
4403
4404 fi
4405 fi
4406 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4407 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4408 if test $ac_cv_header_stdc = yes; then
4409
4410 cat >>confdefs.h <<\_ACEOF
4411 #define STDC_HEADERS 1
4412 _ACEOF
4413
4414 fi
4415
4416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4427                   inttypes.h stdint.h unistd.h
4428 do
4429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 $ac_includes_default
4442
4443 #include <$ac_header>
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4447 case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_compile") 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460   { (case "(($ac_try" in
4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462   *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465   (eval "$ac_try") 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; } &&
4469          { ac_try='test -s conftest.$ac_objext'
4470   { (case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   eval "$as_ac_Header=yes"
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484         eval "$as_ac_Header=no"
4485 fi
4486
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 ac_res=`eval echo '${'$as_ac_Header'}'`
4490                { echo "$as_me:$LINENO: result: $ac_res" >&5
4491 echo "${ECHO_T}$ac_res" >&6; }
4492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4493   cat >>confdefs.h <<_ACEOF
4494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4495 _ACEOF
4496
4497 fi
4498
4499 done
4500
4501
4502 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4503 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4504 if test "${ac_cv_c_bigendian+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   # See if sys/param.h defines the BYTE_ORDER macro.
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514 #include <sys/types.h>
4515 #include <sys/param.h>
4516
4517 int
4518 main ()
4519 {
4520 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4521  bogus endian macros
4522 #endif
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (ac_try="$ac_compile"
4530 case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535   (eval "$ac_compile") 2>conftest.er1
4536   ac_status=$?
4537   grep -v '^ *+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } &&
4542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4543   { (case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_try") 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; } &&
4552          { ac_try='test -s conftest.$ac_objext'
4553   { (case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; }; then
4562   # It does; now see whether it defined to BIG_ENDIAN or not.
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 #include <sys/types.h>
4570 #include <sys/param.h>
4571
4572 int
4573 main ()
4574 {
4575 #if BYTE_ORDER != BIG_ENDIAN
4576  not big endian
4577 #endif
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (ac_try="$ac_compile"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590   (eval "$ac_compile") 2>conftest.er1
4591   ac_status=$?
4592   grep -v '^ *+' conftest.er1 >conftest.err
4593   rm -f conftest.er1
4594   cat conftest.err >&5
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } &&
4597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4598   { (case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603   (eval "$ac_try") 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; } &&
4607          { ac_try='test -s conftest.$ac_objext'
4608   { (case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_try") 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_c_bigendian=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622         ac_cv_c_bigendian=no
4623 fi
4624
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         # It does not; compile a test program.
4631 if test "$cross_compiling" = yes; then
4632   # try to guess the endianness by grepping values into an object file
4633   ac_cv_c_bigendian=unknown
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4641 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4642 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4643 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4644 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4645 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4646 int
4647 main ()
4648 {
4649  _ascii (); _ebcdic ();
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (ac_try="$ac_compile"
4656 case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_compile") 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } &&
4668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4669   { (case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674   (eval "$ac_try") 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; } &&
4678          { ac_try='test -s conftest.$ac_objext'
4679   { (case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_try") 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4689   ac_cv_c_bigendian=yes
4690 fi
4691 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4692   if test "$ac_cv_c_bigendian" = unknown; then
4693     ac_cv_c_bigendian=no
4694   else
4695     # finding both strings is unlikely to happen, but who knows?
4696     ac_cv_c_bigendian=unknown
4697   fi
4698 fi
4699 else
4700   echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703
4704 fi
4705
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 else
4708   cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 $ac_includes_default
4715 int
4716 main ()
4717 {
4718
4719   /* Are we little or big endian?  From Harbison&Steele.  */
4720   union
4721   {
4722     long int l;
4723     char c[sizeof (long int)];
4724   } u;
4725   u.l = 1;
4726   return u.c[sizeof (long int) - 1] == 1;
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_link") 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4743   { (case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_try") 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_cv_c_bigendian=no
4753 else
4754   echo "$as_me: program exited with status $ac_status" >&5
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ( exit $ac_status )
4759 ac_cv_c_bigendian=yes
4760 fi
4761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4762 fi
4763
4764
4765 fi
4766
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4770 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4771 case $ac_cv_c_bigendian in
4772   yes)
4773     ENDIAN=big
4774  ;;
4775   no)
4776     ENDIAN=little
4777  ;;
4778   *)
4779     { { echo "$as_me:$LINENO: error: unknown endianness
4780 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4781 echo "$as_me: error: unknown endianness
4782 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4783    { (exit 1); exit 1; }; } ;;
4784 esac
4785
4786
4787 if test "$cross_compiling" = yes; then
4788   LLVM_CROSS_COMPILING=1
4789
4790
4791 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4792 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4793 if test "${ac_cv_build_exeext+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4797   ac_cv_build_exeext=.exe
4798 else
4799   ac_build_prefix=${build_alias}-
4800
4801   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4802 set dummy ${ac_build_prefix}gcc; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   if test -n "$BUILD_CC"; then
4809   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816   for ac_exec_ext in '' $ac_executable_extensions; do
4817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4818     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823 done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 BUILD_CC=$ac_cv_prog_BUILD_CC
4829 if test -n "$BUILD_CC"; then
4830   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4831 echo "${ECHO_T}$BUILD_CC" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838   if test -z "$BUILD_CC"; then
4839      # Extract the first word of "gcc", so it can be a program name with args.
4840 set dummy gcc; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   if test -n "$BUILD_CC"; then
4847   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854   for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_prog_BUILD_CC="gcc"
4857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861 done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 BUILD_CC=$ac_cv_prog_BUILD_CC
4867 if test -n "$BUILD_CC"; then
4868   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4869 echo "${ECHO_T}$BUILD_CC" >&6; }
4870 else
4871   { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4873 fi
4874
4875
4876      if test -z "$BUILD_CC"; then
4877        # Extract the first word of "cc", so it can be a program name with args.
4878 set dummy cc; ac_word=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   if test -n "$BUILD_CC"; then
4885   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4886 else
4887   ac_prog_rejected=no
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4896        ac_prog_rejected=yes
4897        continue
4898      fi
4899     ac_cv_prog_BUILD_CC="cc"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 if test $ac_prog_rejected = yes; then
4908   # We found a bogon in the path, so make sure we never use it.
4909   set dummy $ac_cv_prog_BUILD_CC
4910   shift
4911   if test $# != 0; then
4912     # We chose a different compiler from the bogus one.
4913     # However, it has the same basename, so the bogon will be chosen
4914     # first if we set BUILD_CC to just the basename; use the full file name.
4915     shift
4916     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4917   fi
4918 fi
4919 fi
4920 fi
4921 BUILD_CC=$ac_cv_prog_BUILD_CC
4922 if test -n "$BUILD_CC"; then
4923   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4924 echo "${ECHO_T}$BUILD_CC" >&6; }
4925 else
4926   { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4928 fi
4929
4930
4931      fi
4932   fi
4933   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4934 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4935    { (exit 1); exit 1; }; }
4936   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4937   rm -f conftest*
4938   echo 'int main () { return 0; }' > conftest.$ac_ext
4939   ac_cv_build_exeext=
4940   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4941   (eval $ac_build_link) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; then
4945     for file in conftest.*; do
4946       case $file in
4947       *.c | *.o | *.obj | *.dSYM) ;;
4948       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4949       esac
4950     done
4951   else
4952     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4953 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4954    { (exit 1); exit 1; }; }
4955   fi
4956   rm -f conftest*
4957   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4958 fi
4959 fi
4960
4961 BUILD_EXEEXT=""
4962 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4963 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4964 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4965 ac_build_exeext=$BUILD_EXEEXT
4966
4967   ac_build_prefix=${build_alias}-
4968   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4969 set dummy ${ac_build_prefix}g++; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$BUILD_CXX"; then
4976   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4985     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4996 if test -n "$BUILD_CXX"; then
4997   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4998 echo "${ECHO_T}$BUILD_CXX" >&6; }
4999 else
5000   { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5002 fi
5003
5004
5005   if test -z "$BUILD_CXX"; then
5006      # Extract the first word of "g++", so it can be a program name with args.
5007 set dummy g++; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   if test -n "$BUILD_CXX"; then
5014   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019   IFS=$as_save_IFS
5020   test -z "$as_dir" && as_dir=.
5021   for ac_exec_ext in '' $ac_executable_extensions; do
5022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5023     ac_cv_prog_BUILD_CXX="g++"
5024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025     break 2
5026   fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5034 if test -n "$BUILD_CXX"; then
5035   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5036 echo "${ECHO_T}$BUILD_CXX" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043      if test -z "$BUILD_CXX"; then
5044        # Extract the first word of "c++", so it can be a program name with args.
5045 set dummy c++; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   if test -n "$BUILD_CXX"; then
5052   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5053 else
5054   ac_prog_rejected=no
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5063        ac_prog_rejected=yes
5064        continue
5065      fi
5066     ac_cv_prog_BUILD_CXX="c++"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 if test $ac_prog_rejected = yes; then
5075   # We found a bogon in the path, so make sure we never use it.
5076   set dummy $ac_cv_prog_BUILD_CXX
5077   shift
5078   if test $# != 0; then
5079     # We chose a different compiler from the bogus one.
5080     # However, it has the same basename, so the bogon will be chosen
5081     # first if we set BUILD_CXX to just the basename; use the full file name.
5082     shift
5083     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5084   fi
5085 fi
5086 fi
5087 fi
5088 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5089 if test -n "$BUILD_CXX"; then
5090   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5091 echo "${ECHO_T}$BUILD_CXX" >&6; }
5092 else
5093   { echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6; }
5095 fi
5096
5097
5098      fi
5099   fi
5100 else
5101   LLVM_CROSS_COMPILING=0
5102
5103 fi
5104
5105 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5106   cvsbuild="yes"
5107   optimize="no"
5108   CVSBUILD=CVSBUILD=1
5109
5110 else
5111   cvsbuild="no"
5112   optimize="yes"
5113 fi
5114
5115
5116 # Check whether --enable-libcpp was given.
5117 if test "${enable_libcpp+set}" = set; then
5118   enableval=$enable_libcpp;
5119 else
5120   enableval=default
5121 fi
5122
5123 case "$enableval" in
5124   yes) ENABLE_LIBCPP=1
5125  ;;
5126   no)  ENABLE_LIBCPP=0
5127  ;;
5128   default) ENABLE_LIBCPP=0
5129 ;;
5130   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5132    { (exit 1); exit 1; }; } ;;
5133 esac
5134
5135 # Check whether --enable-cxx11 was given.
5136 if test "${enable_cxx11+set}" = set; then
5137   enableval=$enable_cxx11;
5138 else
5139   enableval=default
5140 fi
5141
5142 case "$enableval" in
5143   yes) ENABLE_CXX11=1
5144  ;;
5145   no)  ENABLE_CXX11=0
5146  ;;
5147   default) ENABLE_CXX11=0
5148 ;;
5149   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5151    { (exit 1); exit 1; }; } ;;
5152 esac
5153
5154 clang_arcmt="yes"
5155 # Check whether --enable-clang-arcmt was given.
5156 if test "${enable_clang_arcmt+set}" = set; then
5157   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5158 else
5159   enableval="yes"
5160 fi
5161
5162 case "$enableval" in
5163   yes) ENABLE_CLANG_ARCMT=1
5164  ;;
5165   no)  ENABLE_CLANG_ARCMT=0
5166  ;;
5167   default) ENABLE_CLANG_ARCMT=1
5168 ;;
5169   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5171    { (exit 1); exit 1; }; } ;;
5172 esac
5173
5174 clang_static_analyzer="yes"
5175 # Check whether --enable-clang-static-analyzer was given.
5176 if test "${enable_clang_static_analyzer+set}" = set; then
5177   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5178 else
5179   enableval="yes"
5180 fi
5181
5182 case "$enableval" in
5183   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5184  ;;
5185   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5186  ;;
5187   default) ENABLE_CLANG_STATIC_ANALYZER=1
5188 ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 # Check whether --enable-clang-rewriter was given.
5195 if test "${enable_clang_rewriter+set}" = set; then
5196   enableval=$enable_clang_rewriter;
5197 else
5198   enableval="yes"
5199 fi
5200
5201 case "$enableval" in
5202   yes) ENABLE_CLANG_REWRITER=1
5203  ;;
5204   no)
5205     if test ${clang_arcmt} != "no" ; then
5206       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5207 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5208    { (exit 1); exit 1; }; }
5209     fi
5210     if test ${clang_static_analyzer} != "no" ; then
5211       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5212 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5213    { (exit 1); exit 1; }; }
5214     fi
5215     ENABLE_CLANG_REWRITER=0
5216
5217     ;;
5218   default) ENABLE_CLANG_REWRITER=1
5219 ;;
5220   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5222    { (exit 1); exit 1; }; } ;;
5223 esac
5224
5225 # Check whether --enable-optimized was given.
5226 if test "${enable_optimized+set}" = set; then
5227   enableval=$enable_optimized;
5228 else
5229   enableval=$optimize
5230 fi
5231
5232 if test ${enableval} = "no" ; then
5233   ENABLE_OPTIMIZED=
5234
5235 else
5236   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5237
5238 fi
5239
5240 # Check whether --enable-profiling was given.
5241 if test "${enable_profiling+set}" = set; then
5242   enableval=$enable_profiling;
5243 else
5244   enableval="no"
5245 fi
5246
5247 if test ${enableval} = "no" ; then
5248   ENABLE_PROFILING=
5249
5250 else
5251   ENABLE_PROFILING=ENABLE_PROFILING=1
5252
5253 fi
5254
5255 # Check whether --enable-assertions was given.
5256 if test "${enable_assertions+set}" = set; then
5257   enableval=$enable_assertions;
5258 else
5259   enableval="yes"
5260 fi
5261
5262 if test ${enableval} = "yes" ; then
5263   DISABLE_ASSERTIONS=
5264
5265 else
5266   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5267
5268 fi
5269
5270 # Check whether --enable-werror was given.
5271 if test "${enable_werror+set}" = set; then
5272   enableval=$enable_werror;
5273 else
5274   enableval="no"
5275 fi
5276
5277 case "$enableval" in
5278   yes) ENABLE_WERROR=1
5279  ;;
5280   no)  ENABLE_WERROR=0
5281  ;;
5282   default) ENABLE_WERROR=0
5283 ;;
5284   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287 esac
5288
5289 # Check whether --enable-expensive-checks was given.
5290 if test "${enable_expensive_checks+set}" = set; then
5291   enableval=$enable_expensive_checks;
5292 else
5293   enableval="no"
5294 fi
5295
5296 if test ${enableval} = "yes" ; then
5297   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5298
5299   EXPENSIVE_CHECKS=yes
5300
5301 else
5302   ENABLE_EXPENSIVE_CHECKS=
5303
5304   EXPENSIVE_CHECKS=no
5305
5306 fi
5307
5308 # Check whether --enable-debug-runtime was given.
5309 if test "${enable_debug_runtime+set}" = set; then
5310   enableval=$enable_debug_runtime;
5311 else
5312   enableval=no
5313 fi
5314
5315 if test ${enableval} = "no" ; then
5316   DEBUG_RUNTIME=
5317
5318 else
5319   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5320
5321 fi
5322
5323 # Check whether --enable-debug-symbols was given.
5324 if test "${enable_debug_symbols+set}" = set; then
5325   enableval=$enable_debug_symbols;
5326 else
5327   enableval=no
5328 fi
5329
5330 if test ${enableval} = "no" ; then
5331   DEBUG_SYMBOLS=
5332
5333 else
5334   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5335
5336 fi
5337
5338 # Check whether --enable-keep-symbols was given.
5339 if test "${enable_keep_symbols+set}" = set; then
5340   enableval=$enable_keep_symbols;
5341 else
5342   enableval=no
5343 fi
5344
5345 if test ${enableval} = "no" ; then
5346   KEEP_SYMBOLS=
5347
5348 else
5349   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5350
5351 fi
5352
5353 # Check whether --enable-jit was given.
5354 if test "${enable_jit+set}" = set; then
5355   enableval=$enable_jit;
5356 else
5357   enableval=default
5358 fi
5359
5360 if test ${enableval} = "no"
5361 then
5362   JIT=
5363
5364 else
5365   case "$llvm_cv_target_arch" in
5366     x86)         TARGET_HAS_JIT=1
5367  ;;
5368     Sparc)       TARGET_HAS_JIT=0
5369  ;;
5370     PowerPC)     TARGET_HAS_JIT=1
5371  ;;
5372     x86_64)      TARGET_HAS_JIT=1
5373  ;;
5374     ARM)         TARGET_HAS_JIT=1
5375  ;;
5376     Mips)        TARGET_HAS_JIT=1
5377  ;;
5378     XCore)       TARGET_HAS_JIT=0
5379  ;;
5380     MSP430)      TARGET_HAS_JIT=0
5381  ;;
5382     Hexagon)     TARGET_HAS_JIT=0
5383  ;;
5384     MBlaze)      TARGET_HAS_JIT=0
5385  ;;
5386     NVPTX)       TARGET_HAS_JIT=0
5387  ;;
5388     *)           TARGET_HAS_JIT=0
5389  ;;
5390   esac
5391 fi
5392
5393 # Check whether --enable-docs was given.
5394 if test "${enable_docs+set}" = set; then
5395   enableval=$enable_docs;
5396 else
5397   enableval=default
5398 fi
5399
5400 case "$enableval" in
5401   yes) ENABLE_DOCS=1
5402  ;;
5403   no)  ENABLE_DOCS=0
5404  ;;
5405   default) ENABLE_DOCS=1
5406  ;;
5407   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5408 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5409    { (exit 1); exit 1; }; } ;;
5410 esac
5411
5412 # Check whether --enable-doxygen was given.
5413 if test "${enable_doxygen+set}" = set; then
5414   enableval=$enable_doxygen;
5415 else
5416   enableval=default
5417 fi
5418
5419 case "$enableval" in
5420   yes) ENABLE_DOXYGEN=1
5421  ;;
5422   no)  ENABLE_DOXYGEN=0
5423  ;;
5424   default) ENABLE_DOXYGEN=0
5425  ;;
5426   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5428    { (exit 1); exit 1; }; } ;;
5429 esac
5430
5431 # Check whether --enable-threads was given.
5432 if test "${enable_threads+set}" = set; then
5433   enableval=$enable_threads;
5434 else
5435   enableval=default
5436 fi
5437
5438 case "$enableval" in
5439   yes) LLVM_ENABLE_THREADS=1
5440  ;;
5441   no)  LLVM_ENABLE_THREADS=0
5442  ;;
5443   default) LLVM_ENABLE_THREADS=1
5444  ;;
5445   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5446 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5447    { (exit 1); exit 1; }; } ;;
5448 esac
5449
5450 cat >>confdefs.h <<_ACEOF
5451 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5452 _ACEOF
5453
5454
5455 # Check whether --enable-pthreads was given.
5456 if test "${enable_pthreads+set}" = set; then
5457   enableval=$enable_pthreads;
5458 else
5459   enableval=default
5460 fi
5461
5462 case "$enableval" in
5463   yes) ENABLE_PTHREADS=1
5464  ;;
5465   no)  ENABLE_PTHREADS=0
5466  ;;
5467   default) ENABLE_PTHREADS=1
5468  ;;
5469   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5470 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5471    { (exit 1); exit 1; }; } ;;
5472 esac
5473
5474 # Check whether --enable-pic was given.
5475 if test "${enable_pic+set}" = set; then
5476   enableval=$enable_pic;
5477 else
5478   enableval=default
5479 fi
5480
5481 case "$enableval" in
5482   yes) ENABLE_PIC=1
5483  ;;
5484   no)  ENABLE_PIC=0
5485  ;;
5486   default) ENABLE_PIC=1
5487  ;;
5488   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5489 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5490    { (exit 1); exit 1; }; } ;;
5491 esac
5492
5493 cat >>confdefs.h <<_ACEOF
5494 #define ENABLE_PIC $ENABLE_PIC
5495 _ACEOF
5496
5497
5498 # Check whether --enable-shared was given.
5499 if test "${enable_shared+set}" = set; then
5500   enableval=$enable_shared;
5501 else
5502   enableval=default
5503 fi
5504
5505 case "$enableval" in
5506   yes) ENABLE_SHARED=1
5507  ;;
5508   no)  ENABLE_SHARED=0
5509  ;;
5510   default) ENABLE_SHARED=0
5511  ;;
5512   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5513 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5514    { (exit 1); exit 1; }; } ;;
5515 esac
5516
5517 # Check whether --enable-embed-stdcxx was given.
5518 if test "${enable_embed_stdcxx+set}" = set; then
5519   enableval=$enable_embed_stdcxx;
5520 else
5521   enableval=default
5522 fi
5523
5524 case "$enableval" in
5525   yes) ENABLE_EMBED_STDCXX=1
5526  ;;
5527   no)  ENABLE_EMBED_STDCXX=0
5528  ;;
5529   default) ENABLE_EMBED_STDCXX=0
5530  ;;
5531   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5532 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534 esac
5535
5536 # Check whether --enable-timestamps was given.
5537 if test "${enable_timestamps+set}" = set; then
5538   enableval=$enable_timestamps;
5539 else
5540   enableval=default
5541 fi
5542
5543 case "$enableval" in
5544   yes) ENABLE_TIMESTAMPS=1
5545  ;;
5546   no)  ENABLE_TIMESTAMPS=0
5547  ;;
5548   default) ENABLE_TIMESTAMPS=1
5549  ;;
5550   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5551 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5552    { (exit 1); exit 1; }; } ;;
5553 esac
5554
5555 cat >>confdefs.h <<_ACEOF
5556 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5557 _ACEOF
5558
5559
5560
5561 # Check whether --enable-backtraces was given.
5562 if test "${enable_backtraces+set}" = set; then
5563   enableval=$enable_backtraces;
5564 else
5565   enableval=default
5566 fi
5567
5568 case "$enableval" in
5569   yes) ENABLE_BACKTRACES=1
5570  ;;
5571   no)  ENABLE_BACKTRACES=0
5572  ;;
5573   default) ENABLE_BACKTRACES=1
5574  ;;
5575   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5576 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5577    { (exit 1); exit 1; }; } ;;
5578 esac
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5582 _ACEOF
5583
5584
5585 TARGETS_TO_BUILD=""
5586 # Check whether --enable-targets was given.
5587 if test "${enable_targets+set}" = set; then
5588   enableval=$enable_targets;
5589 else
5590   enableval=all
5591 fi
5592
5593 if test "$enableval" = host-only ; then
5594   enableval=host
5595 fi
5596 case "$enableval" in
5597   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5598   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5599       case "$a_target" in
5600         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5601         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5602         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5603         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5604         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5605         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5606         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5607         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5608         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5609         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5610         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5611         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5612         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5613         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5614         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5615         host) case "$llvm_cv_target_arch" in
5616             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5617             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5618             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5619             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5620             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5621             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5622             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5623             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5624             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5625             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5626             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5627             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5628 echo "$as_me: error: Can not set target to build" >&2;}
5629    { (exit 1); exit 1; }; } ;;
5630           esac ;;
5631         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5632 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5633    { (exit 1); exit 1; }; } ;;
5634       esac
5635   done
5636   ;;
5637 esac
5638
5639 # Check whether --enable-experimental-targets was given.
5640 if test "${enable_experimental_targets+set}" = set; then
5641   enableval=$enable_experimental_targets;
5642 else
5643   enableval=disable
5644 fi
5645
5646
5647 if test ${enableval} != "disable"
5648 then
5649   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5650 fi
5651
5652 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5653
5654
5655 for a_target in $TARGETS_TO_BUILD; do
5656   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5657
5658 cat >>confdefs.h <<_ACEOF
5659 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5660 _ACEOF
5661
5662     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5663     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5664     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5665     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5666     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5667       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5668     fi
5669     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5670       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5671     fi
5672
5673 cat >>confdefs.h <<_ACEOF
5674 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5675 _ACEOF
5676
5677
5678 cat >>confdefs.h <<_ACEOF
5679 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5680 _ACEOF
5681
5682
5683 cat >>confdefs.h <<_ACEOF
5684 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5685 _ACEOF
5686
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5690 _ACEOF
5691
5692     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5696 _ACEOF
5697
5698     fi
5699     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5700
5701 cat >>confdefs.h <<_ACEOF
5702 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5703 _ACEOF
5704
5705     fi
5706   fi
5707 done
5708
5709 LLVM_ENUM_TARGETS=""
5710 LLVM_ENUM_ASM_PRINTERS=""
5711 LLVM_ENUM_ASM_PARSERS=""
5712 LLVM_ENUM_DISASSEMBLERS=""
5713 for target_to_build in $TARGETS_TO_BUILD; do
5714   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5715   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5716     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5717   fi
5718   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5719     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5720   fi
5721   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5722     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5723   fi
5724 done
5725
5726
5727
5728
5729
5730
5731 # Check whether --with-optimize-option was given.
5732 if test "${with_optimize_option+set}" = set; then
5733   withval=$with_optimize_option;
5734 else
5735   withval=default
5736 fi
5737
5738 { echo "$as_me:$LINENO: checking optimization flags" >&5
5739 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5740 case "$withval" in
5741   default)
5742     case "$llvm_cv_os_type" in
5743     FreeBSD) optimize_option=-O2 ;;
5744     MingW) optimize_option=-O2 ;;
5745     *)     optimize_option=-O3 ;;
5746     esac ;;
5747   *) optimize_option="$withval" ;;
5748 esac
5749 OPTIMIZE_OPTION=$optimize_option
5750
5751 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5752 echo "${ECHO_T}$optimize_option" >&6; }
5753
5754
5755 # Check whether --with-extra-options was given.
5756 if test "${with_extra_options+set}" = set; then
5757   withval=$with_extra_options;
5758 else
5759   withval=default
5760 fi
5761
5762 case "$withval" in
5763   default) EXTRA_OPTIONS= ;;
5764   *) EXTRA_OPTIONS=$withval ;;
5765 esac
5766 EXTRA_OPTIONS=$EXTRA_OPTIONS
5767
5768
5769
5770 # Check whether --with-extra-ld-options was given.
5771 if test "${with_extra_ld_options+set}" = set; then
5772   withval=$with_extra_ld_options;
5773 else
5774   withval=default
5775 fi
5776
5777 case "$withval" in
5778   default) EXTRA_LD_OPTIONS= ;;
5779   *) EXTRA_LD_OPTIONS=$withval ;;
5780 esac
5781 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5782
5783
5784 # Check whether --enable-bindings was given.
5785 if test "${enable_bindings+set}" = set; then
5786   enableval=$enable_bindings;
5787 else
5788   enableval=default
5789 fi
5790
5791 BINDINGS_TO_BUILD=""
5792 case "$enableval" in
5793   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5794   all ) BINDINGS_TO_BUILD="ocaml" ;;
5795   none | no) BINDINGS_TO_BUILD="" ;;
5796   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5797       case "$a_binding" in
5798         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5799         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5800 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5801    { (exit 1); exit 1; }; } ;;
5802       esac
5803   done
5804   ;;
5805 esac
5806
5807
5808 # Check whether --with-ocaml-libdir was given.
5809 if test "${with_ocaml_libdir+set}" = set; then
5810   withval=$with_ocaml_libdir;
5811 else
5812   withval=auto
5813 fi
5814
5815 case "$withval" in
5816   auto) with_ocaml_libdir="$withval" ;;
5817   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5818   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5819 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5820    { (exit 1); exit 1; }; } ;;
5821 esac
5822
5823
5824 # Check whether --with-clang-srcdir was given.
5825 if test "${with_clang_srcdir+set}" = set; then
5826   withval=$with_clang_srcdir;
5827 else
5828   withval="-"
5829 fi
5830
5831 case "$withval" in
5832   -) clang_src_root="" ;;
5833   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5834   *) clang_src_root="$ac_pwd/$withval" ;;
5835 esac
5836 CLANG_SRC_ROOT=$clang_src_root
5837
5838
5839
5840 # Check whether --with-clang-resource-dir was given.
5841 if test "${with_clang_resource_dir+set}" = set; then
5842   withval=$with_clang_resource_dir;
5843 else
5844   withval=""
5845 fi
5846
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define CLANG_RESOURCE_DIR "$withval"
5850 _ACEOF
5851
5852
5853
5854 # Check whether --with-c-include-dirs was given.
5855 if test "${with_c_include_dirs+set}" = set; then
5856   withval=$with_c_include_dirs;
5857 else
5858   withval=""
5859 fi
5860
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define C_INCLUDE_DIRS "$withval"
5864 _ACEOF
5865
5866
5867 # Clang normally uses the system c++ headers and libraries. With this option,
5868 # clang will use the ones provided by a gcc installation instead. This option should
5869 # be passed the same value that was used with --prefix when configuring gcc.
5870
5871 # Check whether --with-gcc-toolchain was given.
5872 if test "${with_gcc_toolchain+set}" = set; then
5873   withval=$with_gcc_toolchain;
5874 else
5875   withval=""
5876 fi
5877
5878
5879 cat >>confdefs.h <<_ACEOF
5880 #define GCC_INSTALL_PREFIX "$withval"
5881 _ACEOF
5882
5883
5884
5885 # Check whether --with-default-sysroot was given.
5886 if test "${with_default_sysroot+set}" = set; then
5887   withval=$with_default_sysroot;
5888 else
5889   withval=""
5890 fi
5891
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define DEFAULT_SYSROOT "$withval"
5895 _ACEOF
5896
5897
5898
5899 # Check whether --with-binutils-include was given.
5900 if test "${with_binutils_include+set}" = set; then
5901   withval=$with_binutils_include;
5902 else
5903   withval=default
5904 fi
5905
5906 case "$withval" in
5907   default) WITH_BINUTILS_INCDIR=default ;;
5908   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5909   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5910 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5911    { (exit 1); exit 1; }; } ;;
5912 esac
5913 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5914   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5915
5916   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5917      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5918      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5919 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5920    { (exit 1); exit 1; }; };
5921   fi
5922 fi
5923
5924
5925 # Check whether --with-bug-report-url was given.
5926 if test "${with_bug_report_url+set}" = set; then
5927   withval=$with_bug_report_url;
5928 else
5929   withval="http://llvm.org/bugs/"
5930 fi
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define BUG_REPORT_URL "$withval"
5935 _ACEOF
5936
5937
5938 # Check whether --enable-libffi was given.
5939 if test "${enable_libffi+set}" = set; then
5940   enableval=$enable_libffi; case "$enableval" in
5941     yes) llvm_cv_enable_libffi="yes" ;;
5942     no)  llvm_cv_enable_libffi="no"  ;;
5943     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5944 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5945    { (exit 1); exit 1; }; } ;;
5946   esac
5947 else
5948   llvm_cv_enable_libffi=no
5949 fi
5950
5951
5952
5953 # Check whether --with-internal-prefix was given.
5954 if test "${with_internal_prefix+set}" = set; then
5955   withval=$with_internal_prefix;
5956 else
5957   withval=""
5958 fi
5959
5960 INTERNAL_PREFIX=$withval
5961
5962
5963
5964 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5965 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5966 if test "${lt_cv_path_NM+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   if test -n "$NM"; then
5970   # Let the user override the test.
5971   lt_cv_path_NM="$NM"
5972 else
5973   lt_nm_to_check="${ac_tool_prefix}nm"
5974   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5975     lt_nm_to_check="$lt_nm_to_check nm"
5976   fi
5977   for lt_tmp_nm in $lt_nm_to_check; do
5978     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5979     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5980       IFS="$lt_save_ifs"
5981       test -z "$ac_dir" && ac_dir=.
5982       tmp_nm="$ac_dir/$lt_tmp_nm"
5983       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5984         # Check to see if the nm accepts a BSD-compat flag.
5985         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5986         #   nm: unknown option "B" ignored
5987         # Tru64's nm complains that /dev/null is an invalid object file
5988         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5989         */dev/null* | *'Invalid file or object type'*)
5990           lt_cv_path_NM="$tmp_nm -B"
5991           break
5992           ;;
5993         *)
5994           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5995           */dev/null*)
5996             lt_cv_path_NM="$tmp_nm -p"
5997             break
5998             ;;
5999           *)
6000             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6001             continue # so that we can try to find one that supports BSD flags
6002             ;;
6003           esac
6004           ;;
6005         esac
6006       fi
6007     done
6008     IFS="$lt_save_ifs"
6009   done
6010   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6011 fi
6012 fi
6013 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6014 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6015 NM="$lt_cv_path_NM"
6016
6017
6018
6019 { echo "$as_me:$LINENO: checking for GNU make" >&5
6020 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6021 if test "${llvm_cv_gnu_make_command+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   llvm_cv_gnu_make_command=''
6025  for a in "$MAKE" make gmake gnumake ; do
6026   if test -z "$a" ; then continue ; fi ;
6027   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6028   then
6029    llvm_cv_gnu_make_command=$a ;
6030    break;
6031   fi
6032  done
6033 fi
6034 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6035 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6036  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6037    ifGNUmake='' ;
6038  else
6039    ifGNUmake='#' ;
6040    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6041 echo "${ECHO_T}\"Not found\"" >&6; };
6042  fi
6043
6044
6045 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6046 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6047 LN_S=$as_ln_s
6048 if test "$LN_S" = "ln -s"; then
6049   { echo "$as_me:$LINENO: result: yes" >&5
6050 echo "${ECHO_T}yes" >&6; }
6051 else
6052   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6053 echo "${ECHO_T}no, using $LN_S" >&6; }
6054 fi
6055
6056 # Extract the first word of "cmp", so it can be a program name with args.
6057 set dummy cmp; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_path_CMP+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   case $CMP in
6064   [\\/]* | ?:[\\/]*)
6065   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6066   ;;
6067   *)
6068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073   for ac_exec_ext in '' $ac_executable_extensions; do
6074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6084   ;;
6085 esac
6086 fi
6087 CMP=$ac_cv_path_CMP
6088 if test -n "$CMP"; then
6089   { echo "$as_me:$LINENO: result: $CMP" >&5
6090 echo "${ECHO_T}$CMP" >&6; }
6091 else
6092   { echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6; }
6094 fi
6095
6096
6097 # Extract the first word of "cp", so it can be a program name with args.
6098 set dummy cp; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_path_CP+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   case $CP in
6105   [\\/]* | ?:[\\/]*)
6106   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6107   ;;
6108   *)
6109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114   for ac_exec_ext in '' $ac_executable_extensions; do
6115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6125   ;;
6126 esac
6127 fi
6128 CP=$ac_cv_path_CP
6129 if test -n "$CP"; then
6130   { echo "$as_me:$LINENO: result: $CP" >&5
6131 echo "${ECHO_T}$CP" >&6; }
6132 else
6133   { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6135 fi
6136
6137
6138 # Extract the first word of "date", so it can be a program name with args.
6139 set dummy date; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_path_DATE+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   case $DATE in
6146   [\\/]* | ?:[\\/]*)
6147   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6148   ;;
6149   *)
6150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155   for ac_exec_ext in '' $ac_executable_extensions; do
6156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6166   ;;
6167 esac
6168 fi
6169 DATE=$ac_cv_path_DATE
6170 if test -n "$DATE"; then
6171   { echo "$as_me:$LINENO: result: $DATE" >&5
6172 echo "${ECHO_T}$DATE" >&6; }
6173 else
6174   { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179 # Extract the first word of "find", so it can be a program name with args.
6180 set dummy find; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_path_FIND+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   case $FIND in
6187   [\\/]* | ?:[\\/]*)
6188   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6189   ;;
6190   *)
6191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196   for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6207   ;;
6208 esac
6209 fi
6210 FIND=$ac_cv_path_FIND
6211 if test -n "$FIND"; then
6212   { echo "$as_me:$LINENO: result: $FIND" >&5
6213 echo "${ECHO_T}$FIND" >&6; }
6214 else
6215   { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6217 fi
6218
6219
6220 # Extract the first word of "grep", so it can be a program name with args.
6221 set dummy grep; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_GREP+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   case $GREP in
6228   [\\/]* | ?:[\\/]*)
6229   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6230   ;;
6231   *)
6232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6248   ;;
6249 esac
6250 fi
6251 GREP=$ac_cv_path_GREP
6252 if test -n "$GREP"; then
6253   { echo "$as_me:$LINENO: result: $GREP" >&5
6254 echo "${ECHO_T}$GREP" >&6; }
6255 else
6256   { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6258 fi
6259
6260
6261 # Extract the first word of "mkdir", so it can be a program name with args.
6262 set dummy mkdir; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_MKDIR+set}" = set; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268   case $MKDIR in
6269   [\\/]* | ?:[\\/]*)
6270   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6271   ;;
6272   *)
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6289   ;;
6290 esac
6291 fi
6292 MKDIR=$ac_cv_path_MKDIR
6293 if test -n "$MKDIR"; then
6294   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6295 echo "${ECHO_T}$MKDIR" >&6; }
6296 else
6297   { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6299 fi
6300
6301
6302 # Extract the first word of "mv", so it can be a program name with args.
6303 set dummy mv; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_MV+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   case $MV in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6330   ;;
6331 esac
6332 fi
6333 MV=$ac_cv_path_MV
6334 if test -n "$MV"; then
6335   { echo "$as_me:$LINENO: result: $MV" >&5
6336 echo "${ECHO_T}$MV" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6340 fi
6341
6342
6343 if test -n "$ac_tool_prefix"; then
6344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_RANLIB+set}" = set; then
6349   echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351   if test -n "$RANLIB"; then
6352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 RANLIB=$ac_cv_prog_RANLIB
6372 if test -n "$RANLIB"; then
6373   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6374 echo "${ECHO_T}$RANLIB" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_RANLIB"; then
6383   ac_ct_RANLIB=$RANLIB
6384   # Extract the first word of "ranlib", so it can be a program name with args.
6385 set dummy ranlib; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   if test -n "$ac_ct_RANLIB"; then
6392   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_prog_ac_ct_RANLIB="ranlib"
6402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6412 if test -n "$ac_ct_RANLIB"; then
6413   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6414 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6415 else
6416   { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 fi
6419
6420   if test "x$ac_ct_RANLIB" = x; then
6421     RANLIB=":"
6422   else
6423     case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6426 whose name does not start with the host triplet.  If you think this
6427 configuration is useful to you, please write to autoconf@gnu.org." >&5
6428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6429 whose name does not start with the host triplet.  If you think this
6430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6431 ac_tool_warned=yes ;;
6432 esac
6433     RANLIB=$ac_ct_RANLIB
6434   fi
6435 else
6436   RANLIB="$ac_cv_prog_RANLIB"
6437 fi
6438
6439 if test -n "$ac_tool_prefix"; then
6440   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}ar; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_prog_AR+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   if test -n "$AR"; then
6448   ac_cv_prog_AR="$AR" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455   for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_AR="${ac_tool_prefix}ar"
6458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 AR=$ac_cv_prog_AR
6468 if test -n "$AR"; then
6469   { echo "$as_me:$LINENO: result: $AR" >&5
6470 echo "${ECHO_T}$AR" >&6; }
6471 else
6472   { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_AR"; then
6479   ac_ct_AR=$AR
6480   # Extract the first word of "ar", so it can be a program name with args.
6481 set dummy ar; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   if test -n "$ac_ct_AR"; then
6488   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_ac_ct_AR="ar"
6498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6508 if test -n "$ac_ct_AR"; then
6509   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6510 echo "${ECHO_T}$ac_ct_AR" >&6; }
6511 else
6512   { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6514 fi
6515
6516   if test "x$ac_ct_AR" = x; then
6517     AR="false"
6518   else
6519     case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6522 whose name does not start with the host triplet.  If you think this
6523 configuration is useful to you, please write to autoconf@gnu.org." >&5
6524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6525 whose name does not start with the host triplet.  If you think this
6526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     AR=$ac_ct_AR
6530   fi
6531 else
6532   AR="$ac_cv_prog_AR"
6533 fi
6534
6535 # Extract the first word of "rm", so it can be a program name with args.
6536 set dummy rm; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_path_RM+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542   case $RM in
6543   [\\/]* | ?:[\\/]*)
6544   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6545   ;;
6546   *)
6547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6563   ;;
6564 esac
6565 fi
6566 RM=$ac_cv_path_RM
6567 if test -n "$RM"; then
6568   { echo "$as_me:$LINENO: result: $RM" >&5
6569 echo "${ECHO_T}$RM" >&6; }
6570 else
6571   { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6573 fi
6574
6575
6576 # Extract the first word of "sed", so it can be a program name with args.
6577 set dummy sed; ac_word=$2
6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6580 if test "${ac_cv_path_SED+set}" = set; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   case $SED in
6584   [\\/]* | ?:[\\/]*)
6585   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6586   ;;
6587   *)
6588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593   for ac_exec_ext in '' $ac_executable_extensions; do
6594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6595     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600 done
6601 IFS=$as_save_IFS
6602
6603   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6604   ;;
6605 esac
6606 fi
6607 SED=$ac_cv_path_SED
6608 if test -n "$SED"; then
6609   { echo "$as_me:$LINENO: result: $SED" >&5
6610 echo "${ECHO_T}$SED" >&6; }
6611 else
6612   { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6614 fi
6615
6616
6617 # Extract the first word of "tar", so it can be a program name with args.
6618 set dummy tar; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_path_TAR+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   case $TAR in
6625   [\\/]* | ?:[\\/]*)
6626   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6627   ;;
6628   *)
6629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6645   ;;
6646 esac
6647 fi
6648 TAR=$ac_cv_path_TAR
6649 if test -n "$TAR"; then
6650   { echo "$as_me:$LINENO: result: $TAR" >&5
6651 echo "${ECHO_T}$TAR" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 # Extract the first word of "pwd", so it can be a program name with args.
6659 set dummy pwd; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_BINPWD+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   case $BINPWD in
6666   [\\/]* | ?:[\\/]*)
6667   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6668   ;;
6669   *)
6670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6686   ;;
6687 esac
6688 fi
6689 BINPWD=$ac_cv_path_BINPWD
6690 if test -n "$BINPWD"; then
6691   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6692 echo "${ECHO_T}$BINPWD" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699
6700 # Extract the first word of "Graphviz", so it can be a program name with args.
6701 set dummy Graphviz; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   case $GRAPHVIZ in
6708   [\\/]* | ?:[\\/]*)
6709   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6710   ;;
6711   *)
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717   for ac_exec_ext in '' $ac_executable_extensions; do
6718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6728   ;;
6729 esac
6730 fi
6731 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6732 if test -n "$GRAPHVIZ"; then
6733   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6734 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740
6741 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6742
6743 cat >>confdefs.h <<\_ACEOF
6744 #define HAVE_GRAPHVIZ 1
6745 _ACEOF
6746
6747     if test "$llvm_cv_os_type" = "MingW" ; then
6748     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6749   fi
6750
6751 cat >>confdefs.h <<_ACEOF
6752 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6753 _ACEOF
6754
6755 fi
6756 # Extract the first word of "dot", so it can be a program name with args.
6757 set dummy dot; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_path_DOT+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   case $DOT in
6764   [\\/]* | ?:[\\/]*)
6765   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6766   ;;
6767   *)
6768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6784   ;;
6785 esac
6786 fi
6787 DOT=$ac_cv_path_DOT
6788 if test -n "$DOT"; then
6789   { echo "$as_me:$LINENO: result: $DOT" >&5
6790 echo "${ECHO_T}$DOT" >&6; }
6791 else
6792   { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6794 fi
6795
6796
6797 if test "$DOT" != "echo dot" ; then
6798
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_DOT 1
6801 _ACEOF
6802
6803     if test "$llvm_cv_os_type" = "MingW" ; then
6804     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6805   fi
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6809 _ACEOF
6810
6811 fi
6812 # Extract the first word of "fdp", so it can be a program name with args.
6813 set dummy fdp; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_FDP+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $FDP in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6840   ;;
6841 esac
6842 fi
6843 FDP=$ac_cv_path_FDP
6844 if test -n "$FDP"; then
6845   { echo "$as_me:$LINENO: result: $FDP" >&5
6846 echo "${ECHO_T}$FDP" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 if test "$FDP" != "echo fdp" ; then
6854
6855 cat >>confdefs.h <<\_ACEOF
6856 #define HAVE_FDP 1
6857 _ACEOF
6858
6859     if test "$llvm_cv_os_type" = "MingW" ; then
6860     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861   fi
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6865 _ACEOF
6866
6867 fi
6868 # Extract the first word of "neato", so it can be a program name with args.
6869 set dummy neato; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_NEATO+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   case $NEATO in
6876   [\\/]* | ?:[\\/]*)
6877   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6878   ;;
6879   *)
6880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885   for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6896   ;;
6897 esac
6898 fi
6899 NEATO=$ac_cv_path_NEATO
6900 if test -n "$NEATO"; then
6901   { echo "$as_me:$LINENO: result: $NEATO" >&5
6902 echo "${ECHO_T}$NEATO" >&6; }
6903 else
6904   { echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6; }
6906 fi
6907
6908
6909 if test "$NEATO" != "echo neato" ; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_NEATO 1
6913 _ACEOF
6914
6915     if test "$llvm_cv_os_type" = "MingW" ; then
6916     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6917   fi
6918
6919 cat >>confdefs.h <<_ACEOF
6920 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6921 _ACEOF
6922
6923 fi
6924 # Extract the first word of "twopi", so it can be a program name with args.
6925 set dummy twopi; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_TWOPI+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   case $TWOPI in
6932   [\\/]* | ?:[\\/]*)
6933   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6934   ;;
6935   *)
6936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   for ac_exec_ext in '' $ac_executable_extensions; do
6942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6952   ;;
6953 esac
6954 fi
6955 TWOPI=$ac_cv_path_TWOPI
6956 if test -n "$TWOPI"; then
6957   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6958 echo "${ECHO_T}$TWOPI" >&6; }
6959 else
6960   { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 fi
6963
6964
6965 if test "$TWOPI" != "echo twopi" ; then
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define HAVE_TWOPI 1
6969 _ACEOF
6970
6971     if test "$llvm_cv_os_type" = "MingW" ; then
6972     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6973   fi
6974
6975 cat >>confdefs.h <<_ACEOF
6976 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6977 _ACEOF
6978
6979 fi
6980 # Extract the first word of "circo", so it can be a program name with args.
6981 set dummy circo; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_CIRCO+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   case $CIRCO in
6988   [\\/]* | ?:[\\/]*)
6989   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6990   ;;
6991   *)
6992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7008   ;;
7009 esac
7010 fi
7011 CIRCO=$ac_cv_path_CIRCO
7012 if test -n "$CIRCO"; then
7013   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7014 echo "${ECHO_T}$CIRCO" >&6; }
7015 else
7016   { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019
7020
7021 if test "$CIRCO" != "echo circo" ; then
7022
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_CIRCO 1
7025 _ACEOF
7026
7027     if test "$llvm_cv_os_type" = "MingW" ; then
7028     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029   fi
7030
7031 cat >>confdefs.h <<_ACEOF
7032 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7033 _ACEOF
7034
7035 fi
7036 for ac_prog in gv gsview32
7037 do
7038   # Extract the first word of "$ac_prog", so it can be a program name with args.
7039 set dummy $ac_prog; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_GV+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $GV in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   ;;
7066 esac
7067 fi
7068 GV=$ac_cv_path_GV
7069 if test -n "$GV"; then
7070   { echo "$as_me:$LINENO: result: $GV" >&5
7071 echo "${ECHO_T}$GV" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078   test -n "$GV" && break
7079 done
7080 test -n "$GV" || GV="echo gv"
7081
7082 if test "$GV" != "echo gv" ; then
7083
7084 cat >>confdefs.h <<\_ACEOF
7085 #define HAVE_GV 1
7086 _ACEOF
7087
7088     if test "$llvm_cv_os_type" = "MingW" ; then
7089     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7090   fi
7091
7092 cat >>confdefs.h <<_ACEOF
7093 #define LLVM_PATH_GV "$GV${EXEEXT}"
7094 _ACEOF
7095
7096 fi
7097 # Extract the first word of "dotty", so it can be a program name with args.
7098 set dummy dotty; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_DOTTY+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $DOTTY in
7105   [\\/]* | ?:[\\/]*)
7106   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7107   ;;
7108   *)
7109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114   for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7125   ;;
7126 esac
7127 fi
7128 DOTTY=$ac_cv_path_DOTTY
7129 if test -n "$DOTTY"; then
7130   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7131 echo "${ECHO_T}$DOTTY" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7135 fi
7136
7137
7138 if test "$DOTTY" != "echo dotty" ; then
7139
7140 cat >>confdefs.h <<\_ACEOF
7141 #define HAVE_DOTTY 1
7142 _ACEOF
7143
7144     if test "$llvm_cv_os_type" = "MingW" ; then
7145     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7146   fi
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7150 _ACEOF
7151
7152 fi
7153 # Extract the first word of "xdot.py", so it can be a program name with args.
7154 set dummy xdot.py; ac_word=$2
7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   case $XDOT_PY in
7161   [\\/]* | ?:[\\/]*)
7162   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7163   ;;
7164   *)
7165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170   for ac_exec_ext in '' $ac_executable_extensions; do
7171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7181   ;;
7182 esac
7183 fi
7184 XDOT_PY=$ac_cv_path_XDOT_PY
7185 if test -n "$XDOT_PY"; then
7186   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7187 echo "${ECHO_T}$XDOT_PY" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193
7194 if test "$XDOT_PY" != "echo xdot.py" ; then
7195
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_XDOT_PY 1
7198 _ACEOF
7199
7200     if test "$llvm_cv_os_type" = "MingW" ; then
7201     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7202   fi
7203
7204 cat >>confdefs.h <<_ACEOF
7205 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7206 _ACEOF
7207
7208 fi
7209
7210 # Find a good install program.  We prefer a C program (faster),
7211 # so one script is as good as another.  But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7216 # AIX /bin/install
7217 # AmigaOS /C/install, which installs bootblocks on floppy discs
7218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7221 # OS/2's system install, which has a completely different semantic
7222 # ./install, which can be erroneously created by make from ./install.sh.
7223 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7225 if test -z "$INSTALL"; then
7226 if test "${ac_cv_path_install+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   # Account for people who put trailing slashes in PATH elements.
7235 case $as_dir/ in
7236   ./ | .// | /cC/* | \
7237   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7238   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7239   /usr/ucb/* ) ;;
7240   *)
7241     # OSF1 and SCO ODT 3.0 have their own names for install.
7242     # Don't use installbsd from OSF since it installs stuff as root
7243     # by default.
7244     for ac_prog in ginstall scoinst install; do
7245       for ac_exec_ext in '' $ac_executable_extensions; do
7246         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7247           if test $ac_prog = install &&
7248             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249             # AIX install.  It has an incompatible calling convention.
7250             :
7251           elif test $ac_prog = install &&
7252             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7253             # program-specific install script used by HP pwplus--don't use.
7254             :
7255           else
7256             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7257             break 3
7258           fi
7259         fi
7260       done
7261     done
7262     ;;
7263 esac
7264 done
7265 IFS=$as_save_IFS
7266
7267
7268 fi
7269   if test "${ac_cv_path_install+set}" = set; then
7270     INSTALL=$ac_cv_path_install
7271   else
7272     # As a last resort, use the slow shell script.  Don't cache a
7273     # value for INSTALL within a source directory, because that will
7274     # break other packages using the cache if that directory is
7275     # removed, or if the value is a relative name.
7276     INSTALL=$ac_install_sh
7277   fi
7278 fi
7279 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7280 echo "${ECHO_T}$INSTALL" >&6; }
7281
7282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283 # It thinks the first close brace ends the variable substitution.
7284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7285
7286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7287
7288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289
7290 case "$INSTALL" in
7291  [\\/$]* | ?:[\\/]* ) ;;
7292  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7293 esac
7294
7295 # Extract the first word of "bzip2", so it can be a program name with args.
7296 set dummy bzip2; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_BZIP2+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   case $BZIP2 in
7303   [\\/]* | ?:[\\/]*)
7304   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7305   ;;
7306   *)
7307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312   for ac_exec_ext in '' $ac_executable_extensions; do
7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322   ;;
7323 esac
7324 fi
7325 BZIP2=$ac_cv_path_BZIP2
7326 if test -n "$BZIP2"; then
7327   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7328 echo "${ECHO_T}$BZIP2" >&6; }
7329 else
7330   { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7332 fi
7333
7334
7335 # Extract the first word of "cat", so it can be a program name with args.
7336 set dummy cat; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_CAT+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   case $CAT in
7343   [\\/]* | ?:[\\/]*)
7344   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7345   ;;
7346   *)
7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_exec_ext in '' $ac_executable_extensions; do
7353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362   ;;
7363 esac
7364 fi
7365 CAT=$ac_cv_path_CAT
7366 if test -n "$CAT"; then
7367   { echo "$as_me:$LINENO: result: $CAT" >&5
7368 echo "${ECHO_T}$CAT" >&6; }
7369 else
7370   { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7372 fi
7373
7374
7375 # Extract the first word of "doxygen", so it can be a program name with args.
7376 set dummy doxygen; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   case $DOXYGEN in
7383   [\\/]* | ?:[\\/]*)
7384   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7385   ;;
7386   *)
7387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402   ;;
7403 esac
7404 fi
7405 DOXYGEN=$ac_cv_path_DOXYGEN
7406 if test -n "$DOXYGEN"; then
7407   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7408 echo "${ECHO_T}$DOXYGEN" >&6; }
7409 else
7410   { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7413
7414
7415 # Extract the first word of "groff", so it can be a program name with args.
7416 set dummy groff; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_GROFF+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   case $GROFF in
7423   [\\/]* | ?:[\\/]*)
7424   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7425   ;;
7426   *)
7427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442   ;;
7443 esac
7444 fi
7445 GROFF=$ac_cv_path_GROFF
7446 if test -n "$GROFF"; then
7447   { echo "$as_me:$LINENO: result: $GROFF" >&5
7448 echo "${ECHO_T}$GROFF" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7453
7454
7455 # Extract the first word of "gzip", so it can be a program name with args.
7456 set dummy gzip; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   case $GZIPBIN in
7463   [\\/]* | ?:[\\/]*)
7464   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7465   ;;
7466   *)
7467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482   ;;
7483 esac
7484 fi
7485 GZIPBIN=$ac_cv_path_GZIPBIN
7486 if test -n "$GZIPBIN"; then
7487   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7488 echo "${ECHO_T}$GZIPBIN" >&6; }
7489 else
7490   { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7492 fi
7493
7494
7495 # Extract the first word of "pdfroff", so it can be a program name with args.
7496 set dummy pdfroff; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_PDFROFF+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $PDFROFF in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 PDFROFF=$ac_cv_path_PDFROFF
7526 if test -n "$PDFROFF"; then
7527   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7528 echo "${ECHO_T}$PDFROFF" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535 # Extract the first word of "zip", so it can be a program name with args.
7536 set dummy zip; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_ZIP+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   case $ZIP in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562   ;;
7563 esac
7564 fi
7565 ZIP=$ac_cv_path_ZIP
7566 if test -n "$ZIP"; then
7567   { echo "$as_me:$LINENO: result: $ZIP" >&5
7568 echo "${ECHO_T}$ZIP" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7573
7574
7575 for ac_prog in ocamlc
7576 do
7577   # Extract the first word of "$ac_prog", so it can be a program name with args.
7578 set dummy $ac_prog; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_OCAMLC+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   case $OCAMLC in
7585   [\\/]* | ?:[\\/]*)
7586   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7587   ;;
7588   *)
7589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594   for ac_exec_ext in '' $ac_executable_extensions; do
7595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601 done
7602 IFS=$as_save_IFS
7603
7604   ;;
7605 esac
7606 fi
7607 OCAMLC=$ac_cv_path_OCAMLC
7608 if test -n "$OCAMLC"; then
7609   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7610 echo "${ECHO_T}$OCAMLC" >&6; }
7611 else
7612   { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7614 fi
7615
7616
7617   test -n "$OCAMLC" && break
7618 done
7619
7620 for ac_prog in ocamlopt
7621 do
7622   # Extract the first word of "$ac_prog", so it can be a program name with args.
7623 set dummy $ac_prog; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   case $OCAMLOPT in
7630   [\\/]* | ?:[\\/]*)
7631   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7632   ;;
7633   *)
7634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649   ;;
7650 esac
7651 fi
7652 OCAMLOPT=$ac_cv_path_OCAMLOPT
7653 if test -n "$OCAMLOPT"; then
7654   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7655 echo "${ECHO_T}$OCAMLOPT" >&6; }
7656 else
7657   { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7659 fi
7660
7661
7662   test -n "$OCAMLOPT" && break
7663 done
7664
7665 for ac_prog in ocamldep
7666 do
7667   # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   case $OCAMLDEP in
7675   [\\/]* | ?:[\\/]*)
7676   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7677   ;;
7678   *)
7679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694   ;;
7695 esac
7696 fi
7697 OCAMLDEP=$ac_cv_path_OCAMLDEP
7698 if test -n "$OCAMLDEP"; then
7699   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7700 echo "${ECHO_T}$OCAMLDEP" >&6; }
7701 else
7702   { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7704 fi
7705
7706
7707   test -n "$OCAMLDEP" && break
7708 done
7709
7710 for ac_prog in ocamldoc
7711 do
7712   # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   case $OCAMLDOC in
7720   [\\/]* | ?:[\\/]*)
7721   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7722   ;;
7723   *)
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729   for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739   ;;
7740 esac
7741 fi
7742 OCAMLDOC=$ac_cv_path_OCAMLDOC
7743 if test -n "$OCAMLDOC"; then
7744   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7745 echo "${ECHO_T}$OCAMLDOC" >&6; }
7746 else
7747   { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7749 fi
7750
7751
7752   test -n "$OCAMLDOC" && break
7753 done
7754
7755 for ac_prog in gas as
7756 do
7757   # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_GAS+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   case $GAS in
7765   [\\/]* | ?:[\\/]*)
7766   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7767   ;;
7768   *)
7769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774   for ac_exec_ext in '' $ac_executable_extensions; do
7775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784   ;;
7785 esac
7786 fi
7787 GAS=$ac_cv_path_GAS
7788 if test -n "$GAS"; then
7789   { echo "$as_me:$LINENO: result: $GAS" >&5
7790 echo "${ECHO_T}$GAS" >&6; }
7791 else
7792   { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7794 fi
7795
7796
7797   test -n "$GAS" && break
7798 done
7799
7800
7801 { echo "$as_me:$LINENO: checking for linker version" >&5
7802 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_version+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806
7807    version_string="$(ld -v 2>&1 | head -1)"
7808
7809    # Check for ld64.
7810    if (echo "$version_string" | grep -q "ld64"); then
7811      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7812    else
7813      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7814    fi
7815
7816 fi
7817 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7818 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7819
7820 cat >>confdefs.h <<_ACEOF
7821 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7822 _ACEOF
7823
7824
7825
7826 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7827 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7828 if test "${llvm_cv_link_use_r+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831    ac_ext=c
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837   oldcflags="$CFLAGS"
7838   CFLAGS="$CFLAGS -Wl,-R."
7839   cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (ac_try="$ac_link"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_link") 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } &&
7868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869   { (case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_try") 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; } &&
7878          { ac_try='test -s conftest$ac_exeext'
7879   { (case "(($ac_try" in
7880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881   *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884   (eval "$ac_try") 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; }; then
7888   llvm_cv_link_use_r=yes
7889 else
7890   echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893         llvm_cv_link_use_r=no
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext \
7897       conftest$ac_exeext conftest.$ac_ext
7898   CFLAGS="$oldcflags"
7899   ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906 fi
7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7908 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7909 if test "$llvm_cv_link_use_r" = yes ; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_LINK_R 1
7913 _ACEOF
7914
7915   fi
7916
7917
7918 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7919 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7920 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923    ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929   oldcflags="$CFLAGS"
7930   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7931   cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937
7938 int
7939 main ()
7940 {
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_link") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; } &&
7970          { ac_try='test -s conftest$ac_exeext'
7971   { (case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_try") 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   llvm_cv_link_use_export_dynamic=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985         llvm_cv_link_use_export_dynamic=no
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext \
7989       conftest$ac_exeext conftest.$ac_ext
7990   CFLAGS="$oldcflags"
7991   ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998 fi
7999 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8000 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8001 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8002
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_LINK_EXPORT_DYNAMIC 1
8005 _ACEOF
8006
8007   fi
8008
8009
8010 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8011 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8012 if test "${llvm_cv_link_use_version_script+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015    ac_ext=c
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021   oldcflags="$CFLAGS"
8022
8023   # The following code is from the autoconf manual,
8024   # "11.13: Limitations of Usual Tools".
8025   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8026   # Use mktemp if possible; otherwise fall back on mkdir,
8027   # with $RANDOM to make collisions less likely.
8028   : ${TMPDIR=/tmp}
8029   {
8030     tmp=`
8031       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8032     ` &&
8033     test -n "$tmp" && test -d "$tmp"
8034   } || {
8035     tmp=$TMPDIR/foo$$-$RANDOM
8036     (umask 077 && mkdir "$tmp")
8037   } || exit $?
8038
8039   echo "{" > "$tmp/export.map"
8040   echo "  global: main;" >> "$tmp/export.map"
8041   echo "  local: *;" >> "$tmp/export.map"
8042   echo "};" >> "$tmp/export.map"
8043
8044   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8045   cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051
8052 int
8053 main ()
8054 {
8055
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8062 case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067   (eval "$ac_link") 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } &&
8074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075   { (case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080   (eval "$ac_try") 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }; } &&
8084          { ac_try='test -s conftest$ac_exeext'
8085   { (case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090   (eval "$ac_try") 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   llvm_cv_link_use_version_script=yes
8095 else
8096   echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099         llvm_cv_link_use_version_script=no
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext \
8103       conftest$ac_exeext conftest.$ac_ext
8104   rm "$tmp/export.map"
8105   rmdir "$tmp"
8106   CFLAGS="$oldcflags"
8107   ac_ext=c
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114 fi
8115 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8116 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8117 if test "$llvm_cv_link_use_version_script" = yes ; then
8118   HAVE_LINK_VERSION_SCRIPT=1
8119
8120   fi
8121
8122
8123
8124
8125 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8126 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8127 if test "${ac_cv_c_const+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136
8137 int
8138 main ()
8139 {
8140 /* FIXME: Include the comments suggested by Paul. */
8141 #ifndef __cplusplus
8142   /* Ultrix mips cc rejects this.  */
8143   typedef int charset[2];
8144   const charset x;
8145   /* SunOS 4.1.1 cc rejects this.  */
8146   char const *const *ccp;
8147   char **p;
8148   /* NEC SVR4.0.2 mips cc rejects this.  */
8149   struct point {int x, y;};
8150   static struct point const zero = {0,0};
8151   /* AIX XL C 1.02.0.0 rejects this.
8152      It does not let you subtract one const X* pointer from another in
8153      an arm of an if-expression whose if-part is not a constant
8154      expression */
8155   const char *g = "string";
8156   ccp = &g + (g ? g-g : 0);
8157   /* HPUX 7.0 cc rejects these. */
8158   ++ccp;
8159   p = (char**) ccp;
8160   ccp = (char const *const *) p;
8161   { /* SCO 3.2v4 cc rejects this.  */
8162     char *t;
8163     char const *s = 0 ? (char *) 0 : (char const *) 0;
8164
8165     *t++ = 0;
8166     if (s) return 0;
8167   }
8168   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8169     int x[] = {25, 17};
8170     const int *foo = &x[0];
8171     ++foo;
8172   }
8173   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8174     typedef const int *iptr;
8175     iptr p = 0;
8176     ++p;
8177   }
8178   { /* AIX XL C 1.02.0.0 rejects this saying
8179        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8180     struct s { int j; const int *ap[3]; };
8181     struct s *b; b->j = 5;
8182   }
8183   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8184     const int foo = 10;
8185     if (!foo) return 0;
8186   }
8187   return !x[0] && !zero.x;
8188 #endif
8189
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_compile") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209   { (case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_try") 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; } &&
8218          { ac_try='test -s conftest.$ac_objext'
8219   { (case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_try") 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_c_const=yes
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233         ac_cv_c_const=no
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 fi
8238 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8239 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8240 if test $ac_cv_c_const = no; then
8241
8242 cat >>confdefs.h <<\_ACEOF
8243 #define const
8244 _ACEOF
8245
8246 fi
8247
8248
8249
8250
8251
8252
8253 ac_header_dirent=no
8254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8255   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8256 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8257 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 #include <sys/types.h>
8268 #include <$ac_hdr>
8269
8270 int
8271 main ()
8272 {
8273 if ((DIR *) 0)
8274 return 0;
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_compile") 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } &&
8293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294   { (case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_try") 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; } &&
8303          { ac_try='test -s conftest.$ac_objext'
8304   { (case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_try") 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; }; then
8313   eval "$as_ac_Header=yes"
8314 else
8315   echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318         eval "$as_ac_Header=no"
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 ac_res=`eval echo '${'$as_ac_Header'}'`
8324                { echo "$as_me:$LINENO: result: $ac_res" >&5
8325 echo "${ECHO_T}$ac_res" >&6; }
8326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8327   cat >>confdefs.h <<_ACEOF
8328 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8329 _ACEOF
8330
8331 ac_header_dirent=$ac_hdr; break
8332 fi
8333
8334 done
8335 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8336 if test $ac_header_dirent = dirent.h; then
8337   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8338 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8339 if test "${ac_cv_search_opendir+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   ac_func_search_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any GCC internal prototype to avoid an error.
8351    Use char because int might match the return type of a GCC
8352    builtin and then its argument prototype would still apply.  */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 char opendir ();
8357 int
8358 main ()
8359 {
8360 return opendir ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 for ac_lib in '' dir; do
8366   if test -z "$ac_lib"; then
8367     ac_res="none required"
8368   else
8369     ac_res=-l$ac_lib
8370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8371   fi
8372   rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (ac_try="$ac_link"
8374 case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_link") 2>conftest.er1
8380   ac_status=$?
8381   grep -v '^ *+' conftest.er1 >conftest.err
8382   rm -f conftest.er1
8383   cat conftest.err >&5
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } &&
8386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387   { (case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_try") 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; } &&
8396          { ac_try='test -s conftest$ac_exeext'
8397   { (case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_try") 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_cv_search_opendir=$ac_res
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext \
8415       conftest$ac_exeext
8416   if test "${ac_cv_search_opendir+set}" = set; then
8417   break
8418 fi
8419 done
8420 if test "${ac_cv_search_opendir+set}" = set; then
8421   :
8422 else
8423   ac_cv_search_opendir=no
8424 fi
8425 rm conftest.$ac_ext
8426 LIBS=$ac_func_search_save_LIBS
8427 fi
8428 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8429 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8430 ac_res=$ac_cv_search_opendir
8431 if test "$ac_res" != no; then
8432   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8433
8434 fi
8435
8436 else
8437   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8438 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8439 if test "${ac_cv_search_opendir+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   ac_func_search_save_LIBS=$LIBS
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449
8450 /* Override any GCC internal prototype to avoid an error.
8451    Use char because int might match the return type of a GCC
8452    builtin and then its argument prototype would still apply.  */
8453 #ifdef __cplusplus
8454 extern "C"
8455 #endif
8456 char opendir ();
8457 int
8458 main ()
8459 {
8460 return opendir ();
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 for ac_lib in '' x; do
8466   if test -z "$ac_lib"; then
8467     ac_res="none required"
8468   else
8469     ac_res=-l$ac_lib
8470     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8471   fi
8472   rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_link") 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487   { (case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_try") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502   (eval "$ac_try") 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_search_opendir=$ac_res
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511
8512 fi
8513
8514 rm -f core conftest.err conftest.$ac_objext \
8515       conftest$ac_exeext
8516   if test "${ac_cv_search_opendir+set}" = set; then
8517   break
8518 fi
8519 done
8520 if test "${ac_cv_search_opendir+set}" = set; then
8521   :
8522 else
8523   ac_cv_search_opendir=no
8524 fi
8525 rm conftest.$ac_ext
8526 LIBS=$ac_func_search_save_LIBS
8527 fi
8528 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8529 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8530 ac_res=$ac_cv_search_opendir
8531 if test "$ac_res" != no; then
8532   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8533
8534 fi
8535
8536 fi
8537
8538
8539 for ac_header in dlfcn.h
8540 do
8541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 fi
8548 ac_res=`eval echo '${'$as_ac_Header'}'`
8549                { echo "$as_me:$LINENO: result: $ac_res" >&5
8550 echo "${ECHO_T}$ac_res" >&6; }
8551 else
8552   # Is the header compilable?
8553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h.  */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h.  */
8561 $ac_includes_default
8562 #include <$ac_header>
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_compile") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579   { (case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_try") 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest.$ac_objext'
8589   { (case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_try") 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_header_compiler=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603         ac_header_compiler=no
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6; }
8609
8610 # Is the header present?
8611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 #include <$ac_header>
8620 _ACEOF
8621 if { (ac_try="$ac_cpp conftest.$ac_ext"
8622 case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8628   ac_status=$?
8629   grep -v '^ *+' conftest.er1 >conftest.err
8630   rm -f conftest.er1
8631   cat conftest.err >&5
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } >/dev/null; then
8634   if test -s conftest.err; then
8635     ac_cpp_err=$ac_c_preproc_warn_flag
8636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8637   else
8638     ac_cpp_err=
8639   fi
8640 else
8641   ac_cpp_err=yes
8642 fi
8643 if test -z "$ac_cpp_err"; then
8644   ac_header_preproc=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649   ac_header_preproc=no
8650 fi
8651
8652 rm -f conftest.err conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654 echo "${ECHO_T}$ac_header_preproc" >&6; }
8655
8656 # So?  What about this header?
8657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8658   yes:no: )
8659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663     ac_header_preproc=yes
8664     ;;
8665   no:yes:* )
8666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8678     ( cat <<\_ASBOX
8679 ## ------------------------------------ ##
8680 ## Report this to http://llvm.org/bugs/ ##
8681 ## ------------------------------------ ##
8682 _ASBOX
8683      ) | sed "s/^/$as_me: WARNING:     /" >&2
8684     ;;
8685 esac
8686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   eval "$as_ac_Header=\$ac_header_preproc"
8692 fi
8693 ac_res=`eval echo '${'$as_ac_Header'}'`
8694                { echo "$as_me:$LINENO: result: $ac_res" >&5
8695 echo "${ECHO_T}$ac_res" >&6; }
8696
8697 fi
8698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699   cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8701 _ACEOF
8702
8703 fi
8704
8705 done
8706
8707 # Check whether --enable-ltdl-install was given.
8708 if test "${enable_ltdl_install+set}" = set; then
8709   enableval=$enable_ltdl_install;
8710 fi
8711
8712
8713
8714
8715 if test x"${enable_ltdl_install-no}" != xno; then
8716   INSTALL_LTDL_TRUE=
8717   INSTALL_LTDL_FALSE='#'
8718 else
8719   INSTALL_LTDL_TRUE='#'
8720   INSTALL_LTDL_FALSE=
8721 fi
8722
8723
8724
8725 if test x"${enable_ltdl_convenience-no}" != xno; then
8726   CONVENIENCE_LTDL_TRUE=
8727   CONVENIENCE_LTDL_FALSE='#'
8728 else
8729   CONVENIENCE_LTDL_TRUE='#'
8730   CONVENIENCE_LTDL_FALSE=
8731 fi
8732
8733
8734 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8736 library_names_spec=
8737 libname_spec='lib$name'
8738 soname_spec=
8739 shrext_cmds=".so"
8740 postinstall_cmds=
8741 postuninstall_cmds=
8742 finish_cmds=
8743 finish_eval=
8744 shlibpath_var=
8745 shlibpath_overrides_runpath=unknown
8746 version_type=none
8747 dynamic_linker="$host_os ld.so"
8748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749 if test "$GCC" = yes; then
8750   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8752     # if the path contains ";" then we assume it to be the separator
8753     # otherwise default to the standard path separator (i.e. ":") - it is
8754     # assumed that no part of a normal pathname contains ";" but that should
8755     # okay in the real world where ";" in dirpaths is itself problematic.
8756     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8757   else
8758     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8759   fi
8760 else
8761   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762 fi
8763 need_lib_prefix=unknown
8764 hardcode_into_libs=no
8765
8766 # when you set need_version to no, make sure it does not cause -set_version
8767 # flags to be left without arguments
8768 need_version=unknown
8769
8770 case $host_os in
8771 aix3*)
8772   version_type=linux
8773   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774   shlibpath_var=LIBPATH
8775
8776   # AIX 3 has no versioning support, so we append a major version to the name.
8777   soname_spec='${libname}${release}${shared_ext}$major'
8778   ;;
8779
8780 aix4* | aix5*)
8781   version_type=linux
8782   need_lib_prefix=no
8783   need_version=no
8784   hardcode_into_libs=yes
8785   if test "$host_cpu" = ia64; then
8786     # AIX 5 supports IA64
8787     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788     shlibpath_var=LD_LIBRARY_PATH
8789   else
8790     # With GCC up to 2.95.x, collect2 would create an import file
8791     # for dependence libraries.  The import file would start with
8792     # the line `#! .'.  This would cause the generated library to
8793     # depend on `.', always an invalid library.  This was fixed in
8794     # development snapshots of GCC prior to 3.0.
8795     case $host_os in
8796       aix4 | aix4.[01] | aix4.[01].*)
8797       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8798            echo ' yes '
8799            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8800         :
8801       else
8802         can_build_shared=no
8803       fi
8804       ;;
8805     esac
8806     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807     # soname into executable. Probably we can add versioning support to
8808     # collect2, so additional links can be useful in future.
8809     if test "$aix_use_runtimelinking" = yes; then
8810       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811       # instead of lib<name>.a to let people know that these are not
8812       # typical AIX shared libraries.
8813       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814     else
8815       # We preserve .a as extension for shared libraries through AIX4.2
8816       # and later when we are not doing run time linking.
8817       library_names_spec='${libname}${release}.a $libname.a'
8818       soname_spec='${libname}${release}${shared_ext}$major'
8819     fi
8820     shlibpath_var=LIBPATH
8821   fi
8822   ;;
8823
8824 amigaos*)
8825   library_names_spec='$libname.ixlibrary $libname.a'
8826   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827   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'
8828   ;;
8829
8830 beos*)
8831   library_names_spec='${libname}${shared_ext}'
8832   dynamic_linker="$host_os ld.so"
8833   shlibpath_var=LIBRARY_PATH
8834   ;;
8835
8836 bsdi[45]*)
8837   version_type=linux
8838   need_version=no
8839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840   soname_spec='${libname}${release}${shared_ext}$major'
8841   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842   shlibpath_var=LD_LIBRARY_PATH
8843   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845   # the default ld.so.conf also contains /usr/contrib/lib and
8846   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847   # libtool to hard-code these into programs
8848   ;;
8849
8850 cygwin* | mingw* | pw32*)
8851   version_type=windows
8852   shrext_cmds=".dll"
8853   need_version=no
8854   need_lib_prefix=no
8855
8856   case $GCC,$host_os in
8857   yes,cygwin* | yes,mingw* | yes,pw32*)
8858     library_names_spec='$libname.dll.a'
8859     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860     postinstall_cmds='base_file=`basename \${file}`~
8861       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862       dldir=$destdir/`dirname \$dlpath`~
8863       test -d \$dldir || mkdir -p \$dldir~
8864       $install_prog $dir/$dlname \$dldir/$dlname~
8865       chmod a+x \$dldir/$dlname'
8866     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867       dlpath=$dir/\$dldll~
8868        $rm \$dlpath'
8869     shlibpath_overrides_runpath=yes
8870
8871     case $host_os in
8872     cygwin*)
8873       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876       ;;
8877     mingw*)
8878       # MinGW DLLs use traditional 'lib' prefix
8879       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882         # It is most probably a Windows format PATH printed by
8883         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884         # path with ; separators, and with drive letters. We can handle the
8885         # drive letters (cygwin fileutils understands them), so leave them,
8886         # especially as we might pass files found there to a mingw objdump,
8887         # which wouldn't understand a cygwinified path. Ahh.
8888         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889       else
8890         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8891       fi
8892       ;;
8893     pw32*)
8894       # pw32 DLLs use 'pw' prefix rather than 'lib'
8895       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896       ;;
8897     esac
8898     ;;
8899
8900   *)
8901     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902     ;;
8903   esac
8904   dynamic_linker='Win32 ld.exe'
8905   # FIXME: first we should search . and the directory the executable is in
8906   shlibpath_var=PATH
8907   ;;
8908
8909 darwin* | rhapsody*)
8910   dynamic_linker="$host_os dyld"
8911   version_type=darwin
8912   need_lib_prefix=no
8913   need_version=no
8914   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915   soname_spec='${libname}${release}${major}$shared_ext'
8916   shlibpath_overrides_runpath=yes
8917   shlibpath_var=DYLD_LIBRARY_PATH
8918   shrext_cmds='.dylib'
8919   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8920   if test "$GCC" = yes; then
8921     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"`
8922   else
8923     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8924   fi
8925   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8926   ;;
8927
8928 dgux*)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   shlibpath_var=LD_LIBRARY_PATH
8935   ;;
8936
8937 freebsd1.*)
8938   dynamic_linker=no
8939   ;;
8940
8941 kfreebsd*-gnu)
8942   version_type=linux
8943   need_lib_prefix=no
8944   need_version=no
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   shlibpath_overrides_runpath=no
8949   hardcode_into_libs=yes
8950   dynamic_linker='GNU ld.so'
8951   ;;
8952
8953 freebsd* | dragonfly*)
8954   # DragonFly does not have aout.  When/if they implement a new
8955   # versioning mechanism, adjust this.
8956   if test -x /usr/bin/objformat; then
8957     objformat=`/usr/bin/objformat`
8958   else
8959     case $host_os in
8960     freebsd[123].*) objformat=aout ;;
8961     *) objformat=elf ;;
8962     esac
8963   fi
8964   version_type=freebsd-$objformat
8965   case $version_type in
8966     freebsd-elf*)
8967       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8968       need_version=no
8969       need_lib_prefix=no
8970       ;;
8971     freebsd-*)
8972       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8973       need_version=yes
8974       ;;
8975   esac
8976   shlibpath_var=LD_LIBRARY_PATH
8977   case $host_os in
8978   freebsd2.*)
8979     shlibpath_overrides_runpath=yes
8980     ;;
8981   freebsd3.[01]* | freebsdelf3.[01]*)
8982     shlibpath_overrides_runpath=yes
8983     hardcode_into_libs=yes
8984     ;;
8985   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8987     shlibpath_overrides_runpath=no
8988     hardcode_into_libs=yes
8989     ;;
8990   freebsd*) # from 4.6 on
8991     shlibpath_overrides_runpath=yes
8992     hardcode_into_libs=yes
8993     ;;
8994   esac
8995   ;;
8996
8997 gnu*)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   hardcode_into_libs=yes
9005   ;;
9006
9007 hpux9* | hpux10* | hpux11*)
9008   # Give a soname corresponding to the major version so that dld.sl refuses to
9009   # link against other versions.
9010   version_type=sunos
9011   need_lib_prefix=no
9012   need_version=no
9013   case $host_cpu in
9014   ia64*)
9015     shrext_cmds='.so'
9016     hardcode_into_libs=yes
9017     dynamic_linker="$host_os dld.so"
9018     shlibpath_var=LD_LIBRARY_PATH
9019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021     soname_spec='${libname}${release}${shared_ext}$major'
9022     if test "X$HPUX_IA64_MODE" = X32; then
9023       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9024     else
9025       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9026     fi
9027     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9028     ;;
9029    hppa*64*)
9030      shrext_cmds='.sl'
9031      hardcode_into_libs=yes
9032      dynamic_linker="$host_os dld.sl"
9033      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9035      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036      soname_spec='${libname}${release}${shared_ext}$major'
9037      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039      ;;
9040    *)
9041     shrext_cmds='.sl'
9042     dynamic_linker="$host_os dld.sl"
9043     shlibpath_var=SHLIB_PATH
9044     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046     soname_spec='${libname}${release}${shared_ext}$major'
9047     ;;
9048   esac
9049   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050   postinstall_cmds='chmod 555 $lib'
9051   ;;
9052
9053 interix3*)
9054   version_type=linux
9055   need_lib_prefix=no
9056   need_version=no
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058   soname_spec='${libname}${release}${shared_ext}$major'
9059   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=no
9062   hardcode_into_libs=yes
9063   ;;
9064
9065 irix5* | irix6* | nonstopux*)
9066   case $host_os in
9067     nonstopux*) version_type=nonstopux ;;
9068     *)
9069         if test "$lt_cv_prog_gnu_ld" = yes; then
9070                 version_type=linux
9071         else
9072                 version_type=irix
9073         fi ;;
9074   esac
9075   need_lib_prefix=no
9076   need_version=no
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9079   case $host_os in
9080   irix5* | nonstopux*)
9081     libsuff= shlibsuff=
9082     ;;
9083   *)
9084     case $LD in # libtool.m4 will add one of these switches to LD
9085     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086       libsuff= shlibsuff= libmagic=32-bit;;
9087     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088       libsuff=32 shlibsuff=N32 libmagic=N32;;
9089     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091     *) libsuff= shlibsuff= libmagic=never-match;;
9092     esac
9093     ;;
9094   esac
9095   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096   shlibpath_overrides_runpath=no
9097   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 # No shared lib support for Linux oldld, aout, or coff.
9103 linux*oldld* | linux*aout* | linux*coff*)
9104   dynamic_linker=no
9105   ;;
9106
9107 # This must be Linux ELF.
9108 linux*)
9109   version_type=linux
9110   need_lib_prefix=no
9111   need_version=no
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   shlibpath_overrides_runpath=no
9117   # This implies no fast_install, which is unacceptable.
9118   # Some rework will be needed to allow for fast_install
9119   # before this can be enabled.
9120   hardcode_into_libs=yes
9121
9122   # Append ld.so.conf contents to the search path
9123   if test -f /etc/ld.so.conf; then
9124     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' ' '`
9125     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9126   fi
9127
9128   # We used to test for /lib/ld.so.1 and disable shared libraries on
9129   # powerpc, because MkLinux only supported shared libraries with the
9130   # GNU dynamic linker.  Since this was broken with cross compilers,
9131   # most powerpc-linux boxes support dynamic linking these days and
9132   # people can always --disable-shared, the test was removed, and we
9133   # assume the GNU/Linux dynamic linker is in use.
9134   dynamic_linker='GNU/Linux ld.so'
9135   ;;
9136
9137 knetbsd*-gnu)
9138   version_type=linux
9139   need_lib_prefix=no
9140   need_version=no
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142   soname_spec='${libname}${release}${shared_ext}$major'
9143   shlibpath_var=LD_LIBRARY_PATH
9144   shlibpath_overrides_runpath=no
9145   hardcode_into_libs=yes
9146   dynamic_linker='GNU ld.so'
9147   ;;
9148
9149 netbsd*)
9150   version_type=sunos
9151   need_lib_prefix=no
9152   need_version=no
9153   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156     dynamic_linker='NetBSD (a.out) ld.so'
9157   else
9158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159     soname_spec='${libname}${release}${shared_ext}$major'
9160     dynamic_linker='NetBSD ld.elf_so'
9161   fi
9162   shlibpath_var=LD_LIBRARY_PATH
9163   shlibpath_overrides_runpath=yes
9164   hardcode_into_libs=yes
9165   ;;
9166
9167 newsos6)
9168   version_type=linux
9169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   shlibpath_overrides_runpath=yes
9172   ;;
9173
9174 nto-qnx*)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=yes
9182   ;;
9183
9184 openbsd* | bitrig*)
9185   version_type=sunos
9186   sys_lib_dlsearch_path_spec="/usr/lib"
9187   need_lib_prefix=no
9188   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9189   case $host_os in
9190     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191     *)                         need_version=no  ;;
9192   esac
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197     case $host_os in
9198       openbsd2.[89] | openbsd2.[89].*)
9199         shlibpath_overrides_runpath=no
9200         ;;
9201       *)
9202         shlibpath_overrides_runpath=yes
9203         ;;
9204       esac
9205   else
9206     shlibpath_overrides_runpath=yes
9207   fi
9208   ;;
9209
9210 os2*)
9211   libname_spec='$name'
9212   shrext_cmds=".dll"
9213   need_lib_prefix=no
9214   library_names_spec='$libname${shared_ext} $libname.a'
9215   dynamic_linker='OS/2 ld.exe'
9216   shlibpath_var=LIBPATH
9217   ;;
9218
9219 osf3* | osf4* | osf5*)
9220   version_type=osf
9221   need_lib_prefix=no
9222   need_version=no
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9228   ;;
9229
9230 solaris*)
9231   version_type=linux
9232   need_lib_prefix=no
9233   need_version=no
9234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235   soname_spec='${libname}${release}${shared_ext}$major'
9236   shlibpath_var=LD_LIBRARY_PATH
9237   shlibpath_overrides_runpath=yes
9238   hardcode_into_libs=yes
9239   # ldd complains unless libraries are executable
9240   postinstall_cmds='chmod +x $lib'
9241   ;;
9242
9243 sunos4*)
9244   version_type=sunos
9245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247   shlibpath_var=LD_LIBRARY_PATH
9248   shlibpath_overrides_runpath=yes
9249   if test "$with_gnu_ld" = yes; then
9250     need_lib_prefix=no
9251   fi
9252   need_version=yes
9253   ;;
9254
9255 sysv4 | sysv4.3*)
9256   version_type=linux
9257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258   soname_spec='${libname}${release}${shared_ext}$major'
9259   shlibpath_var=LD_LIBRARY_PATH
9260   case $host_vendor in
9261     sni)
9262       shlibpath_overrides_runpath=no
9263       need_lib_prefix=no
9264       export_dynamic_flag_spec='${wl}-Blargedynsym'
9265       runpath_var=LD_RUN_PATH
9266       ;;
9267     siemens)
9268       need_lib_prefix=no
9269       ;;
9270     motorola)
9271       need_lib_prefix=no
9272       need_version=no
9273       shlibpath_overrides_runpath=no
9274       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9275       ;;
9276   esac
9277   ;;
9278
9279 sysv4*MP*)
9280   if test -d /usr/nec ;then
9281     version_type=linux
9282     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283     soname_spec='$libname${shared_ext}.$major'
9284     shlibpath_var=LD_LIBRARY_PATH
9285   fi
9286   ;;
9287
9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289   version_type=freebsd-elf
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   hardcode_into_libs=yes
9296   if test "$with_gnu_ld" = yes; then
9297     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298     shlibpath_overrides_runpath=no
9299   else
9300     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301     shlibpath_overrides_runpath=yes
9302     case $host_os in
9303       sco3.2v5*)
9304         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9305         ;;
9306     esac
9307   fi
9308   sys_lib_dlsearch_path_spec='/usr/lib'
9309   ;;
9310
9311 uts4*)
9312   version_type=linux
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   ;;
9317
9318 *)
9319   dynamic_linker=no
9320   ;;
9321 esac
9322 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323 echo "${ECHO_T}$dynamic_linker" >&6; }
9324 test "$dynamic_linker" = no && can_build_shared=no
9325
9326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327 if test "$GCC" = yes; then
9328   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9329 fi
9330
9331
9332 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9333 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9334 if test "${libltdl_cv_shlibext+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337
9338 module=yes
9339 eval libltdl_cv_shlibext=$shrext_cmds
9340
9341 fi
9342 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9343 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9344 if test -n "$libltdl_cv_shlibext"; then
9345
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9348 _ACEOF
9349
9350 fi
9351
9352
9353 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9354 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9355 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   libltdl_cv_shlibpath_var="$shlibpath_var"
9359 fi
9360 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9361 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9362 if test -n "$libltdl_cv_shlibpath_var"; then
9363
9364 cat >>confdefs.h <<_ACEOF
9365 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9366 _ACEOF
9367
9368 fi
9369
9370
9371 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9372 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_sys_search_path+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9377 fi
9378 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9379 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9380 if test -n "$libltdl_cv_sys_search_path"; then
9381   sys_search_path=
9382   for dir in $libltdl_cv_sys_search_path; do
9383     if test -z "$sys_search_path"; then
9384       sys_search_path="$dir"
9385     else
9386       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9387     fi
9388   done
9389
9390 cat >>confdefs.h <<_ACEOF
9391 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9392 _ACEOF
9393
9394 fi
9395
9396 { echo "$as_me:$LINENO: checking for objdir" >&5
9397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9398 if test "${libltdl_cv_objdir+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   libltdl_cv_objdir="$objdir"
9402   if test -n "$objdir"; then
9403     :
9404   else
9405     rm -f .libs 2>/dev/null
9406     mkdir .libs 2>/dev/null
9407     if test -d .libs; then
9408       libltdl_cv_objdir=.libs
9409     else
9410       # MS-DOS does not allow filenames that begin with a dot.
9411       libltdl_cv_objdir=_libs
9412     fi
9413   rmdir .libs 2>/dev/null
9414   fi
9415
9416 fi
9417 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9418 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9419
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9422 _ACEOF
9423
9424
9425
9426
9427
9428
9429 # Check for command to grab the raw symbol name followed by C symbol from nm.
9430 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9431 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9432 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435
9436 # These are sane defaults that work on at least a few old systems.
9437 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9438
9439 # Character class describing NM global symbol codes.
9440 symcode='[BCDEGRST]'
9441
9442 # Regexp to match symbols that can be accessed directly from C.
9443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9444
9445 # Transform an extracted symbol line into a proper C declaration
9446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9447
9448 # Transform an extracted symbol line into symbol name and symbol address
9449 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'"
9450
9451 # Define system-specific variables.
9452 case $host_os in
9453 aix*)
9454   symcode='[BCDT]'
9455   ;;
9456 cygwin* | mingw* | pw32*)
9457   symcode='[ABCDGISTW]'
9458   ;;
9459 hpux*) # Its linker distinguishes data from code symbols
9460   if test "$host_cpu" = ia64; then
9461     symcode='[ABCDEGRST]'
9462   fi
9463   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9464   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'"
9465   ;;
9466 linux*)
9467   if test "$host_cpu" = ia64; then
9468     symcode='[ABCDGIRSTW]'
9469     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470     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'"
9471   fi
9472   ;;
9473 irix* | nonstopux*)
9474   symcode='[BCDEGRST]'
9475   ;;
9476 osf*)
9477   symcode='[BCDEGQRST]'
9478   ;;
9479 solaris*)
9480   symcode='[BDRT]'
9481   ;;
9482 sco3.2v5*)
9483   symcode='[DT]'
9484   ;;
9485 sysv4.2uw2*)
9486   symcode='[DT]'
9487   ;;
9488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9489   symcode='[ABDT]'
9490   ;;
9491 sysv4)
9492   symcode='[DFNSTU]'
9493   ;;
9494 esac
9495
9496 # Handle CRLF in mingw tool chain
9497 opt_cr=
9498 case $build_os in
9499 mingw*)
9500   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9501   ;;
9502 esac
9503
9504 # If we're using GNU nm, then use its standard symbol codes.
9505 case `$NM -V 2>&1` in
9506 *GNU* | *'with BFD'*)
9507   symcode='[ABCDGIRSTW]' ;;
9508 esac
9509
9510 # Try without a prefix undercore, then with it.
9511 for ac_symprfx in "" "_"; do
9512
9513   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9514   symxfrm="\\1 $ac_symprfx\\2 \\2"
9515
9516   # Write the raw and C identifiers.
9517   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9518
9519   # Check to see that the pipe works correctly.
9520   pipe_works=no
9521
9522   rm -f conftest*
9523   cat > conftest.$ac_ext <<EOF
9524 #ifdef __cplusplus
9525 extern "C" {
9526 #endif
9527 char nm_test_var;
9528 void nm_test_func(){}
9529 #ifdef __cplusplus
9530 }
9531 #endif
9532 int main(){nm_test_var='a';nm_test_func();return(0);}
9533 EOF
9534
9535   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536   (eval $ac_compile) 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); }; then
9540     # Now try to grab the symbols.
9541     nlist=conftest.nm
9542     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9543   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && test -s "$nlist"; then
9547       # Try sorting and uniquifying the output.
9548       if sort "$nlist" | uniq > "$nlist"T; then
9549         mv -f "$nlist"T "$nlist"
9550       else
9551         rm -f "$nlist"T
9552       fi
9553
9554       # Make sure that we snagged all the symbols we need.
9555       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9556         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9557           cat <<EOF > conftest.$ac_ext
9558 #ifdef __cplusplus
9559 extern "C" {
9560 #endif
9561
9562 EOF
9563           # Now generate the symbol file.
9564           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9565
9566           cat <<EOF >> conftest.$ac_ext
9567 #if defined (__STDC__) && __STDC__
9568 # define lt_ptr_t void *
9569 #else
9570 # define lt_ptr_t char *
9571 # define const
9572 #endif
9573
9574 /* The mapping between symbol names and symbols. */
9575 const struct {
9576   const char *name;
9577   lt_ptr_t address;
9578 }
9579 lt_preloaded_symbols[] =
9580 {
9581 EOF
9582           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9583           cat <<\EOF >> conftest.$ac_ext
9584   {0, (lt_ptr_t) 0}
9585 };
9586
9587 #ifdef __cplusplus
9588 }
9589 #endif
9590 EOF
9591           # Now try linking the two files.
9592           mv conftest.$ac_objext conftstm.$ac_objext
9593           lt_save_LIBS="$LIBS"
9594           lt_save_CFLAGS="$CFLAGS"
9595           LIBS="conftstm.$ac_objext"
9596           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9597           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598   (eval $ac_link) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9602             pipe_works=yes
9603           fi
9604           LIBS="$lt_save_LIBS"
9605           CFLAGS="$lt_save_CFLAGS"
9606         else
9607           echo "cannot find nm_test_func in $nlist" >&5
9608         fi
9609       else
9610         echo "cannot find nm_test_var in $nlist" >&5
9611       fi
9612     else
9613       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9614     fi
9615   else
9616     echo "$progname: failed program was:" >&5
9617     cat conftest.$ac_ext >&5
9618   fi
9619   rm -f conftest* conftst*
9620
9621   # Do not use the global_symbol_pipe unless it works.
9622   if test "$pipe_works" = yes; then
9623     break
9624   else
9625     lt_cv_sys_global_symbol_pipe=
9626   fi
9627 done
9628
9629 fi
9630
9631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9632   lt_cv_sys_global_symbol_to_cdecl=
9633 fi
9634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9635   { echo "$as_me:$LINENO: result: failed" >&5
9636 echo "${ECHO_T}failed" >&6; }
9637 else
9638   { echo "$as_me:$LINENO: result: ok" >&5
9639 echo "${ECHO_T}ok" >&6; }
9640 fi
9641
9642
9643 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9644 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9645 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9649     libltdl_cv_preloaded_symbols=yes
9650   else
9651     libltdl_cv_preloaded_symbols=no
9652   fi
9653
9654 fi
9655 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9656 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9657 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9658
9659 cat >>confdefs.h <<\_ACEOF
9660 #define HAVE_PRELOADED_SYMBOLS 1
9661 _ACEOF
9662
9663 fi
9664
9665 LIBADD_DL=
9666
9667 ac_ext=c
9668 ac_cpp='$CPP $CPPFLAGS'
9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673
9674 { echo "$as_me:$LINENO: checking for shl_load" >&5
9675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9676 if test "${ac_cv_func_shl_load+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9687 #define shl_load innocuous_shl_load
9688
9689 /* System header to define __stub macros and hopefully few prototypes,
9690     which can conflict with char shl_load (); below.
9691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692     <limits.h> exists even on freestanding compilers.  */
9693
9694 #ifdef __STDC__
9695 # include <limits.h>
9696 #else
9697 # include <assert.h>
9698 #endif
9699
9700 #undef shl_load
9701
9702 /* Override any GCC internal prototype to avoid an error.
9703    Use char because int might match the return type of a GCC
9704    builtin and then its argument prototype would still apply.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char shl_load ();
9709 /* The GNU C library defines this for functions which it implements
9710     to always fail with ENOSYS.  Some functions are actually named
9711     something starting with __ and the normal name is an alias.  */
9712 #if defined __stub_shl_load || defined __stub___shl_load
9713 choke me
9714 #endif
9715
9716 int
9717 main ()
9718 {
9719 return shl_load ();
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9726 case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739   { (case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_try") 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_try") 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_cv_func_shl_load=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763         ac_cv_func_shl_load=no
9764 fi
9765
9766 rm -f core conftest.err conftest.$ac_objext \
9767       conftest$ac_exeext conftest.$ac_ext
9768 fi
9769 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9770 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9771 if test $ac_cv_func_shl_load = yes; then
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_SHL_LOAD 1
9775 _ACEOF
9776
9777 else
9778   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-ldld  $LIBS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791
9792 /* Override any GCC internal prototype to avoid an error.
9793    Use char because int might match the return type of a GCC
9794    builtin and then its argument prototype would still apply.  */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char shl_load ();
9799 int
9800 main ()
9801 {
9802 return shl_load ();
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9809 case "(($ac_try" in
9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811   *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814   (eval "$ac_link") 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822   { (case "(($ac_try" in
9823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824   *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827   (eval "$ac_try") 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); }; } &&
9831          { ac_try='test -s conftest$ac_exeext'
9832   { (case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_lib_dld_shl_load=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846         ac_cv_lib_dld_shl_load=no
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext \
9850       conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9852 fi
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855 if test $ac_cv_lib_dld_shl_load = yes; then
9856
9857 cat >>confdefs.h <<\_ACEOF
9858 #define HAVE_SHL_LOAD 1
9859 _ACEOF
9860
9861         LIBADD_DL="$LIBADD_DL -ldld"
9862 else
9863   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-ldl  $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878    Use char because int might match the return type of a GCC
9879    builtin and then its argument prototype would still apply.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char dlopen ();
9884 int
9885 main ()
9886 {
9887 return dlopen ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_link") 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907   { (case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_try") 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_lib_dl_dlopen=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_lib_dl_dlopen=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9940 if test $ac_cv_lib_dl_dlopen = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9944 _ACEOF
9945
9946                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 #if HAVE_DLFCN_H
9955 #  include <dlfcn.h>
9956 #endif
9957
9958 int
9959 main ()
9960 {
9961 dlopen(0, 0);
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9968 case "(($ac_try" in
9969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970   *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973   (eval "$ac_link") 2>conftest.er1
9974   ac_status=$?
9975   grep -v '^ *+' conftest.er1 >conftest.err
9976   rm -f conftest.er1
9977   cat conftest.err >&5
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } &&
9980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981   { (case "(($ac_try" in
9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983   *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986   (eval "$ac_try") 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; } &&
9990          { ac_try='test -s conftest$ac_exeext'
9991   { (case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_try") 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_LIBDL 1
10003 _ACEOF
10004  libltdl_cv_func_dlopen="yes"
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lsvld  $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022
10023 /* Override any GCC internal prototype to avoid an error.
10024    Use char because int might match the return type of a GCC
10025    builtin and then its argument prototype would still apply.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char dlopen ();
10030 int
10031 main ()
10032 {
10033 return dlopen ();
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042   *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045   (eval "$ac_link") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053   { (case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_try") 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_lib_svld_dlopen=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077         ac_cv_lib_svld_dlopen=no
10078 fi
10079
10080 rm -f core conftest.err conftest.$ac_objext \
10081       conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086 if test $ac_cv_lib_svld_dlopen = yes; then
10087
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_LIBDL 1
10090 _ACEOF
10091
10092                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10093 else
10094   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10095 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   ac_check_lib_save_LIBS=$LIBS
10100 LIBS="-ldld  $LIBS"
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107
10108 /* Override any GCC internal prototype to avoid an error.
10109    Use char because int might match the return type of a GCC
10110    builtin and then its argument prototype would still apply.  */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char dld_link ();
10115 int
10116 main ()
10117 {
10118 return dld_link ();
10119   ;
10120   return 0;
10121 }
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_link") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } &&
10137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138   { (case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_try") 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; } &&
10147          { ac_try='test -s conftest$ac_exeext'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_lib_dld_dld_link=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162         ac_cv_lib_dld_dld_link=no
10163 fi
10164
10165 rm -f core conftest.err conftest.$ac_objext \
10166       conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10168 fi
10169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10171 if test $ac_cv_lib_dld_dld_link = yes; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_DLD 1
10175 _ACEOF
10176
10177                 LIBADD_DL="$LIBADD_DL -ldld"
10178 else
10179   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10180 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10181 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10192 #define _dyld_func_lookup innocuous__dyld_func_lookup
10193
10194 /* System header to define __stub macros and hopefully few prototypes,
10195     which can conflict with char _dyld_func_lookup (); below.
10196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197     <limits.h> exists even on freestanding compilers.  */
10198
10199 #ifdef __STDC__
10200 # include <limits.h>
10201 #else
10202 # include <assert.h>
10203 #endif
10204
10205 #undef _dyld_func_lookup
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208    Use char because int might match the return type of a GCC
10209    builtin and then its argument prototype would still apply.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char _dyld_func_lookup ();
10214 /* The GNU C library defines this for functions which it implements
10215     to always fail with ENOSYS.  Some functions are actually named
10216     something starting with __ and the normal name is an alias.  */
10217 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10218 choke me
10219 #endif
10220
10221 int
10222 main ()
10223 {
10224 return _dyld_func_lookup ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_link") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   ac_cv_func__dyld_func_lookup=yes
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268         ac_cv_func__dyld_func_lookup=no
10269 fi
10270
10271 rm -f core conftest.err conftest.$ac_objext \
10272       conftest$ac_exeext conftest.$ac_ext
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10275 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10276 if test $ac_cv_func__dyld_func_lookup = yes; then
10277
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DYLD 1
10280 _ACEOF
10281
10282 fi
10283
10284
10285 fi
10286
10287
10288 fi
10289
10290
10291 fi
10292
10293 rm -f core conftest.err conftest.$ac_objext \
10294       conftest$ac_exeext conftest.$ac_ext
10295
10296 fi
10297
10298
10299 fi
10300
10301
10302 fi
10303
10304
10305 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10306 then
10307   lt_save_LIBS="$LIBS"
10308   LIBS="$LIBS $LIBADD_DL"
10309
10310 for ac_func in dlerror
10311 do
10312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10326 #define $ac_func innocuous_$ac_func
10327
10328 /* System header to define __stub macros and hopefully few prototypes,
10329     which can conflict with char $ac_func (); below.
10330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331     <limits.h> exists even on freestanding compilers.  */
10332
10333 #ifdef __STDC__
10334 # include <limits.h>
10335 #else
10336 # include <assert.h>
10337 #endif
10338
10339 #undef $ac_func
10340
10341 /* Override any GCC internal prototype to avoid an error.
10342    Use char because int might match the return type of a GCC
10343    builtin and then its argument prototype would still apply.  */
10344 #ifdef __cplusplus
10345 extern "C"
10346 #endif
10347 char $ac_func ();
10348 /* The GNU C library defines this for functions which it implements
10349     to always fail with ENOSYS.  Some functions are actually named
10350     something starting with __ and the normal name is an alias.  */
10351 #if defined __stub_$ac_func || defined __stub___$ac_func
10352 choke me
10353 #endif
10354
10355 int
10356 main ()
10357 {
10358 return $ac_func ();
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_link") 2>conftest.er1
10371   ac_status=$?
10372   grep -v '^ *+' conftest.er1 >conftest.err
10373   rm -f conftest.er1
10374   cat conftest.err >&5
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } &&
10377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378   { (case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_try") 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; } &&
10387          { ac_try='test -s conftest$ac_exeext'
10388   { (case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_try") 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; }; then
10397   eval "$as_ac_var=yes"
10398 else
10399   echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402         eval "$as_ac_var=no"
10403 fi
10404
10405 rm -f core conftest.err conftest.$ac_objext \
10406       conftest$ac_exeext conftest.$ac_ext
10407 fi
10408 ac_res=`eval echo '${'$as_ac_var'}'`
10409                { echo "$as_me:$LINENO: result: $ac_res" >&5
10410 echo "${ECHO_T}$ac_res" >&6; }
10411 if test `eval echo '${'$as_ac_var'}'` = yes; then
10412   cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10414 _ACEOF
10415
10416 fi
10417 done
10418
10419   LIBS="$lt_save_LIBS"
10420 fi
10421 ac_ext=c
10422 ac_cpp='$CPP $CPPFLAGS'
10423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10426
10427
10428
10429 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10430 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10431 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   ac_cv_sys_symbol_underscore=no
10435   cat > conftest.$ac_ext <<EOF
10436 void nm_test_func(){}
10437 int main(){nm_test_func;return 0;}
10438 EOF
10439   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440   (eval $ac_compile) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; then
10444     # Now try to grab the symbols.
10445     ac_nlist=conftest.nm
10446     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10447   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } && test -s "$ac_nlist"; then
10451       # See whether the symbols have a leading underscore.
10452       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10453         ac_cv_sys_symbol_underscore=yes
10454       else
10455         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10456           :
10457         else
10458           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10459         fi
10460       fi
10461     else
10462       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10463     fi
10464   else
10465     echo "configure: failed program was:" >&5
10466     cat conftest.c >&5
10467   fi
10468   rm -rf conftest*
10469
10470 fi
10471 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10472 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10473
10474
10475 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10476   if test x"$libltdl_cv_func_dlopen" = xyes ||
10477      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10478         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10479 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_need_uscore+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   libltdl_cv_need_uscore=unknown
10484           save_LIBS="$LIBS"
10485           LIBS="$LIBS $LIBADD_DL"
10486           if test "$cross_compiling" = yes; then :
10487   libltdl_cv_need_uscore=cross
10488 else
10489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490   lt_status=$lt_dlunknown
10491   cat > conftest.$ac_ext <<EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10494
10495 #if HAVE_DLFCN_H
10496 #include <dlfcn.h>
10497 #endif
10498
10499 #include <stdio.h>
10500
10501 #ifdef RTLD_GLOBAL
10502 #  define LT_DLGLOBAL           RTLD_GLOBAL
10503 #else
10504 #  ifdef DL_GLOBAL
10505 #    define LT_DLGLOBAL         DL_GLOBAL
10506 #  else
10507 #    define LT_DLGLOBAL         0
10508 #  endif
10509 #endif
10510
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512    find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10514 #  ifdef RTLD_LAZY
10515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10516 #  else
10517 #    ifdef DL_LAZY
10518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10519 #    else
10520 #      ifdef RTLD_NOW
10521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10522 #      else
10523 #        ifdef DL_NOW
10524 #          define LT_DLLAZY_OR_NOW      DL_NOW
10525 #        else
10526 #          define LT_DLLAZY_OR_NOW      0
10527 #        endif
10528 #      endif
10529 #    endif
10530 #  endif
10531 #endif
10532
10533 #ifdef __cplusplus
10534 extern "C" void exit (int);
10535 #endif
10536
10537 void fnord() { int i=42;}
10538 int main ()
10539 {
10540   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541   int status = $lt_dlunknown;
10542
10543   if (self)
10544     {
10545       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10546       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547       /* dlclose (self); */
10548     }
10549   else
10550     puts (dlerror ());
10551
10552     exit (status);
10553 }
10554 EOF
10555   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556   (eval $ac_link) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560     (./conftest; exit; ) >&5 2>/dev/null
10561     lt_status=$?
10562     case x$lt_status in
10563       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10564       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10565       x$lt_dlunknown|x*)  ;;
10566     esac
10567   else :
10568     # compilation failed
10569
10570   fi
10571 fi
10572 rm -fr conftest*
10573
10574           LIBS="$save_LIBS"
10575
10576 fi
10577 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10578 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10579   fi
10580 fi
10581
10582 if test x"$libltdl_cv_need_uscore" = xyes; then
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define NEED_USCORE 1
10586 _ACEOF
10587
10588 fi
10589
10590
10591 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10592 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10593 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10594   echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596   # PORTME does your system automatically load deplibs for dlopen?
10597   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10598   # For now, we just catch OSes we know something about -- in the
10599   # future, we'll try test this programmatically.
10600   libltdl_cv_sys_dlopen_deplibs=unknown
10601   case "$host_os" in
10602   aix3*|aix4.1.*|aix4.2.*)
10603     # Unknown whether this is true for these versions of AIX, but
10604     # we want this `case' here to explicitly catch those versions.
10605     libltdl_cv_sys_dlopen_deplibs=unknown
10606     ;;
10607   aix[45]*)
10608     libltdl_cv_sys_dlopen_deplibs=yes
10609     ;;
10610   darwin*)
10611     # Assuming the user has installed a libdl from somewhere, this is true
10612     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10613     libltdl_cv_sys_dlopen_deplibs=yes
10614     ;;
10615   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10616     # GNU and its variants, using gnu ld.so (Glibc)
10617     libltdl_cv_sys_dlopen_deplibs=yes
10618     ;;
10619   hpux10*|hpux11*)
10620     libltdl_cv_sys_dlopen_deplibs=yes
10621     ;;
10622   interix*)
10623     libltdl_cv_sys_dlopen_deplibs=yes
10624     ;;
10625   irix[12345]*|irix6.[01]*)
10626     # Catch all versions of IRIX before 6.2, and indicate that we don't
10627     # know how it worked for any of those versions.
10628     libltdl_cv_sys_dlopen_deplibs=unknown
10629     ;;
10630   irix*)
10631     # The case above catches anything before 6.2, and it's known that
10632     # at 6.2 and later dlopen does load deplibs.
10633     libltdl_cv_sys_dlopen_deplibs=yes
10634     ;;
10635   netbsd*)
10636     libltdl_cv_sys_dlopen_deplibs=yes
10637     ;;
10638   openbsd*)
10639     libltdl_cv_sys_dlopen_deplibs=yes
10640     ;;
10641   osf[1234]*)
10642     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10643     # it did *not* use an RPATH in a shared library to find objects the
10644     # library depends on, so we explicitly say `no'.
10645     libltdl_cv_sys_dlopen_deplibs=no
10646     ;;
10647   osf5.0|osf5.0a|osf5.1)
10648     # dlopen *does* load deplibs and with the right loader patch applied
10649     # it even uses RPATH in a shared library to search for shared objects
10650     # that the library depends on, but there's no easy way to know if that
10651     # patch is installed.  Since this is the case, all we can really
10652     # say is unknown -- it depends on the patch being installed.  If
10653     # it is, this changes to `yes'.  Without it, it would be `no'.
10654     libltdl_cv_sys_dlopen_deplibs=unknown
10655     ;;
10656   osf*)
10657     # the two cases above should catch all versions of osf <= 5.1.  Read
10658     # the comments above for what we know about them.
10659     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10660     # is used to find them so we can finally say `yes'.
10661     libltdl_cv_sys_dlopen_deplibs=yes
10662     ;;
10663   solaris*)
10664     libltdl_cv_sys_dlopen_deplibs=yes
10665     ;;
10666   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667     libltdl_cv_sys_dlopen_deplibs=yes
10668     ;;
10669   esac
10670
10671 fi
10672 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10673 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10674 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10675
10676 cat >>confdefs.h <<\_ACEOF
10677 #define LTDL_DLOPEN_DEPLIBS 1
10678 _ACEOF
10679
10680 fi
10681
10682
10683 for ac_header in argz.h
10684 do
10685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 fi
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693                { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10695 else
10696   # Is the header compilable?
10697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705 $ac_includes_default
10706 #include <$ac_header>
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715   (eval "$ac_compile") 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } &&
10722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723   { (case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_try") 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; } &&
10732          { ac_try='test -s conftest.$ac_objext'
10733   { (case "(($ac_try" in
10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735   *) ac_try_echo=$ac_try;;
10736 esac
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738   (eval "$ac_try") 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; }; then
10742   ac_header_compiler=yes
10743 else
10744   echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747         ac_header_compiler=no
10748 fi
10749
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752 echo "${ECHO_T}$ac_header_compiler" >&6; }
10753
10754 # Is the header present?
10755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 #include <$ac_header>
10764 _ACEOF
10765 if { (ac_try="$ac_cpp conftest.$ac_ext"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } >/dev/null; then
10778   if test -s conftest.err; then
10779     ac_cpp_err=$ac_c_preproc_warn_flag
10780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10781   else
10782     ac_cpp_err=
10783   fi
10784 else
10785   ac_cpp_err=yes
10786 fi
10787 if test -z "$ac_cpp_err"; then
10788   ac_header_preproc=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793   ac_header_preproc=no
10794 fi
10795
10796 rm -f conftest.err conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6; }
10799
10800 # So?  What about this header?
10801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802   yes:no: )
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807     ac_header_preproc=yes
10808     ;;
10809   no:yes:* )
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10822     ( cat <<\_ASBOX
10823 ## ------------------------------------ ##
10824 ## Report this to http://llvm.org/bugs/ ##
10825 ## ------------------------------------ ##
10826 _ASBOX
10827      ) | sed "s/^/$as_me: WARNING:     /" >&2
10828     ;;
10829 esac
10830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   eval "$as_ac_Header=\$ac_header_preproc"
10836 fi
10837 ac_res=`eval echo '${'$as_ac_Header'}'`
10838                { echo "$as_me:$LINENO: result: $ac_res" >&5
10839 echo "${ECHO_T}$ac_res" >&6; }
10840
10841 fi
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843   cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 _ACEOF
10846
10847 fi
10848
10849 done
10850
10851
10852 { echo "$as_me:$LINENO: checking for error_t" >&5
10853 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10854 if test "${ac_cv_type_error_t+set}" = set; then
10855   echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857   cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 #if HAVE_ARGZ_H
10864 #  include <argz.h>
10865 #endif
10866
10867 typedef error_t ac__type_new_;
10868 int
10869 main ()
10870 {
10871 if ((ac__type_new_ *) 0)
10872   return 0;
10873 if (sizeof (ac__type_new_))
10874   return 0;
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_compile") 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894   { (case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_try") 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest.$ac_objext'
10904   { (case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_try") 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   ac_cv_type_error_t=yes
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918         ac_cv_type_error_t=no
10919 fi
10920
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 fi
10923 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10924 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10925 if test $ac_cv_type_error_t = yes; then
10926
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_ERROR_T 1
10929 _ACEOF
10930
10931
10932 else
10933
10934 cat >>confdefs.h <<\_ACEOF
10935 #define error_t int
10936 _ACEOF
10937
10938 fi
10939
10940
10941
10942
10943
10944
10945
10946 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10947 do
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h.  */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h.  */
10960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10962 #define $ac_func innocuous_$ac_func
10963
10964 /* System header to define __stub macros and hopefully few prototypes,
10965     which can conflict with char $ac_func (); below.
10966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967     <limits.h> exists even on freestanding compilers.  */
10968
10969 #ifdef __STDC__
10970 # include <limits.h>
10971 #else
10972 # include <assert.h>
10973 #endif
10974
10975 #undef $ac_func
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978    Use char because int might match the return type of a GCC
10979    builtin and then its argument prototype would still apply.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char $ac_func ();
10984 /* The GNU C library defines this for functions which it implements
10985     to always fail with ENOSYS.  Some functions are actually named
10986     something starting with __ and the normal name is an alias.  */
10987 #if defined __stub_$ac_func || defined __stub___$ac_func
10988 choke me
10989 #endif
10990
10991 int
10992 main ()
10993 {
10994 return $ac_func ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   eval "$as_ac_var=yes"
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         eval "$as_ac_var=no"
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext \
11042       conftest$ac_exeext conftest.$ac_ext
11043 fi
11044 ac_res=`eval echo '${'$as_ac_var'}'`
11045                { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 if test `eval echo '${'$as_ac_var'}'` = yes; then
11048   cat >>confdefs.h <<_ACEOF
11049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11050 _ACEOF
11051
11052 fi
11053 done
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11083                   stdio.h unistd.h
11084 do
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 fi
11092 ac_res=`eval echo '${'$as_ac_Header'}'`
11093                { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 else
11096   # Is the header compilable?
11097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105 $ac_includes_default
11106 #include <$ac_header>
11107 _ACEOF
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_compile") 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123   { (case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_try") 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); }; } &&
11132          { ac_try='test -s conftest.$ac_objext'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_header_compiler=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147         ac_header_compiler=no
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #include <$ac_header>
11164 _ACEOF
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } >/dev/null; then
11178   if test -s conftest.err; then
11179     ac_cpp_err=$ac_c_preproc_warn_flag
11180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181   else
11182     ac_cpp_err=
11183   fi
11184 else
11185   ac_cpp_err=yes
11186 fi
11187 if test -z "$ac_cpp_err"; then
11188   ac_header_preproc=yes
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193   ac_header_preproc=no
11194 fi
11195
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11199
11200 # So?  What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202   yes:no: )
11203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207     ac_header_preproc=yes
11208     ;;
11209   no:yes:* )
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222     ( cat <<\_ASBOX
11223 ## ------------------------------------ ##
11224 ## Report this to http://llvm.org/bugs/ ##
11225 ## ------------------------------------ ##
11226 _ASBOX
11227      ) | sed "s/^/$as_me: WARNING:     /" >&2
11228     ;;
11229 esac
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   eval "$as_ac_Header=\$ac_header_preproc"
11236 fi
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238                { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11240
11241 fi
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243   cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248
11249 done
11250
11251
11252
11253
11254
11255 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11256 do
11257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 fi
11264 ac_res=`eval echo '${'$as_ac_Header'}'`
11265                { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11267 else
11268   # Is the header compilable?
11269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 $ac_includes_default
11278 #include <$ac_header>
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287   (eval "$ac_compile") 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295   { (case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300   (eval "$ac_try") 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; } &&
11304          { ac_try='test -s conftest.$ac_objext'
11305   { (case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   ac_header_compiler=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319         ac_header_compiler=no
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11325
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <$ac_header>
11336 _ACEOF
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } >/dev/null; then
11350   if test -s conftest.err; then
11351     ac_cpp_err=$ac_c_preproc_warn_flag
11352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353   else
11354     ac_cpp_err=
11355   fi
11356 else
11357   ac_cpp_err=yes
11358 fi
11359 if test -z "$ac_cpp_err"; then
11360   ac_header_preproc=yes
11361 else
11362   echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365   ac_header_preproc=no
11366 fi
11367
11368 rm -f conftest.err conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6; }
11371
11372 # So?  What about this header?
11373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374   yes:no: )
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11379     ac_header_preproc=yes
11380     ;;
11381   no:yes:* )
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11394     ( cat <<\_ASBOX
11395 ## ------------------------------------ ##
11396 ## Report this to http://llvm.org/bugs/ ##
11397 ## ------------------------------------ ##
11398 _ASBOX
11399      ) | sed "s/^/$as_me: WARNING:     /" >&2
11400     ;;
11401 esac
11402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405   echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407   eval "$as_ac_Header=\$ac_header_preproc"
11408 fi
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410                { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11412
11413 fi
11414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11415   cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 _ACEOF
11418
11419 fi
11420
11421 done
11422
11423
11424
11425 for ac_header in string.h strings.h
11426 do
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 fi
11434 ac_res=`eval echo '${'$as_ac_Header'}'`
11435                { echo "$as_me:$LINENO: result: $ac_res" >&5
11436 echo "${ECHO_T}$ac_res" >&6; }
11437 else
11438   # Is the header compilable?
11439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 $ac_includes_default
11448 #include <$ac_header>
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (ac_try="$ac_compile"
11452 case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_compile") 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } &&
11464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465   { (case "(($ac_try" in
11466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467   *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470   (eval "$ac_try") 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; } &&
11474          { ac_try='test -s conftest.$ac_objext'
11475   { (case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_try") 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; }; then
11484   ac_header_compiler=yes
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489         ac_header_compiler=no
11490 fi
11491
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494 echo "${ECHO_T}$ac_header_compiler" >&6; }
11495
11496 # Is the header present?
11497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 #include <$ac_header>
11506 _ACEOF
11507 if { (ac_try="$ac_cpp conftest.$ac_ext"
11508 case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } >/dev/null; then
11520   if test -s conftest.err; then
11521     ac_cpp_err=$ac_c_preproc_warn_flag
11522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11523   else
11524     ac_cpp_err=
11525   fi
11526 else
11527   ac_cpp_err=yes
11528 fi
11529 if test -z "$ac_cpp_err"; then
11530   ac_header_preproc=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535   ac_header_preproc=no
11536 fi
11537
11538 rm -f conftest.err conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540 echo "${ECHO_T}$ac_header_preproc" >&6; }
11541
11542 # So?  What about this header?
11543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544   yes:no: )
11545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549     ac_header_preproc=yes
11550     ;;
11551   no:yes:* )
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11564     ( cat <<\_ASBOX
11565 ## ------------------------------------ ##
11566 ## Report this to http://llvm.org/bugs/ ##
11567 ## ------------------------------------ ##
11568 _ASBOX
11569      ) | sed "s/^/$as_me: WARNING:     /" >&2
11570     ;;
11571 esac
11572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   eval "$as_ac_Header=\$ac_header_preproc"
11578 fi
11579 ac_res=`eval echo '${'$as_ac_Header'}'`
11580                { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11582
11583 fi
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585   cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11588  break
11589 fi
11590
11591 done
11592
11593
11594
11595
11596 for ac_func in strchr index
11597 do
11598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11612 #define $ac_func innocuous_$ac_func
11613
11614 /* System header to define __stub macros and hopefully few prototypes,
11615     which can conflict with char $ac_func (); below.
11616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617     <limits.h> exists even on freestanding compilers.  */
11618
11619 #ifdef __STDC__
11620 # include <limits.h>
11621 #else
11622 # include <assert.h>
11623 #endif
11624
11625 #undef $ac_func
11626
11627 /* Override any GCC internal prototype to avoid an error.
11628    Use char because int might match the return type of a GCC
11629    builtin and then its argument prototype would still apply.  */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char $ac_func ();
11634 /* The GNU C library defines this for functions which it implements
11635     to always fail with ENOSYS.  Some functions are actually named
11636     something starting with __ and the normal name is an alias.  */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 choke me
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644 return $ac_func ();
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653   *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656   (eval "$ac_link") 2>conftest.er1
11657   ac_status=$?
11658   grep -v '^ *+' conftest.er1 >conftest.err
11659   rm -f conftest.er1
11660   cat conftest.err >&5
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11664   { (case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_try") 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; } &&
11673          { ac_try='test -s conftest$ac_exeext'
11674   { (case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_try") 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   eval "$as_ac_var=yes"
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688         eval "$as_ac_var=no"
11689 fi
11690
11691 rm -f core conftest.err conftest.$ac_objext \
11692       conftest$ac_exeext conftest.$ac_ext
11693 fi
11694 ac_res=`eval echo '${'$as_ac_var'}'`
11695                { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11697 if test `eval echo '${'$as_ac_var'}'` = yes; then
11698   cat >>confdefs.h <<_ACEOF
11699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 _ACEOF
11701  break
11702 fi
11703 done
11704
11705
11706
11707 for ac_func in strrchr rindex
11708 do
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11723 #define $ac_func innocuous_$ac_func
11724
11725 /* System header to define __stub macros and hopefully few prototypes,
11726     which can conflict with char $ac_func (); below.
11727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728     <limits.h> exists even on freestanding compilers.  */
11729
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11735
11736 #undef $ac_func
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739    Use char because int might match the return type of a GCC
11740    builtin and then its argument prototype would still apply.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char $ac_func ();
11745 /* The GNU C library defines this for functions which it implements
11746     to always fail with ENOSYS.  Some functions are actually named
11747     something starting with __ and the normal name is an alias.  */
11748 #if defined __stub_$ac_func || defined __stub___$ac_func
11749 choke me
11750 #endif
11751
11752 int
11753 main ()
11754 {
11755 return $ac_func ();
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_link") 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
11771   cat conftest.err >&5
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } &&
11774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775   { (case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_try") 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_try") 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   eval "$as_ac_var=yes"
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799         eval "$as_ac_var=no"
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext \
11803       conftest$ac_exeext conftest.$ac_ext
11804 fi
11805 ac_res=`eval echo '${'$as_ac_var'}'`
11806                { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809   cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11811 _ACEOF
11812  break
11813 fi
11814 done
11815
11816
11817
11818 for ac_func in memcpy bcopy
11819 do
11820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11834 #define $ac_func innocuous_$ac_func
11835
11836 /* System header to define __stub macros and hopefully few prototypes,
11837     which can conflict with char $ac_func (); below.
11838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839     <limits.h> exists even on freestanding compilers.  */
11840
11841 #ifdef __STDC__
11842 # include <limits.h>
11843 #else
11844 # include <assert.h>
11845 #endif
11846
11847 #undef $ac_func
11848
11849 /* Override any GCC internal prototype to avoid an error.
11850    Use char because int might match the return type of a GCC
11851    builtin and then its argument prototype would still apply.  */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 char $ac_func ();
11856 /* The GNU C library defines this for functions which it implements
11857     to always fail with ENOSYS.  Some functions are actually named
11858     something starting with __ and the normal name is an alias.  */
11859 #if defined __stub_$ac_func || defined __stub___$ac_func
11860 choke me
11861 #endif
11862
11863 int
11864 main ()
11865 {
11866 return $ac_func ();
11867   ;
11868   return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (ac_try="$ac_link"
11873 case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_link") 2>conftest.er1
11879   ac_status=$?
11880   grep -v '^ *+' conftest.er1 >conftest.err
11881   rm -f conftest.er1
11882   cat conftest.err >&5
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11886   { (case "(($ac_try" in
11887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888   *) ac_try_echo=$ac_try;;
11889 esac
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891   (eval "$ac_try") 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; } &&
11895          { ac_try='test -s conftest$ac_exeext'
11896   { (case "(($ac_try" in
11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898   *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901   (eval "$ac_try") 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   eval "$as_ac_var=yes"
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910         eval "$as_ac_var=no"
11911 fi
11912
11913 rm -f core conftest.err conftest.$ac_objext \
11914       conftest$ac_exeext conftest.$ac_ext
11915 fi
11916 ac_res=`eval echo '${'$as_ac_var'}'`
11917                { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11919 if test `eval echo '${'$as_ac_var'}'` = yes; then
11920   cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 _ACEOF
11923  break
11924 fi
11925 done
11926
11927
11928
11929 for ac_func in memmove strcmp
11930 do
11931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11935   echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937   cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h.  */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h.  */
11943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11945 #define $ac_func innocuous_$ac_func
11946
11947 /* System header to define __stub macros and hopefully few prototypes,
11948     which can conflict with char $ac_func (); below.
11949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950     <limits.h> exists even on freestanding compilers.  */
11951
11952 #ifdef __STDC__
11953 # include <limits.h>
11954 #else
11955 # include <assert.h>
11956 #endif
11957
11958 #undef $ac_func
11959
11960 /* Override any GCC internal prototype to avoid an error.
11961    Use char because int might match the return type of a GCC
11962    builtin and then its argument prototype would still apply.  */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char $ac_func ();
11967 /* The GNU C library defines this for functions which it implements
11968     to always fail with ENOSYS.  Some functions are actually named
11969     something starting with __ and the normal name is an alias.  */
11970 #if defined __stub_$ac_func || defined __stub___$ac_func
11971 choke me
11972 #endif
11973
11974 int
11975 main ()
11976 {
11977 return $ac_func ();
11978   ;
11979   return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989   (eval "$ac_link") 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997   { (case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_try") 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); }; } &&
12006          { ac_try='test -s conftest$ac_exeext'
12007   { (case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_try") 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); }; }; then
12016   eval "$as_ac_var=yes"
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021         eval "$as_ac_var=no"
12022 fi
12023
12024 rm -f core conftest.err conftest.$ac_objext \
12025       conftest$ac_exeext conftest.$ac_ext
12026 fi
12027 ac_res=`eval echo '${'$as_ac_var'}'`
12028                { echo "$as_me:$LINENO: result: $ac_res" >&5
12029 echo "${ECHO_T}$ac_res" >&6; }
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031   cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 fi
12036 done
12037
12038
12039
12040
12041 for ac_func in closedir opendir readdir
12042 do
12043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12057 #define $ac_func innocuous_$ac_func
12058
12059 /* System header to define __stub macros and hopefully few prototypes,
12060     which can conflict with char $ac_func (); below.
12061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062     <limits.h> exists even on freestanding compilers.  */
12063
12064 #ifdef __STDC__
12065 # include <limits.h>
12066 #else
12067 # include <assert.h>
12068 #endif
12069
12070 #undef $ac_func
12071
12072 /* Override any GCC internal prototype to avoid an error.
12073    Use char because int might match the return type of a GCC
12074    builtin and then its argument prototype would still apply.  */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char $ac_func ();
12079 /* The GNU C library defines this for functions which it implements
12080     to always fail with ENOSYS.  Some functions are actually named
12081     something starting with __ and the normal name is an alias.  */
12082 #if defined __stub_$ac_func || defined __stub___$ac_func
12083 choke me
12084 #endif
12085
12086 int
12087 main ()
12088 {
12089 return $ac_func ();
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (ac_try="$ac_link"
12096 case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_link") 2>conftest.er1
12102   ac_status=$?
12103   grep -v '^ *+' conftest.er1 >conftest.err
12104   rm -f conftest.er1
12105   cat conftest.err >&5
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); } &&
12108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109   { (case "(($ac_try" in
12110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111   *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114   (eval "$ac_try") 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_try") 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128   eval "$as_ac_var=yes"
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133         eval "$as_ac_var=no"
12134 fi
12135
12136 rm -f core conftest.err conftest.$ac_objext \
12137       conftest$ac_exeext conftest.$ac_ext
12138 fi
12139 ac_res=`eval echo '${'$as_ac_var'}'`
12140                { echo "$as_me:$LINENO: result: $ac_res" >&5
12141 echo "${ECHO_T}$ac_res" >&6; }
12142 if test `eval echo '${'$as_ac_var'}'` = yes; then
12143   cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 _ACEOF
12146
12147 fi
12148 done
12149
12150
12151
12152 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12153 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12154
12155 ICC=no
12156 IXX=no
12157 case $CC in
12158   icc*|icpc*)
12159     ICC=yes
12160     IXX=yes
12161     ;;
12162    *)
12163     ;;
12164 esac
12165
12166 if test "$GCC" != "yes" && test "$ICC" != "yes"
12167 then
12168   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12169 echo "$as_me: error: gcc|icc required but not found" >&2;}
12170    { (exit 1); exit 1; }; }
12171 fi
12172
12173 if test "$GXX" != "yes" && test "$IXX" != "yes"
12174 then
12175   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12176 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12177    { (exit 1); exit 1; }; }
12178 fi
12179
12180 if test "$GCC" = "yes"
12181 then
12182   cat >conftest.$ac_ext <<_ACEOF
12183
12184   /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189
12190     #if !defined(__GNUC__) || __GNUC__ < 3
12191     #error Unsupported GCC version
12192     #endif
12193
12194
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203   (eval "$ac_compile") 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; } &&
12220          { ac_try='test -s conftest.$ac_objext'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   :
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12236 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12237    { (exit 1); exit 1; }; }
12238 fi
12239
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 fi
12242
12243 if test -z "$llvm_cv_gnu_make_command"
12244 then
12245   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12246 echo "$as_me: error: GNU Make required but not found" >&2;}
12247    { (exit 1); exit 1; }; }
12248 fi
12249
12250 { echo "$as_me:$LINENO: result: ok" >&5
12251 echo "${ECHO_T}ok" >&6; }
12252
12253 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12254 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12255 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12256
12257 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12258
12259 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12260
12261 if test "$GXX" = "yes"
12262 then
12263   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12264
12265         if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12266   then
12267     NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12268
12269   else
12270                     gxx_version=`$CXX -dumpversion`
12271     gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12272     gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12273     gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12274
12275     if    test "$gxx_version_major" -ge "4" \
12276        && test "$gxx_version_minor" -ge "7"; then
12277             NO_UNINITIALIZED=
12278     else
12279       NO_MAYBE_UNINITIALIZED=
12280       NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12281
12282     fi
12283   fi
12284 else
12285   NO_UNINITIALIZED=
12286   NO_MAYBE_UNINITIALIZED=
12287 fi
12288 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12289 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12290
12291
12292 # Check whether --with-python was given.
12293 if test "${with_python+set}" = set; then
12294   withval=$with_python; PYTHON="$withval"
12295 fi
12296
12297
12298 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12299   { echo "$as_me:$LINENO: checking for python" >&5
12300 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12301   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12302 echo "${ECHO_T}user defined: $with_python" >&6; }
12303 else
12304   if test -n "$PYTHON" ; then
12305     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12306 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12307   fi
12308
12309   # Extract the first word of "python python2 python26", so it can be a program name with args.
12310 set dummy python python2 python26; ac_word=$2
12311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12313 if test "${ac_cv_path_PYTHON+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   case $PYTHON in
12317   [\\/]* | ?:[\\/]*)
12318   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12319   ;;
12320   *)
12321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12323 do
12324   IFS=$as_save_IFS
12325   test -z "$as_dir" && as_dir=.
12326   for ac_exec_ext in '' $ac_executable_extensions; do
12327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12328     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12330     break 2
12331   fi
12332 done
12333 done
12334 IFS=$as_save_IFS
12335
12336   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12337 echo "${ECHO_T}not found" >&6; }
12338                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12339 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12340    { (exit 1); exit 1; }; }"
12341   ;;
12342 esac
12343 fi
12344 PYTHON=$ac_cv_path_PYTHON
12345 if test -n "$PYTHON"; then
12346   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12347 echo "${ECHO_T}$PYTHON" >&6; }
12348 else
12349   { echo "$as_me:$LINENO: result: no" >&5
12350 echo "${ECHO_T}no" >&6; }
12351 fi
12352
12353
12354 fi
12355
12356 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12357 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12358 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12359 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12360 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12361 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12362 if   test "$ac_python_version_major" -eq "2" \
12363    && test "$ac_python_version_minor" -ge "5" ; then
12364   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12365 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12366 else
12367   { echo "$as_me:$LINENO: result: not found" >&5
12368 echo "${ECHO_T}not found" >&6; }
12369   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12370 See \`config.log' for more details." >&5
12371 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12372 See \`config.log' for more details." >&2;}
12373    { (exit 1); exit 1; }; }
12374 fi
12375
12376
12377
12378 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12379 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12380 if test "${ac_cv_lib_m_sin+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-lm  $LIBS"
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h.  */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h.  */
12391
12392 /* Override any GCC internal prototype to avoid an error.
12393    Use char because int might match the return type of a GCC
12394    builtin and then its argument prototype would still apply.  */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char sin ();
12399 int
12400 main ()
12401 {
12402 return sin ();
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_link") 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422   { (case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_try") 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest$ac_exeext'
12432   { (case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_try") 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   ac_cv_lib_m_sin=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         ac_cv_lib_m_sin=no
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext \
12450       conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12452 fi
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12454 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12455 if test $ac_cv_lib_m_sin = yes; then
12456   cat >>confdefs.h <<_ACEOF
12457 #define HAVE_LIBM 1
12458 _ACEOF
12459
12460   LIBS="-lm $LIBS"
12461
12462 fi
12463
12464 if test "$llvm_cv_os_type" = "MingW" ; then
12465
12466 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12467 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12468 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-limagehlp  $LIBS"
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h.  */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h.  */
12479
12480
12481 int
12482 main ()
12483 {
12484 return main ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_link") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } &&
12503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12504   { (case "(($ac_try" in
12505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506   *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509   (eval "$ac_try") 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; } &&
12513          { ac_try='test -s conftest$ac_exeext'
12514   { (case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_try") 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; }; then
12523   ac_cv_lib_imagehlp_main=yes
12524 else
12525   echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12527
12528         ac_cv_lib_imagehlp_main=no
12529 fi
12530
12531 rm -f core conftest.err conftest.$ac_objext \
12532       conftest$ac_exeext conftest.$ac_ext
12533 LIBS=$ac_check_lib_save_LIBS
12534 fi
12535 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12536 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12537 if test $ac_cv_lib_imagehlp_main = yes; then
12538   cat >>confdefs.h <<_ACEOF
12539 #define HAVE_LIBIMAGEHLP 1
12540 _ACEOF
12541
12542   LIBS="-limagehlp $LIBS"
12543
12544 fi
12545
12546
12547 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12548 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12549 if test "${ac_cv_lib_psapi_main+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   ac_check_lib_save_LIBS=$LIBS
12553 LIBS="-lpsapi  $LIBS"
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560
12561
12562 int
12563 main ()
12564 {
12565 return main ();
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_link") 2>conftest.er1
12578   ac_status=$?
12579   grep -v '^ *+' conftest.er1 >conftest.err
12580   rm -f conftest.er1
12581   cat conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12585   { (case "(($ac_try" in
12586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587   *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590   (eval "$ac_try") 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; } &&
12594          { ac_try='test -s conftest$ac_exeext'
12595   { (case "(($ac_try" in
12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597   *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600   (eval "$ac_try") 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; }; then
12604   ac_cv_lib_psapi_main=yes
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609         ac_cv_lib_psapi_main=no
12610 fi
12611
12612 rm -f core conftest.err conftest.$ac_objext \
12613       conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12615 fi
12616 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12617 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12618 if test $ac_cv_lib_psapi_main = yes; then
12619   cat >>confdefs.h <<_ACEOF
12620 #define HAVE_LIBPSAPI 1
12621 _ACEOF
12622
12623   LIBS="-lpsapi $LIBS"
12624
12625 fi
12626
12627 fi
12628
12629 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12630 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12631 if test "${ac_cv_search_dlopen+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   ac_func_search_save_LIBS=$LIBS
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h.  */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h.  */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643    Use char because int might match the return type of a GCC
12644    builtin and then its argument prototype would still apply.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char dlopen ();
12649 int
12650 main ()
12651 {
12652 return dlopen ();
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 for ac_lib in '' dl; do
12658   if test -z "$ac_lib"; then
12659     ac_res="none required"
12660   else
12661     ac_res=-l$ac_lib
12662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12663   fi
12664   rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_link") 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679   { (case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_try") 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; } &&
12688          { ac_try='test -s conftest$ac_exeext'
12689   { (case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_try") 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   ac_cv_search_dlopen=$ac_res
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703
12704 fi
12705
12706 rm -f core conftest.err conftest.$ac_objext \
12707       conftest$ac_exeext
12708   if test "${ac_cv_search_dlopen+set}" = set; then
12709   break
12710 fi
12711 done
12712 if test "${ac_cv_search_dlopen+set}" = set; then
12713   :
12714 else
12715   ac_cv_search_dlopen=no
12716 fi
12717 rm conftest.$ac_ext
12718 LIBS=$ac_func_search_save_LIBS
12719 fi
12720 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12721 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12722 ac_res=$ac_cv_search_dlopen
12723 if test "$ac_res" != no; then
12724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12725
12726 cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_DLOPEN 1
12728 _ACEOF
12729
12730 else
12731   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12732 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12733 fi
12734
12735
12736 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12737 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12738 if test "${ac_cv_search_clock_gettime+set}" = set; then
12739   echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741   ac_func_search_save_LIBS=$LIBS
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748
12749 /* Override any GCC internal prototype to avoid an error.
12750    Use char because int might match the return type of a GCC
12751    builtin and then its argument prototype would still apply.  */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char clock_gettime ();
12756 int
12757 main ()
12758 {
12759 return clock_gettime ();
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 for ac_lib in '' rt; do
12765   if test -z "$ac_lib"; then
12766     ac_res="none required"
12767   else
12768     ac_res=-l$ac_lib
12769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12770   fi
12771   rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_link") 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786   { (case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_try") 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; } &&
12795          { ac_try='test -s conftest$ac_exeext'
12796   { (case "(($ac_try" in
12797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798   *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801   (eval "$ac_try") 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); }; }; then
12805   ac_cv_search_clock_gettime=$ac_res
12806 else
12807   echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810
12811 fi
12812
12813 rm -f core conftest.err conftest.$ac_objext \
12814       conftest$ac_exeext
12815   if test "${ac_cv_search_clock_gettime+set}" = set; then
12816   break
12817 fi
12818 done
12819 if test "${ac_cv_search_clock_gettime+set}" = set; then
12820   :
12821 else
12822   ac_cv_search_clock_gettime=no
12823 fi
12824 rm conftest.$ac_ext
12825 LIBS=$ac_func_search_save_LIBS
12826 fi
12827 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12828 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12829 ac_res=$ac_cv_search_clock_gettime
12830 if test "$ac_res" != no; then
12831   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12832
12833 fi
12834
12835
12836 if test "$llvm_cv_enable_libffi" = "yes" ; then
12837   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12838 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12839 if test "${ac_cv_search_ffi_call+set}" = set; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   ac_func_search_save_LIBS=$LIBS
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h.  */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h.  */
12849
12850 /* Override any GCC internal prototype to avoid an error.
12851    Use char because int might match the return type of a GCC
12852    builtin and then its argument prototype would still apply.  */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char ffi_call ();
12857 int
12858 main ()
12859 {
12860 return ffi_call ();
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 for ac_lib in '' ffi; do
12866   if test -z "$ac_lib"; then
12867     ac_res="none required"
12868   else
12869     ac_res=-l$ac_lib
12870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12871   fi
12872   rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_link") 2>conftest.er1
12880   ac_status=$?
12881   grep -v '^ *+' conftest.er1 >conftest.err
12882   rm -f conftest.er1
12883   cat conftest.err >&5
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } &&
12886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887   { (case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_try") 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest$ac_exeext'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_cv_search_ffi_call=$ac_res
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext \
12915       conftest$ac_exeext
12916   if test "${ac_cv_search_ffi_call+set}" = set; then
12917   break
12918 fi
12919 done
12920 if test "${ac_cv_search_ffi_call+set}" = set; then
12921   :
12922 else
12923   ac_cv_search_ffi_call=no
12924 fi
12925 rm conftest.$ac_ext
12926 LIBS=$ac_func_search_save_LIBS
12927 fi
12928 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12929 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12930 ac_res=$ac_cv_search_ffi_call
12931 if test "$ac_res" != no; then
12932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12933
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_FFI_CALL 1
12936 _ACEOF
12937
12938 else
12939   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12940 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12941    { (exit 1); exit 1; }; }
12942 fi
12943
12944 fi
12945
12946 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12947 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12948 if test "${ac_cv_search_mallinfo+set}" = set; then
12949   echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951   ac_func_search_save_LIBS=$LIBS
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958
12959 /* Override any GCC internal prototype to avoid an error.
12960    Use char because int might match the return type of a GCC
12961    builtin and then its argument prototype would still apply.  */
12962 #ifdef __cplusplus
12963 extern "C"
12964 #endif
12965 char mallinfo ();
12966 int
12967 main ()
12968 {
12969 return mallinfo ();
12970   ;
12971   return 0;
12972 }
12973 _ACEOF
12974 for ac_lib in '' malloc; do
12975   if test -z "$ac_lib"; then
12976     ac_res="none required"
12977   else
12978     ac_res=-l$ac_lib
12979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12980   fi
12981   rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985   *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988   (eval "$ac_link") 2>conftest.er1
12989   ac_status=$?
12990   grep -v '^ *+' conftest.er1 >conftest.err
12991   rm -f conftest.er1
12992   cat conftest.err >&5
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12996   { (case "(($ac_try" in
12997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998   *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001   (eval "$ac_try") 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; } &&
13005          { ac_try='test -s conftest$ac_exeext'
13006   { (case "(($ac_try" in
13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008   *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011   (eval "$ac_try") 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; }; then
13015   ac_cv_search_mallinfo=$ac_res
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020
13021 fi
13022
13023 rm -f core conftest.err conftest.$ac_objext \
13024       conftest$ac_exeext
13025   if test "${ac_cv_search_mallinfo+set}" = set; then
13026   break
13027 fi
13028 done
13029 if test "${ac_cv_search_mallinfo+set}" = set; then
13030   :
13031 else
13032   ac_cv_search_mallinfo=no
13033 fi
13034 rm conftest.$ac_ext
13035 LIBS=$ac_func_search_save_LIBS
13036 fi
13037 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13038 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13039 ac_res=$ac_cv_search_mallinfo
13040 if test "$ac_res" != no; then
13041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13042
13043 cat >>confdefs.h <<\_ACEOF
13044 #define HAVE_MALLINFO 1
13045 _ACEOF
13046
13047 fi
13048
13049
13050 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13051
13052 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13053 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13054 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   ac_check_lib_save_LIBS=$LIBS
13058 LIBS="-lpthread  $LIBS"
13059 cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065
13066 /* Override any GCC internal prototype to avoid an error.
13067    Use char because int might match the return type of a GCC
13068    builtin and then its argument prototype would still apply.  */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 char pthread_mutex_init ();
13073 int
13074 main ()
13075 {
13076 return pthread_mutex_init ();
13077   ;
13078   return 0;
13079 }
13080 _ACEOF
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (ac_try="$ac_link"
13083 case "(($ac_try" in
13084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085   *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088   (eval "$ac_link") 2>conftest.er1
13089   ac_status=$?
13090   grep -v '^ *+' conftest.er1 >conftest.err
13091   rm -f conftest.er1
13092   cat conftest.err >&5
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); } &&
13095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13096   { (case "(($ac_try" in
13097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098   *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101   (eval "$ac_try") 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); }; } &&
13105          { ac_try='test -s conftest$ac_exeext'
13106   { (case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_try") 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; }; then
13115   ac_cv_lib_pthread_pthread_mutex_init=yes
13116 else
13117   echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120         ac_cv_lib_pthread_pthread_mutex_init=no
13121 fi
13122
13123 rm -f core conftest.err conftest.$ac_objext \
13124       conftest$ac_exeext conftest.$ac_ext
13125 LIBS=$ac_check_lib_save_LIBS
13126 fi
13127 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13128 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13129 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13130   cat >>confdefs.h <<_ACEOF
13131 #define HAVE_LIBPTHREAD 1
13132 _ACEOF
13133
13134   LIBS="-lpthread $LIBS"
13135
13136 fi
13137
13138   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13139 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13140 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13141   echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143   ac_func_search_save_LIBS=$LIBS
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150
13151 /* Override any GCC internal prototype to avoid an error.
13152    Use char because int might match the return type of a GCC
13153    builtin and then its argument prototype would still apply.  */
13154 #ifdef __cplusplus
13155 extern "C"
13156 #endif
13157 char pthread_mutex_lock ();
13158 int
13159 main ()
13160 {
13161 return pthread_mutex_lock ();
13162   ;
13163   return 0;
13164 }
13165 _ACEOF
13166 for ac_lib in '' pthread; do
13167   if test -z "$ac_lib"; then
13168     ac_res="none required"
13169   else
13170     ac_res=-l$ac_lib
13171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13172   fi
13173   rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_link") 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188   { (case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_try") 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }; } &&
13197          { ac_try='test -s conftest$ac_exeext'
13198   { (case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_try") 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   ac_cv_search_pthread_mutex_lock=$ac_res
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212
13213 fi
13214
13215 rm -f core conftest.err conftest.$ac_objext \
13216       conftest$ac_exeext
13217   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13218   break
13219 fi
13220 done
13221 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13222   :
13223 else
13224   ac_cv_search_pthread_mutex_lock=no
13225 fi
13226 rm conftest.$ac_ext
13227 LIBS=$ac_func_search_save_LIBS
13228 fi
13229 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13230 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13231 ac_res=$ac_cv_search_pthread_mutex_lock
13232 if test "$ac_res" != no; then
13233   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13234
13235 cat >>confdefs.h <<\_ACEOF
13236 #define HAVE_PTHREAD_MUTEX_LOCK 1
13237 _ACEOF
13238
13239 fi
13240
13241   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13242 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13243 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   ac_func_search_save_LIBS=$LIBS
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h.  */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h.  */
13253
13254 /* Override any GCC internal prototype to avoid an error.
13255    Use char because int might match the return type of a GCC
13256    builtin and then its argument prototype would still apply.  */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char pthread_rwlock_init ();
13261 int
13262 main ()
13263 {
13264 return pthread_rwlock_init ();
13265   ;
13266   return 0;
13267 }
13268 _ACEOF
13269 for ac_lib in '' pthread; do
13270   if test -z "$ac_lib"; then
13271     ac_res="none required"
13272   else
13273     ac_res=-l$ac_lib
13274     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13275   fi
13276   rm -f conftest.$ac_objext conftest$ac_exeext
13277 if { (ac_try="$ac_link"
13278 case "(($ac_try" in
13279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280   *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283   (eval "$ac_link") 2>conftest.er1
13284   ac_status=$?
13285   grep -v '^ *+' conftest.er1 >conftest.err
13286   rm -f conftest.er1
13287   cat conftest.err >&5
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291   { (case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_try") 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; } &&
13300          { ac_try='test -s conftest$ac_exeext'
13301   { (case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_try") 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }; }; then
13310   ac_cv_search_pthread_rwlock_init=$ac_res
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315
13316 fi
13317
13318 rm -f core conftest.err conftest.$ac_objext \
13319       conftest$ac_exeext
13320   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13321   break
13322 fi
13323 done
13324 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13325   :
13326 else
13327   ac_cv_search_pthread_rwlock_init=no
13328 fi
13329 rm conftest.$ac_ext
13330 LIBS=$ac_func_search_save_LIBS
13331 fi
13332 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13333 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13334 ac_res=$ac_cv_search_pthread_rwlock_init
13335 if test "$ac_res" != no; then
13336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13337
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_PTHREAD_RWLOCK_INIT 1
13340 _ACEOF
13341
13342 fi
13343
13344   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13345 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13346 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349   ac_func_search_save_LIBS=$LIBS
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356
13357 /* Override any GCC internal prototype to avoid an error.
13358    Use char because int might match the return type of a GCC
13359    builtin and then its argument prototype would still apply.  */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 char pthread_getspecific ();
13364 int
13365 main ()
13366 {
13367 return pthread_getspecific ();
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 for ac_lib in '' pthread; do
13373   if test -z "$ac_lib"; then
13374     ac_res="none required"
13375   else
13376     ac_res=-l$ac_lib
13377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13378   fi
13379   rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_link") 2>conftest.er1
13387   ac_status=$?
13388   grep -v '^ *+' conftest.er1 >conftest.err
13389   rm -f conftest.er1
13390   cat conftest.err >&5
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } &&
13393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394   { (case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_try") 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; } &&
13403          { ac_try='test -s conftest$ac_exeext'
13404   { (case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_try") 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); }; }; then
13413   ac_cv_search_pthread_getspecific=$ac_res
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418
13419 fi
13420
13421 rm -f core conftest.err conftest.$ac_objext \
13422       conftest$ac_exeext
13423   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13424   break
13425 fi
13426 done
13427 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13428   :
13429 else
13430   ac_cv_search_pthread_getspecific=no
13431 fi
13432 rm conftest.$ac_ext
13433 LIBS=$ac_func_search_save_LIBS
13434 fi
13435 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13436 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13437 ac_res=$ac_cv_search_pthread_getspecific
13438 if test "$ac_res" != no; then
13439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13440
13441 cat >>confdefs.h <<\_ACEOF
13442 #define HAVE_PTHREAD_GETSPECIFIC 1
13443 _ACEOF
13444
13445 fi
13446
13447 fi
13448
13449
13450 # Check whether --with-udis86 was given.
13451 if test "${with_udis86+set}" = set; then
13452   withval=$with_udis86;
13453       USE_UDIS86=1
13454
13455       case "$withval" in
13456         /usr/lib|yes) ;;
13457         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13458       esac
13459
13460 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13461 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13462 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465   ac_check_lib_save_LIBS=$LIBS
13466 LIBS="-ludis86  $LIBS"
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h.  */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h.  */
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475    Use char because int might match the return type of a GCC
13476    builtin and then its argument prototype would still apply.  */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char ud_init ();
13481 int
13482 main ()
13483 {
13484 return ud_init ();
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (ac_try="$ac_link"
13491 case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_link") 2>conftest.er1
13497   ac_status=$?
13498   grep -v '^ *+' conftest.er1 >conftest.err
13499   rm -f conftest.er1
13500   cat conftest.err >&5
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13504   { (case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_try") 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; } &&
13513          { ac_try='test -s conftest$ac_exeext'
13514   { (case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_try") 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_cv_lib_udis86_ud_init=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528         ac_cv_lib_udis86_ud_init=no
13529 fi
13530
13531 rm -f core conftest.err conftest.$ac_objext \
13532       conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13534 fi
13535 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13536 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13537 if test $ac_cv_lib_udis86_ud_init = yes; then
13538   cat >>confdefs.h <<_ACEOF
13539 #define HAVE_LIBUDIS86 1
13540 _ACEOF
13541
13542   LIBS="-ludis86 $LIBS"
13543
13544 else
13545
13546         echo "Error! You need to have libudis86 around."
13547         exit -1
13548
13549 fi
13550
13551
13552 else
13553   USE_UDIS86=0
13554
13555 fi
13556
13557
13558 cat >>confdefs.h <<_ACEOF
13559 #define USE_UDIS86 $USE_UDIS86
13560 _ACEOF
13561
13562
13563
13564 # Check whether --with-oprofile was given.
13565 if test "${with_oprofile+set}" = set; then
13566   withval=$with_oprofile;
13567       USE_OPROFILE=1
13568
13569       case "$withval" in
13570         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13571         no) llvm_cv_oppath=
13572             USE_OPROFILE=0
13573  ;;
13574         *) llvm_cv_oppath="${withval}/lib/oprofile"
13575            CPPFLAGS="-I${withval}/include";;
13576       esac
13577       case $llvm_cv_os_type in
13578         Linux)
13579           if test -n "$llvm_cv_oppath" ; then
13580             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13581                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13582 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13583 if test "${ac_cv_search_bfd_init+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   ac_func_search_save_LIBS=$LIBS
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593
13594 /* Override any GCC internal prototype to avoid an error.
13595    Use char because int might match the return type of a GCC
13596    builtin and then its argument prototype would still apply.  */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char bfd_init ();
13601 int
13602 main ()
13603 {
13604 return bfd_init ();
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 for ac_lib in '' bfd; do
13610   if test -z "$ac_lib"; then
13611     ac_res="none required"
13612   else
13613     ac_res=-l$ac_lib
13614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13615   fi
13616   rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620   *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623   (eval "$ac_link") 2>conftest.er1
13624   ac_status=$?
13625   grep -v '^ *+' conftest.er1 >conftest.err
13626   rm -f conftest.er1
13627   cat conftest.err >&5
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } &&
13630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13631   { (case "(($ac_try" in
13632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633   *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636   (eval "$ac_try") 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); }; } &&
13640          { ac_try='test -s conftest$ac_exeext'
13641   { (case "(($ac_try" in
13642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643   *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646   (eval "$ac_try") 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; }; then
13650   ac_cv_search_bfd_init=$ac_res
13651 else
13652   echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13654
13655
13656 fi
13657
13658 rm -f core conftest.err conftest.$ac_objext \
13659       conftest$ac_exeext
13660   if test "${ac_cv_search_bfd_init+set}" = set; then
13661   break
13662 fi
13663 done
13664 if test "${ac_cv_search_bfd_init+set}" = set; then
13665   :
13666 else
13667   ac_cv_search_bfd_init=no
13668 fi
13669 rm conftest.$ac_ext
13670 LIBS=$ac_func_search_save_LIBS
13671 fi
13672 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13673 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13674 ac_res=$ac_cv_search_bfd_init
13675 if test "$ac_res" != no; then
13676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13677
13678 fi
13679
13680             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13681 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13682 if test "${ac_cv_search_op_open_agent+set}" = set; then
13683   echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685   ac_func_search_save_LIBS=$LIBS
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h.  */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h.  */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694    Use char because int might match the return type of a GCC
13695    builtin and then its argument prototype would still apply.  */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char op_open_agent ();
13700 int
13701 main ()
13702 {
13703 return op_open_agent ();
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 for ac_lib in '' opagent; do
13709   if test -z "$ac_lib"; then
13710     ac_res="none required"
13711   else
13712     ac_res=-l$ac_lib
13713     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13714   fi
13715   rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_link") 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730   { (case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735   (eval "$ac_try") 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest$ac_exeext'
13740   { (case "(($ac_try" in
13741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742   *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745   (eval "$ac_try") 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749   ac_cv_search_op_open_agent=$ac_res
13750 else
13751   echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13753
13754
13755 fi
13756
13757 rm -f core conftest.err conftest.$ac_objext \
13758       conftest$ac_exeext
13759   if test "${ac_cv_search_op_open_agent+set}" = set; then
13760   break
13761 fi
13762 done
13763 if test "${ac_cv_search_op_open_agent+set}" = set; then
13764   :
13765 else
13766   ac_cv_search_op_open_agent=no
13767 fi
13768 rm conftest.$ac_ext
13769 LIBS=$ac_func_search_save_LIBS
13770 fi
13771 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13772 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13773 ac_res=$ac_cv_search_op_open_agent
13774 if test "$ac_res" != no; then
13775   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13776
13777 else
13778
13779               echo "Error! You need to have libopagent around."
13780               exit -1
13781
13782 fi
13783
13784             if test "${ac_cv_header_opagent_h+set}" = set; then
13785   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13786 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13787 if test "${ac_cv_header_opagent_h+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 fi
13790 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13791 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13792 else
13793   # Is the header compilable?
13794 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13795 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802 $ac_includes_default
13803 #include <opagent.h>
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809   *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812   (eval "$ac_compile") 2>conftest.er1
13813   ac_status=$?
13814   grep -v '^ *+' conftest.er1 >conftest.err
13815   rm -f conftest.er1
13816   cat conftest.err >&5
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820   { (case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_try") 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; } &&
13829          { ac_try='test -s conftest.$ac_objext'
13830   { (case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_try") 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); }; }; then
13839   ac_header_compiler=yes
13840 else
13841   echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13843
13844         ac_header_compiler=no
13845 fi
13846
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6; }
13850
13851 # Is the header present?
13852 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13853 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 #include <opagent.h>
13861 _ACEOF
13862 if { (ac_try="$ac_cpp conftest.$ac_ext"
13863 case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } >/dev/null; then
13875   if test -s conftest.err; then
13876     ac_cpp_err=$ac_c_preproc_warn_flag
13877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13878   else
13879     ac_cpp_err=
13880   fi
13881 else
13882   ac_cpp_err=yes
13883 fi
13884 if test -z "$ac_cpp_err"; then
13885   ac_header_preproc=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890   ac_header_preproc=no
13891 fi
13892
13893 rm -f conftest.err conftest.$ac_ext
13894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13895 echo "${ECHO_T}$ac_header_preproc" >&6; }
13896
13897 # So?  What about this header?
13898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13899   yes:no: )
13900     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13901 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13902     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13903 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13904     ac_header_preproc=yes
13905     ;;
13906   no:yes:* )
13907     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13908 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13909     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13910 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13911     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13912 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13913     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13914 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13915     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13916 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13917     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13918 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13919     ( cat <<\_ASBOX
13920 ## ------------------------------------ ##
13921 ## Report this to http://llvm.org/bugs/ ##
13922 ## ------------------------------------ ##
13923 _ASBOX
13924      ) | sed "s/^/$as_me: WARNING:     /" >&2
13925     ;;
13926 esac
13927 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13928 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13929 if test "${ac_cv_header_opagent_h+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   ac_cv_header_opagent_h=$ac_header_preproc
13933 fi
13934 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13935 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13936
13937 fi
13938 if test $ac_cv_header_opagent_h = yes; then
13939   :
13940 else
13941
13942               echo "Error! You need to have opagent.h around."
13943               exit -1
13944
13945 fi
13946
13947
13948           fi ;;
13949         *)
13950           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13951 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13952    { (exit 1); exit 1; }; } ;;
13953       esac
13954
13955 else
13956
13957       USE_OPROFILE=0
13958
13959
13960 fi
13961
13962
13963 cat >>confdefs.h <<_ACEOF
13964 #define LLVM_USE_OPROFILE $USE_OPROFILE
13965 _ACEOF
13966
13967
13968
13969 # Check whether --with-intel-jitevents was given.
13970 if test "${with_intel_jitevents+set}" = set; then
13971   withval=$with_intel_jitevents;
13972        case "$withval" in
13973           yes) USE_INTEL_JITEVENTS=1
13974 ;;
13975           no)  USE_INTEL_JITEVENTS=0
13976 ;;
13977           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13978 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13979    { (exit 1); exit 1; }; };;
13980        esac
13981
13982       case $llvm_cv_os_type in
13983         Linux|Win32|Cygwin|MingW) ;;
13984         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13985 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13986    { (exit 1); exit 1; }; };;
13987       esac
13988
13989       case "$llvm_cv_target_arch" in
13990         x86|x86_64) ;;
13991         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13992 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13993    { (exit 1); exit 1; }; };;
13994       esac
13995
13996 else
13997
13998       USE_INTEL_JITEVENTS=0
13999
14000
14001 fi
14002
14003
14004 cat >>confdefs.h <<_ACEOF
14005 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14006 _ACEOF
14007
14008
14009 for ac_prog in xml2-config
14010 do
14011   # Extract the first word of "$ac_prog", so it can be a program name with args.
14012 set dummy $ac_prog; ac_word=$2
14013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14015 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   if test -n "$XML2CONFIG"; then
14019   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14020 else
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024   IFS=$as_save_IFS
14025   test -z "$as_dir" && as_dir=.
14026   for ac_exec_ext in '' $ac_executable_extensions; do
14027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14028     ac_cv_prog_XML2CONFIG="$ac_prog"
14029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030     break 2
14031   fi
14032 done
14033 done
14034 IFS=$as_save_IFS
14035
14036 fi
14037 fi
14038 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14039 if test -n "$XML2CONFIG"; then
14040   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14041 echo "${ECHO_T}$XML2CONFIG" >&6; }
14042 else
14043   { echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6; }
14045 fi
14046
14047
14048   test -n "$XML2CONFIG" && break
14049 done
14050
14051
14052 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14053 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14054 if test "x$XML2CONFIG" = "x"; then
14055  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14056 echo "${ECHO_T}xml2-config not found" >&6; }
14057 else
14058  LIBXML2_INC=`$XML2CONFIG --cflags`
14059  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14060 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14061  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14062 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lxml2  $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074
14075 /* Override any GCC internal prototype to avoid an error.
14076    Use char because int might match the return type of a GCC
14077    builtin and then its argument prototype would still apply.  */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char xmlReadFile ();
14082 int
14083 main ()
14084 {
14085 return xmlReadFile ();
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094   *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097   (eval "$ac_link") 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } &&
14104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14105   { (case "(($ac_try" in
14106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107   *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110   (eval "$ac_try") 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; } &&
14114          { ac_try='test -s conftest$ac_exeext'
14115   { (case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120   (eval "$ac_try") 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124   ac_cv_lib_xml2_xmlReadFile=yes
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129         ac_cv_lib_xml2_xmlReadFile=no
14130 fi
14131
14132 rm -f core conftest.err conftest.$ac_objext \
14133       conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14135 fi
14136 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14137 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14138 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14139
14140 cat >>confdefs.h <<\_ACEOF
14141 #define CLANG_HAVE_LIBXML 1
14142 _ACEOF
14143
14144                                 LIBXML2_LIBS="-lxml2"
14145 fi
14146
14147 fi
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157 ac_header_dirent=no
14158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14159   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14160 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14161 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 #include <sys/types.h>
14172 #include <$ac_hdr>
14173
14174 int
14175 main ()
14176 {
14177 if ((DIR *) 0)
14178 return 0;
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (ac_try="$ac_compile"
14185 case "(($ac_try" in
14186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187   *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190   (eval "$ac_compile") 2>conftest.er1
14191   ac_status=$?
14192   grep -v '^ *+' conftest.er1 >conftest.err
14193   rm -f conftest.er1
14194   cat conftest.err >&5
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); } &&
14197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14198   { (case "(($ac_try" in
14199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200   *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203   (eval "$ac_try") 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); }; } &&
14207          { ac_try='test -s conftest.$ac_objext'
14208   { (case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_try") 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; }; then
14217   eval "$as_ac_Header=yes"
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222         eval "$as_ac_Header=no"
14223 fi
14224
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 ac_res=`eval echo '${'$as_ac_Header'}'`
14228                { echo "$as_me:$LINENO: result: $ac_res" >&5
14229 echo "${ECHO_T}$ac_res" >&6; }
14230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14231   cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 ac_header_dirent=$ac_hdr; break
14236 fi
14237
14238 done
14239 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14240 if test $ac_header_dirent = dirent.h; then
14241   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14242 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14243 if test "${ac_cv_search_opendir+set}" = set; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   ac_func_search_save_LIBS=$LIBS
14247 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h.  */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h.  */
14253
14254 /* Override any GCC internal prototype to avoid an error.
14255    Use char because int might match the return type of a GCC
14256    builtin and then its argument prototype would still apply.  */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char opendir ();
14261 int
14262 main ()
14263 {
14264 return opendir ();
14265   ;
14266   return 0;
14267 }
14268 _ACEOF
14269 for ac_lib in '' dir; do
14270   if test -z "$ac_lib"; then
14271     ac_res="none required"
14272   else
14273     ac_res=-l$ac_lib
14274     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14275   fi
14276   rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280   *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283   (eval "$ac_link") 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } &&
14290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14291   { (case "(($ac_try" in
14292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293   *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296   (eval "$ac_try") 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; } &&
14300          { ac_try='test -s conftest$ac_exeext'
14301   { (case "(($ac_try" in
14302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303   *) ac_try_echo=$ac_try;;
14304 esac
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306   (eval "$ac_try") 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310   ac_cv_search_opendir=$ac_res
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315
14316 fi
14317
14318 rm -f core conftest.err conftest.$ac_objext \
14319       conftest$ac_exeext
14320   if test "${ac_cv_search_opendir+set}" = set; then
14321   break
14322 fi
14323 done
14324 if test "${ac_cv_search_opendir+set}" = set; then
14325   :
14326 else
14327   ac_cv_search_opendir=no
14328 fi
14329 rm conftest.$ac_ext
14330 LIBS=$ac_func_search_save_LIBS
14331 fi
14332 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14333 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14334 ac_res=$ac_cv_search_opendir
14335 if test "$ac_res" != no; then
14336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14337
14338 fi
14339
14340 else
14341   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14343 if test "${ac_cv_search_opendir+set}" = set; then
14344   echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346   ac_func_search_save_LIBS=$LIBS
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353
14354 /* Override any GCC internal prototype to avoid an error.
14355    Use char because int might match the return type of a GCC
14356    builtin and then its argument prototype would still apply.  */
14357 #ifdef __cplusplus
14358 extern "C"
14359 #endif
14360 char opendir ();
14361 int
14362 main ()
14363 {
14364 return opendir ();
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 for ac_lib in '' x; do
14370   if test -z "$ac_lib"; then
14371     ac_res="none required"
14372   else
14373     ac_res=-l$ac_lib
14374     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14375   fi
14376   rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (ac_try="$ac_link"
14378 case "(($ac_try" in
14379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380   *) ac_try_echo=$ac_try;;
14381 esac
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383   (eval "$ac_link") 2>conftest.er1
14384   ac_status=$?
14385   grep -v '^ *+' conftest.er1 >conftest.err
14386   rm -f conftest.er1
14387   cat conftest.err >&5
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); } &&
14390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14391   { (case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_try") 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; } &&
14400          { ac_try='test -s conftest$ac_exeext'
14401   { (case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_try") 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; }; then
14410   ac_cv_search_opendir=$ac_res
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415
14416 fi
14417
14418 rm -f core conftest.err conftest.$ac_objext \
14419       conftest$ac_exeext
14420   if test "${ac_cv_search_opendir+set}" = set; then
14421   break
14422 fi
14423 done
14424 if test "${ac_cv_search_opendir+set}" = set; then
14425   :
14426 else
14427   ac_cv_search_opendir=no
14428 fi
14429 rm conftest.$ac_ext
14430 LIBS=$ac_func_search_save_LIBS
14431 fi
14432 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14433 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14434 ac_res=$ac_cv_search_opendir
14435 if test "$ac_res" != no; then
14436   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14437
14438 fi
14439
14440 fi
14441
14442 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14443 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14444 if test "${ac_cv_header_mmap_anon+set}" = set; then
14445   echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447    ac_ext=c
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14452
14453   cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459 #include <sys/mman.h>
14460 #include <unistd.h>
14461 #include <fcntl.h>
14462 int
14463 main ()
14464 {
14465 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (ac_try="$ac_compile"
14472 case "(($ac_try" in
14473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474   *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477   (eval "$ac_compile") 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14485   { (case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_try") 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; } &&
14494          { ac_try='test -s conftest.$ac_objext'
14495   { (case "(($ac_try" in
14496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497   *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500   (eval "$ac_try") 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; }; then
14504   ac_cv_header_mmap_anon=yes
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509         ac_cv_header_mmap_anon=no
14510 fi
14511
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513   ac_ext=c
14514 ac_cpp='$CPP $CPPFLAGS'
14515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518
14519
14520 fi
14521 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14522 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14523 if test "$ac_cv_header_mmap_anon" = yes; then
14524
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_MMAP_ANONYMOUS 1
14527 _ACEOF
14528
14529 fi
14530
14531 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14532 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14533 if test "${ac_cv_header_stat_broken+set}" = set; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536   cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542 #include <sys/types.h>
14543 #include <sys/stat.h>
14544
14545 #if defined S_ISBLK && defined S_IFDIR
14546 # if S_ISBLK (S_IFDIR)
14547 You lose.
14548 # endif
14549 #endif
14550
14551 #if defined S_ISBLK && defined S_IFCHR
14552 # if S_ISBLK (S_IFCHR)
14553 You lose.
14554 # endif
14555 #endif
14556
14557 #if defined S_ISLNK && defined S_IFREG
14558 # if S_ISLNK (S_IFREG)
14559 You lose.
14560 # endif
14561 #endif
14562
14563 #if defined S_ISSOCK && defined S_IFREG
14564 # if S_ISSOCK (S_IFREG)
14565 You lose.
14566 # endif
14567 #endif
14568
14569 _ACEOF
14570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14571   $EGREP "You lose" >/dev/null 2>&1; then
14572   ac_cv_header_stat_broken=yes
14573 else
14574   ac_cv_header_stat_broken=no
14575 fi
14576 rm -f conftest*
14577
14578 fi
14579 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14580 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14581 if test $ac_cv_header_stat_broken = yes; then
14582
14583 cat >>confdefs.h <<\_ACEOF
14584 #define STAT_MACROS_BROKEN 1
14585 _ACEOF
14586
14587 fi
14588
14589 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14590 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14591 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14592   echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594   cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 #include <sys/types.h>
14601 #include <sys/wait.h>
14602 #ifndef WEXITSTATUS
14603 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14604 #endif
14605 #ifndef WIFEXITED
14606 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14607 #endif
14608
14609 int
14610 main ()
14611 {
14612   int s;
14613   wait (&s);
14614   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623   *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626   (eval "$ac_compile") 2>conftest.er1
14627   ac_status=$?
14628   grep -v '^ *+' conftest.er1 >conftest.err
14629   rm -f conftest.er1
14630   cat conftest.err >&5
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); } &&
14633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634   { (case "(($ac_try" in
14635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636   *) ac_try_echo=$ac_try;;
14637 esac
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639   (eval "$ac_try") 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_try") 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); }; }; then
14653   ac_cv_header_sys_wait_h=yes
14654 else
14655   echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658         ac_cv_header_sys_wait_h=no
14659 fi
14660
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 fi
14663 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14664 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14665 if test $ac_cv_header_sys_wait_h = yes; then
14666
14667 cat >>confdefs.h <<\_ACEOF
14668 #define HAVE_SYS_WAIT_H 1
14669 _ACEOF
14670
14671 fi
14672
14673 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14674 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14675 if test "${ac_cv_header_time+set}" = set; then
14676   echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678   cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 #include <sys/types.h>
14685 #include <sys/time.h>
14686 #include <time.h>
14687
14688 int
14689 main ()
14690 {
14691 if ((struct tm *) 0)
14692 return 0;
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_compile") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712   { (case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717   (eval "$ac_try") 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (case "(($ac_try" in
14723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724   *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727   (eval "$ac_try") 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   ac_cv_header_time=yes
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736         ac_cv_header_time=no
14737 fi
14738
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14742 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14743 if test $ac_cv_header_time = yes; then
14744
14745 cat >>confdefs.h <<\_ACEOF
14746 #define TIME_WITH_SYS_TIME 1
14747 _ACEOF
14748
14749 fi
14750
14751
14752
14753
14754
14755
14756
14757
14758 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14759 do
14760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 fi
14767 ac_res=`eval echo '${'$as_ac_Header'}'`
14768                { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14770 else
14771   # Is the header compilable?
14772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h.  */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h.  */
14780 $ac_includes_default
14781 #include <$ac_header>
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_compile") 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; } &&
14807          { ac_try='test -s conftest.$ac_objext'
14808   { (case "(($ac_try" in
14809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810   *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813   (eval "$ac_try") 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; }; then
14817   ac_header_compiler=yes
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822         ac_header_compiler=no
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827 echo "${ECHO_T}$ac_header_compiler" >&6; }
14828
14829 # Is the header present?
14830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838 #include <$ac_header>
14839 _ACEOF
14840 if { (ac_try="$ac_cpp conftest.$ac_ext"
14841 case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } >/dev/null; then
14853   if test -s conftest.err; then
14854     ac_cpp_err=$ac_c_preproc_warn_flag
14855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14856   else
14857     ac_cpp_err=
14858   fi
14859 else
14860   ac_cpp_err=yes
14861 fi
14862 if test -z "$ac_cpp_err"; then
14863   ac_header_preproc=yes
14864 else
14865   echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14867
14868   ac_header_preproc=no
14869 fi
14870
14871 rm -f conftest.err conftest.$ac_ext
14872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14873 echo "${ECHO_T}$ac_header_preproc" >&6; }
14874
14875 # So?  What about this header?
14876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14877   yes:no: )
14878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14882     ac_header_preproc=yes
14883     ;;
14884   no:yes:* )
14885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14897     ( cat <<\_ASBOX
14898 ## ------------------------------------ ##
14899 ## Report this to http://llvm.org/bugs/ ##
14900 ## ------------------------------------ ##
14901 _ASBOX
14902      ) | sed "s/^/$as_me: WARNING:     /" >&2
14903     ;;
14904 esac
14905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910   eval "$as_ac_Header=\$ac_header_preproc"
14911 fi
14912 ac_res=`eval echo '${'$as_ac_Header'}'`
14913                { echo "$as_me:$LINENO: result: $ac_res" >&5
14914 echo "${ECHO_T}$ac_res" >&6; }
14915
14916 fi
14917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14918   cat >>confdefs.h <<_ACEOF
14919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14920 _ACEOF
14921
14922 fi
14923
14924 done
14925
14926
14927
14928
14929
14930
14931
14932 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14933 do
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 fi
14941 ac_res=`eval echo '${'$as_ac_Header'}'`
14942                { echo "$as_me:$LINENO: result: $ac_res" >&5
14943 echo "${ECHO_T}$ac_res" >&6; }
14944 else
14945   # Is the header compilable?
14946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954 $ac_includes_default
14955 #include <$ac_header>
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_compile") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972   { (case "(($ac_try" in
14973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974   *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977   (eval "$ac_try") 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; } &&
14981          { ac_try='test -s conftest.$ac_objext'
14982   { (case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_try") 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991   ac_header_compiler=yes
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996         ac_header_compiler=no
14997 fi
14998
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6; }
15002
15003 # Is the header present?
15004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 #include <$ac_header>
15013 _ACEOF
15014 if { (ac_try="$ac_cpp conftest.$ac_ext"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } >/dev/null; then
15027   if test -s conftest.err; then
15028     ac_cpp_err=$ac_c_preproc_warn_flag
15029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030   else
15031     ac_cpp_err=
15032   fi
15033 else
15034   ac_cpp_err=yes
15035 fi
15036 if test -z "$ac_cpp_err"; then
15037   ac_header_preproc=yes
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042   ac_header_preproc=no
15043 fi
15044
15045 rm -f conftest.err conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047 echo "${ECHO_T}$ac_header_preproc" >&6; }
15048
15049 # So?  What about this header?
15050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15051   yes:no: )
15052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15056     ac_header_preproc=yes
15057     ;;
15058   no:yes:* )
15059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15071     ( cat <<\_ASBOX
15072 ## ------------------------------------ ##
15073 ## Report this to http://llvm.org/bugs/ ##
15074 ## ------------------------------------ ##
15075 _ASBOX
15076      ) | sed "s/^/$as_me: WARNING:     /" >&2
15077     ;;
15078 esac
15079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   eval "$as_ac_Header=\$ac_header_preproc"
15085 fi
15086 ac_res=`eval echo '${'$as_ac_Header'}'`
15087                { echo "$as_me:$LINENO: result: $ac_res" >&5
15088 echo "${ECHO_T}$ac_res" >&6; }
15089
15090 fi
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092   cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15094 _ACEOF
15095
15096 fi
15097
15098 done
15099
15100
15101
15102 for ac_header in utime.h windows.h
15103 do
15104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109   echo $ECHO_N "(cached) $ECHO_C" >&6
15110 fi
15111 ac_res=`eval echo '${'$as_ac_Header'}'`
15112                { echo "$as_me:$LINENO: result: $ac_res" >&5
15113 echo "${ECHO_T}$ac_res" >&6; }
15114 else
15115   # Is the header compilable?
15116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 $ac_includes_default
15125 #include <$ac_header>
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_compile") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } &&
15141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142   { (case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_try") 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); }; } &&
15151          { ac_try='test -s conftest.$ac_objext'
15152   { (case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_try") 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; }; then
15161   ac_header_compiler=yes
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166         ac_header_compiler=no
15167 fi
15168
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15171 echo "${ECHO_T}$ac_header_compiler" >&6; }
15172
15173 # Is the header present?
15174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 #include <$ac_header>
15183 _ACEOF
15184 if { (ac_try="$ac_cpp conftest.$ac_ext"
15185 case "(($ac_try" in
15186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187   *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15191   ac_status=$?
15192   grep -v '^ *+' conftest.er1 >conftest.err
15193   rm -f conftest.er1
15194   cat conftest.err >&5
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); } >/dev/null; then
15197   if test -s conftest.err; then
15198     ac_cpp_err=$ac_c_preproc_warn_flag
15199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15200   else
15201     ac_cpp_err=
15202   fi
15203 else
15204   ac_cpp_err=yes
15205 fi
15206 if test -z "$ac_cpp_err"; then
15207   ac_header_preproc=yes
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212   ac_header_preproc=no
15213 fi
15214
15215 rm -f conftest.err conftest.$ac_ext
15216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15217 echo "${ECHO_T}$ac_header_preproc" >&6; }
15218
15219 # So?  What about this header?
15220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15221   yes:no: )
15222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15226     ac_header_preproc=yes
15227     ;;
15228   no:yes:* )
15229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15241     ( cat <<\_ASBOX
15242 ## ------------------------------------ ##
15243 ## Report this to http://llvm.org/bugs/ ##
15244 ## ------------------------------------ ##
15245 _ASBOX
15246      ) | sed "s/^/$as_me: WARNING:     /" >&2
15247     ;;
15248 esac
15249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15252   echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254   eval "$as_ac_Header=\$ac_header_preproc"
15255 fi
15256 ac_res=`eval echo '${'$as_ac_Header'}'`
15257                { echo "$as_me:$LINENO: result: $ac_res" >&5
15258 echo "${ECHO_T}$ac_res" >&6; }
15259
15260 fi
15261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15262   cat >>confdefs.h <<_ACEOF
15263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15264 _ACEOF
15265
15266 fi
15267
15268 done
15269
15270
15271
15272
15273
15274
15275 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15276 do
15277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 fi
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285                { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15287 else
15288   # Is the header compilable?
15289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 $ac_includes_default
15298 #include <$ac_header>
15299 _ACEOF
15300 rm -f conftest.$ac_objext
15301 if { (ac_try="$ac_compile"
15302 case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_compile") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } &&
15314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315   { (case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_try") 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; } &&
15324          { ac_try='test -s conftest.$ac_objext'
15325   { (case "(($ac_try" in
15326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327   *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330   (eval "$ac_try") 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334   ac_header_compiler=yes
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339         ac_header_compiler=no
15340 fi
15341
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344 echo "${ECHO_T}$ac_header_compiler" >&6; }
15345
15346 # Is the header present?
15347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 #include <$ac_header>
15356 _ACEOF
15357 if { (ac_try="$ac_cpp conftest.$ac_ext"
15358 case "(($ac_try" in
15359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360   *) ac_try_echo=$ac_try;;
15361 esac
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15364   ac_status=$?
15365   grep -v '^ *+' conftest.er1 >conftest.err
15366   rm -f conftest.er1
15367   cat conftest.err >&5
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } >/dev/null; then
15370   if test -s conftest.err; then
15371     ac_cpp_err=$ac_c_preproc_warn_flag
15372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15373   else
15374     ac_cpp_err=
15375   fi
15376 else
15377   ac_cpp_err=yes
15378 fi
15379 if test -z "$ac_cpp_err"; then
15380   ac_header_preproc=yes
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385   ac_header_preproc=no
15386 fi
15387
15388 rm -f conftest.err conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15390 echo "${ECHO_T}$ac_header_preproc" >&6; }
15391
15392 # So?  What about this header?
15393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15394   yes:no: )
15395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15399     ac_header_preproc=yes
15400     ;;
15401   no:yes:* )
15402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15414     ( cat <<\_ASBOX
15415 ## ------------------------------------ ##
15416 ## Report this to http://llvm.org/bugs/ ##
15417 ## ------------------------------------ ##
15418 _ASBOX
15419      ) | sed "s/^/$as_me: WARNING:     /" >&2
15420     ;;
15421 esac
15422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425   echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427   eval "$as_ac_Header=\$ac_header_preproc"
15428 fi
15429 ac_res=`eval echo '${'$as_ac_Header'}'`
15430                { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15432
15433 fi
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435   cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15437 _ACEOF
15438
15439 fi
15440
15441 done
15442
15443
15444
15445
15446
15447 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15448 do
15449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 fi
15456 ac_res=`eval echo '${'$as_ac_Header'}'`
15457                { echo "$as_me:$LINENO: result: $ac_res" >&5
15458 echo "${ECHO_T}$ac_res" >&6; }
15459 else
15460   # Is the header compilable?
15461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 $ac_includes_default
15470 #include <$ac_header>
15471 _ACEOF
15472 rm -f conftest.$ac_objext
15473 if { (ac_try="$ac_compile"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_compile") 2>conftest.er1
15480   ac_status=$?
15481   grep -v '^ *+' conftest.er1 >conftest.err
15482   rm -f conftest.er1
15483   cat conftest.err >&5
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } &&
15486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487   { (case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_try") 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); }; } &&
15496          { ac_try='test -s conftest.$ac_objext'
15497   { (case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_try") 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; }; then
15506   ac_header_compiler=yes
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511         ac_header_compiler=no
15512 fi
15513
15514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15516 echo "${ECHO_T}$ac_header_compiler" >&6; }
15517
15518 # Is the header present?
15519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h.  */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h.  */
15527 #include <$ac_header>
15528 _ACEOF
15529 if { (ac_try="$ac_cpp conftest.$ac_ext"
15530 case "(($ac_try" in
15531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532   *) ac_try_echo=$ac_try;;
15533 esac
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15536   ac_status=$?
15537   grep -v '^ *+' conftest.er1 >conftest.err
15538   rm -f conftest.er1
15539   cat conftest.err >&5
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } >/dev/null; then
15542   if test -s conftest.err; then
15543     ac_cpp_err=$ac_c_preproc_warn_flag
15544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545   else
15546     ac_cpp_err=
15547   fi
15548 else
15549   ac_cpp_err=yes
15550 fi
15551 if test -z "$ac_cpp_err"; then
15552   ac_header_preproc=yes
15553 else
15554   echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557   ac_header_preproc=no
15558 fi
15559
15560 rm -f conftest.err conftest.$ac_ext
15561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15562 echo "${ECHO_T}$ac_header_preproc" >&6; }
15563
15564 # So?  What about this header?
15565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566   yes:no: )
15567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15571     ac_header_preproc=yes
15572     ;;
15573   no:yes:* )
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15586     ( cat <<\_ASBOX
15587 ## ------------------------------------ ##
15588 ## Report this to http://llvm.org/bugs/ ##
15589 ## ------------------------------------ ##
15590 _ASBOX
15591      ) | sed "s/^/$as_me: WARNING:     /" >&2
15592     ;;
15593 esac
15594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   eval "$as_ac_Header=\$ac_header_preproc"
15600 fi
15601 ac_res=`eval echo '${'$as_ac_Header'}'`
15602                { echo "$as_me:$LINENO: result: $ac_res" >&5
15603 echo "${ECHO_T}$ac_res" >&6; }
15604
15605 fi
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607   cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609 _ACEOF
15610
15611 fi
15612
15613 done
15614
15615
15616 for ac_header in valgrind/valgrind.h
15617 do
15618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 fi
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626                { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15628 else
15629   # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 $ac_includes_default
15639 #include <$ac_header>
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_compile") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656   { (case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_try") 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest.$ac_objext'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_header_compiler=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         ac_header_compiler=no
15681 fi
15682
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15685 echo "${ECHO_T}$ac_header_compiler" >&6; }
15686
15687 # Is the header present?
15688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696 #include <$ac_header>
15697 _ACEOF
15698 if { (ac_try="$ac_cpp conftest.$ac_ext"
15699 case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15705   ac_status=$?
15706   grep -v '^ *+' conftest.er1 >conftest.err
15707   rm -f conftest.er1
15708   cat conftest.err >&5
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); } >/dev/null; then
15711   if test -s conftest.err; then
15712     ac_cpp_err=$ac_c_preproc_warn_flag
15713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15714   else
15715     ac_cpp_err=
15716   fi
15717 else
15718   ac_cpp_err=yes
15719 fi
15720 if test -z "$ac_cpp_err"; then
15721   ac_header_preproc=yes
15722 else
15723   echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726   ac_header_preproc=no
15727 fi
15728
15729 rm -f conftest.err conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6; }
15732
15733 # So?  What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15735   yes:no: )
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15740     ac_header_preproc=yes
15741     ;;
15742   no:yes:* )
15743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15755     ( cat <<\_ASBOX
15756 ## ------------------------------------ ##
15757 ## Report this to http://llvm.org/bugs/ ##
15758 ## ------------------------------------ ##
15759 _ASBOX
15760      ) | sed "s/^/$as_me: WARNING:     /" >&2
15761     ;;
15762 esac
15763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766   echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768   eval "$as_ac_Header=\$ac_header_preproc"
15769 fi
15770 ac_res=`eval echo '${'$as_ac_Header'}'`
15771                { echo "$as_me:$LINENO: result: $ac_res" >&5
15772 echo "${ECHO_T}$ac_res" >&6; }
15773
15774 fi
15775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15776   cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15778 _ACEOF
15779
15780 fi
15781
15782 done
15783
15784
15785 for ac_header in fenv.h
15786 do
15787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 fi
15794 ac_res=`eval echo '${'$as_ac_Header'}'`
15795                { echo "$as_me:$LINENO: result: $ac_res" >&5
15796 echo "${ECHO_T}$ac_res" >&6; }
15797 else
15798   # Is the header compilable?
15799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h.  */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h.  */
15807 $ac_includes_default
15808 #include <$ac_header>
15809 _ACEOF
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_compile") 2>conftest.er1
15818   ac_status=$?
15819   grep -v '^ *+' conftest.er1 >conftest.err
15820   rm -f conftest.er1
15821   cat conftest.err >&5
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } &&
15824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15825   { (case "(($ac_try" in
15826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827   *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830   (eval "$ac_try") 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; } &&
15834          { ac_try='test -s conftest.$ac_objext'
15835   { (case "(($ac_try" in
15836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837   *) ac_try_echo=$ac_try;;
15838 esac
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840   (eval "$ac_try") 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; }; then
15844   ac_header_compiler=yes
15845 else
15846   echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849         ac_header_compiler=no
15850 fi
15851
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15854 echo "${ECHO_T}$ac_header_compiler" >&6; }
15855
15856 # Is the header present?
15857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15859 cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h.  */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h.  */
15865 #include <$ac_header>
15866 _ACEOF
15867 if { (ac_try="$ac_cpp conftest.$ac_ext"
15868 case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } >/dev/null; then
15880   if test -s conftest.err; then
15881     ac_cpp_err=$ac_c_preproc_warn_flag
15882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883   else
15884     ac_cpp_err=
15885   fi
15886 else
15887   ac_cpp_err=yes
15888 fi
15889 if test -z "$ac_cpp_err"; then
15890   ac_header_preproc=yes
15891 else
15892   echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895   ac_header_preproc=no
15896 fi
15897
15898 rm -f conftest.err conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15900 echo "${ECHO_T}$ac_header_preproc" >&6; }
15901
15902 # So?  What about this header?
15903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15904   yes:no: )
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15909     ac_header_preproc=yes
15910     ;;
15911   no:yes:* )
15912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15924     ( cat <<\_ASBOX
15925 ## ------------------------------------ ##
15926 ## Report this to http://llvm.org/bugs/ ##
15927 ## ------------------------------------ ##
15928 _ASBOX
15929      ) | sed "s/^/$as_me: WARNING:     /" >&2
15930     ;;
15931 esac
15932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   eval "$as_ac_Header=\$ac_header_preproc"
15938 fi
15939 ac_res=`eval echo '${'$as_ac_Header'}'`
15940                { echo "$as_me:$LINENO: result: $ac_res" >&5
15941 echo "${ECHO_T}$ac_res" >&6; }
15942
15943 fi
15944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15945   cat >>confdefs.h <<_ACEOF
15946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 _ACEOF
15948
15949 fi
15950
15951 done
15952
15953 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15954
15955 for ac_header in pthread.h
15956 do
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 fi
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965                { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15967 else
15968   # Is the header compilable?
15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977 $ac_includes_default
15978 #include <$ac_header>
15979 _ACEOF
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_compile") 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } &&
15994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15995   { (case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_try") 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); }; } &&
16004          { ac_try='test -s conftest.$ac_objext'
16005   { (case "(($ac_try" in
16006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007   *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010   (eval "$ac_try") 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; }; then
16014   ac_header_compiler=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_header_compiler=no
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16024 echo "${ECHO_T}$ac_header_compiler" >&6; }
16025
16026 # Is the header present?
16027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 #include <$ac_header>
16036 _ACEOF
16037 if { (ac_try="$ac_cpp conftest.$ac_ext"
16038 case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16044   ac_status=$?
16045   grep -v '^ *+' conftest.er1 >conftest.err
16046   rm -f conftest.er1
16047   cat conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } >/dev/null; then
16050   if test -s conftest.err; then
16051     ac_cpp_err=$ac_c_preproc_warn_flag
16052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16053   else
16054     ac_cpp_err=
16055   fi
16056 else
16057   ac_cpp_err=yes
16058 fi
16059 if test -z "$ac_cpp_err"; then
16060   ac_header_preproc=yes
16061 else
16062   echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065   ac_header_preproc=no
16066 fi
16067
16068 rm -f conftest.err conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16070 echo "${ECHO_T}$ac_header_preproc" >&6; }
16071
16072 # So?  What about this header?
16073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16074   yes:no: )
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16079     ac_header_preproc=yes
16080     ;;
16081   no:yes:* )
16082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16094     ( cat <<\_ASBOX
16095 ## ------------------------------------ ##
16096 ## Report this to http://llvm.org/bugs/ ##
16097 ## ------------------------------------ ##
16098 _ASBOX
16099      ) | sed "s/^/$as_me: WARNING:     /" >&2
16100     ;;
16101 esac
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   eval "$as_ac_Header=\$ac_header_preproc"
16108 fi
16109 ac_res=`eval echo '${'$as_ac_Header'}'`
16110                { echo "$as_me:$LINENO: result: $ac_res" >&5
16111 echo "${ECHO_T}$ac_res" >&6; }
16112
16113 fi
16114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16115   cat >>confdefs.h <<_ACEOF
16116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16117 _ACEOF
16118  HAVE_PTHREAD=1
16119
16120 else
16121   HAVE_PTHREAD=0
16122
16123 fi
16124
16125 done
16126
16127 else
16128   HAVE_PTHREAD=0
16129
16130 fi
16131
16132 if test "$llvm_cv_enable_libffi" = "yes" ; then
16133
16134
16135 for ac_header in ffi.h ffi/ffi.h
16136 do
16137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16139   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 fi
16144 ac_res=`eval echo '${'$as_ac_Header'}'`
16145                { echo "$as_me:$LINENO: result: $ac_res" >&5
16146 echo "${ECHO_T}$ac_res" >&6; }
16147 else
16148   # Is the header compilable?
16149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 $ac_includes_default
16158 #include <$ac_header>
16159 _ACEOF
16160 rm -f conftest.$ac_objext
16161 if { (ac_try="$ac_compile"
16162 case "(($ac_try" in
16163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164   *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_compile") 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
16171   cat conftest.err >&5
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175   { (case "(($ac_try" in
16176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177   *) ac_try_echo=$ac_try;;
16178 esac
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180   (eval "$ac_try") 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; } &&
16184          { ac_try='test -s conftest.$ac_objext'
16185   { (case "(($ac_try" in
16186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187   *) ac_try_echo=$ac_try;;
16188 esac
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190   (eval "$ac_try") 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; }; then
16194   ac_header_compiler=yes
16195 else
16196   echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16198
16199         ac_header_compiler=no
16200 fi
16201
16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16204 echo "${ECHO_T}$ac_header_compiler" >&6; }
16205
16206 # Is the header present?
16207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16209 cat >conftest.$ac_ext <<_ACEOF
16210 /* confdefs.h.  */
16211 _ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h.  */
16215 #include <$ac_header>
16216 _ACEOF
16217 if { (ac_try="$ac_cpp conftest.$ac_ext"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } >/dev/null; then
16230   if test -s conftest.err; then
16231     ac_cpp_err=$ac_c_preproc_warn_flag
16232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16233   else
16234     ac_cpp_err=
16235   fi
16236 else
16237   ac_cpp_err=yes
16238 fi
16239 if test -z "$ac_cpp_err"; then
16240   ac_header_preproc=yes
16241 else
16242   echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245   ac_header_preproc=no
16246 fi
16247
16248 rm -f conftest.err conftest.$ac_ext
16249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16250 echo "${ECHO_T}$ac_header_preproc" >&6; }
16251
16252 # So?  What about this header?
16253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16254   yes:no: )
16255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16259     ac_header_preproc=yes
16260     ;;
16261   no:yes:* )
16262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16274     ( cat <<\_ASBOX
16275 ## ------------------------------------ ##
16276 ## Report this to http://llvm.org/bugs/ ##
16277 ## ------------------------------------ ##
16278 _ASBOX
16279      ) | sed "s/^/$as_me: WARNING:     /" >&2
16280     ;;
16281 esac
16282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   eval "$as_ac_Header=\$ac_header_preproc"
16288 fi
16289 ac_res=`eval echo '${'$as_ac_Header'}'`
16290                { echo "$as_me:$LINENO: result: $ac_res" >&5
16291 echo "${ECHO_T}$ac_res" >&6; }
16292
16293 fi
16294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16295   cat >>confdefs.h <<_ACEOF
16296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16297 _ACEOF
16298
16299 fi
16300
16301 done
16302
16303 fi
16304
16305
16306 for ac_header in CrashReporterClient.h
16307 do
16308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16313   echo $ECHO_N "(cached) $ECHO_C" >&6
16314 fi
16315 ac_res=`eval echo '${'$as_ac_Header'}'`
16316                { echo "$as_me:$LINENO: result: $ac_res" >&5
16317 echo "${ECHO_T}$ac_res" >&6; }
16318 else
16319   # Is the header compilable?
16320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 $ac_includes_default
16329 #include <$ac_header>
16330 _ACEOF
16331 rm -f conftest.$ac_objext
16332 if { (ac_try="$ac_compile"
16333 case "(($ac_try" in
16334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335   *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338   (eval "$ac_compile") 2>conftest.er1
16339   ac_status=$?
16340   grep -v '^ *+' conftest.er1 >conftest.err
16341   rm -f conftest.er1
16342   cat conftest.err >&5
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16346   { (case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_try") 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; } &&
16355          { ac_try='test -s conftest.$ac_objext'
16356   { (case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_try") 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; }; then
16365   ac_header_compiler=yes
16366 else
16367   echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16369
16370         ac_header_compiler=no
16371 fi
16372
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6; }
16376
16377 # Is the header present?
16378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386 #include <$ac_header>
16387 _ACEOF
16388 if { (ac_try="$ac_cpp conftest.$ac_ext"
16389 case "(($ac_try" in
16390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391   *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16395   ac_status=$?
16396   grep -v '^ *+' conftest.er1 >conftest.err
16397   rm -f conftest.er1
16398   cat conftest.err >&5
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } >/dev/null; then
16401   if test -s conftest.err; then
16402     ac_cpp_err=$ac_c_preproc_warn_flag
16403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16404   else
16405     ac_cpp_err=
16406   fi
16407 else
16408   ac_cpp_err=yes
16409 fi
16410 if test -z "$ac_cpp_err"; then
16411   ac_header_preproc=yes
16412 else
16413   echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416   ac_header_preproc=no
16417 fi
16418
16419 rm -f conftest.err conftest.$ac_ext
16420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16421 echo "${ECHO_T}$ac_header_preproc" >&6; }
16422
16423 # So?  What about this header?
16424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16425   yes:no: )
16426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16430     ac_header_preproc=yes
16431     ;;
16432   no:yes:* )
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16445     ( cat <<\_ASBOX
16446 ## ------------------------------------ ##
16447 ## Report this to http://llvm.org/bugs/ ##
16448 ## ------------------------------------ ##
16449 _ASBOX
16450      ) | sed "s/^/$as_me: WARNING:     /" >&2
16451     ;;
16452 esac
16453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458   eval "$as_ac_Header=\$ac_header_preproc"
16459 fi
16460 ac_res=`eval echo '${'$as_ac_Header'}'`
16461                { echo "$as_me:$LINENO: result: $ac_res" >&5
16462 echo "${ECHO_T}$ac_res" >&6; }
16463
16464 fi
16465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16466   cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16468 _ACEOF
16469
16470 fi
16471
16472 done
16473
16474
16475 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16476 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16477 cat >conftest.$ac_ext <<_ACEOF
16478
16479   /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484
16485     extern const char *__crashreporter_info__;
16486     int main() {
16487       __crashreporter_info__ = "test";
16488       return 0;
16489     }
16490
16491
16492 _ACEOF
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (ac_try="$ac_link"
16495 case "(($ac_try" in
16496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497   *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500   (eval "$ac_link") 2>conftest.er1
16501   ac_status=$?
16502   grep -v '^ *+' conftest.er1 >conftest.err
16503   rm -f conftest.er1
16504   cat conftest.err >&5
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); } &&
16507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508   { (case "(($ac_try" in
16509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510   *) ac_try_echo=$ac_try;;
16511 esac
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513   (eval "$ac_try") 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest$ac_exeext'
16518   { (case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_try") 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; }; then
16527
16528   { echo "$as_me:$LINENO: result: yes" >&5
16529 echo "${ECHO_T}yes" >&6; }
16530
16531 cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_CRASHREPORTER_INFO 1
16533 _ACEOF
16534
16535
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540
16541   { echo "$as_me:$LINENO: result: no" >&5
16542 echo "${ECHO_T}no" >&6; }
16543
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_CRASHREPORTER_INFO 0
16546 _ACEOF
16547
16548
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext \
16552       conftest$ac_exeext conftest.$ac_ext
16553
16554
16555
16556   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16557 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16558 if test "${ac_cv_huge_val_sanity+set}" = set; then
16559   echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561
16562     ac_ext=cpp
16563 ac_cpp='$CXXCPP $CPPFLAGS'
16564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16567
16568     ac_save_CXXFLAGS=$CXXFLAGS
16569     CXXFLAGS="$CXXFLAGS -pedantic"
16570     if test "$cross_compiling" = yes; then
16571   ac_cv_huge_val_sanity=yes
16572 else
16573   cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h.  */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h.  */
16579 #include <math.h>
16580 int
16581 main ()
16582 {
16583 double x = HUGE_VAL; return x != x;
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 rm -f conftest$ac_exeext
16589 if { (ac_try="$ac_link"
16590 case "(($ac_try" in
16591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592   *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595   (eval "$ac_link") 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599   { (case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_try") 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; }; then
16608   ac_cv_huge_val_sanity=yes
16609 else
16610   echo "$as_me: program exited with status $ac_status" >&5
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614 ( exit $ac_status )
16615 ac_cv_huge_val_sanity=no
16616 fi
16617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16618 fi
16619
16620
16621     CXXFLAGS=$ac_save_CXXFLAGS
16622     ac_ext=c
16623 ac_cpp='$CPP $CPPFLAGS'
16624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16627
16628
16629 fi
16630 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16631 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16632   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16633
16634
16635 { echo "$as_me:$LINENO: checking for pid_t" >&5
16636 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16637 if test "${ac_cv_type_pid_t+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 $ac_includes_default
16647 typedef pid_t ac__type_new_;
16648 int
16649 main ()
16650 {
16651 if ((ac__type_new_ *) 0)
16652   return 0;
16653 if (sizeof (ac__type_new_))
16654   return 0;
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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   ac_cv_type_pid_t=yes
16694 else
16695   echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698         ac_cv_type_pid_t=no
16699 fi
16700
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16705 if test $ac_cv_type_pid_t = yes; then
16706   :
16707 else
16708
16709 cat >>confdefs.h <<_ACEOF
16710 #define pid_t int
16711 _ACEOF
16712
16713 fi
16714
16715 { echo "$as_me:$LINENO: checking for size_t" >&5
16716 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16717 if test "${ac_cv_type_size_t+set}" = set; then
16718   echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720   cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h.  */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h.  */
16726 $ac_includes_default
16727 typedef size_t ac__type_new_;
16728 int
16729 main ()
16730 {
16731 if ((ac__type_new_ *) 0)
16732   return 0;
16733 if (sizeof (ac__type_new_))
16734   return 0;
16735   ;
16736   return 0;
16737 }
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743   *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746   (eval "$ac_compile") 2>conftest.er1
16747   ac_status=$?
16748   grep -v '^ *+' conftest.er1 >conftest.err
16749   rm -f conftest.er1
16750   cat conftest.err >&5
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); } &&
16753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754   { (case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_try") 2>&5
16760   ac_status=$?
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; } &&
16763          { ac_try='test -s conftest.$ac_objext'
16764   { (case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769   (eval "$ac_try") 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; }; then
16773   ac_cv_type_size_t=yes
16774 else
16775   echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778         ac_cv_type_size_t=no
16779 fi
16780
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 fi
16783 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16784 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16785 if test $ac_cv_type_size_t = yes; then
16786   :
16787 else
16788
16789 cat >>confdefs.h <<_ACEOF
16790 #define size_t unsigned int
16791 _ACEOF
16792
16793 fi
16794
16795
16796 cat >>confdefs.h <<_ACEOF
16797 #define RETSIGTYPE void
16798 _ACEOF
16799
16800 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16801 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16802 if test "${ac_cv_struct_tm+set}" = set; then
16803   echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805   cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811 #include <sys/types.h>
16812 #include <time.h>
16813
16814 int
16815 main ()
16816 {
16817 struct tm *tp; tp->tm_sec;
16818   ;
16819   return 0;
16820 }
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829   (eval "$ac_compile") 2>conftest.er1
16830   ac_status=$?
16831   grep -v '^ *+' conftest.er1 >conftest.err
16832   rm -f conftest.er1
16833   cat conftest.err >&5
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837   { (case "(($ac_try" in
16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839   *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842   (eval "$ac_try") 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }; } &&
16846          { ac_try='test -s conftest.$ac_objext'
16847   { (case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852   (eval "$ac_try") 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); }; }; then
16856   ac_cv_struct_tm=time.h
16857 else
16858   echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861         ac_cv_struct_tm=sys/time.h
16862 fi
16863
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16867 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16868 if test $ac_cv_struct_tm = sys/time.h; then
16869
16870 cat >>confdefs.h <<\_ACEOF
16871 #define TM_IN_SYS_TIME 1
16872 _ACEOF
16873
16874 fi
16875
16876 { echo "$as_me:$LINENO: checking for int64_t" >&5
16877 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16878 if test "${ac_cv_type_int64_t+set}" = set; then
16879   echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881   cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h.  */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h.  */
16887 $ac_includes_default
16888 typedef int64_t ac__type_new_;
16889 int
16890 main ()
16891 {
16892 if ((ac__type_new_ *) 0)
16893   return 0;
16894 if (sizeof (ac__type_new_))
16895   return 0;
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_compile") 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; } &&
16924          { ac_try='test -s conftest.$ac_objext'
16925   { (case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_try") 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_type_int64_t=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939         ac_cv_type_int64_t=no
16940 fi
16941
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16943 fi
16944 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16945 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16946 if test $ac_cv_type_int64_t = yes; then
16947
16948 cat >>confdefs.h <<_ACEOF
16949 #define HAVE_INT64_T 1
16950 _ACEOF
16951
16952
16953 else
16954   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16955 echo "$as_me: error: Type int64_t required but not found" >&2;}
16956    { (exit 1); exit 1; }; }
16957 fi
16958
16959 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16960 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16961 if test "${ac_cv_type_uint64_t+set}" = set; then
16962   echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964   cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h.  */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h.  */
16970 $ac_includes_default
16971 typedef uint64_t ac__type_new_;
16972 int
16973 main ()
16974 {
16975 if ((ac__type_new_ *) 0)
16976   return 0;
16977 if (sizeof (ac__type_new_))
16978   return 0;
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_compile") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } &&
16997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998   { (case "(($ac_try" in
16999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000   *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003   (eval "$ac_try") 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }; } &&
17007          { ac_try='test -s conftest.$ac_objext'
17008   { (case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_try") 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; }; then
17017   ac_cv_type_uint64_t=yes
17018 else
17019   echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022         ac_cv_type_uint64_t=no
17023 fi
17024
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026 fi
17027 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17028 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17029 if test $ac_cv_type_uint64_t = yes; then
17030
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_UINT64_T 1
17033 _ACEOF
17034
17035
17036 else
17037   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17038 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17039 if test "${ac_cv_type_u_int64_t+set}" = set; then
17040   echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042   cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h.  */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h.  */
17048 $ac_includes_default
17049 typedef u_int64_t ac__type_new_;
17050 int
17051 main ()
17052 {
17053 if ((ac__type_new_ *) 0)
17054   return 0;
17055 if (sizeof (ac__type_new_))
17056   return 0;
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext
17062 if { (ac_try="$ac_compile"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_compile") 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076   { (case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_try") 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; } &&
17085          { ac_try='test -s conftest.$ac_objext'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   ac_cv_type_u_int64_t=yes
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100         ac_cv_type_u_int64_t=no
17101 fi
17102
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104 fi
17105 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17106 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17107 if test $ac_cv_type_u_int64_t = yes; then
17108
17109 cat >>confdefs.h <<_ACEOF
17110 #define HAVE_U_INT64_T 1
17111 _ACEOF
17112
17113
17114 else
17115   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17116 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17117    { (exit 1); exit 1; }; }
17118 fi
17119
17120 fi
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17132 do
17133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17137   echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139   cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17147 #define $ac_func innocuous_$ac_func
17148
17149 /* System header to define __stub macros and hopefully few prototypes,
17150     which can conflict with char $ac_func (); below.
17151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17152     <limits.h> exists even on freestanding compilers.  */
17153
17154 #ifdef __STDC__
17155 # include <limits.h>
17156 #else
17157 # include <assert.h>
17158 #endif
17159
17160 #undef $ac_func
17161
17162 /* Override any GCC internal prototype to avoid an error.
17163    Use char because int might match the return type of a GCC
17164    builtin and then its argument prototype would still apply.  */
17165 #ifdef __cplusplus
17166 extern "C"
17167 #endif
17168 char $ac_func ();
17169 /* The GNU C library defines this for functions which it implements
17170     to always fail with ENOSYS.  Some functions are actually named
17171     something starting with __ and the normal name is an alias.  */
17172 #if defined __stub_$ac_func || defined __stub___$ac_func
17173 choke me
17174 #endif
17175
17176 int
17177 main ()
17178 {
17179 return $ac_func ();
17180   ;
17181   return 0;
17182 }
17183 _ACEOF
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188   *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191   (eval "$ac_link") 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } &&
17198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17199   { (case "(($ac_try" in
17200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201   *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204   (eval "$ac_try") 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); }; } &&
17208          { ac_try='test -s conftest$ac_exeext'
17209   { (case "(($ac_try" in
17210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211   *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214   (eval "$ac_try") 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; }; then
17218   eval "$as_ac_var=yes"
17219 else
17220   echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223         eval "$as_ac_var=no"
17224 fi
17225
17226 rm -f core conftest.err conftest.$ac_objext \
17227       conftest$ac_exeext conftest.$ac_ext
17228 fi
17229 ac_res=`eval echo '${'$as_ac_var'}'`
17230                { echo "$as_me:$LINENO: result: $ac_res" >&5
17231 echo "${ECHO_T}$ac_res" >&6; }
17232 if test `eval echo '${'$as_ac_var'}'` = yes; then
17233   cat >>confdefs.h <<_ACEOF
17234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17235 _ACEOF
17236
17237 fi
17238 done
17239
17240
17241
17242
17243
17244 for ac_func in powf fmodf strtof round
17245 do
17246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17250   echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252   cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17260 #define $ac_func innocuous_$ac_func
17261
17262 /* System header to define __stub macros and hopefully few prototypes,
17263     which can conflict with char $ac_func (); below.
17264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17265     <limits.h> exists even on freestanding compilers.  */
17266
17267 #ifdef __STDC__
17268 # include <limits.h>
17269 #else
17270 # include <assert.h>
17271 #endif
17272
17273 #undef $ac_func
17274
17275 /* Override any GCC internal prototype to avoid an error.
17276    Use char because int might match the return type of a GCC
17277    builtin and then its argument prototype would still apply.  */
17278 #ifdef __cplusplus
17279 extern "C"
17280 #endif
17281 char $ac_func ();
17282 /* The GNU C library defines this for functions which it implements
17283     to always fail with ENOSYS.  Some functions are actually named
17284     something starting with __ and the normal name is an alias.  */
17285 #if defined __stub_$ac_func || defined __stub___$ac_func
17286 choke me
17287 #endif
17288
17289 int
17290 main ()
17291 {
17292 return $ac_func ();
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_link") 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } &&
17311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17312   { (case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_try") 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; } &&
17321          { ac_try='test -s conftest$ac_exeext'
17322   { (case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_try") 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; }; then
17331   eval "$as_ac_var=yes"
17332 else
17333   echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336         eval "$as_ac_var=no"
17337 fi
17338
17339 rm -f core conftest.err conftest.$ac_objext \
17340       conftest$ac_exeext conftest.$ac_ext
17341 fi
17342 ac_res=`eval echo '${'$as_ac_var'}'`
17343                { echo "$as_me:$LINENO: result: $ac_res" >&5
17344 echo "${ECHO_T}$ac_res" >&6; }
17345 if test `eval echo '${'$as_ac_var'}'` = yes; then
17346   cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17348 _ACEOF
17349
17350 fi
17351 done
17352
17353
17354
17355
17356
17357
17358 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17359 do
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17374 #define $ac_func innocuous_$ac_func
17375
17376 /* System header to define __stub macros and hopefully few prototypes,
17377     which can conflict with char $ac_func (); below.
17378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379     <limits.h> exists even on freestanding compilers.  */
17380
17381 #ifdef __STDC__
17382 # include <limits.h>
17383 #else
17384 # include <assert.h>
17385 #endif
17386
17387 #undef $ac_func
17388
17389 /* Override any GCC internal prototype to avoid an error.
17390    Use char because int might match the return type of a GCC
17391    builtin and then its argument prototype would still apply.  */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 char $ac_func ();
17396 /* The GNU C library defines this for functions which it implements
17397     to always fail with ENOSYS.  Some functions are actually named
17398     something starting with __ and the normal name is an alias.  */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17400 choke me
17401 #endif
17402
17403 int
17404 main ()
17405 {
17406 return $ac_func ();
17407   ;
17408   return 0;
17409 }
17410 _ACEOF
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_link") 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426   { (case "(($ac_try" in
17427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428   *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431   (eval "$ac_try") 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_try") 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; }; then
17445   eval "$as_ac_var=yes"
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450         eval "$as_ac_var=no"
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext \
17454       conftest$ac_exeext conftest.$ac_ext
17455 fi
17456 ac_res=`eval echo '${'$as_ac_var'}'`
17457                { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460   cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17462 _ACEOF
17463
17464 fi
17465 done
17466
17467
17468
17469
17470 for ac_func in isatty mkdtemp mkstemp
17471 do
17472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17476   echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478   cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17486 #define $ac_func innocuous_$ac_func
17487
17488 /* System header to define __stub macros and hopefully few prototypes,
17489     which can conflict with char $ac_func (); below.
17490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17491     <limits.h> exists even on freestanding compilers.  */
17492
17493 #ifdef __STDC__
17494 # include <limits.h>
17495 #else
17496 # include <assert.h>
17497 #endif
17498
17499 #undef $ac_func
17500
17501 /* Override any GCC internal prototype to avoid an error.
17502    Use char because int might match the return type of a GCC
17503    builtin and then its argument prototype would still apply.  */
17504 #ifdef __cplusplus
17505 extern "C"
17506 #endif
17507 char $ac_func ();
17508 /* The GNU C library defines this for functions which it implements
17509     to always fail with ENOSYS.  Some functions are actually named
17510     something starting with __ and the normal name is an alias.  */
17511 #if defined __stub_$ac_func || defined __stub___$ac_func
17512 choke me
17513 #endif
17514
17515 int
17516 main ()
17517 {
17518 return $ac_func ();
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (ac_try="$ac_link"
17525 case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530   (eval "$ac_link") 2>conftest.er1
17531   ac_status=$?
17532   grep -v '^ *+' conftest.er1 >conftest.err
17533   rm -f conftest.er1
17534   cat conftest.err >&5
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); } &&
17537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17538   { (case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_try") 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; } &&
17547          { ac_try='test -s conftest$ac_exeext'
17548   { (case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_try") 2>&5
17554   ac_status=$?
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); }; }; then
17557   eval "$as_ac_var=yes"
17558 else
17559   echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17561
17562         eval "$as_ac_var=no"
17563 fi
17564
17565 rm -f core conftest.err conftest.$ac_objext \
17566       conftest$ac_exeext conftest.$ac_ext
17567 fi
17568 ac_res=`eval echo '${'$as_ac_var'}'`
17569                { echo "$as_me:$LINENO: result: $ac_res" >&5
17570 echo "${ECHO_T}$ac_res" >&6; }
17571 if test `eval echo '${'$as_ac_var'}'` = yes; then
17572   cat >>confdefs.h <<_ACEOF
17573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17574 _ACEOF
17575
17576 fi
17577 done
17578
17579
17580
17581
17582
17583
17584
17585
17586 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17587 do
17588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594   cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h.  */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h.  */
17600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17602 #define $ac_func innocuous_$ac_func
17603
17604 /* System header to define __stub macros and hopefully few prototypes,
17605     which can conflict with char $ac_func (); below.
17606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17607     <limits.h> exists even on freestanding compilers.  */
17608
17609 #ifdef __STDC__
17610 # include <limits.h>
17611 #else
17612 # include <assert.h>
17613 #endif
17614
17615 #undef $ac_func
17616
17617 /* Override any GCC internal prototype to avoid an error.
17618    Use char because int might match the return type of a GCC
17619    builtin and then its argument prototype would still apply.  */
17620 #ifdef __cplusplus
17621 extern "C"
17622 #endif
17623 char $ac_func ();
17624 /* The GNU C library defines this for functions which it implements
17625     to always fail with ENOSYS.  Some functions are actually named
17626     something starting with __ and the normal name is an alias.  */
17627 #if defined __stub_$ac_func || defined __stub___$ac_func
17628 choke me
17629 #endif
17630
17631 int
17632 main ()
17633 {
17634 return $ac_func ();
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_link") 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17654   { (case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_try") 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; } &&
17663          { ac_try='test -s conftest$ac_exeext'
17664   { (case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_try") 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); }; }; then
17673   eval "$as_ac_var=yes"
17674 else
17675   echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678         eval "$as_ac_var=no"
17679 fi
17680
17681 rm -f core conftest.err conftest.$ac_objext \
17682       conftest$ac_exeext conftest.$ac_ext
17683 fi
17684 ac_res=`eval echo '${'$as_ac_var'}'`
17685                { echo "$as_me:$LINENO: result: $ac_res" >&5
17686 echo "${ECHO_T}$ac_res" >&6; }
17687 if test `eval echo '${'$as_ac_var'}'` = yes; then
17688   cat >>confdefs.h <<_ACEOF
17689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17690 _ACEOF
17691
17692 fi
17693 done
17694
17695
17696
17697
17698
17699 for ac_func in strerror strerror_r setenv arc4random
17700 do
17701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17715 #define $ac_func innocuous_$ac_func
17716
17717 /* System header to define __stub macros and hopefully few prototypes,
17718     which can conflict with char $ac_func (); below.
17719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720     <limits.h> exists even on freestanding compilers.  */
17721
17722 #ifdef __STDC__
17723 # include <limits.h>
17724 #else
17725 # include <assert.h>
17726 #endif
17727
17728 #undef $ac_func
17729
17730 /* Override any GCC internal prototype to avoid an error.
17731    Use char because int might match the return type of a GCC
17732    builtin and then its argument prototype would still apply.  */
17733 #ifdef __cplusplus
17734 extern "C"
17735 #endif
17736 char $ac_func ();
17737 /* The GNU C library defines this for functions which it implements
17738     to always fail with ENOSYS.  Some functions are actually named
17739     something starting with __ and the normal name is an alias.  */
17740 #if defined __stub_$ac_func || defined __stub___$ac_func
17741 choke me
17742 #endif
17743
17744 int
17745 main ()
17746 {
17747 return $ac_func ();
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759   (eval "$ac_link") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } &&
17766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767   { (case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772   (eval "$ac_try") 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; } &&
17776          { ac_try='test -s conftest$ac_exeext'
17777   { (case "(($ac_try" in
17778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779   *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782   (eval "$ac_try") 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786   eval "$as_ac_var=yes"
17787 else
17788   echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791         eval "$as_ac_var=no"
17792 fi
17793
17794 rm -f core conftest.err conftest.$ac_objext \
17795       conftest$ac_exeext conftest.$ac_ext
17796 fi
17797 ac_res=`eval echo '${'$as_ac_var'}'`
17798                { echo "$as_me:$LINENO: result: $ac_res" >&5
17799 echo "${ECHO_T}$ac_res" >&6; }
17800 if test `eval echo '${'$as_ac_var'}'` = yes; then
17801   cat >>confdefs.h <<_ACEOF
17802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17803 _ACEOF
17804
17805 fi
17806 done
17807
17808
17809
17810
17811
17812 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17813 do
17814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17818   echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820   cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17828 #define $ac_func innocuous_$ac_func
17829
17830 /* System header to define __stub macros and hopefully few prototypes,
17831     which can conflict with char $ac_func (); below.
17832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17833     <limits.h> exists even on freestanding compilers.  */
17834
17835 #ifdef __STDC__
17836 # include <limits.h>
17837 #else
17838 # include <assert.h>
17839 #endif
17840
17841 #undef $ac_func
17842
17843 /* Override any GCC internal prototype to avoid an error.
17844    Use char because int might match the return type of a GCC
17845    builtin and then its argument prototype would still apply.  */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char $ac_func ();
17850 /* The GNU C library defines this for functions which it implements
17851     to always fail with ENOSYS.  Some functions are actually named
17852     something starting with __ and the normal name is an alias.  */
17853 #if defined __stub_$ac_func || defined __stub___$ac_func
17854 choke me
17855 #endif
17856
17857 int
17858 main ()
17859 {
17860 return $ac_func ();
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (ac_try="$ac_link"
17867 case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_link") 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } &&
17879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17880   { (case "(($ac_try" in
17881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882   *) ac_try_echo=$ac_try;;
17883 esac
17884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885   (eval "$ac_try") 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); }; } &&
17889          { ac_try='test -s conftest$ac_exeext'
17890   { (case "(($ac_try" in
17891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892   *) ac_try_echo=$ac_try;;
17893 esac
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895   (eval "$ac_try") 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   eval "$as_ac_var=yes"
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904         eval "$as_ac_var=no"
17905 fi
17906
17907 rm -f core conftest.err conftest.$ac_objext \
17908       conftest$ac_exeext conftest.$ac_ext
17909 fi
17910 ac_res=`eval echo '${'$as_ac_var'}'`
17911                { echo "$as_me:$LINENO: result: $ac_res" >&5
17912 echo "${ECHO_T}$ac_res" >&6; }
17913 if test `eval echo '${'$as_ac_var'}'` = yes; then
17914   cat >>confdefs.h <<_ACEOF
17915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17916 _ACEOF
17917
17918 fi
17919 done
17920
17921
17922
17923
17924
17925
17926 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17927 do
17928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17942 #define $ac_func innocuous_$ac_func
17943
17944 /* System header to define __stub macros and hopefully few prototypes,
17945     which can conflict with char $ac_func (); below.
17946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17947     <limits.h> exists even on freestanding compilers.  */
17948
17949 #ifdef __STDC__
17950 # include <limits.h>
17951 #else
17952 # include <assert.h>
17953 #endif
17954
17955 #undef $ac_func
17956
17957 /* Override any GCC internal prototype to avoid an error.
17958    Use char because int might match the return type of a GCC
17959    builtin and then its argument prototype would still apply.  */
17960 #ifdef __cplusplus
17961 extern "C"
17962 #endif
17963 char $ac_func ();
17964 /* The GNU C library defines this for functions which it implements
17965     to always fail with ENOSYS.  Some functions are actually named
17966     something starting with __ and the normal name is an alias.  */
17967 #if defined __stub_$ac_func || defined __stub___$ac_func
17968 choke me
17969 #endif
17970
17971 int
17972 main ()
17973 {
17974 return $ac_func ();
17975   ;
17976   return 0;
17977 }
17978 _ACEOF
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (ac_try="$ac_link"
17981 case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_link") 2>conftest.er1
17987   ac_status=$?
17988   grep -v '^ *+' conftest.er1 >conftest.err
17989   rm -f conftest.er1
17990   cat conftest.err >&5
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); } &&
17993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17994   { (case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_try") 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest$ac_exeext'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; }; then
18013   eval "$as_ac_var=yes"
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018         eval "$as_ac_var=no"
18019 fi
18020
18021 rm -f core conftest.err conftest.$ac_objext \
18022       conftest$ac_exeext conftest.$ac_ext
18023 fi
18024 ac_res=`eval echo '${'$as_ac_var'}'`
18025                { echo "$as_me:$LINENO: result: $ac_res" >&5
18026 echo "${ECHO_T}$ac_res" >&6; }
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028   cat >>confdefs.h <<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18030 _ACEOF
18031
18032 fi
18033 done
18034
18035 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18036 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18037 if test "${llvm_cv_c_printf_a+set}" = set; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040   ac_ext=c
18041 ac_cpp='$CPP $CPPFLAGS'
18042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18045
18046  if test "$cross_compiling" = yes; then
18047   llvmac_cv_c_printf_a=no
18048 else
18049   cat >conftest.$ac_ext <<_ACEOF
18050
18051   /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056
18057 #include <stdio.h>
18058 #include <stdlib.h>
18059
18060 int
18061 main ()
18062 {
18063
18064 volatile double A, B;
18065 char Buffer[100];
18066 A = 1;
18067 A /= 10.0;
18068 sprintf(Buffer, "%a", A);
18069 B = atof(Buffer);
18070 if (A != B)
18071   return (1);
18072 if (A != 0x1.999999999999ap-4)
18073   return (1);
18074 return (0);
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_link") 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18090   { (case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_try") 2>&5
18096   ac_status=$?
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); }; }; then
18099   llvm_cv_c_printf_a=yes
18100 else
18101   echo "$as_me: program exited with status $ac_status" >&5
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ( exit $ac_status )
18106 llvmac_cv_c_printf_a=no
18107 fi
18108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18109 fi
18110
18111
18112  ac_ext=c
18113 ac_cpp='$CPP $CPPFLAGS'
18114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18117
18118 fi
18119 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18120 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18121  if test "$llvm_cv_c_printf_a" = "yes"; then
18122
18123 cat >>confdefs.h <<\_ACEOF
18124 #define HAVE_PRINTF_A 1
18125 _ACEOF
18126
18127  fi
18128
18129
18130
18131   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18132 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18133 if test "${ac_cv_func_rand48+set}" = set; then
18134   echo $ECHO_N "(cached) $ECHO_C" >&6
18135 else
18136
18137     ac_ext=cpp
18138 ac_cpp='$CXXCPP $CPPFLAGS'
18139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18142
18143     cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149 #include <stdlib.h>
18150 int
18151 main ()
18152 {
18153 srand48(0);lrand48();drand48();
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } &&
18172          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18173   { (case "(($ac_try" in
18174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175   *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178   (eval "$ac_try") 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; } &&
18182          { ac_try='test -s conftest.$ac_objext'
18183   { (case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188   (eval "$ac_try") 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   ac_cv_func_rand48=yes
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197         ac_cv_func_rand48=no
18198 fi
18199
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201     ac_ext=c
18202 ac_cpp='$CPP $CPPFLAGS'
18203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18206
18207
18208 fi
18209 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18210 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18211
18212 if test "$ac_cv_func_rand48" = "yes" ; then
18213
18214 cat >>confdefs.h <<\_ACEOF
18215 #define HAVE_RAND48 1
18216 _ACEOF
18217
18218 fi
18219
18220
18221 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18222 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18223 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18224   echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226   cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h.  */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h.  */
18232 $ac_includes_default
18233 int
18234 main ()
18235 {
18236 #ifndef strerror_s
18237   char *p = (char *) strerror_s;
18238   return !p;
18239 #endif
18240
18241   ;
18242   return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249   *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252   (eval "$ac_compile") 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } &&
18259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18260   { (case "(($ac_try" in
18261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262   *) ac_try_echo=$ac_try;;
18263 esac
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265   (eval "$ac_try") 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; } &&
18269          { ac_try='test -s conftest.$ac_objext'
18270   { (case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_try") 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; }; then
18279   ac_cv_have_decl_strerror_s=yes
18280 else
18281   echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18283
18284         ac_cv_have_decl_strerror_s=no
18285 fi
18286
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 fi
18289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18290 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18291 if test $ac_cv_have_decl_strerror_s = yes; then
18292
18293 cat >>confdefs.h <<_ACEOF
18294 #define HAVE_DECL_STRERROR_S 1
18295 _ACEOF
18296
18297
18298 else
18299   cat >>confdefs.h <<_ACEOF
18300 #define HAVE_DECL_STRERROR_S 0
18301 _ACEOF
18302
18303
18304 fi
18305
18306
18307
18308 if test "$llvm_cv_os_type" = "MingW" ; then
18309   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18310 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18311 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18312   echo $ECHO_N "(cached) $ECHO_C" >&6
18313 else
18314   ac_check_lib_save_LIBS=$LIBS
18315 LIBS="-lgcc  $LIBS"
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h.  */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h.  */
18322
18323 /* Override any GCC internal prototype to avoid an error.
18324    Use char because int might match the return type of a GCC
18325    builtin and then its argument prototype would still apply.  */
18326 #ifdef __cplusplus
18327 extern "C"
18328 #endif
18329 char _alloca ();
18330 int
18331 main ()
18332 {
18333 return _alloca ();
18334   ;
18335   return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (ac_try="$ac_link"
18340 case "(($ac_try" in
18341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342   *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345   (eval "$ac_link") 2>conftest.er1
18346   ac_status=$?
18347   grep -v '^ *+' conftest.er1 >conftest.err
18348   rm -f conftest.er1
18349   cat conftest.err >&5
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); } &&
18352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18353   { (case "(($ac_try" in
18354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355   *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358   (eval "$ac_try") 2>&5
18359   ac_status=$?
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); }; } &&
18362          { ac_try='test -s conftest$ac_exeext'
18363   { (case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_try") 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; }; then
18372   ac_cv_lib_gcc__alloca=yes
18373 else
18374   echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18376
18377         ac_cv_lib_gcc__alloca=no
18378 fi
18379
18380 rm -f core conftest.err conftest.$ac_objext \
18381       conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18383 fi
18384 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18385 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18386 if test $ac_cv_lib_gcc__alloca = yes; then
18387
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE__ALLOCA 1
18390 _ACEOF
18391
18392 fi
18393
18394   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18395 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18396 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18397   echo $ECHO_N "(cached) $ECHO_C" >&6
18398 else
18399   ac_check_lib_save_LIBS=$LIBS
18400 LIBS="-lgcc  $LIBS"
18401 cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407
18408 /* Override any GCC internal prototype to avoid an error.
18409    Use char because int might match the return type of a GCC
18410    builtin and then its argument prototype would still apply.  */
18411 #ifdef __cplusplus
18412 extern "C"
18413 #endif
18414 char __alloca ();
18415 int
18416 main ()
18417 {
18418 return __alloca ();
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427   *) ac_try_echo=$ac_try;;
18428 esac
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430   (eval "$ac_link") 2>conftest.er1
18431   ac_status=$?
18432   grep -v '^ *+' conftest.er1 >conftest.err
18433   rm -f conftest.er1
18434   cat conftest.err >&5
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } &&
18437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438   { (case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_try") 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; } &&
18447          { ac_try='test -s conftest$ac_exeext'
18448   { (case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_try") 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }; }; then
18457   ac_cv_lib_gcc___alloca=yes
18458 else
18459   echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462         ac_cv_lib_gcc___alloca=no
18463 fi
18464
18465 rm -f core conftest.err conftest.$ac_objext \
18466       conftest$ac_exeext conftest.$ac_ext
18467 LIBS=$ac_check_lib_save_LIBS
18468 fi
18469 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18470 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18471 if test $ac_cv_lib_gcc___alloca = yes; then
18472
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE___ALLOCA 1
18475 _ACEOF
18476
18477 fi
18478
18479   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18480 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18481 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   ac_check_lib_save_LIBS=$LIBS
18485 LIBS="-lgcc  $LIBS"
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492
18493 /* Override any GCC internal prototype to avoid an error.
18494    Use char because int might match the return type of a GCC
18495    builtin and then its argument prototype would still apply.  */
18496 #ifdef __cplusplus
18497 extern "C"
18498 #endif
18499 char __chkstk ();
18500 int
18501 main ()
18502 {
18503 return __chkstk ();
18504   ;
18505   return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_link") 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } &&
18522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523   { (case "(($ac_try" in
18524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525   *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528   (eval "$ac_try") 2>&5
18529   ac_status=$?
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); }; } &&
18532          { ac_try='test -s conftest$ac_exeext'
18533   { (case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_try") 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; }; then
18542   ac_cv_lib_gcc___chkstk=yes
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547         ac_cv_lib_gcc___chkstk=no
18548 fi
18549
18550 rm -f core conftest.err conftest.$ac_objext \
18551       conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18553 fi
18554 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18555 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18556 if test $ac_cv_lib_gcc___chkstk = yes; then
18557
18558 cat >>confdefs.h <<\_ACEOF
18559 #define HAVE___CHKSTK 1
18560 _ACEOF
18561
18562 fi
18563
18564   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18565 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18566 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   ac_check_lib_save_LIBS=$LIBS
18570 LIBS="-lgcc  $LIBS"
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h.  */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h.  */
18577
18578 /* Override any GCC internal prototype to avoid an error.
18579    Use char because int might match the return type of a GCC
18580    builtin and then its argument prototype would still apply.  */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 char ___chkstk ();
18585 int
18586 main ()
18587 {
18588 return ___chkstk ();
18589   ;
18590   return 0;
18591 }
18592 _ACEOF
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597   *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600   (eval "$ac_link") 2>conftest.er1
18601   ac_status=$?
18602   grep -v '^ *+' conftest.er1 >conftest.err
18603   rm -f conftest.er1
18604   cat conftest.err >&5
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } &&
18607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613   (eval "$ac_try") 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; } &&
18617          { ac_try='test -s conftest$ac_exeext'
18618   { (case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_try") 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; }; then
18627   ac_cv_lib_gcc____chkstk=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         ac_cv_lib_gcc____chkstk=no
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext \
18636       conftest$ac_exeext conftest.$ac_ext
18637 LIBS=$ac_check_lib_save_LIBS
18638 fi
18639 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18640 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18641 if test $ac_cv_lib_gcc____chkstk = yes; then
18642
18643 cat >>confdefs.h <<\_ACEOF
18644 #define HAVE____CHKSTK 1
18645 _ACEOF
18646
18647 fi
18648
18649
18650   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18651 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18652 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18653   echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655   ac_check_lib_save_LIBS=$LIBS
18656 LIBS="-lgcc  $LIBS"
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h.  */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h.  */
18663
18664 /* Override any GCC internal prototype to avoid an error.
18665    Use char because int might match the return type of a GCC
18666    builtin and then its argument prototype would still apply.  */
18667 #ifdef __cplusplus
18668 extern "C"
18669 #endif
18670 char __ashldi3 ();
18671 int
18672 main ()
18673 {
18674 return __ashldi3 ();
18675   ;
18676   return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686   (eval "$ac_link") 2>conftest.er1
18687   ac_status=$?
18688   grep -v '^ *+' conftest.er1 >conftest.err
18689   rm -f conftest.er1
18690   cat conftest.err >&5
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } &&
18693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18694   { (case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_try") 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; } &&
18703          { ac_try='test -s conftest$ac_exeext'
18704   { (case "(($ac_try" in
18705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706   *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709   (eval "$ac_try") 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; }; then
18713   ac_cv_lib_gcc___ashldi3=yes
18714 else
18715   echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718         ac_cv_lib_gcc___ashldi3=no
18719 fi
18720
18721 rm -f core conftest.err conftest.$ac_objext \
18722       conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18724 fi
18725 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18726 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18727 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18728
18729 cat >>confdefs.h <<\_ACEOF
18730 #define HAVE___ASHLDI3 1
18731 _ACEOF
18732
18733 fi
18734
18735   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18736 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18737 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18738   echo $ECHO_N "(cached) $ECHO_C" >&6
18739 else
18740   ac_check_lib_save_LIBS=$LIBS
18741 LIBS="-lgcc  $LIBS"
18742 cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749 /* Override any GCC internal prototype to avoid an error.
18750    Use char because int might match the return type of a GCC
18751    builtin and then its argument prototype would still apply.  */
18752 #ifdef __cplusplus
18753 extern "C"
18754 #endif
18755 char __ashrdi3 ();
18756 int
18757 main ()
18758 {
18759 return __ashrdi3 ();
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771   (eval "$ac_link") 2>conftest.er1
18772   ac_status=$?
18773   grep -v '^ *+' conftest.er1 >conftest.err
18774   rm -f conftest.er1
18775   cat conftest.err >&5
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); } &&
18778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18779   { (case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_try") 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; } &&
18788          { ac_try='test -s conftest$ac_exeext'
18789   { (case "(($ac_try" in
18790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791   *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794   (eval "$ac_try") 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; }; then
18798   ac_cv_lib_gcc___ashrdi3=yes
18799 else
18800   echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803         ac_cv_lib_gcc___ashrdi3=no
18804 fi
18805
18806 rm -f core conftest.err conftest.$ac_objext \
18807       conftest$ac_exeext conftest.$ac_ext
18808 LIBS=$ac_check_lib_save_LIBS
18809 fi
18810 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18811 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18812 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18813
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE___ASHRDI3 1
18816 _ACEOF
18817
18818 fi
18819
18820   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18821 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18822 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18823   echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825   ac_check_lib_save_LIBS=$LIBS
18826 LIBS="-lgcc  $LIBS"
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h.  */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h.  */
18833
18834 /* Override any GCC internal prototype to avoid an error.
18835    Use char because int might match the return type of a GCC
18836    builtin and then its argument prototype would still apply.  */
18837 #ifdef __cplusplus
18838 extern "C"
18839 #endif
18840 char __divdi3 ();
18841 int
18842 main ()
18843 {
18844 return __divdi3 ();
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_link") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } &&
18863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18864   { (case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_try") 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; } &&
18873          { ac_try='test -s conftest$ac_exeext'
18874   { (case "(($ac_try" in
18875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876   *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879   (eval "$ac_try") 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; }; then
18883   ac_cv_lib_gcc___divdi3=yes
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888         ac_cv_lib_gcc___divdi3=no
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext \
18892       conftest$ac_exeext conftest.$ac_ext
18893 LIBS=$ac_check_lib_save_LIBS
18894 fi
18895 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18896 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18897 if test $ac_cv_lib_gcc___divdi3 = yes; then
18898
18899 cat >>confdefs.h <<\_ACEOF
18900 #define HAVE___DIVDI3 1
18901 _ACEOF
18902
18903 fi
18904
18905   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18906 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18907 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910   ac_check_lib_save_LIBS=$LIBS
18911 LIBS="-lgcc  $LIBS"
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918
18919 /* Override any GCC internal prototype to avoid an error.
18920    Use char because int might match the return type of a GCC
18921    builtin and then its argument prototype would still apply.  */
18922 #ifdef __cplusplus
18923 extern "C"
18924 #endif
18925 char __fixdfdi ();
18926 int
18927 main ()
18928 {
18929 return __fixdfdi ();
18930   ;
18931   return 0;
18932 }
18933 _ACEOF
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (ac_try="$ac_link"
18936 case "(($ac_try" in
18937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938   *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941   (eval "$ac_link") 2>conftest.er1
18942   ac_status=$?
18943   grep -v '^ *+' conftest.er1 >conftest.err
18944   rm -f conftest.er1
18945   cat conftest.err >&5
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); } &&
18948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18949   { (case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_try") 2>&5
18955   ac_status=$?
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); }; } &&
18958          { ac_try='test -s conftest$ac_exeext'
18959   { (case "(($ac_try" in
18960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961   *) ac_try_echo=$ac_try;;
18962 esac
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964   (eval "$ac_try") 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; }; then
18968   ac_cv_lib_gcc___fixdfdi=yes
18969 else
18970   echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18972
18973         ac_cv_lib_gcc___fixdfdi=no
18974 fi
18975
18976 rm -f core conftest.err conftest.$ac_objext \
18977       conftest$ac_exeext conftest.$ac_ext
18978 LIBS=$ac_check_lib_save_LIBS
18979 fi
18980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18981 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18982 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18983
18984 cat >>confdefs.h <<\_ACEOF
18985 #define HAVE___FIXDFDI 1
18986 _ACEOF
18987
18988 fi
18989
18990   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18991 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18992 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995   ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lgcc  $LIBS"
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003
19004 /* Override any GCC internal prototype to avoid an error.
19005    Use char because int might match the return type of a GCC
19006    builtin and then its argument prototype would still apply.  */
19007 #ifdef __cplusplus
19008 extern "C"
19009 #endif
19010 char __fixsfdi ();
19011 int
19012 main ()
19013 {
19014 return __fixsfdi ();
19015   ;
19016   return 0;
19017 }
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (ac_try="$ac_link"
19021 case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_link") 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } &&
19033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19034   { (case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_try") 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; } &&
19043          { ac_try='test -s conftest$ac_exeext'
19044   { (case "(($ac_try" in
19045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046   *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049   (eval "$ac_try") 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; }; then
19053   ac_cv_lib_gcc___fixsfdi=yes
19054 else
19055   echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058         ac_cv_lib_gcc___fixsfdi=no
19059 fi
19060
19061 rm -f core conftest.err conftest.$ac_objext \
19062       conftest$ac_exeext conftest.$ac_ext
19063 LIBS=$ac_check_lib_save_LIBS
19064 fi
19065 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19066 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19067 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19068
19069 cat >>confdefs.h <<\_ACEOF
19070 #define HAVE___FIXSFDI 1
19071 _ACEOF
19072
19073 fi
19074
19075   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19076 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19077 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19078   echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080   ac_check_lib_save_LIBS=$LIBS
19081 LIBS="-lgcc  $LIBS"
19082 cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089 /* Override any GCC internal prototype to avoid an error.
19090    Use char because int might match the return type of a GCC
19091    builtin and then its argument prototype would still apply.  */
19092 #ifdef __cplusplus
19093 extern "C"
19094 #endif
19095 char __floatdidf ();
19096 int
19097 main ()
19098 {
19099 return __floatdidf ();
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest.$ac_objext conftest$ac_exeext
19105 if { (ac_try="$ac_link"
19106 case "(($ac_try" in
19107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108   *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111   (eval "$ac_link") 2>conftest.er1
19112   ac_status=$?
19113   grep -v '^ *+' conftest.er1 >conftest.err
19114   rm -f conftest.er1
19115   cat conftest.err >&5
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } &&
19118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19119   { (case "(($ac_try" in
19120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121   *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124   (eval "$ac_try") 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; } &&
19128          { ac_try='test -s conftest$ac_exeext'
19129   { (case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134   (eval "$ac_try") 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); }; }; then
19138   ac_cv_lib_gcc___floatdidf=yes
19139 else
19140   echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19142
19143         ac_cv_lib_gcc___floatdidf=no
19144 fi
19145
19146 rm -f core conftest.err conftest.$ac_objext \
19147       conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19149 fi
19150 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19151 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19152 if test $ac_cv_lib_gcc___floatdidf = yes; then
19153
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE___FLOATDIDF 1
19156 _ACEOF
19157
19158 fi
19159
19160   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19161 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19162 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165   ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lgcc  $LIBS"
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173
19174 /* Override any GCC internal prototype to avoid an error.
19175    Use char because int might match the return type of a GCC
19176    builtin and then its argument prototype would still apply.  */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 char __lshrdi3 ();
19181 int
19182 main ()
19183 {
19184 return __lshrdi3 ();
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193   *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196   (eval "$ac_link") 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } &&
19203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19204   { (case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_try") 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; } &&
19213          { ac_try='test -s conftest$ac_exeext'
19214   { (case "(($ac_try" in
19215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216   *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219   (eval "$ac_try") 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; }; then
19223   ac_cv_lib_gcc___lshrdi3=yes
19224 else
19225   echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228         ac_cv_lib_gcc___lshrdi3=no
19229 fi
19230
19231 rm -f core conftest.err conftest.$ac_objext \
19232       conftest$ac_exeext conftest.$ac_ext
19233 LIBS=$ac_check_lib_save_LIBS
19234 fi
19235 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19236 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19237 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE___LSHRDI3 1
19241 _ACEOF
19242
19243 fi
19244
19245   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19246 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19247 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   ac_check_lib_save_LIBS=$LIBS
19251 LIBS="-lgcc  $LIBS"
19252 cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258
19259 /* Override any GCC internal prototype to avoid an error.
19260    Use char because int might match the return type of a GCC
19261    builtin and then its argument prototype would still apply.  */
19262 #ifdef __cplusplus
19263 extern "C"
19264 #endif
19265 char __moddi3 ();
19266 int
19267 main ()
19268 {
19269 return __moddi3 ();
19270   ;
19271   return 0;
19272 }
19273 _ACEOF
19274 rm -f conftest.$ac_objext conftest$ac_exeext
19275 if { (ac_try="$ac_link"
19276 case "(($ac_try" in
19277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278   *) ac_try_echo=$ac_try;;
19279 esac
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281   (eval "$ac_link") 2>conftest.er1
19282   ac_status=$?
19283   grep -v '^ *+' conftest.er1 >conftest.err
19284   rm -f conftest.er1
19285   cat conftest.err >&5
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); } &&
19288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; } &&
19298          { ac_try='test -s conftest$ac_exeext'
19299   { (case "(($ac_try" in
19300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301   *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304   (eval "$ac_try") 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; }; then
19308   ac_cv_lib_gcc___moddi3=yes
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313         ac_cv_lib_gcc___moddi3=no
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext \
19317       conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19319 fi
19320 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19321 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19322 if test $ac_cv_lib_gcc___moddi3 = yes; then
19323
19324 cat >>confdefs.h <<\_ACEOF
19325 #define HAVE___MODDI3 1
19326 _ACEOF
19327
19328 fi
19329
19330   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19331 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lgcc  $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* Override any GCC internal prototype to avoid an error.
19345    Use char because int might match the return type of a GCC
19346    builtin and then its argument prototype would still apply.  */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 char __udivdi3 ();
19351 int
19352 main ()
19353 {
19354 return __udivdi3 ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_link") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374   { (case "(($ac_try" in
19375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376   *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379   (eval "$ac_try") 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; } &&
19383          { ac_try='test -s conftest$ac_exeext'
19384   { (case "(($ac_try" in
19385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386   *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389   (eval "$ac_try") 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   ac_cv_lib_gcc___udivdi3=yes
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398         ac_cv_lib_gcc___udivdi3=no
19399 fi
19400
19401 rm -f core conftest.err conftest.$ac_objext \
19402       conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19404 fi
19405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19406 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19407 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19408
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE___UDIVDI3 1
19411 _ACEOF
19412
19413 fi
19414
19415   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19416 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-lgcc  $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 /* Override any GCC internal prototype to avoid an error.
19430    Use char because int might match the return type of a GCC
19431    builtin and then its argument prototype would still apply.  */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char __umoddi3 ();
19436 int
19437 main ()
19438 {
19439 return __umoddi3 ();
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448   *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451   (eval "$ac_link") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest$ac_exeext'
19469   { (case "(($ac_try" in
19470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471   *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474   (eval "$ac_try") 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_lib_gcc___umoddi3=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483         ac_cv_lib_gcc___umoddi3=no
19484 fi
19485
19486 rm -f core conftest.err conftest.$ac_objext \
19487       conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19489 fi
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19492 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___UMODDI3 1
19496 _ACEOF
19497
19498 fi
19499
19500
19501   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19502 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19503 if test "${ac_cv_lib_gcc___main+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   ac_check_lib_save_LIBS=$LIBS
19507 LIBS="-lgcc  $LIBS"
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514
19515 /* Override any GCC internal prototype to avoid an error.
19516    Use char because int might match the return type of a GCC
19517    builtin and then its argument prototype would still apply.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char __main ();
19522 int
19523 main ()
19524 {
19525 return __main ();
19526   ;
19527   return 0;
19528 }
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534   *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537   (eval "$ac_link") 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19545   { (case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_try") 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; } &&
19554          { ac_try='test -s conftest$ac_exeext'
19555   { (case "(($ac_try" in
19556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557   *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560   (eval "$ac_try") 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; }; then
19564   ac_cv_lib_gcc___main=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_cv_lib_gcc___main=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext \
19573       conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19575 fi
19576 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19577 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19578 if test $ac_cv_lib_gcc___main = yes; then
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE___MAIN 1
19582 _ACEOF
19583
19584 fi
19585
19586   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19587 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19588 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19589   echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591   ac_check_lib_save_LIBS=$LIBS
19592 LIBS="-lgcc  $LIBS"
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599
19600 /* Override any GCC internal prototype to avoid an error.
19601    Use char because int might match the return type of a GCC
19602    builtin and then its argument prototype would still apply.  */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 char __cmpdi2 ();
19607 int
19608 main ()
19609 {
19610 return __cmpdi2 ();
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_link") 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630   { (case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_try") 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; } &&
19639          { ac_try='test -s conftest$ac_exeext'
19640   { (case "(($ac_try" in
19641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642   *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645   (eval "$ac_try") 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   ac_cv_lib_gcc___cmpdi2=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654         ac_cv_lib_gcc___cmpdi2=no
19655 fi
19656
19657 rm -f core conftest.err conftest.$ac_objext \
19658       conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19660 fi
19661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19662 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19663 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19664
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE___CMPDI2 1
19667 _ACEOF
19668
19669 fi
19670
19671 fi
19672
19673 if test "$llvm_cv_os_type" = "MingW" ; then
19674   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19675 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19676   cat >conftest.$ac_ext <<_ACEOF
19677
19678   /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683
19684     #include <windows.h>
19685     #include <imagehlp.h>
19686     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19687     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19688
19689
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_compile") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } &&
19705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19706   { (case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_try") 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; } &&
19715          { ac_try='test -s conftest.$ac_objext'
19716   { (case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_try") 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725
19726   { echo "$as_me:$LINENO: result: yes" >&5
19727 echo "${ECHO_T}yes" >&6; }
19728   llvm_cv_win32_elmcb_pcstr="PCSTR"
19729
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734
19735   { echo "$as_me:$LINENO: result: no" >&5
19736 echo "${ECHO_T}no" >&6; }
19737   llvm_cv_win32_elmcb_pcstr="PSTR"
19738
19739 fi
19740
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742
19743 cat >>confdefs.h <<_ACEOF
19744 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19745 _ACEOF
19746
19747 fi
19748
19749
19750
19751   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19752 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19753 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756
19757     ac_ext=cpp
19758 ac_cpp='$CXXCPP $CPPFLAGS'
19759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19762
19763     cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 #include <math.h>
19770 int
19771 main ()
19772 {
19773 float f; isnan(f);
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (ac_try="$ac_compile"
19780 case "(($ac_try" in
19781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782   *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785   (eval "$ac_compile") 2>conftest.er1
19786   ac_status=$?
19787   grep -v '^ *+' conftest.er1 >conftest.err
19788   rm -f conftest.er1
19789   cat conftest.err >&5
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); } &&
19792          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19793   { (case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_try") 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; } &&
19802          { ac_try='test -s conftest.$ac_objext'
19803   { (case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_try") 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; }; then
19812   ac_cv_func_isnan_in_math_h=yes
19813 else
19814   echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817         ac_cv_func_isnan_in_math_h=no
19818 fi
19819
19820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19821     ac_ext=c
19822 ac_cpp='$CPP $CPPFLAGS'
19823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19826
19827
19828 fi
19829 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19830 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19831
19832
19833 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19834
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE_ISNAN_IN_MATH_H 1
19837 _ACEOF
19838
19839 fi
19840
19841
19842   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19843 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19844 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847
19848     ac_ext=cpp
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
19854     cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 #include <cmath>
19861 int
19862 main ()
19863 {
19864 float f; isnan(f);
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_compile") 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884   { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; } &&
19893          { ac_try='test -s conftest.$ac_objext'
19894   { (case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_try") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; }; then
19903   ac_cv_func_isnan_in_cmath=yes
19904 else
19905   echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908         ac_cv_func_isnan_in_cmath=no
19909 fi
19910
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912     ac_ext=c
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918
19919 fi
19920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19922
19923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19924
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_ISNAN_IN_CMATH 1
19927 _ACEOF
19928
19929 fi
19930
19931
19932   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19933 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19934 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937
19938     ac_ext=cpp
19939 ac_cpp='$CXXCPP $CPPFLAGS'
19940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19943
19944     cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <cmath>
19951 int
19952 main ()
19953 {
19954 float f; std::isnan(f);
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext
19960 if { (ac_try="$ac_compile"
19961 case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_compile") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } &&
19973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19974   { (case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_try") 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; } &&
19983          { ac_try='test -s conftest.$ac_objext'
19984   { (case "(($ac_try" in
19985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986   *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989   (eval "$ac_try") 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_func_std_isnan_in_cmath=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998         ac_cv_func_std_isnan_in_cmath=no
19999 fi
20000
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002     ac_ext=c
20003 ac_cpp='$CPP $CPPFLAGS'
20004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20007
20008
20009 fi
20010 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20011 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20012
20013 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20014
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE_STD_ISNAN_IN_CMATH 1
20017 _ACEOF
20018
20019 fi
20020
20021
20022
20023
20024   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20025 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20026 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20027   echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029
20030     ac_ext=cpp
20031 ac_cpp='$CXXCPP $CPPFLAGS'
20032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20035
20036     cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042 #include <math.h>
20043 int
20044 main ()
20045 {
20046 float f; isinf(f);
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_compile") 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } &&
20065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20066   { (case "(($ac_try" in
20067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068   *) ac_try_echo=$ac_try;;
20069 esac
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071   (eval "$ac_try") 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; } &&
20075          { ac_try='test -s conftest.$ac_objext'
20076   { (case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081   (eval "$ac_try") 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; }; then
20085   ac_cv_func_isinf_in_math_h=yes
20086 else
20087   echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090         ac_cv_func_isinf_in_math_h=no
20091 fi
20092
20093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20094     ac_ext=c
20095 ac_cpp='$CPP $CPPFLAGS'
20096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20099
20100
20101 fi
20102 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20103 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20104
20105 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20106
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_ISINF_IN_MATH_H 1
20109 _ACEOF
20110
20111 fi
20112
20113
20114   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20115 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20116 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20117   echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119
20120     ac_ext=cpp
20121 ac_cpp='$CXXCPP $CPPFLAGS'
20122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20125
20126     cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 #include <cmath>
20133 int
20134 main ()
20135 {
20136 float f; isinf(f);
20137   ;
20138   return 0;
20139 }
20140 _ACEOF
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_compile") 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } &&
20155          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20156   { (case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_try") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; } &&
20165          { ac_try='test -s conftest.$ac_objext'
20166   { (case "(($ac_try" in
20167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168   *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171   (eval "$ac_try") 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); }; }; then
20175   ac_cv_func_isinf_in_cmath=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180         ac_cv_func_isinf_in_cmath=no
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184     ac_ext=c
20185 ac_cpp='$CPP $CPPFLAGS'
20186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20189
20190
20191 fi
20192 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20193 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20194
20195 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20196
20197 cat >>confdefs.h <<\_ACEOF
20198 #define HAVE_ISINF_IN_CMATH 1
20199 _ACEOF
20200
20201 fi
20202
20203
20204   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20205 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209
20210     ac_ext=cpp
20211 ac_cpp='$CXXCPP $CPPFLAGS'
20212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20215
20216     cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 #include <cmath>
20223 int
20224 main ()
20225 {
20226 float f; std::isinf(f);
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_compile") 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } &&
20245          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20246   { (case "(($ac_try" in
20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248   *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251   (eval "$ac_try") 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; } &&
20255          { ac_try='test -s conftest.$ac_objext'
20256   { (case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_try") 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_func_std_isinf_in_cmath=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270         ac_cv_func_std_isinf_in_cmath=no
20271 fi
20272
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274     ac_ext=c
20275 ac_cpp='$CPP $CPPFLAGS'
20276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20279
20280
20281 fi
20282 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20283 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20284
20285 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20286
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_STD_ISINF_IN_CMATH 1
20289 _ACEOF
20290
20291 fi
20292
20293
20294   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20295 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20296 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299
20300     ac_ext=cpp
20301 ac_cpp='$CXXCPP $CPPFLAGS'
20302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20305
20306     cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312 #include <ieeefp.h>
20313 int
20314 main ()
20315 {
20316 float f; finite(f);
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest.$ac_objext
20322 if { (ac_try="$ac_compile"
20323 case "(($ac_try" in
20324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325   *) ac_try_echo=$ac_try;;
20326 esac
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328   (eval "$ac_compile") 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20336   { (case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_try") 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; } &&
20345          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20355   ac_cv_func_finite_in_ieeefp_h=yes
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360         ac_cv_func_finite_in_ieeefp_h=no
20361 fi
20362
20363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364     ac_ext=c
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370
20371 fi
20372 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20373 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20374
20375 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20376
20377 cat >>confdefs.h <<\_ACEOF
20378 #define HAVE_FINITE_IN_IEEEFP_H 1
20379 _ACEOF
20380
20381 fi
20382
20383
20384
20385 if test "$llvm_cv_platform_type" = "Unix" ; then
20386
20387
20388 for ac_header in stdlib.h unistd.h
20389 do
20390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20392   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 fi
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398                { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20400 else
20401   # Is the header compilable?
20402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h.  */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h.  */
20410 $ac_includes_default
20411 #include <$ac_header>
20412 _ACEOF
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_compile") 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } &&
20427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428   { (case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433   (eval "$ac_try") 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; } &&
20437          { ac_try='test -s conftest.$ac_objext'
20438   { (case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_try") 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; }; then
20447   ac_header_compiler=yes
20448 else
20449   echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452         ac_header_compiler=no
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20457 echo "${ECHO_T}$ac_header_compiler" >&6; }
20458
20459 # Is the header present?
20460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 #include <$ac_header>
20469 _ACEOF
20470 if { (ac_try="$ac_cpp conftest.$ac_ext"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } >/dev/null; then
20483   if test -s conftest.err; then
20484     ac_cpp_err=$ac_c_preproc_warn_flag
20485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20486   else
20487     ac_cpp_err=
20488   fi
20489 else
20490   ac_cpp_err=yes
20491 fi
20492 if test -z "$ac_cpp_err"; then
20493   ac_header_preproc=yes
20494 else
20495   echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498   ac_header_preproc=no
20499 fi
20500
20501 rm -f conftest.err conftest.$ac_ext
20502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20503 echo "${ECHO_T}$ac_header_preproc" >&6; }
20504
20505 # So?  What about this header?
20506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20507   yes:no: )
20508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20512     ac_header_preproc=yes
20513     ;;
20514   no:yes:* )
20515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20527     ( cat <<\_ASBOX
20528 ## ------------------------------------ ##
20529 ## Report this to http://llvm.org/bugs/ ##
20530 ## ------------------------------------ ##
20531 _ASBOX
20532      ) | sed "s/^/$as_me: WARNING:     /" >&2
20533     ;;
20534 esac
20535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540   eval "$as_ac_Header=\$ac_header_preproc"
20541 fi
20542 ac_res=`eval echo '${'$as_ac_Header'}'`
20543                { echo "$as_me:$LINENO: result: $ac_res" >&5
20544 echo "${ECHO_T}$ac_res" >&6; }
20545
20546 fi
20547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20548   cat >>confdefs.h <<_ACEOF
20549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20550 _ACEOF
20551
20552 fi
20553
20554 done
20555
20556
20557 for ac_func in getpagesize
20558 do
20559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20563   echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565   cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h.  */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h.  */
20571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20573 #define $ac_func innocuous_$ac_func
20574
20575 /* System header to define __stub macros and hopefully few prototypes,
20576     which can conflict with char $ac_func (); below.
20577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20578     <limits.h> exists even on freestanding compilers.  */
20579
20580 #ifdef __STDC__
20581 # include <limits.h>
20582 #else
20583 # include <assert.h>
20584 #endif
20585
20586 #undef $ac_func
20587
20588 /* Override any GCC internal prototype to avoid an error.
20589    Use char because int might match the return type of a GCC
20590    builtin and then its argument prototype would still apply.  */
20591 #ifdef __cplusplus
20592 extern "C"
20593 #endif
20594 char $ac_func ();
20595 /* The GNU C library defines this for functions which it implements
20596     to always fail with ENOSYS.  Some functions are actually named
20597     something starting with __ and the normal name is an alias.  */
20598 #if defined __stub_$ac_func || defined __stub___$ac_func
20599 choke me
20600 #endif
20601
20602 int
20603 main ()
20604 {
20605 return $ac_func ();
20606   ;
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest.$ac_objext conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_link") 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } &&
20624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; } &&
20634          { ac_try='test -s conftest$ac_exeext'
20635   { (case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_try") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   eval "$as_ac_var=yes"
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649         eval "$as_ac_var=no"
20650 fi
20651
20652 rm -f core conftest.err conftest.$ac_objext \
20653       conftest$ac_exeext conftest.$ac_ext
20654 fi
20655 ac_res=`eval echo '${'$as_ac_var'}'`
20656                { echo "$as_me:$LINENO: result: $ac_res" >&5
20657 echo "${ECHO_T}$ac_res" >&6; }
20658 if test `eval echo '${'$as_ac_var'}'` = yes; then
20659   cat >>confdefs.h <<_ACEOF
20660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20661 _ACEOF
20662
20663 fi
20664 done
20665
20666 { echo "$as_me:$LINENO: checking for working mmap" >&5
20667 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20668 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671   if test "$cross_compiling" = yes; then
20672   ac_cv_func_mmap_fixed_mapped=no
20673 else
20674   cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 $ac_includes_default
20681 /* malloc might have been renamed as rpl_malloc. */
20682 #undef malloc
20683
20684 /* Thanks to Mike Haertel and Jim Avera for this test.
20685    Here is a matrix of mmap possibilities:
20686         mmap private not fixed
20687         mmap private fixed at somewhere currently unmapped
20688         mmap private fixed at somewhere already mapped
20689         mmap shared not fixed
20690         mmap shared fixed at somewhere currently unmapped
20691         mmap shared fixed at somewhere already mapped
20692    For private mappings, we should verify that changes cannot be read()
20693    back from the file, nor mmap's back from the file at a different
20694    address.  (There have been systems where private was not correctly
20695    implemented like the infamous i386 svr4.0, and systems where the
20696    VM page cache was not coherent with the file system buffer cache
20697    like early versions of FreeBSD and possibly contemporary NetBSD.)
20698    For shared mappings, we should conversely verify that changes get
20699    propagated back to all the places they're supposed to be.
20700
20701    Grep wants private fixed already mapped.
20702    The main things grep needs to know about mmap are:
20703    * does it exist and is it safe to write into the mmap'd area
20704    * how to use it (BSD variants)  */
20705
20706 #include <fcntl.h>
20707 #include <sys/mman.h>
20708
20709 #if !STDC_HEADERS && !HAVE_STDLIB_H
20710 char *malloc ();
20711 #endif
20712
20713 /* This mess was copied from the GNU getpagesize.h.  */
20714 #if !HAVE_GETPAGESIZE
20715 /* Assume that all systems that can run configure have sys/param.h.  */
20716 # if !HAVE_SYS_PARAM_H
20717 #  define HAVE_SYS_PARAM_H 1
20718 # endif
20719
20720 # ifdef _SC_PAGESIZE
20721 #  define getpagesize() sysconf(_SC_PAGESIZE)
20722 # else /* no _SC_PAGESIZE */
20723 #  if HAVE_SYS_PARAM_H
20724 #   include <sys/param.h>
20725 #   ifdef EXEC_PAGESIZE
20726 #    define getpagesize() EXEC_PAGESIZE
20727 #   else /* no EXEC_PAGESIZE */
20728 #    ifdef NBPG
20729 #     define getpagesize() NBPG * CLSIZE
20730 #     ifndef CLSIZE
20731 #      define CLSIZE 1
20732 #     endif /* no CLSIZE */
20733 #    else /* no NBPG */
20734 #     ifdef NBPC
20735 #      define getpagesize() NBPC
20736 #     else /* no NBPC */
20737 #      ifdef PAGESIZE
20738 #       define getpagesize() PAGESIZE
20739 #      endif /* PAGESIZE */
20740 #     endif /* no NBPC */
20741 #    endif /* no NBPG */
20742 #   endif /* no EXEC_PAGESIZE */
20743 #  else /* no HAVE_SYS_PARAM_H */
20744 #   define getpagesize() 8192   /* punt totally */
20745 #  endif /* no HAVE_SYS_PARAM_H */
20746 # endif /* no _SC_PAGESIZE */
20747
20748 #endif /* no HAVE_GETPAGESIZE */
20749
20750 int
20751 main ()
20752 {
20753   char *data, *data2, *data3;
20754   int i, pagesize;
20755   int fd;
20756
20757   pagesize = getpagesize ();
20758
20759   /* First, make a file with some known garbage in it. */
20760   data = (char *) malloc (pagesize);
20761   if (!data)
20762     return 1;
20763   for (i = 0; i < pagesize; ++i)
20764     *(data + i) = rand ();
20765   umask (0);
20766   fd = creat ("conftest.mmap", 0600);
20767   if (fd < 0)
20768     return 1;
20769   if (write (fd, data, pagesize) != pagesize)
20770     return 1;
20771   close (fd);
20772
20773   /* Next, try to mmap the file at a fixed address which already has
20774      something else allocated at it.  If we can, also make sure that
20775      we see the same garbage.  */
20776   fd = open ("conftest.mmap", O_RDWR);
20777   if (fd < 0)
20778     return 1;
20779   data2 = (char *) malloc (2 * pagesize);
20780   if (!data2)
20781     return 1;
20782   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20783   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20784                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20785     return 1;
20786   for (i = 0; i < pagesize; ++i)
20787     if (*(data + i) != *(data2 + i))
20788       return 1;
20789
20790   /* Finally, make sure that changes to the mapped area do not
20791      percolate back to the file as seen by read().  (This is a bug on
20792      some variants of i386 svr4.0.)  */
20793   for (i = 0; i < pagesize; ++i)
20794     *(data2 + i) = *(data2 + i) + 1;
20795   data3 = (char *) malloc (pagesize);
20796   if (!data3)
20797     return 1;
20798   if (read (fd, data3, pagesize) != pagesize)
20799     return 1;
20800   for (i = 0; i < pagesize; ++i)
20801     if (*(data + i) != *(data3 + i))
20802       return 1;
20803   close (fd);
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest$ac_exeext
20808 if { (ac_try="$ac_link"
20809 case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_link") 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20818   { (case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_try") 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; }; then
20827   ac_cv_func_mmap_fixed_mapped=yes
20828 else
20829   echo "$as_me: program exited with status $ac_status" >&5
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 ( exit $ac_status )
20834 ac_cv_func_mmap_fixed_mapped=no
20835 fi
20836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20837 fi
20838
20839
20840 fi
20841 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20842 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20844
20845 cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_MMAP 1
20847 _ACEOF
20848
20849 fi
20850 rm -f conftest.mmap
20851
20852   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20853 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20854 if test "${ac_cv_func_mmap_file+set}" = set; then
20855   echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857    ac_ext=c
20858 ac_cpp='$CPP $CPPFLAGS'
20859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20862
20863   if test "$cross_compiling" = yes; then
20864   ac_cv_func_mmap_file=no
20865 else
20866   cat >conftest.$ac_ext <<_ACEOF
20867
20868     /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873
20874 #include <sys/types.h>
20875 #include <sys/mman.h>
20876 #include <fcntl.h>
20877
20878 int
20879 main ()
20880 {
20881
20882   int fd;
20883   fd = creat ("foo",0777);
20884   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20885   unlink ("foo");
20886   return (fd != (int) MAP_FAILED);
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest$ac_exeext
20892 if { (ac_try="$ac_link"
20893 case "(($ac_try" in
20894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895   *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898   (eval "$ac_link") 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20902   { (case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_try") 2>&5
20908   ac_status=$?
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); }; }; then
20911   ac_cv_func_mmap_file=yes
20912 else
20913   echo "$as_me: program exited with status $ac_status" >&5
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20916
20917 ( exit $ac_status )
20918 ac_cv_func_mmap_file=no
20919 fi
20920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20921 fi
20922
20923
20924   ac_ext=c
20925 ac_cpp='$CPP $CPPFLAGS'
20926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929
20930
20931 fi
20932 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20933 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20934 if test "$ac_cv_func_mmap_file" = yes; then
20935
20936 cat >>confdefs.h <<\_ACEOF
20937 #define HAVE_MMAP_FILE
20938 _ACEOF
20939
20940    MMAP_FILE=yes
20941
20942 fi
20943
20944   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20945 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20946 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20947   echo $ECHO_N "(cached) $ECHO_C" >&6
20948 else
20949   if test "$llvm_cv_os_type" = "Interix" ; then
20950    ac_cv_need_dev_zero_for_mmap=yes
20951  else
20952    ac_cv_need_dev_zero_for_mmap=no
20953  fi
20954
20955 fi
20956 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20957 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20958 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20959
20960 cat >>confdefs.h <<\_ACEOF
20961 #define NEED_DEV_ZERO_FOR_MMAP 1
20962 _ACEOF
20963
20964 fi
20965
20966   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20967   then
20968     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20969 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20970   fi
20971   if test "$ac_cv_func_mmap_file" = "no"
20972   then
20973     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20974 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20975   fi
20976 fi
20977
20978 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20979 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20980 ac_ext=cpp
20981 ac_cpp='$CXXCPP $CPPFLAGS'
20982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20985
20986 cat >conftest.$ac_ext <<_ACEOF
20987
20988   /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993
20994     int main() {
20995       volatile unsigned long val = 1;
20996       __sync_synchronize();
20997       __sync_val_compare_and_swap(&val, 1, 0);
20998       __sync_add_and_fetch(&val, 1);
20999       __sync_sub_and_fetch(&val, 1);
21000       return 0;
21001     }
21002
21003
21004 _ACEOF
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_link") 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } &&
21019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21020   { (case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_try") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest$ac_exeext'
21030   { (case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_try") 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }; then
21039
21040   { echo "$as_me:$LINENO: result: yes" >&5
21041 echo "${ECHO_T}yes" >&6; }
21042
21043 cat >>confdefs.h <<\_ACEOF
21044 #define LLVM_HAS_ATOMICS 1
21045 _ACEOF
21046
21047
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052
21053   { echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6; }
21055
21056 cat >>confdefs.h <<\_ACEOF
21057 #define LLVM_HAS_ATOMICS 0
21058 _ACEOF
21059
21060   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21061 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21062
21063 fi
21064
21065 rm -f core conftest.err conftest.$ac_objext \
21066       conftest$ac_exeext conftest.$ac_ext
21067 ac_ext=c
21068 ac_cpp='$CPP $CPPFLAGS'
21069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21072
21073
21074
21075 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21076   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21077 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21078 if test "${llvm_cv_linux_mixed+set}" = set; then
21079   echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081    ac_ext=c
21082 ac_cpp='$CPP $CPPFLAGS'
21083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 #ifndef __x86_64__
21094        error: Not x86-64 even if uname says so!
21095       #endif
21096
21097 int
21098 main ()
21099 {
21100
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109   *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112   (eval "$ac_compile") 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } &&
21119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21120   { (case "(($ac_try" in
21121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122   *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125   (eval "$ac_try") 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); }; } &&
21129          { ac_try='test -s conftest.$ac_objext'
21130   { (case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135   (eval "$ac_try") 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); }; }; then
21139   llvm_cv_linux_mixed=no
21140 else
21141   echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144         llvm_cv_linux_mixed=yes
21145 fi
21146
21147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148   ac_ext=c
21149 ac_cpp='$CPP $CPPFLAGS'
21150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21153
21154
21155 fi
21156 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21157 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21158
21159   if test "$llvm_cv_linux_mixed" = "yes"; then
21160     llvm_cv_target_arch="x86"
21161     ARCH="x86"
21162   fi
21163 fi
21164
21165
21166 for ac_func in __dso_handle
21167 do
21168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21172   echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174   cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h.  */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h.  */
21180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21182 #define $ac_func innocuous_$ac_func
21183
21184 /* System header to define __stub macros and hopefully few prototypes,
21185     which can conflict with char $ac_func (); below.
21186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21187     <limits.h> exists even on freestanding compilers.  */
21188
21189 #ifdef __STDC__
21190 # include <limits.h>
21191 #else
21192 # include <assert.h>
21193 #endif
21194
21195 #undef $ac_func
21196
21197 /* Override any GCC internal prototype to avoid an error.
21198    Use char because int might match the return type of a GCC
21199    builtin and then its argument prototype would still apply.  */
21200 #ifdef __cplusplus
21201 extern "C"
21202 #endif
21203 char $ac_func ();
21204 /* The GNU C library defines this for functions which it implements
21205     to always fail with ENOSYS.  Some functions are actually named
21206     something starting with __ and the normal name is an alias.  */
21207 #if defined __stub_$ac_func || defined __stub___$ac_func
21208 choke me
21209 #endif
21210
21211 int
21212 main ()
21213 {
21214 return $ac_func ();
21215   ;
21216   return 0;
21217 }
21218 _ACEOF
21219 rm -f conftest.$ac_objext conftest$ac_exeext
21220 if { (ac_try="$ac_link"
21221 case "(($ac_try" in
21222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223   *) ac_try_echo=$ac_try;;
21224 esac
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226   (eval "$ac_link") 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } &&
21233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21234   { (case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_try") 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; } &&
21243          { ac_try='test -s conftest$ac_exeext'
21244   { (case "(($ac_try" in
21245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246   *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249   (eval "$ac_try") 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253   eval "$as_ac_var=yes"
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258         eval "$as_ac_var=no"
21259 fi
21260
21261 rm -f core conftest.err conftest.$ac_objext \
21262       conftest$ac_exeext conftest.$ac_ext
21263 fi
21264 ac_res=`eval echo '${'$as_ac_var'}'`
21265                { echo "$as_me:$LINENO: result: $ac_res" >&5
21266 echo "${ECHO_T}$ac_res" >&6; }
21267 if test `eval echo '${'$as_ac_var'}'` = yes; then
21268   cat >>confdefs.h <<_ACEOF
21269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21270 _ACEOF
21271
21272 fi
21273 done
21274
21275
21276 SHLIBEXT=$libltdl_cv_shlibext
21277
21278
21279 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21280
21281
21282 if test "${prefix}" = "NONE" ; then
21283   prefix="/usr/local"
21284 fi
21285 eval LLVM_PREFIX="${prefix}";
21286 eval LLVM_BINDIR="${prefix}/bin";
21287 eval LLVM_LIBDIR="${prefix}/lib";
21288 eval LLVM_DATADIR="${prefix}/share/llvm";
21289 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21290 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21291 eval LLVM_INCLUDEDIR="${prefix}/include";
21292 eval LLVM_INFODIR="${prefix}/info";
21293 eval LLVM_MANDIR="${prefix}/man";
21294 LLVM_CONFIGTIME=`date`
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21307   LLVM_CONFIGTIME="(timestamp not enabled)"
21308 fi
21309
21310
21311 cat >>confdefs.h <<_ACEOF
21312 #define LLVM_PREFIX "$LLVM_PREFIX"
21313 _ACEOF
21314
21315
21316 cat >>confdefs.h <<_ACEOF
21317 #define LLVM_BINDIR "$LLVM_BINDIR"
21318 _ACEOF
21319
21320
21321 cat >>confdefs.h <<_ACEOF
21322 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21323 _ACEOF
21324
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define LLVM_DATADIR "$LLVM_DATADIR"
21328 _ACEOF
21329
21330
21331 cat >>confdefs.h <<_ACEOF
21332 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21333 _ACEOF
21334
21335
21336 cat >>confdefs.h <<_ACEOF
21337 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21338 _ACEOF
21339
21340
21341 cat >>confdefs.h <<_ACEOF
21342 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21343 _ACEOF
21344
21345
21346 cat >>confdefs.h <<_ACEOF
21347 #define LLVM_INFODIR "$LLVM_INFODIR"
21348 _ACEOF
21349
21350
21351 cat >>confdefs.h <<_ACEOF
21352 #define LLVM_MANDIR "$LLVM_MANDIR"
21353 _ACEOF
21354
21355
21356 cat >>confdefs.h <<_ACEOF
21357 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21358 _ACEOF
21359
21360
21361 cat >>confdefs.h <<_ACEOF
21362 #define LLVM_HOSTTRIPLE "$host"
21363 _ACEOF
21364
21365
21366 cat >>confdefs.h <<_ACEOF
21367 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21368 _ACEOF
21369
21370
21371 if test "$BINDINGS_TO_BUILD" = auto ; then
21372   BINDINGS_TO_BUILD=""
21373   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21374     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21375   fi
21376 fi
21377 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21378
21379
21380 ALL_BINDINGS=ocaml
21381
21382
21383 binding_prereqs_failed=0
21384 for a_binding in $BINDINGS_TO_BUILD ; do
21385   case "$a_binding" in
21386   ocaml)
21387     if test "x$OCAMLC" = x ; then
21388       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21389 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21390       binding_prereqs_failed=1
21391     fi
21392     if test "x$OCAMLDEP" = x ; then
21393       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21394 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21395       binding_prereqs_failed=1
21396     fi
21397     if test "x$OCAMLOPT" = x ; then
21398       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21399 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21400           fi
21401     if test "x$with_ocaml_libdir" != xauto ; then
21402       OCAML_LIBDIR=$with_ocaml_libdir
21403
21404     else
21405       ocaml_stdlib="`"$OCAMLC" -where`"
21406       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21407       then
21408         # ocaml stdlib is beneath our prefix; use stdlib
21409         OCAML_LIBDIR=$ocaml_stdlib
21410
21411       else
21412         # ocaml stdlib is outside our prefix; use libdir/ocaml
21413         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21414
21415       fi
21416     fi
21417     ;;
21418   esac
21419 done
21420 if test "$binding_prereqs_failed" = 1 ; then
21421   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21422 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21423    { (exit 1); exit 1; }; }
21424 fi
21425
21426 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21427 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21428 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21429   echo $ECHO_N "(cached) $ECHO_C" >&6
21430 else
21431    ac_ext=cpp
21432 ac_cpp='$CXXCPP $CPPFLAGS'
21433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21436
21437   oldcxxflags="$CXXFLAGS"
21438   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21439   cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21446 int
21447 main ()
21448 {
21449 X<int>().f();
21450   ;
21451   return 0;
21452 }
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
21456 case "(($ac_try" in
21457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458   *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461   (eval "$ac_compile") 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } &&
21468          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21469   { (case "(($ac_try" in
21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471   *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474   (eval "$ac_try") 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; } &&
21478          { ac_try='test -s conftest.$ac_objext'
21479   { (case "(($ac_try" in
21480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481   *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484   (eval "$ac_try") 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; }; then
21488   llvm_cv_cxx_visibility_inlines_hidden=yes
21489 else
21490   echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493         llvm_cv_cxx_visibility_inlines_hidden=no
21494 fi
21495
21496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21497   CXXFLAGS="$oldcxxflags"
21498   ac_ext=c
21499 ac_cpp='$CPP $CPPFLAGS'
21500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21503
21504
21505 fi
21506 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21507 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21508 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21509   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21510
21511 else
21512   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21513
21514 fi
21515
21516
21517 if test "$llvm_cv_link_use_r" = "yes" ; then
21518   RPATH="-Wl,-R"
21519 else
21520   RPATH="-Wl,-rpath"
21521 fi
21522
21523
21524 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21525   RDYNAMIC="-Wl,-export-dynamic"
21526 else
21527   RDYNAMIC=""
21528 fi
21529
21530
21531
21532 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21533
21534
21535
21536
21537
21538
21539 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21540
21541 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21542
21543 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21544
21545 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21546
21547 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21548
21549
21550 ac_config_files="$ac_config_files Makefile.config"
21551
21552
21553 ac_config_files="$ac_config_files llvm.spec"
21554
21555
21556 ac_config_files="$ac_config_files docs/doxygen.cfg"
21557
21558
21559 if test "${clang_src_root}" = ""; then
21560   clang_src_root="$srcdir/tools/clang"
21561 fi
21562 if test -f ${clang_src_root}/README.txt; then
21563     configh="include/clang/Config/config.h"
21564   doxy="docs/doxygen.cfg"
21565   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21566
21567   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21568
21569 fi
21570
21571 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21572
21573
21574 test "x$program_prefix" = "xNONE" && program_prefix=""
21575
21576
21577
21578 ac_config_commands="$ac_config_commands setup"
21579
21580 ac_config_commands="$ac_config_commands Makefile"
21581
21582
21583 ac_config_commands="$ac_config_commands Makefile.common"
21584
21585
21586 ac_config_commands="$ac_config_commands examples/Makefile"
21587
21588
21589 ac_config_commands="$ac_config_commands lib/Makefile"
21590
21591
21592 ac_config_commands="$ac_config_commands runtime/Makefile"
21593
21594
21595 ac_config_commands="$ac_config_commands test/Makefile"
21596
21597
21598 ac_config_commands="$ac_config_commands test/Makefile.tests"
21599
21600
21601 ac_config_commands="$ac_config_commands unittests/Makefile"
21602
21603
21604 ac_config_commands="$ac_config_commands tools/Makefile"
21605
21606
21607 ac_config_commands="$ac_config_commands utils/Makefile"
21608
21609
21610 ac_config_commands="$ac_config_commands projects/Makefile"
21611
21612
21613 ac_config_commands="$ac_config_commands bindings/Makefile"
21614
21615
21616 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21617
21618
21619
21620 cat >confcache <<\_ACEOF
21621 # This file is a shell script that caches the results of configure
21622 # tests run on this system so they can be shared between configure
21623 # scripts and configure runs, see configure's option --config-cache.
21624 # It is not useful on other systems.  If it contains results you don't
21625 # want to keep, you may remove or edit it.
21626 #
21627 # config.status only pays attention to the cache file if you give it
21628 # the --recheck option to rerun configure.
21629 #
21630 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21631 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21632 # following values.
21633
21634 _ACEOF
21635
21636 # The following way of writing the cache mishandles newlines in values,
21637 # but we know of no workaround that is simple, portable, and efficient.
21638 # So, we kill variables containing newlines.
21639 # Ultrix sh set writes to stderr and can't be redirected directly,
21640 # and sets the high bit in the cache file unless we assign to the vars.
21641 (
21642   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21643     eval ac_val=\$$ac_var
21644     case $ac_val in #(
21645     *${as_nl}*)
21646       case $ac_var in #(
21647       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21648 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21649       esac
21650       case $ac_var in #(
21651       _ | IFS | as_nl) ;; #(
21652       *) $as_unset $ac_var ;;
21653       esac ;;
21654     esac
21655   done
21656
21657   (set) 2>&1 |
21658     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21659     *${as_nl}ac_space=\ *)
21660       # `set' does not quote correctly, so add quotes (double-quote
21661       # substitution turns \\\\ into \\, and sed turns \\ into \).
21662       sed -n \
21663         "s/'/'\\\\''/g;
21664           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21665       ;; #(
21666     *)
21667       # `set' quotes correctly as required by POSIX, so do not add quotes.
21668       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21669       ;;
21670     esac |
21671     sort
21672 ) |
21673   sed '
21674      /^ac_cv_env_/b end
21675      t clear
21676      :clear
21677      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21678      t end
21679      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21680      :end' >>confcache
21681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21682   if test -w "$cache_file"; then
21683     test "x$cache_file" != "x/dev/null" &&
21684       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21685 echo "$as_me: updating cache $cache_file" >&6;}
21686     cat confcache >$cache_file
21687   else
21688     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21689 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21690   fi
21691 fi
21692 rm -f confcache
21693
21694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21695 # Let make expand exec_prefix.
21696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21697
21698 DEFS=-DHAVE_CONFIG_H
21699
21700 ac_libobjs=
21701 ac_ltlibobjs=
21702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21703   # 1. Remove the extension, and $U if already installed.
21704   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21705   ac_i=`echo "$ac_i" | sed "$ac_script"`
21706   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21707   #    will be set to the directory where LIBOBJS objects are built.
21708   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21709   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21710 done
21711 LIBOBJS=$ac_libobjs
21712
21713 LTLIBOBJS=$ac_ltlibobjs
21714
21715
21716 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21717   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21718 Usually this means the macro was only invoked conditionally." >&5
21719 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21720 Usually this means the macro was only invoked conditionally." >&2;}
21721    { (exit 1); exit 1; }; }
21722 fi
21723 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21724   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21725 Usually this means the macro was only invoked conditionally." >&5
21726 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&2;}
21728    { (exit 1); exit 1; }; }
21729 fi
21730
21731 : ${CONFIG_STATUS=./config.status}
21732 ac_clean_files_save=$ac_clean_files
21733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21736 cat >$CONFIG_STATUS <<_ACEOF
21737 #! $SHELL
21738 # Generated by $as_me.
21739 # Run this file to recreate the current configuration.
21740 # Compiler output produced by configure, useful for debugging
21741 # configure, is in config.log if it exists.
21742
21743 debug=false
21744 ac_cs_recheck=false
21745 ac_cs_silent=false
21746 SHELL=\${CONFIG_SHELL-$SHELL}
21747 _ACEOF
21748
21749 cat >>$CONFIG_STATUS <<\_ACEOF
21750 ## --------------------- ##
21751 ## M4sh Initialization.  ##
21752 ## --------------------- ##
21753
21754 # Be Bourne compatible
21755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21756   emulate sh
21757   NULLCMD=:
21758   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21759   # is contrary to our usage.  Disable this feature.
21760   alias -g '${1+"$@"}'='"$@"'
21761   setopt NO_GLOB_SUBST
21762 else
21763   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21764 fi
21765 BIN_SH=xpg4; export BIN_SH # for Tru64
21766 DUALCASE=1; export DUALCASE # for MKS sh
21767
21768
21769 # PATH needs CR
21770 # Avoid depending upon Character Ranges.
21771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21774 as_cr_digits='0123456789'
21775 as_cr_alnum=$as_cr_Letters$as_cr_digits
21776
21777 # The user is always right.
21778 if test "${PATH_SEPARATOR+set}" != set; then
21779   echo "#! /bin/sh" >conf$$.sh
21780   echo  "exit 0"   >>conf$$.sh
21781   chmod +x conf$$.sh
21782   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21783     PATH_SEPARATOR=';'
21784   else
21785     PATH_SEPARATOR=:
21786   fi
21787   rm -f conf$$.sh
21788 fi
21789
21790 # Support unset when possible.
21791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21792   as_unset=unset
21793 else
21794   as_unset=false
21795 fi
21796
21797
21798 # IFS
21799 # We need space, tab and new line, in precisely that order.  Quoting is
21800 # there to prevent editors from complaining about space-tab.
21801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21802 # splitting by setting IFS to empty value.)
21803 as_nl='
21804 '
21805 IFS=" ""        $as_nl"
21806
21807 # Find who we are.  Look in the path if we contain no directory separator.
21808 case $0 in
21809   *[\\/]* ) as_myself=$0 ;;
21810   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21811 for as_dir in $PATH
21812 do
21813   IFS=$as_save_IFS
21814   test -z "$as_dir" && as_dir=.
21815   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21816 done
21817 IFS=$as_save_IFS
21818
21819      ;;
21820 esac
21821 # We did not find ourselves, most probably we were run as `sh COMMAND'
21822 # in which case we are not to be found in the path.
21823 if test "x$as_myself" = x; then
21824   as_myself=$0
21825 fi
21826 if test ! -f "$as_myself"; then
21827   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21828   { (exit 1); exit 1; }
21829 fi
21830
21831 # Work around bugs in pre-3.0 UWIN ksh.
21832 for as_var in ENV MAIL MAILPATH
21833 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21834 done
21835 PS1='$ '
21836 PS2='> '
21837 PS4='+ '
21838
21839 # NLS nuisances.
21840 for as_var in \
21841   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21842   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21843   LC_TELEPHONE LC_TIME
21844 do
21845   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21846     eval $as_var=C; export $as_var
21847   else
21848     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21849   fi
21850 done
21851
21852 # Required to use basename.
21853 if expr a : '\(a\)' >/dev/null 2>&1 &&
21854    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21855   as_expr=expr
21856 else
21857   as_expr=false
21858 fi
21859
21860 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21861   as_basename=basename
21862 else
21863   as_basename=false
21864 fi
21865
21866
21867 # Name of the executable.
21868 as_me=`$as_basename -- "$0" ||
21869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21870          X"$0" : 'X\(//\)$' \| \
21871          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21872 echo X/"$0" |
21873     sed '/^.*\/\([^/][^/]*\)\/*$/{
21874             s//\1/
21875             q
21876           }
21877           /^X\/\(\/\/\)$/{
21878             s//\1/
21879             q
21880           }
21881           /^X\/\(\/\).*/{
21882             s//\1/
21883             q
21884           }
21885           s/.*/./; q'`
21886
21887 # CDPATH.
21888 $as_unset CDPATH
21889
21890
21891
21892   as_lineno_1=$LINENO
21893   as_lineno_2=$LINENO
21894   test "x$as_lineno_1" != "x$as_lineno_2" &&
21895   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21896
21897   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21898   # uniformly replaced by the line number.  The first 'sed' inserts a
21899   # line-number line after each line using $LINENO; the second 'sed'
21900   # does the real work.  The second script uses 'N' to pair each
21901   # line-number line with the line containing $LINENO, and appends
21902   # trailing '-' during substitution so that $LINENO is not a special
21903   # case at line end.
21904   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21905   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21906   # E. McMahon (1931-1989) for sed's syntax.  :-)
21907   sed -n '
21908     p
21909     /[$]LINENO/=
21910   ' <$as_myself |
21911     sed '
21912       s/[$]LINENO.*/&-/
21913       t lineno
21914       b
21915       :lineno
21916       N
21917       :loop
21918       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21919       t loop
21920       s/-\n.*//
21921     ' >$as_me.lineno &&
21922   chmod +x "$as_me.lineno" ||
21923     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21924    { (exit 1); exit 1; }; }
21925
21926   # Don't try to exec as it changes $[0], causing all sort of problems
21927   # (the dirname of $[0] is not the place where we might find the
21928   # original and so on.  Autoconf is especially sensitive to this).
21929   . "./$as_me.lineno"
21930   # Exit status is that of the last command.
21931   exit
21932 }
21933
21934
21935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21936   as_dirname=dirname
21937 else
21938   as_dirname=false
21939 fi
21940
21941 ECHO_C= ECHO_N= ECHO_T=
21942 case `echo -n x` in
21943 -n*)
21944   case `echo 'x\c'` in
21945   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21946   *)   ECHO_C='\c';;
21947   esac;;
21948 *)
21949   ECHO_N='-n';;
21950 esac
21951
21952 if expr a : '\(a\)' >/dev/null 2>&1 &&
21953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21954   as_expr=expr
21955 else
21956   as_expr=false
21957 fi
21958
21959 rm -f conf$$ conf$$.exe conf$$.file
21960 if test -d conf$$.dir; then
21961   rm -f conf$$.dir/conf$$.file
21962 else
21963   rm -f conf$$.dir
21964   mkdir conf$$.dir
21965 fi
21966 echo >conf$$.file
21967 if ln -s conf$$.file conf$$ 2>/dev/null; then
21968   as_ln_s='ln -s'
21969   # ... but there are two gotchas:
21970   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21971   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21972   # In both cases, we have to default to `cp -p'.
21973   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21974     as_ln_s='cp -p'
21975 elif ln conf$$.file conf$$ 2>/dev/null; then
21976   as_ln_s=ln
21977 else
21978   as_ln_s='cp -p'
21979 fi
21980 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21981 rmdir conf$$.dir 2>/dev/null
21982
21983 if mkdir -p . 2>/dev/null; then
21984   as_mkdir_p=:
21985 else
21986   test -d ./-p && rmdir ./-p
21987   as_mkdir_p=false
21988 fi
21989
21990 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21991 # systems may use methods other than mode bits to determine executability.
21992 cat >conf$$.file <<_ASEOF
21993 #! /bin/sh
21994 exit 0
21995 _ASEOF
21996 chmod +x conf$$.file
21997 if test -x conf$$.file >/dev/null 2>&1; then
21998   as_executable_p="test -x"
21999 else
22000   as_executable_p=:
22001 fi
22002 rm -f conf$$.file
22003
22004 # Sed expression to map a string onto a valid CPP name.
22005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22006
22007 # Sed expression to map a string onto a valid variable name.
22008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22009
22010
22011 exec 6>&1
22012
22013 # Save the log message, to keep $[0] and so on meaningful, and to
22014 # report actual input values of CONFIG_FILES etc. instead of their
22015 # values after options handling.
22016 ac_log="
22017 This file was extended by LLVM $as_me 3.3svn, which was
22018 generated by GNU Autoconf 2.60.  Invocation command line was
22019
22020   CONFIG_FILES    = $CONFIG_FILES
22021   CONFIG_HEADERS  = $CONFIG_HEADERS
22022   CONFIG_LINKS    = $CONFIG_LINKS
22023   CONFIG_COMMANDS = $CONFIG_COMMANDS
22024   $ $0 $@
22025
22026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22027 "
22028
22029 _ACEOF
22030
22031 cat >>$CONFIG_STATUS <<_ACEOF
22032 # Files that config.status was made for.
22033 config_files="$ac_config_files"
22034 config_headers="$ac_config_headers"
22035 config_commands="$ac_config_commands"
22036
22037 _ACEOF
22038
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 ac_cs_usage="\
22041 \`$as_me' instantiates files from templates according to the
22042 current configuration.
22043
22044 Usage: $0 [OPTIONS] [FILE]...
22045
22046   -h, --help       print this help, then exit
22047   -V, --version    print version number, then exit
22048   -q, --quiet      do not print progress messages
22049   -d, --debug      don't remove temporary files
22050       --recheck    update $as_me by reconfiguring in the same conditions
22051   --file=FILE[:TEMPLATE]
22052                    instantiate the configuration file FILE
22053   --header=FILE[:TEMPLATE]
22054                    instantiate the configuration header FILE
22055
22056 Configuration files:
22057 $config_files
22058
22059 Configuration headers:
22060 $config_headers
22061
22062 Configuration commands:
22063 $config_commands
22064
22065 Report bugs to <bug-autoconf@gnu.org>."
22066
22067 _ACEOF
22068 cat >>$CONFIG_STATUS <<_ACEOF
22069 ac_cs_version="\\
22070 LLVM config.status 3.3svn
22071 configured by $0, generated by GNU Autoconf 2.60,
22072   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22073
22074 Copyright (C) 2006 Free Software Foundation, Inc.
22075 This config.status script is free software; the Free Software Foundation
22076 gives unlimited permission to copy, distribute and modify it."
22077
22078 ac_pwd='$ac_pwd'
22079 srcdir='$srcdir'
22080 INSTALL='$INSTALL'
22081 _ACEOF
22082
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084 # If no file are specified by the user, then we need to provide default
22085 # value.  By we need to know if files were specified by the user.
22086 ac_need_defaults=:
22087 while test $# != 0
22088 do
22089   case $1 in
22090   --*=*)
22091     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22092     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22093     ac_shift=:
22094     ;;
22095   *)
22096     ac_option=$1
22097     ac_optarg=$2
22098     ac_shift=shift
22099     ;;
22100   esac
22101
22102   case $ac_option in
22103   # Handling of the options.
22104   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22105     ac_cs_recheck=: ;;
22106   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22107     echo "$ac_cs_version"; exit ;;
22108   --debug | --debu | --deb | --de | --d | -d )
22109     debug=: ;;
22110   --file | --fil | --fi | --f )
22111     $ac_shift
22112     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22113     ac_need_defaults=false;;
22114   --header | --heade | --head | --hea )
22115     $ac_shift
22116     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22117     ac_need_defaults=false;;
22118   --he | --h)
22119     # Conflict between --help and --header
22120     { echo "$as_me: error: ambiguous option: $1
22121 Try \`$0 --help' for more information." >&2
22122    { (exit 1); exit 1; }; };;
22123   --help | --hel | -h )
22124     echo "$ac_cs_usage"; exit ;;
22125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22126   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22127     ac_cs_silent=: ;;
22128
22129   # This is an error.
22130   -*) { echo "$as_me: error: unrecognized option: $1
22131 Try \`$0 --help' for more information." >&2
22132    { (exit 1); exit 1; }; } ;;
22133
22134   *) ac_config_targets="$ac_config_targets $1"
22135      ac_need_defaults=false ;;
22136
22137   esac
22138   shift
22139 done
22140
22141 ac_configure_extra_args=
22142
22143 if $ac_cs_silent; then
22144   exec 6>/dev/null
22145   ac_configure_extra_args="$ac_configure_extra_args --silent"
22146 fi
22147
22148 _ACEOF
22149 cat >>$CONFIG_STATUS <<_ACEOF
22150 if \$ac_cs_recheck; then
22151   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22152   CONFIG_SHELL=$SHELL
22153   export CONFIG_SHELL
22154   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22155 fi
22156
22157 _ACEOF
22158 cat >>$CONFIG_STATUS <<\_ACEOF
22159 exec 5>>config.log
22160 {
22161   echo
22162   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22163 ## Running $as_me. ##
22164 _ASBOX
22165   echo "$ac_log"
22166 } >&5
22167
22168 _ACEOF
22169 cat >>$CONFIG_STATUS <<_ACEOF
22170 #
22171 # INIT-COMMANDS
22172 #
22173 llvm_src="${srcdir}"
22174
22175 _ACEOF
22176
22177 cat >>$CONFIG_STATUS <<\_ACEOF
22178
22179 # Handling of arguments.
22180 for ac_config_target in $ac_config_targets
22181 do
22182   case $ac_config_target in
22183     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22184     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22185     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22186     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22187     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22188     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22189     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22190     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22191     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22192     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22193     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22194     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22195     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22196     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22197     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22198     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22199     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22200     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22201     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22202     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22203     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22204     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22205     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22206     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22207     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22208     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22209     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22210
22211   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22213    { (exit 1); exit 1; }; };;
22214   esac
22215 done
22216
22217
22218 # If the user did not use the arguments to specify the items to instantiate,
22219 # then the envvar interface is used.  Set only those that are not.
22220 # We use the long form for the default assignment because of an extremely
22221 # bizarre bug on SunOS 4.1.3.
22222 if $ac_need_defaults; then
22223   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22224   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22225   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22226 fi
22227
22228 # Have a temporary directory for convenience.  Make it in the build tree
22229 # simply because there is no reason against having it here, and in addition,
22230 # creating and moving files from /tmp can sometimes cause problems.
22231 # Hook for its removal unless debugging.
22232 # Note that there is a small window in which the directory will not be cleaned:
22233 # after its creation but before its name has been assigned to `$tmp'.
22234 $debug ||
22235 {
22236   tmp=
22237   trap 'exit_status=$?
22238   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22239 ' 0
22240   trap '{ (exit 1); exit 1; }' 1 2 13 15
22241 }
22242 # Create a (secure) tmp directory for tmp files.
22243
22244 {
22245   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22246   test -n "$tmp" && test -d "$tmp"
22247 }  ||
22248 {
22249   tmp=./conf$$-$RANDOM
22250   (umask 077 && mkdir "$tmp")
22251 } ||
22252 {
22253    echo "$me: cannot create a temporary directory in ." >&2
22254    { (exit 1); exit 1; }
22255 }
22256
22257 #
22258 # Set up the sed scripts for CONFIG_FILES section.
22259 #
22260
22261 # No need to generate the scripts if there are no CONFIG_FILES.
22262 # This happens for instance when ./config.status config.h
22263 if test -n "$CONFIG_FILES"; then
22264
22265 _ACEOF
22266
22267
22268
22269 ac_delim='%!_!# '
22270 for ac_last_try in false false false false false :; do
22271   cat >conf$$subs.sed <<_ACEOF
22272 SHELL!$SHELL$ac_delim
22273 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22274 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22275 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22276 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22277 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22278 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22279 exec_prefix!$exec_prefix$ac_delim
22280 prefix!$prefix$ac_delim
22281 program_transform_name!$program_transform_name$ac_delim
22282 bindir!$bindir$ac_delim
22283 sbindir!$sbindir$ac_delim
22284 libexecdir!$libexecdir$ac_delim
22285 datarootdir!$datarootdir$ac_delim
22286 datadir!$datadir$ac_delim
22287 sysconfdir!$sysconfdir$ac_delim
22288 sharedstatedir!$sharedstatedir$ac_delim
22289 localstatedir!$localstatedir$ac_delim
22290 includedir!$includedir$ac_delim
22291 oldincludedir!$oldincludedir$ac_delim
22292 docdir!$docdir$ac_delim
22293 infodir!$infodir$ac_delim
22294 htmldir!$htmldir$ac_delim
22295 dvidir!$dvidir$ac_delim
22296 pdfdir!$pdfdir$ac_delim
22297 psdir!$psdir$ac_delim
22298 libdir!$libdir$ac_delim
22299 localedir!$localedir$ac_delim
22300 mandir!$mandir$ac_delim
22301 DEFS!$DEFS$ac_delim
22302 ECHO_C!$ECHO_C$ac_delim
22303 ECHO_N!$ECHO_N$ac_delim
22304 ECHO_T!$ECHO_T$ac_delim
22305 LIBS!$LIBS$ac_delim
22306 build_alias!$build_alias$ac_delim
22307 host_alias!$host_alias$ac_delim
22308 target_alias!$target_alias$ac_delim
22309 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22310 CC!$CC$ac_delim
22311 CFLAGS!$CFLAGS$ac_delim
22312 LDFLAGS!$LDFLAGS$ac_delim
22313 CPPFLAGS!$CPPFLAGS$ac_delim
22314 ac_ct_CC!$ac_ct_CC$ac_delim
22315 EXEEXT!$EXEEXT$ac_delim
22316 OBJEXT!$OBJEXT$ac_delim
22317 CXX!$CXX$ac_delim
22318 CXXFLAGS!$CXXFLAGS$ac_delim
22319 ac_ct_CXX!$ac_ct_CXX$ac_delim
22320 CPP!$CPP$ac_delim
22321 subdirs!$subdirs$ac_delim
22322 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22323 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22324 build!$build$ac_delim
22325 build_cpu!$build_cpu$ac_delim
22326 build_vendor!$build_vendor$ac_delim
22327 build_os!$build_os$ac_delim
22328 host!$host$ac_delim
22329 host_cpu!$host_cpu$ac_delim
22330 host_vendor!$host_vendor$ac_delim
22331 host_os!$host_os$ac_delim
22332 target!$target$ac_delim
22333 target_cpu!$target_cpu$ac_delim
22334 target_vendor!$target_vendor$ac_delim
22335 target_os!$target_os$ac_delim
22336 OS!$OS$ac_delim
22337 HOST_OS!$HOST_OS$ac_delim
22338 TARGET_OS!$TARGET_OS$ac_delim
22339 LINKALL!$LINKALL$ac_delim
22340 NOLINKALL!$NOLINKALL$ac_delim
22341 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22342 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22343 ARCH!$ARCH$ac_delim
22344 HOST_ARCH!$HOST_ARCH$ac_delim
22345 ENDIAN!$ENDIAN$ac_delim
22346 GREP!$GREP$ac_delim
22347 EGREP!$EGREP$ac_delim
22348 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22349 BUILD_CC!$BUILD_CC$ac_delim
22350 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22351 BUILD_CXX!$BUILD_CXX$ac_delim
22352 CVSBUILD!$CVSBUILD$ac_delim
22353 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22354 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22355 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22356 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22357 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22358 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22359 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22360 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22361 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22362 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22363 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22364 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22365 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22366 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22367 JIT!$JIT$ac_delim
22368 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22369 _ACEOF
22370
22371   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22372     break
22373   elif $ac_last_try; then
22374     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22375 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22376    { (exit 1); exit 1; }; }
22377   else
22378     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22379   fi
22380 done
22381
22382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22383 if test -n "$ac_eof"; then
22384   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22385   ac_eof=`expr $ac_eof + 1`
22386 fi
22387
22388 cat >>$CONFIG_STATUS <<_ACEOF
22389 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22391 _ACEOF
22392 sed '
22393 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22394 s/^/s,@/; s/!/@,|#_!!_#|/
22395 :n
22396 t n
22397 s/'"$ac_delim"'$/,g/; t
22398 s/$/\\/; p
22399 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22400 ' >>$CONFIG_STATUS <conf$$subs.sed
22401 rm -f conf$$subs.sed
22402 cat >>$CONFIG_STATUS <<_ACEOF
22403 CEOF$ac_eof
22404 _ACEOF
22405
22406
22407 ac_delim='%!_!# '
22408 for ac_last_try in false false false false false :; do
22409   cat >conf$$subs.sed <<_ACEOF
22410 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22411 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22412 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22413 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22414 ENABLE_PIC!$ENABLE_PIC$ac_delim
22415 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22416 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22417 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22418 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22419 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22420 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22421 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22422 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22423 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22424 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22425 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22426 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22427 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22428 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22429 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22430 NM!$NM$ac_delim
22431 ifGNUmake!$ifGNUmake$ac_delim
22432 LN_S!$LN_S$ac_delim
22433 CMP!$CMP$ac_delim
22434 CP!$CP$ac_delim
22435 DATE!$DATE$ac_delim
22436 FIND!$FIND$ac_delim
22437 MKDIR!$MKDIR$ac_delim
22438 MV!$MV$ac_delim
22439 RANLIB!$RANLIB$ac_delim
22440 AR!$AR$ac_delim
22441 RM!$RM$ac_delim
22442 SED!$SED$ac_delim
22443 TAR!$TAR$ac_delim
22444 BINPWD!$BINPWD$ac_delim
22445 GRAPHVIZ!$GRAPHVIZ$ac_delim
22446 DOT!$DOT$ac_delim
22447 FDP!$FDP$ac_delim
22448 NEATO!$NEATO$ac_delim
22449 TWOPI!$TWOPI$ac_delim
22450 CIRCO!$CIRCO$ac_delim
22451 GV!$GV$ac_delim
22452 DOTTY!$DOTTY$ac_delim
22453 XDOT_PY!$XDOT_PY$ac_delim
22454 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22455 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22456 INSTALL_DATA!$INSTALL_DATA$ac_delim
22457 BZIP2!$BZIP2$ac_delim
22458 CAT!$CAT$ac_delim
22459 DOXYGEN!$DOXYGEN$ac_delim
22460 GROFF!$GROFF$ac_delim
22461 GZIPBIN!$GZIPBIN$ac_delim
22462 PDFROFF!$PDFROFF$ac_delim
22463 ZIP!$ZIP$ac_delim
22464 OCAMLC!$OCAMLC$ac_delim
22465 OCAMLOPT!$OCAMLOPT$ac_delim
22466 OCAMLDEP!$OCAMLDEP$ac_delim
22467 OCAMLDOC!$OCAMLDOC$ac_delim
22468 GAS!$GAS$ac_delim
22469 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22470 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22471 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22472 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22473 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22474 LIBADD_DL!$LIBADD_DL$ac_delim
22475 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22476 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22477 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22478 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22479 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22480 PYTHON!$PYTHON$ac_delim
22481 USE_UDIS86!$USE_UDIS86$ac_delim
22482 USE_OPROFILE!$USE_OPROFILE$ac_delim
22483 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22484 XML2CONFIG!$XML2CONFIG$ac_delim
22485 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22486 LIBXML2_INC!$LIBXML2_INC$ac_delim
22487 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22488 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22489 MMAP_FILE!$MMAP_FILE$ac_delim
22490 SHLIBEXT!$SHLIBEXT$ac_delim
22491 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22492 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22493 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22494 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22495 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22496 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22497 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22498 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22499 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22500 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22501 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22502 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22503 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22504 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22505 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22506 RPATH!$RPATH$ac_delim
22507 _ACEOF
22508
22509   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22510     break
22511   elif $ac_last_try; then
22512     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22514    { (exit 1); exit 1; }; }
22515   else
22516     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22517   fi
22518 done
22519
22520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22521 if test -n "$ac_eof"; then
22522   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22523   ac_eof=`expr $ac_eof + 1`
22524 fi
22525
22526 cat >>$CONFIG_STATUS <<_ACEOF
22527 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22529 _ACEOF
22530 sed '
22531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22532 s/^/s,@/; s/!/@,|#_!!_#|/
22533 :n
22534 t n
22535 s/'"$ac_delim"'$/,g/; t
22536 s/$/\\/; p
22537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22538 ' >>$CONFIG_STATUS <conf$$subs.sed
22539 rm -f conf$$subs.sed
22540 cat >>$CONFIG_STATUS <<_ACEOF
22541 CEOF$ac_eof
22542 _ACEOF
22543
22544
22545 ac_delim='%!_!# '
22546 for ac_last_try in false false false false false :; do
22547   cat >conf$$subs.sed <<_ACEOF
22548 RDYNAMIC!$RDYNAMIC$ac_delim
22549 program_prefix!$program_prefix$ac_delim
22550 LIBOBJS!$LIBOBJS$ac_delim
22551 LTLIBOBJS!$LTLIBOBJS$ac_delim
22552 _ACEOF
22553
22554   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22555     break
22556   elif $ac_last_try; then
22557     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22559    { (exit 1); exit 1; }; }
22560   else
22561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22562   fi
22563 done
22564
22565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22566 if test -n "$ac_eof"; then
22567   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22568   ac_eof=`expr $ac_eof + 1`
22569 fi
22570
22571 cat >>$CONFIG_STATUS <<_ACEOF
22572 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22574 _ACEOF
22575 sed '
22576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22577 s/^/s,@/; s/!/@,|#_!!_#|/
22578 :n
22579 t n
22580 s/'"$ac_delim"'$/,g/; t
22581 s/$/\\/; p
22582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22583 ' >>$CONFIG_STATUS <conf$$subs.sed
22584 rm -f conf$$subs.sed
22585 cat >>$CONFIG_STATUS <<_ACEOF
22586 :end
22587 s/|#_!!_#|//g
22588 CEOF$ac_eof
22589 _ACEOF
22590
22591
22592 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22593 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22594 # trailing colons and then remove the whole line if VPATH becomes empty
22595 # (actually we leave an empty line to preserve line numbers).
22596 if test "x$srcdir" = x.; then
22597   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22598 s/:*\$(srcdir):*/:/
22599 s/:*\${srcdir}:*/:/
22600 s/:*@srcdir@:*/:/
22601 s/^\([^=]*=[     ]*\):*/\1/
22602 s/:*$//
22603 s/^[^=]*=[       ]*$//
22604 }'
22605 fi
22606
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22608 fi # test -n "$CONFIG_FILES"
22609
22610
22611 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22612 do
22613   case $ac_tag in
22614   :[FHLC]) ac_mode=$ac_tag; continue;;
22615   esac
22616   case $ac_mode$ac_tag in
22617   :[FHL]*:*);;
22618   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22619 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22620    { (exit 1); exit 1; }; };;
22621   :[FH]-) ac_tag=-:-;;
22622   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22623   esac
22624   ac_save_IFS=$IFS
22625   IFS=:
22626   set x $ac_tag
22627   IFS=$ac_save_IFS
22628   shift
22629   ac_file=$1
22630   shift
22631
22632   case $ac_mode in
22633   :L) ac_source=$1;;
22634   :[FH])
22635     ac_file_inputs=
22636     for ac_f
22637     do
22638       case $ac_f in
22639       -) ac_f="$tmp/stdin";;
22640       *) # Look for the file first in the build tree, then in the source tree
22641          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22642          # because $ac_f cannot contain `:'.
22643          test -f "$ac_f" ||
22644            case $ac_f in
22645            [\\/$]*) false;;
22646            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22647            esac ||
22648            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22649 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22650    { (exit 1); exit 1; }; };;
22651       esac
22652       ac_file_inputs="$ac_file_inputs $ac_f"
22653     done
22654
22655     # Let's still pretend it is `configure' which instantiates (i.e., don't
22656     # use $as_me), people would be surprised to read:
22657     #    /* config.h.  Generated by config.status.  */
22658     configure_input="Generated from "`IFS=:
22659           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22660     if test x"$ac_file" != x-; then
22661       configure_input="$ac_file.  $configure_input"
22662       { echo "$as_me:$LINENO: creating $ac_file" >&5
22663 echo "$as_me: creating $ac_file" >&6;}
22664     fi
22665
22666     case $ac_tag in
22667     *:-:* | *:-) cat >"$tmp/stdin";;
22668     esac
22669     ;;
22670   esac
22671
22672   ac_dir=`$as_dirname -- "$ac_file" ||
22673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22674          X"$ac_file" : 'X\(//\)[^/]' \| \
22675          X"$ac_file" : 'X\(//\)$' \| \
22676          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22677 echo X"$ac_file" |
22678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22679             s//\1/
22680             q
22681           }
22682           /^X\(\/\/\)[^/].*/{
22683             s//\1/
22684             q
22685           }
22686           /^X\(\/\/\)$/{
22687             s//\1/
22688             q
22689           }
22690           /^X\(\/\).*/{
22691             s//\1/
22692             q
22693           }
22694           s/.*/./; q'`
22695   { as_dir="$ac_dir"
22696   case $as_dir in #(
22697   -*) as_dir=./$as_dir;;
22698   esac
22699   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22700     as_dirs=
22701     while :; do
22702       case $as_dir in #(
22703       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22704       *) as_qdir=$as_dir;;
22705       esac
22706       as_dirs="'$as_qdir' $as_dirs"
22707       as_dir=`$as_dirname -- "$as_dir" ||
22708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22709          X"$as_dir" : 'X\(//\)[^/]' \| \
22710          X"$as_dir" : 'X\(//\)$' \| \
22711          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22712 echo X"$as_dir" |
22713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22714             s//\1/
22715             q
22716           }
22717           /^X\(\/\/\)[^/].*/{
22718             s//\1/
22719             q
22720           }
22721           /^X\(\/\/\)$/{
22722             s//\1/
22723             q
22724           }
22725           /^X\(\/\).*/{
22726             s//\1/
22727             q
22728           }
22729           s/.*/./; q'`
22730       test -d "$as_dir" && break
22731     done
22732     test -z "$as_dirs" || eval "mkdir $as_dirs"
22733   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22734 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22735    { (exit 1); exit 1; }; }; }
22736   ac_builddir=.
22737
22738 case "$ac_dir" in
22739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22740 *)
22741   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22742   # A ".." for each directory in $ac_dir_suffix.
22743   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22744   case $ac_top_builddir_sub in
22745   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22746   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22747   esac ;;
22748 esac
22749 ac_abs_top_builddir=$ac_pwd
22750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22751 # for backward compatibility:
22752 ac_top_builddir=$ac_top_build_prefix
22753
22754 case $srcdir in
22755   .)  # We are building in place.
22756     ac_srcdir=.
22757     ac_top_srcdir=$ac_top_builddir_sub
22758     ac_abs_top_srcdir=$ac_pwd ;;
22759   [\\/]* | ?:[\\/]* )  # Absolute name.
22760     ac_srcdir=$srcdir$ac_dir_suffix;
22761     ac_top_srcdir=$srcdir
22762     ac_abs_top_srcdir=$srcdir ;;
22763   *) # Relative name.
22764     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22765     ac_top_srcdir=$ac_top_build_prefix$srcdir
22766     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22767 esac
22768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22769
22770
22771   case $ac_mode in
22772   :F)
22773   #
22774   # CONFIG_FILE
22775   #
22776
22777   case $INSTALL in
22778   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22779   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22780   esac
22781 _ACEOF
22782
22783 cat >>$CONFIG_STATUS <<\_ACEOF
22784 # If the template does not know about datarootdir, expand it.
22785 # FIXME: This hack should be removed a few years after 2.60.
22786 ac_datarootdir_hack=; ac_datarootdir_seen=
22787
22788 case `sed -n '/datarootdir/ {
22789   p
22790   q
22791 }
22792 /@datadir@/p
22793 /@docdir@/p
22794 /@infodir@/p
22795 /@localedir@/p
22796 /@mandir@/p
22797 ' $ac_file_inputs` in
22798 *datarootdir*) ac_datarootdir_seen=yes;;
22799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22800   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22801 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22802 _ACEOF
22803 cat >>$CONFIG_STATUS <<_ACEOF
22804   ac_datarootdir_hack='
22805   s&@datadir@&$datadir&g
22806   s&@docdir@&$docdir&g
22807   s&@infodir@&$infodir&g
22808   s&@localedir@&$localedir&g
22809   s&@mandir@&$mandir&g
22810     s&\\\${datarootdir}&$datarootdir&g' ;;
22811 esac
22812 _ACEOF
22813
22814 # Neutralize VPATH when `$srcdir' = `.'.
22815 # Shell code in configure.ac might set extrasub.
22816 # FIXME: do we really want to maintain this feature?
22817 cat >>$CONFIG_STATUS <<_ACEOF
22818   sed "$ac_vpsub
22819 $extrasub
22820 _ACEOF
22821 cat >>$CONFIG_STATUS <<\_ACEOF
22822 :t
22823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22824 s&@configure_input@&$configure_input&;t t
22825 s&@top_builddir@&$ac_top_builddir_sub&;t t
22826 s&@srcdir@&$ac_srcdir&;t t
22827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22828 s&@top_srcdir@&$ac_top_srcdir&;t t
22829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22830 s&@builddir@&$ac_builddir&;t t
22831 s&@abs_builddir@&$ac_abs_builddir&;t t
22832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22833 s&@INSTALL@&$ac_INSTALL&;t t
22834 $ac_datarootdir_hack
22835 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22836
22837 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22838   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22839   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22840   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22841 which seems to be undefined.  Please make sure it is defined." >&5
22842 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22843 which seems to be undefined.  Please make sure it is defined." >&2;}
22844
22845   rm -f "$tmp/stdin"
22846   case $ac_file in
22847   -) cat "$tmp/out"; rm -f "$tmp/out";;
22848   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22849   esac
22850  ;;
22851   :H)
22852   #
22853   # CONFIG_HEADER
22854   #
22855 _ACEOF
22856
22857 # Transform confdefs.h into a sed script `conftest.defines', that
22858 # substitutes the proper values into config.h.in to produce config.h.
22859 rm -f conftest.defines conftest.tail
22860 # First, append a space to every undef/define line, to ease matching.
22861 echo 's/$/ /' >conftest.defines
22862 # Then, protect against being on the right side of a sed subst, or in
22863 # an unquoted here document, in config.status.  If some macros were
22864 # called several times there might be several #defines for the same
22865 # symbol, which is useless.  But do not sort them, since the last
22866 # AC_DEFINE must be honored.
22867 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22868 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22869 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22870 # PARAMS is the parameter list in the macro definition--in most cases, it's
22871 # just an empty string.
22872 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22873 ac_dB='\\)[      (].*,\\1define\\2'
22874 ac_dC=' '
22875 ac_dD=' ,'
22876
22877 uniq confdefs.h |
22878   sed -n '
22879         t rset
22880         :rset
22881         s/^[     ]*#[    ]*define[       ][      ]*//
22882         t ok
22883         d
22884         :ok
22885         s/[\\&,]/\\&/g
22886         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22887         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22888   ' >>conftest.defines
22889
22890 # Remove the space that was appended to ease matching.
22891 # Then replace #undef with comments.  This is necessary, for
22892 # example, in the case of _POSIX_SOURCE, which is predefined and required
22893 # on some systems where configure will not decide to define it.
22894 # (The regexp can be short, since the line contains either #define or #undef.)
22895 echo 's/ $//
22896 s,^[     #]*u.*,/* & */,' >>conftest.defines
22897
22898 # Break up conftest.defines:
22899 ac_max_sed_lines=50
22900
22901 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22902 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22903 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22904 # et cetera.
22905 ac_in='$ac_file_inputs'
22906 ac_out='"$tmp/out1"'
22907 ac_nxt='"$tmp/out2"'
22908
22909 while :
22910 do
22911   # Write a here document:
22912     cat >>$CONFIG_STATUS <<_ACEOF
22913     # First, check the format of the line:
22914     cat >"\$tmp/defines.sed" <<\\CEOF
22915 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22916 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22917 b
22918 :def
22919 _ACEOF
22920   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22921   echo 'CEOF
22922     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22923   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22924   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22925   grep . conftest.tail >/dev/null || break
22926   rm -f conftest.defines
22927   mv conftest.tail conftest.defines
22928 done
22929 rm -f conftest.defines conftest.tail
22930
22931 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22932 cat >>$CONFIG_STATUS <<\_ACEOF
22933   if test x"$ac_file" != x-; then
22934     echo "/* $configure_input  */" >"$tmp/config.h"
22935     cat "$ac_result" >>"$tmp/config.h"
22936     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22937       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22938 echo "$as_me: $ac_file is unchanged" >&6;}
22939     else
22940       rm -f $ac_file
22941       mv "$tmp/config.h" $ac_file
22942     fi
22943   else
22944     echo "/* $configure_input  */"
22945     cat "$ac_result"
22946   fi
22947   rm -f "$tmp/out12"
22948  ;;
22949
22950   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22951 echo "$as_me: executing $ac_file commands" >&6;}
22952  ;;
22953   esac
22954
22955
22956   case $ac_file$ac_mode in
22957     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22958    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22959     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22960    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22961     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22962    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22963     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22964    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22965     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22966    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22967     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22968    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22969     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22970    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22971     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22972    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22973     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22974    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22975     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22976    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22977     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22978    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22979     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22980    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22981     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22982    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22983
22984   esac
22985 done # for ac_tag
22986
22987
22988 { (exit 0); exit 0; }
22989 _ACEOF
22990 chmod +x $CONFIG_STATUS
22991 ac_clean_files=$ac_clean_files_save
22992
22993
22994 # configure is writing to config.log, and then calls config.status.
22995 # config.status does its own redirection, appending to config.log.
22996 # Unfortunately, on DOS this fails, as config.log is still kept open
22997 # by configure, so config.status won't be able to write to it; its
22998 # output is simply discarded.  So we exec the FD to /dev/null,
22999 # effectively closing config.log, so it can be properly (re)opened and
23000 # appended to by config.status.  When coming back to configure, we
23001 # need to make the FD available again.
23002 if test "$no_create" != yes; then
23003   ac_cs_success=:
23004   ac_config_status_args=
23005   test "$silent" = yes &&
23006     ac_config_status_args="$ac_config_status_args --quiet"
23007   exec 5>/dev/null
23008   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23009   exec 5>>config.log
23010   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23011   # would make configure fail if this is the last instruction.
23012   $ac_cs_success || { (exit 1); exit 1; }
23013 fi
23014
23015 #
23016 # CONFIG_SUBDIRS section.
23017 #
23018 if test "$no_recursion" != yes; then
23019
23020   # Remove --cache-file and --srcdir arguments so they do not pile up.
23021   ac_sub_configure_args=
23022   ac_prev=
23023   eval "set x $ac_configure_args"
23024   shift
23025   for ac_arg
23026   do
23027     if test -n "$ac_prev"; then
23028       ac_prev=
23029       continue
23030     fi
23031     case $ac_arg in
23032     -cache-file | --cache-file | --cache-fil | --cache-fi \
23033     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23034       ac_prev=cache_file ;;
23035     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23036     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23037     | --c=*)
23038       ;;
23039     --config-cache | -C)
23040       ;;
23041     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23042       ac_prev=srcdir ;;
23043     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23044       ;;
23045     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23046       ac_prev=prefix ;;
23047     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23048       ;;
23049     *)
23050       case $ac_arg in
23051       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23052       esac
23053       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23054     esac
23055   done
23056
23057   # Always prepend --prefix to ensure using the same prefix
23058   # in subdir configurations.
23059   ac_arg="--prefix=$prefix"
23060   case $ac_arg in
23061   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23062   esac
23063   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23064
23065   ac_popdir=`pwd`
23066   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23067
23068     # Do not complain, so a configure script can configure whichever
23069     # parts of a large source tree are present.
23070     test -d "$srcdir/$ac_dir" || continue
23071
23072     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23073     echo "$as_me:$LINENO: $ac_msg" >&5
23074     echo "$ac_msg" >&6
23075     { as_dir="$ac_dir"
23076   case $as_dir in #(
23077   -*) as_dir=./$as_dir;;
23078   esac
23079   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23080     as_dirs=
23081     while :; do
23082       case $as_dir in #(
23083       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23084       *) as_qdir=$as_dir;;
23085       esac
23086       as_dirs="'$as_qdir' $as_dirs"
23087       as_dir=`$as_dirname -- "$as_dir" ||
23088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089          X"$as_dir" : 'X\(//\)[^/]' \| \
23090          X"$as_dir" : 'X\(//\)$' \| \
23091          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23092 echo X"$as_dir" |
23093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23094             s//\1/
23095             q
23096           }
23097           /^X\(\/\/\)[^/].*/{
23098             s//\1/
23099             q
23100           }
23101           /^X\(\/\/\)$/{
23102             s//\1/
23103             q
23104           }
23105           /^X\(\/\).*/{
23106             s//\1/
23107             q
23108           }
23109           s/.*/./; q'`
23110       test -d "$as_dir" && break
23111     done
23112     test -z "$as_dirs" || eval "mkdir $as_dirs"
23113   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23114 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23115    { (exit 1); exit 1; }; }; }
23116     ac_builddir=.
23117
23118 case "$ac_dir" in
23119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23120 *)
23121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23122   # A ".." for each directory in $ac_dir_suffix.
23123   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23124   case $ac_top_builddir_sub in
23125   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23126   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23127   esac ;;
23128 esac
23129 ac_abs_top_builddir=$ac_pwd
23130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23131 # for backward compatibility:
23132 ac_top_builddir=$ac_top_build_prefix
23133
23134 case $srcdir in
23135   .)  # We are building in place.
23136     ac_srcdir=.
23137     ac_top_srcdir=$ac_top_builddir_sub
23138     ac_abs_top_srcdir=$ac_pwd ;;
23139   [\\/]* | ?:[\\/]* )  # Absolute name.
23140     ac_srcdir=$srcdir$ac_dir_suffix;
23141     ac_top_srcdir=$srcdir
23142     ac_abs_top_srcdir=$srcdir ;;
23143   *) # Relative name.
23144     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23145     ac_top_srcdir=$ac_top_build_prefix$srcdir
23146     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23147 esac
23148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23149
23150
23151     cd "$ac_dir"
23152
23153     # Check for guested configure; otherwise get Cygnus style configure.
23154     if test -f "$ac_srcdir/configure.gnu"; then
23155       ac_sub_configure=$ac_srcdir/configure.gnu
23156     elif test -f "$ac_srcdir/configure"; then
23157       ac_sub_configure=$ac_srcdir/configure
23158     elif test -f "$ac_srcdir/configure.in"; then
23159       # This should be Cygnus configure.
23160       ac_sub_configure=$ac_aux_dir/configure
23161     else
23162       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23164       ac_sub_configure=
23165     fi
23166
23167     # The recursion is here.
23168     if test -n "$ac_sub_configure"; then
23169       # Make the cache file name correct relative to the subdirectory.
23170       case $cache_file in
23171       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23172       *) # Relative name.
23173         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23174       esac
23175
23176       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23177 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23178       # The eval makes quoting arguments work.
23179       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23180            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23181         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23182 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23183    { (exit 1); exit 1; }; }
23184     fi
23185
23186     cd "$ac_popdir"
23187   done
23188 fi
23189