Allow overriding the location of C/C++ compilers in Android CMake build.
[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.4svn.
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.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
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 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package| sed 's/-/_/g'`
1157     eval with_$ac_package=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1411   --enable-clang-static-analyzer
1412                           Enable building of clang Static Analyzer (default is
1413                           YES)
1414   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415   --enable-optimized      Compile with optimizations enabled (default is NO)
1416   --enable-profiling      Compile with profiling enabled (default is NO)
1417   --enable-assertions     Compile with assertion checks enabled (default is
1418                           YES)
1419   --enable-werror         Compile with -Werror enabled (default is NO)
1420   --enable-expensive-checks
1421                           Compile with expensive debug checks enabled (default
1422                           is NO)
1423   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1424                           NO)
1425   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1426                           optimization is on and YES if it's off)
1427   --enable-keep-symbols   Do not strip installed executables)
1428   --enable-jit            Enable Just In Time Compiling (default is YES)
1429   --enable-docs           Build documents (default is YES)
1430   --enable-doxygen        Build doxygen documentation (default is NO)
1431   --enable-threads        Use threads if available (default is YES)
1432   --enable-pthreads       Use pthreads if available (default is YES)
1433   --enable-zlib           Use zlib for compression/decompression if available
1434                           (default is YES)
1435   --enable-pic            Build LLVM with Position Independent Code (default
1436                           is YES)
1437   --enable-shared         Build a shared library and link tools against it
1438                           (default is NO)
1439   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1440                           Win32 DLL (default is NO)
1441   --enable-timestamps     Enable embedding timestamp information in build
1442                           (default is YES)
1443   --enable-backtraces     Enable embedding backtraces on crash (default is
1444                           YES)
1445   --enable-targets        Build specific host targets: all or
1446                           target1,target2,... Valid targets are: host, x86,
1447                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448                           xcore, msp430, nvptx, systemz, r600, and cpp
1449                           (default=all)
1450   --enable-experimental-targets
1451                           Build experimental host targets: disable or
1452                           target1,target2,... (default=disable)
1453   --enable-bindings       Build specific language bindings:
1454                           all,auto,none,{binding-name} (default=auto)
1455   --enable-libffi         Check for the presence of libffi (default is NO)
1456   --enable-ltdl-install   install libltdl
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-optimize-option  Select the compiler options to use for optimized
1462                           builds
1463   --with-extra-options    Specify additional options to compile LLVM with
1464   --with-extra-ld-options Specify additional options to link LLVM with
1465   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1466                           is stdlib)
1467   --with-clang-srcdir     Directory to the out-of-tree Clang source
1468   --with-clang-resource-dir
1469                           Relative directory from the Clang binary for
1470                           resource files
1471   --with-c-include-dirs   Colon separated list of directories clang will
1472                           search for headers
1473   --with-gcc-toolchain    Directory where gcc is installed.
1474   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1475   --with-binutils-include Specify path to binutils/include/ containing
1476                           plugin-api.h file for gold plugin.
1477   --with-bug-report-url   Specify the URL where bug reports should be
1478                           submitted (default=http://llvm.org/bugs/)
1479   --with-internal-prefix  Installation directory for internal files
1480   --with-python           path to python
1481   --with-udis86=<path>    Use udis86 external x86 disassembler library
1482   --with-oprofile=<prefix>
1483                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1484   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1485
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CXX         C++ compiler command
1495   CXXFLAGS    C++ compiler flags
1496   CPP         C preprocessor
1497   CXXCPP      C++ preprocessor
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <http://llvm.org/bugs/>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508   # If there are subdirs, report their specific --help.
1509   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510     test -d "$ac_dir" || continue
1511     ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517   # A ".." for each directory in $ac_dir_suffix.
1518   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519   case $ac_top_builddir_sub in
1520   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522   esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530   .)  # We are building in place.
1531     ac_srcdir=.
1532     ac_top_srcdir=$ac_top_builddir_sub
1533     ac_abs_top_srcdir=$ac_pwd ;;
1534   [\\/]* | ?:[\\/]* )  # Absolute name.
1535     ac_srcdir=$srcdir$ac_dir_suffix;
1536     ac_top_srcdir=$srcdir
1537     ac_abs_top_srcdir=$srcdir ;;
1538   *) # Relative name.
1539     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540     ac_top_srcdir=$ac_top_build_prefix$srcdir
1541     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545     cd "$ac_dir" || { ac_status=$?; continue; }
1546     # Check for guested configure.
1547     if test -f "$ac_srcdir/configure.gnu"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550     elif test -f "$ac_srcdir/configure"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure" --help=recursive
1553     else
1554       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555     fi || ac_status=$?
1556     cd "$ac_pwd" || { ac_status=$?; break; }
1557   done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562   cat <<\_ACEOF
1563 LLVM configure 3.4svn
1564 generated by GNU Autoconf 2.60
1565
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570
1571 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1572 _ACEOF
1573   exit
1574 fi
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1578
1579 It was created by LLVM $as_me 3.4svn, which was
1580 generated by GNU Autoconf 2.60.  Invocation command line was
1581
1582   $ $0 $@
1583
1584 _ACEOF
1585 exec 5>>config.log
1586 {
1587 cat <<_ASUNAME
1588 ## --------- ##
1589 ## Platform. ##
1590 ## --------- ##
1591
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1600
1601 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1602 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1605 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1606 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1607 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1608
1609 _ASUNAME
1610
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   echo "PATH: $as_dir"
1617 done
1618 IFS=$as_save_IFS
1619
1620 } >&5
1621
1622 cat >&5 <<_ACEOF
1623
1624
1625 ## ----------- ##
1626 ## Core tests. ##
1627 ## ----------- ##
1628
1629 _ACEOF
1630
1631
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_configure_args=
1638 ac_configure_args0=
1639 ac_configure_args1=
1640 ac_must_keep_next=false
1641 for ac_pass in 1 2
1642 do
1643   for ac_arg
1644   do
1645     case $ac_arg in
1646     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648     | -silent | --silent | --silen | --sile | --sil)
1649       continue ;;
1650     *\'*)
1651       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1652     esac
1653     case $ac_pass in
1654     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655     2)
1656       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657       if test $ac_must_keep_next = true; then
1658         ac_must_keep_next=false # Got value, back to normal.
1659       else
1660         case $ac_arg in
1661           *=* | --config-cache | -C | -disable-* | --disable-* \
1662           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664           | -with-* | --with-* | -without-* | --without-* | --x)
1665             case "$ac_configure_args0 " in
1666               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667             esac
1668             ;;
1669           -* ) ac_must_keep_next=true ;;
1670         esac
1671       fi
1672       ac_configure_args="$ac_configure_args '$ac_arg'"
1673       ;;
1674     esac
1675   done
1676 done
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log.  We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686   # Save into config.log some information that might help in debugging.
1687   {
1688     echo
1689
1690     cat <<\_ASBOX
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1694 _ASBOX
1695     echo
1696     # The following way of writing the cache mishandles newlines in values,
1697 (
1698   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699     eval ac_val=\$$ac_var
1700     case $ac_val in #(
1701     *${as_nl}*)
1702       case $ac_var in #(
1703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1705       esac
1706       case $ac_var in #(
1707       _ | IFS | as_nl) ;; #(
1708       *) $as_unset $ac_var ;;
1709       esac ;;
1710     esac
1711   done
1712   (set) 2>&1 |
1713     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714     *${as_nl}ac_space=\ *)
1715       sed -n \
1716         "s/'\''/'\''\\\\'\'''\''/g;
1717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718       ;; #(
1719     *)
1720       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721       ;;
1722     esac |
1723     sort
1724 )
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1731 _ASBOX
1732     echo
1733     for ac_var in $ac_subst_vars
1734     do
1735       eval ac_val=\$$ac_var
1736       case $ac_val in
1737       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738       esac
1739       echo "$ac_var='\''$ac_val'\''"
1740     done | sort
1741     echo
1742
1743     if test -n "$ac_subst_files"; then
1744       cat <<\_ASBOX
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1748 _ASBOX
1749       echo
1750       for ac_var in $ac_subst_files
1751       do
1752         eval ac_val=\$$ac_var
1753         case $ac_val in
1754         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755         esac
1756         echo "$ac_var='\''$ac_val'\''"
1757       done | sort
1758       echo
1759     fi
1760
1761     if test -s confdefs.h; then
1762       cat <<\_ASBOX
1763 ## ----------- ##
1764 ## confdefs.h. ##
1765 ## ----------- ##
1766 _ASBOX
1767       echo
1768       cat confdefs.h
1769       echo
1770     fi
1771     test "$ac_signal" != 0 &&
1772       echo "$as_me: caught signal $ac_signal"
1773     echo "$as_me: exit $exit_status"
1774   } >&5
1775   rm -f core *.core core.conftest.* &&
1776     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1777     exit $exit_status
1778 ' 0
1779 for ac_signal in 1 2 13 15; do
1780   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 done
1782 ac_signal=0
1783
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1786
1787 # Predefined preprocessor variables.
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 _ACEOF
1812
1813
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817   set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 else
1821   set x "$ac_default_prefix/share/config.site" \
1822         "$ac_default_prefix/etc/config.site"
1823 fi
1824 shift
1825 for ac_site_file
1826 do
1827   if test -r "$ac_site_file"; then
1828     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830     sed 's/^/| /' "$ac_site_file" >&5
1831     . "$ac_site_file"
1832   fi
1833 done
1834
1835 if test -r "$cache_file"; then
1836   # Some versions of bash will fail to source /dev/null (special
1837   # files actually), so we avoid doing that.
1838   if test -f "$cache_file"; then
1839     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1841     case $cache_file in
1842       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843       *)                      . "./$cache_file";;
1844     esac
1845   fi
1846 else
1847   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1849   >$cache_file
1850 fi
1851
1852 # Check that the precious variables saved in the cache have kept the same
1853 # value.
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857   eval ac_new_set=\$ac_env_${ac_var}_set
1858   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859   eval ac_new_val=\$ac_env_${ac_var}_value
1860   case $ac_old_set,$ac_new_set in
1861     set,)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,set)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,);;
1870     *)
1871       if test "x$ac_old_val" != "x$ac_new_val"; then
1872         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1875 echo "$as_me:   former value:  $ac_old_val" >&2;}
1876         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1877 echo "$as_me:   current value: $ac_new_val" >&2;}
1878         ac_cache_corrupted=:
1879       fi;;
1880   esac
1881   # Pass precious variables to config.status.
1882   if test "$ac_new_set" = set; then
1883     case $ac_new_val in
1884     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     *) ac_arg=$ac_var=$ac_new_val ;;
1886     esac
1887     case " $ac_configure_args " in
1888       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1889       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890     esac
1891   fi
1892 done
1893 if $ac_cache_corrupted; then
1894   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898    { (exit 1); exit 1; }; }
1899 fi
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
1931
1932
1933 cat >>confdefs.h <<\_ACEOF
1934 #define LLVM_VERSION_MAJOR 3
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<\_ACEOF
1939 #define LLVM_VERSION_MINOR 4
1940 _ACEOF
1941
1942
1943 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1944
1945
1946
1947
1948
1949
1950
1951 ac_aux_dir=
1952 for ac_dir in autoconf "$srcdir"/autoconf; do
1953   if test -f "$ac_dir/install-sh"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/install-sh -c"
1956     break
1957   elif test -f "$ac_dir/install.sh"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/install.sh -c"
1960     break
1961   elif test -f "$ac_dir/shtool"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/shtool install -c"
1964     break
1965   fi
1966 done
1967 if test -z "$ac_aux_dir"; then
1968   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1969 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1970    { (exit 1); exit 1; }; }
1971 fi
1972
1973 # These three variables are undocumented and unsupported,
1974 # and are intended to be withdrawn in a future Autoconf release.
1975 # They can cause serious problems if a builder's source tree is in a directory
1976 # whose full name contains unusual characters.
1977 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1978 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1979 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1980
1981
1982
1983 if test ${srcdir} != "." ; then
1984   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1985     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1986 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1987    { (exit 1); exit 1; }; }
1988   fi
1989 fi
1990
1991 ${CFLAGS=}
1992 ${CXXFLAGS=}
1993
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000   for ac_prog in clang llvm-gcc gcc
2001   do
2002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025 IFS=$as_save_IFS
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   { echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6; }
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038
2039     test -n "$CC" && break
2040   done
2041 fi
2042 if test -z "$CC"; then
2043   ac_ct_CC=$CC
2044   for ac_prog in clang llvm-gcc gcc
2045 do
2046   # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_CC"; then
2054   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2063     ac_cv_prog_ac_ct_CC="$ac_prog"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069 IFS=$as_save_IFS
2070
2071 fi
2072 fi
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 else
2078   { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080 fi
2081
2082
2083   test -n "$ac_ct_CC" && break
2084 done
2085
2086   if test "x$ac_ct_CC" = x; then
2087     CC=""
2088   else
2089     case $cross_compiling:$ac_tool_warned in
2090 yes:)
2091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet.  If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&5
2094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet.  If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2097 ac_tool_warned=yes ;;
2098 esac
2099     CC=$ac_ct_CC
2100   fi
2101 fi
2102
2103
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler --version >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123 { (ac_try="$ac_compiler -v >&5"
2124 case "(($ac_try" in
2125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126   *) ac_try_echo=$ac_try;;
2127 esac
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129   (eval "$ac_compiler -v >&5") 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133 { (ac_try="$ac_compiler -V >&5"
2134 case "(($ac_try" in
2135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136   *) ac_try_echo=$ac_try;;
2137 esac
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139   (eval "$ac_compiler -V >&5") 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2163 # of exeext.
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 #
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort.  b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 #
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions.  Remove them first so a
2175 # subsequent execution test works.
2176 ac_rmfiles=
2177 for ac_file in $ac_files
2178 do
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2182   esac
2183 done
2184 rm -f $ac_rmfiles
2185
2186 if { (ac_try="$ac_link_default"
2187 case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192   (eval "$ac_link_default") 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; then
2196   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2200 # Autoconf.
2201 for ac_file in $ac_files
2202 do
2203   test -f "$ac_file" || continue
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2206         ;;
2207     [ab].out )
2208         # We found the default executable, but exeext='' is most
2209         # certainly right.
2210         break;;
2211     *.* )
2212         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213         then :; else
2214            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215         fi
2216         # We set ac_cv_exeext here because the later test for it is not
2217         # safe: cross compilers may not add the suffix if given an `-o'
2218         # argument, so we may need to know it at that point already.
2219         # Even if this section looks crufty: it has the advantage of
2220         # actually working.
2221         break;;
2222     * )
2223         break;;
2224   esac
2225 done
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2227
2228 else
2229   echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236    { (exit 77); exit 77; }; }
2237 fi
2238
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2242
2243 # Check that the compiler produces executables we can run.  If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250   if { ac_try='./$ac_file'
2251   { (case "(($ac_try" in
2252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253   *) ac_try_echo=$ac_try;;
2254 esac
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256   (eval "$ac_try") 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; }; then
2260     cross_compiling=no
2261   else
2262     if test "$cross_compiling" = maybe; then
2263         cross_compiling=yes
2264     else
2265         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271    { (exit 1); exit 1; }; }
2272     fi
2273   fi
2274 fi
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run.  If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2286
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2290 case "(($ac_try" in
2291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292   *) ac_try_echo=$ac_try;;
2293 esac
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295   (eval "$ac_link") 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; then
2299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 # `rm'.
2303 for ac_file in conftest.exe conftest conftest.*; do
2304   test -f "$ac_file" || continue
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308           break;;
2309     * ) break;;
2310   esac
2311 done
2312 else
2313   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317    { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338
2339 int
2340 main ()
2341 {
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_compile") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; then
2358   for ac_file in conftest.o conftest.obj conftest.*; do
2359   test -f "$ac_file" || continue;
2360   case $ac_file in
2361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2363        break;;
2364   esac
2365 done
2366 else
2367   echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374    { (exit 1); exit 1; }; }
2375 fi
2376
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 fi
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2382 ac_objext=$OBJEXT
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398 #ifndef __GNUC__
2399        choke me
2400 #endif
2401
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2408 case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413   (eval "$ac_compile") 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421   { (case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_try") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436   (eval "$ac_try") 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   ac_compiler_gnu=yes
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445         ac_compiler_gnu=no
2446 fi
2447
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2450
2451 fi
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   ac_save_c_werror_flag=$ac_c_werror_flag
2463    ac_c_werror_flag=yes
2464    ac_cv_prog_cc_g=no
2465    CFLAGS="-g"
2466    cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472
2473 int
2474 main ()
2475 {
2476
2477   ;
2478   return 0;
2479 }
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_compile") 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
2492   cat conftest.err >&5
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_try") 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520         CFLAGS=""
2521       cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527
2528 int
2529 main ()
2530 {
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2538 case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_compile") 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551   { (case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_try") 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   :
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575         ac_c_werror_flag=$ac_save_c_werror_flag
2576          CFLAGS="-g"
2577          cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2594 case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_compile") 2>conftest.er1
2600   ac_status=$?
2601   grep -v '^ *+' conftest.er1 >conftest.err
2602   rm -f conftest.er1
2603   cat conftest.err >&5
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } &&
2606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607   { (case "(($ac_try" in
2608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609   *) ac_try_echo=$ac_try;;
2610 esac
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612   (eval "$ac_try") 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622   (eval "$ac_try") 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_cv_prog_cc_g=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631
2632 fi
2633
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641    ac_c_werror_flag=$ac_save_c_werror_flag
2642 fi
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646   CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648   if test "$GCC" = yes; then
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   ac_cv_prog_cc_c89=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681      char **p;
2682      int i;
2683 {
2684   return p[i];
2685 }
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2687 {
2688   char *s;
2689   va_list v;
2690   va_start (v,p);
2691   s = g (p, va_arg (v,int));
2692   va_end (v);
2693   return s;
2694 }
2695
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2697    function prototypes and stuff, but not '\xHH' hex character constants.
2698    These don't provoke an error unfortunately, instead are silently treated
2699    as 'x'.  The following induces an error, until -std is added to get
2700    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2701    array size at least.  It's necessary to write '\x00'==0 to get something
2702    that's true only with -std.  */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706    inside strings and character constants.  */
2707 #define FOO(x) 'x'
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714 int argc;
2715 char **argv;
2716 int
2717 main ()
2718 {
2719 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 do
2727   CC="$ac_save_CC $ac_arg"
2728   rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_compile") 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743   { (case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_try") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_try") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   ac_cv_prog_cc_c89=$ac_arg
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext
2771   test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 done
2773 rm -f conftest.$ac_ext
2774 CC=$ac_save_CC
2775
2776 fi
2777 # AC_CACHE_VAL
2778 case "x$ac_cv_prog_cc_c89" in
2779   x)
2780     { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2782   xno)
2783     { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2785   *)
2786     CC="$CC $ac_cv_prog_cc_c89"
2787     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2789 esac
2790
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798 ac_ext=cpp
2799 ac_cpp='$CXXCPP $CPPFLAGS'
2800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2803 if test -z "$CXX"; then
2804   if test -n "$CCC"; then
2805     CXX=$CCC
2806   else
2807     if test -n "$ac_tool_prefix"; then
2808   for ac_prog in clang++ llvm-g++ g++
2809   do
2810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CXX+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$CXX"; then
2818   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CXX=$ac_cv_prog_CXX
2838 if test -n "$CXX"; then
2839   { echo "$as_me:$LINENO: result: $CXX" >&5
2840 echo "${ECHO_T}$CXX" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847     test -n "$CXX" && break
2848   done
2849 fi
2850 if test -z "$CXX"; then
2851   ac_ct_CXX=$CXX
2852   for ac_prog in clang++ llvm-g++ g++
2853 do
2854   # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   if test -n "$ac_ct_CXX"; then
2862   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869   for ac_exec_ext in '' $ac_executable_extensions; do
2870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871     ac_cv_prog_ac_ct_CXX="$ac_prog"
2872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882 if test -n "$ac_ct_CXX"; then
2883   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 else
2886   { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2888 fi
2889
2890
2891   test -n "$ac_ct_CXX" && break
2892 done
2893
2894   if test "x$ac_ct_CXX" = x; then
2895     CXX="g++"
2896   else
2897     case $cross_compiling:$ac_tool_warned in
2898 yes:)
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet.  If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet.  If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907     CXX=$ac_ct_CXX
2908   fi
2909 fi
2910
2911   fi
2912 fi
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler --version >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926 { (ac_try="$ac_compiler -v >&5"
2927 case "(($ac_try" in
2928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929   *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932   (eval "$ac_compiler -v >&5") 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936 { (ac_try="$ac_compiler -V >&5"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compiler -V >&5") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }
2946
2947 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952   cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962 #ifndef __GNUC__
2963        choke me
2964 #endif
2965
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_compile") 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2985   { (case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_try") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; } &&
2994          { ac_try='test -s conftest.$ac_objext'
2995   { (case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000   (eval "$ac_try") 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004   ac_compiler_gnu=yes
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009         ac_compiler_gnu=no
3010 fi
3011
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3014
3015 fi
3016 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3018 GXX=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CXXFLAGS=${CXXFLAGS+set}
3020 ac_save_CXXFLAGS=$CXXFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3022 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cxx_g+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3027    ac_cxx_werror_flag=yes
3028    ac_cv_prog_cxx_g=no
3029    CXXFLAGS="-g"
3030    cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036
3037 int
3038 main ()
3039 {
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compile") 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; } &&
3069          { ac_try='test -s conftest.$ac_objext'
3070   { (case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_try") 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079   ac_cv_prog_cxx_g=yes
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084         CXXFLAGS=""
3085       cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } &&
3114          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115   { (case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_try") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   :
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140          CXXFLAGS="-g"
3141          cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_compile") 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } &&
3170          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3171   { (case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_try") 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest.$ac_objext'
3181   { (case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_try") 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; }; then
3190   ac_cv_prog_cxx_g=yes
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 fi
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210   CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212   if test "$GXX" = yes; then
3213     CXXFLAGS="-g -O2"
3214   else
3215     CXXFLAGS="-g"
3216   fi
3217 else
3218   if test "$GXX" = yes; then
3219     CXXFLAGS="-O2"
3220   else
3221     CXXFLAGS=
3222   fi
3223 fi
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3239   CPP=
3240 fi
3241 if test -z "$CPP"; then
3242   if test "${ac_cv_prog_CPP+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245       # Double quotes because CPP needs to be expanded
3246     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3247     do
3248       ac_preproc_ok=false
3249 for ac_c_preproc_warn_flag in '' yes
3250 do
3251   # Use a header file that comes with gcc, so configuring glibc
3252   # with a fresh cross-compiler works.
3253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254   # <limits.h> exists even on freestanding compilers.
3255   # On the NeXT, cc -E runs the code through the compiler's parser,
3256   # not just through cpp. "Syntax error" is here to catch this case.
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263 #ifdef __STDC__
3264 # include <limits.h>
3265 #else
3266 # include <assert.h>
3267 #endif
3268                      Syntax error
3269 _ACEOF
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   :
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Broken: fails on valid input.
3299 continue
3300 fi
3301
3302 rm -f conftest.err conftest.$ac_ext
3303
3304   # OK, works on sane cases.  Now check whether nonexistent headers
3305   # can be detected and how.
3306   cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312 #include <ac_nonexistent.h>
3313 _ACEOF
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321   ac_status=$?
3322   grep -v '^ *+' conftest.er1 >conftest.err
3323   rm -f conftest.er1
3324   cat conftest.err >&5
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); } >/dev/null; then
3327   if test -s conftest.err; then
3328     ac_cpp_err=$ac_c_preproc_warn_flag
3329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330   else
3331     ac_cpp_err=
3332   fi
3333 else
3334   ac_cpp_err=yes
3335 fi
3336 if test -z "$ac_cpp_err"; then
3337   # Broken: success on invalid input.
3338 continue
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343   # Passes both tests.
3344 ac_preproc_ok=:
3345 break
3346 fi
3347
3348 rm -f conftest.err conftest.$ac_ext
3349
3350 done
3351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352 rm -f conftest.err conftest.$ac_ext
3353 if $ac_preproc_ok; then
3354   break
3355 fi
3356
3357     done
3358     ac_cv_prog_CPP=$CPP
3359
3360 fi
3361   CPP=$ac_cv_prog_CPP
3362 else
3363   ac_cv_prog_CPP=$CPP
3364 fi
3365 { echo "$as_me:$LINENO: result: $CPP" >&5
3366 echo "${ECHO_T}$CPP" >&6; }
3367 ac_preproc_ok=false
3368 for ac_c_preproc_warn_flag in '' yes
3369 do
3370   # Use a header file that comes with gcc, so configuring glibc
3371   # with a fresh cross-compiler works.
3372   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373   # <limits.h> exists even on freestanding compilers.
3374   # On the NeXT, cc -E runs the code through the compiler's parser,
3375   # not just through cpp. "Syntax error" is here to catch this case.
3376   cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 #ifdef __STDC__
3383 # include <limits.h>
3384 #else
3385 # include <assert.h>
3386 #endif
3387                      Syntax error
3388 _ACEOF
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } >/dev/null; then
3402   if test -s conftest.err; then
3403     ac_cpp_err=$ac_c_preproc_warn_flag
3404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405   else
3406     ac_cpp_err=
3407   fi
3408 else
3409   ac_cpp_err=yes
3410 fi
3411 if test -z "$ac_cpp_err"; then
3412   :
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417   # Broken: fails on valid input.
3418 continue
3419 fi
3420
3421 rm -f conftest.err conftest.$ac_ext
3422
3423   # OK, works on sane cases.  Now check whether nonexistent headers
3424   # can be detected and how.
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 #include <ac_nonexistent.h>
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   # Broken: success on invalid input.
3457 continue
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462   # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466
3467 rm -f conftest.err conftest.$ac_ext
3468
3469 done
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3473   :
3474 else
3475   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3478 See \`config.log' for more details." >&2;}
3479    { (exit 1); exit 1; }; }
3480 fi
3481
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487
3488
3489 if test "$CXX" = "clang++" ; then
3490   { echo "$as_me:$LINENO: checking whether clang works" >&5
3491 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492   ac_ext=cpp
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3497
3498
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include <limits>
3506 #if __has_include (<cxxabi.h>)
3507 #include <cxxabi.h>
3508 #endif
3509 #if __has_include (<unwind.h>)
3510 #include <unwind.h>
3511 #endif
3512
3513 int
3514 main ()
3515 {
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (ac_try="$ac_compile"
3523 case "(($ac_try" in
3524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525   *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528   (eval "$ac_compile") 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3536   { (case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_try") 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; } &&
3545          { ac_try='test -s conftest.$ac_objext'
3546   { (case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_try") 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555
3556   { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3558
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563
3564   { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566   { { 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
3567 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;}
3568    { (exit 1); exit 1; }; }
3569
3570 fi
3571
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573   ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
3579 fi
3580
3581
3582
3583 if test -d ${srcdir}/projects/llvm-gcc ; then
3584   subdirs="$subdirs projects/llvm-gcc"
3585
3586 fi
3587
3588 if test -d ${srcdir}/projects/test-suite ; then
3589   subdirs="$subdirs projects/test-suite"
3590
3591 fi
3592
3593 if test -d ${srcdir}/projects/llvm-test ; then
3594   subdirs="$subdirs projects/llvm-test"
3595
3596 fi
3597
3598 if test -d ${srcdir}/projects/poolalloc ; then
3599   subdirs="$subdirs projects/poolalloc"
3600
3601 fi
3602
3603 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3604   subdirs="$subdirs projects/llvm-poolalloc"
3605
3606 fi
3607
3608 for i in `ls ${srcdir}/projects`
3609 do
3610   if test -d ${srcdir}/projects/${i} ; then
3611     case ${i} in
3612       sample)       subdirs="$subdirs projects/sample"
3613     ;;
3614       privbracket)  subdirs="$subdirs projects/privbracket"
3615  ;;
3616       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3617  ;;
3618       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3619 ;;
3620       llvm-java)    subdirs="$subdirs projects/llvm-java"
3621  ;;
3622       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3623    ;;
3624       safecode)     subdirs="$subdirs projects/safecode"
3625  ;;
3626       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3627  ;;
3628       compiler-rt)       ;;
3629       llvm-gcc)       ;;
3630       test-suite)     ;;
3631       llvm-test)      ;;
3632       poolalloc)      ;;
3633       llvm-poolalloc) ;;
3634       *)
3635         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3636 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3637         ;;
3638     esac
3639   fi
3640 done
3641
3642 # Check whether --enable-polly was given.
3643 if test "${enable_polly+set}" = set; then
3644   enableval=$enable_polly;
3645 else
3646   enableval=default
3647 fi
3648
3649 case "$enableval" in
3650   yes) ENABLE_POLLY=1
3651  ;;
3652   no)  ENABLE_POLLY=0
3653  ;;
3654   default) ENABLE_POLLY=1
3655  ;;
3656   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3657 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3658    { (exit 1); exit 1; }; } ;;
3659 esac
3660
3661
3662 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3663   LLVM_HAS_POLLY=1
3664
3665   subdirs="$subdirs tools/polly"
3666
3667 fi
3668
3669
3670 # Make sure we can run config.sub.
3671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3672   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3673 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3674    { (exit 1); exit 1; }; }
3675
3676 { echo "$as_me:$LINENO: checking build system type" >&5
3677 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3678 if test "${ac_cv_build+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   ac_build_alias=$build_alias
3682 test "x$ac_build_alias" = x &&
3683   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3684 test "x$ac_build_alias" = x &&
3685   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3686 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3687    { (exit 1); exit 1; }; }
3688 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3689   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3690 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3691    { (exit 1); exit 1; }; }
3692
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3695 echo "${ECHO_T}$ac_cv_build" >&6; }
3696 case $ac_cv_build in
3697 *-*-*) ;;
3698 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3699 echo "$as_me: error: invalid value of canonical build" >&2;}
3700    { (exit 1); exit 1; }; };;
3701 esac
3702 build=$ac_cv_build
3703 ac_save_IFS=$IFS; IFS='-'
3704 set x $ac_cv_build
3705 shift
3706 build_cpu=$1
3707 build_vendor=$2
3708 shift; shift
3709 # Remember, the first character of IFS is used to create $*,
3710 # except with old shells:
3711 build_os=$*
3712 IFS=$ac_save_IFS
3713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3714
3715
3716 { echo "$as_me:$LINENO: checking host system type" >&5
3717 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3718 if test "${ac_cv_host+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   if test "x$host_alias" = x; then
3722   ac_cv_host=$ac_cv_build
3723 else
3724   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3725     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3726 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3727    { (exit 1); exit 1; }; }
3728 fi
3729
3730 fi
3731 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3732 echo "${ECHO_T}$ac_cv_host" >&6; }
3733 case $ac_cv_host in
3734 *-*-*) ;;
3735 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3736 echo "$as_me: error: invalid value of canonical host" >&2;}
3737    { (exit 1); exit 1; }; };;
3738 esac
3739 host=$ac_cv_host
3740 ac_save_IFS=$IFS; IFS='-'
3741 set x $ac_cv_host
3742 shift
3743 host_cpu=$1
3744 host_vendor=$2
3745 shift; shift
3746 # Remember, the first character of IFS is used to create $*,
3747 # except with old shells:
3748 host_os=$*
3749 IFS=$ac_save_IFS
3750 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3751
3752
3753 { echo "$as_me:$LINENO: checking target system type" >&5
3754 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3755 if test "${ac_cv_target+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   if test "x$target_alias" = x; then
3759   ac_cv_target=$ac_cv_host
3760 else
3761   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3762     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3763 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3764    { (exit 1); exit 1; }; }
3765 fi
3766
3767 fi
3768 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3769 echo "${ECHO_T}$ac_cv_target" >&6; }
3770 case $ac_cv_target in
3771 *-*-*) ;;
3772 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3773 echo "$as_me: error: invalid value of canonical target" >&2;}
3774    { (exit 1); exit 1; }; };;
3775 esac
3776 target=$ac_cv_target
3777 ac_save_IFS=$IFS; IFS='-'
3778 set x $ac_cv_target
3779 shift
3780 target_cpu=$1
3781 target_vendor=$2
3782 shift; shift
3783 # Remember, the first character of IFS is used to create $*,
3784 # except with old shells:
3785 target_os=$*
3786 IFS=$ac_save_IFS
3787 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3788
3789
3790 # The aliases save the names the user supplied, while $host etc.
3791 # will get canonicalized.
3792 test -n "$target_alias" &&
3793   test "$program_prefix$program_suffix$program_transform_name" = \
3794     NONENONEs,x,x, &&
3795   program_prefix=${target_alias}-
3796
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3798 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3799 if test "${llvm_cv_os_type+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   case $host in
3803   *-*-aix*)
3804     llvm_cv_link_all_option="-Wl,--whole-archive"
3805     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3806     llvm_cv_os_type="AIX"
3807     llvm_cv_platform_type="Unix" ;;
3808   *-*-irix*)
3809     llvm_cv_link_all_option="-Wl,--whole-archive"
3810     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3811     llvm_cv_os_type="IRIX"
3812     llvm_cv_platform_type="Unix" ;;
3813   *-*-cygwin*)
3814     llvm_cv_link_all_option="-Wl,--whole-archive"
3815     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3816     llvm_cv_os_type="Cygwin"
3817     llvm_cv_platform_type="Unix" ;;
3818   *-*-darwin*)
3819     llvm_cv_link_all_option="-Wl,-all_load"
3820     llvm_cv_no_link_all_option="-Wl,-noall_load"
3821     llvm_cv_os_type="Darwin"
3822     llvm_cv_platform_type="Unix" ;;
3823   *-*-minix*)
3824     llvm_cv_link_all_option="-Wl,-all_load"
3825     llvm_cv_no_link_all_option="-Wl,-noall_load"
3826     llvm_cv_os_type="Minix"
3827     llvm_cv_platform_type="Unix" ;;
3828   *-*-freebsd* | *-*-kfreebsd-gnu)
3829     llvm_cv_link_all_option="-Wl,--whole-archive"
3830     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831     llvm_cv_os_type="FreeBSD"
3832     llvm_cv_platform_type="Unix" ;;
3833   *-*-openbsd*)
3834     llvm_cv_link_all_option="-Wl,--whole-archive"
3835     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836     llvm_cv_os_type="OpenBSD"
3837     llvm_cv_platform_type="Unix" ;;
3838   *-*-netbsd*)
3839     llvm_cv_link_all_option="-Wl,--whole-archive"
3840     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841     llvm_cv_os_type="NetBSD"
3842     llvm_cv_platform_type="Unix" ;;
3843   *-*-dragonfly*)
3844     llvm_cv_link_all_option="-Wl,--whole-archive"
3845     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846     llvm_cv_os_type="DragonFly"
3847     llvm_cv_platform_type="Unix" ;;
3848   *-*-hpux*)
3849     llvm_cv_link_all_option="-Wl,--whole-archive"
3850     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851     llvm_cv_os_type="HP-UX"
3852     llvm_cv_platform_type="Unix" ;;
3853   *-*-interix*)
3854     llvm_cv_link_all_option="-Wl,--whole-archive"
3855     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3856     llvm_cv_os_type="Interix"
3857     llvm_cv_platform_type="Unix" ;;
3858   *-*-linux*)
3859     llvm_cv_link_all_option="-Wl,--whole-archive"
3860     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3861     llvm_cv_os_type="Linux"
3862     llvm_cv_platform_type="Unix" ;;
3863   *-*-gnu*)
3864     llvm_cv_link_all_option="-Wl,--whole-archive"
3865     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3866     llvm_cv_os_type="GNU"
3867     llvm_cv_platform_type="Unix" ;;
3868   *-*-solaris*)
3869     llvm_cv_link_all_option="-Wl,-z,allextract"
3870     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3871     llvm_cv_os_type="SunOS"
3872     llvm_cv_platform_type="Unix" ;;
3873   *-*-auroraux*)
3874     llvm_cv_link_all_option="-Wl,-z,allextract"
3875     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3876     llvm_cv_os_type="AuroraUX"
3877     llvm_cv_platform_type="Unix" ;;
3878   *-*-win32*)
3879     llvm_cv_link_all_option="-Wl,--whole-archive"
3880     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881     llvm_cv_os_type="Win32"
3882     llvm_cv_platform_type="Win32" ;;
3883   *-*-mingw*)
3884     llvm_cv_link_all_option="-Wl,--whole-archive"
3885     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886     llvm_cv_os_type="MingW"
3887     llvm_cv_platform_type="Win32" ;;
3888   *-*-haiku*)
3889     llvm_cv_link_all_option="-Wl,--whole-archive"
3890     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3891     llvm_cv_os_type="Haiku"
3892     llvm_cv_platform_type="Unix" ;;
3893   *-unknown-eabi*)
3894     llvm_cv_link_all_option="-Wl,--whole-archive"
3895     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3896     llvm_cv_os_type="Freestanding"
3897     llvm_cv_platform_type="Unix" ;;
3898   *-unknown-elf*)
3899     llvm_cv_link_all_option="-Wl,--whole-archive"
3900     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3901     llvm_cv_os_type="Freestanding"
3902     llvm_cv_platform_type="Unix" ;;
3903   *)
3904     llvm_cv_link_all_option=""
3905     llvm_cv_no_link_all_option=""
3906     llvm_cv_os_type="Unknown"
3907     llvm_cv_platform_type="Unknown" ;;
3908 esac
3909 fi
3910 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3911 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3912
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3914 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3915 if test "${llvm_cv_target_os_type+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   case $target in
3919   *-*-aix*)
3920     llvm_cv_target_os_type="AIX" ;;
3921   *-*-irix*)
3922     llvm_cv_target_os_type="IRIX" ;;
3923   *-*-cygwin*)
3924     llvm_cv_target_os_type="Cygwin" ;;
3925   *-*-darwin*)
3926     llvm_cv_target_os_type="Darwin" ;;
3927   *-*-minix*)
3928     llvm_cv_target_os_type="Minix" ;;
3929   *-*-freebsd* | *-*-kfreebsd-gnu)
3930     llvm_cv_target_os_type="FreeBSD" ;;
3931   *-*-openbsd*)
3932     llvm_cv_target_os_type="OpenBSD" ;;
3933   *-*-netbsd*)
3934     llvm_cv_target_os_type="NetBSD" ;;
3935   *-*-dragonfly*)
3936     llvm_cv_target_os_type="DragonFly" ;;
3937   *-*-hpux*)
3938     llvm_cv_target_os_type="HP-UX" ;;
3939   *-*-interix*)
3940     llvm_cv_target_os_type="Interix" ;;
3941   *-*-linux*)
3942     llvm_cv_target_os_type="Linux" ;;
3943   *-*-gnu*)
3944     llvm_cv_target_os_type="GNU" ;;
3945   *-*-solaris*)
3946     llvm_cv_target_os_type="SunOS" ;;
3947   *-*-auroraux*)
3948     llvm_cv_target_os_type="AuroraUX" ;;
3949   *-*-win32*)
3950     llvm_cv_target_os_type="Win32" ;;
3951   *-*-mingw*)
3952     llvm_cv_target_os_type="MingW" ;;
3953   *-*-haiku*)
3954     llvm_cv_target_os_type="Haiku" ;;
3955   *-*-rtems*)
3956     llvm_cv_target_os_type="RTEMS" ;;
3957   *-*-nacl*)
3958     llvm_cv_target_os_type="NativeClient" ;;
3959   *-unknown-eabi*)
3960     llvm_cv_target_os_type="Freestanding" ;;
3961   *)
3962     llvm_cv_target_os_type="Unknown" ;;
3963 esac
3964 fi
3965 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3966 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3967
3968 if test "$llvm_cv_os_type" = "Unknown" ; then
3969   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3970 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3971    { (exit 1); exit 1; }; }
3972 fi
3973
3974 OS=$llvm_cv_os_type
3975
3976 HOST_OS=$llvm_cv_os_type
3977
3978 TARGET_OS=$llvm_cv_target_os_type
3979
3980
3981 LINKALL=$llvm_cv_link_all_option
3982
3983 NOLINKALL=$llvm_cv_no_link_all_option
3984
3985
3986 case $llvm_cv_platform_type in
3987   Unix)
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LLVM_ON_UNIX 1
3991 _ACEOF
3992
3993     LLVM_ON_UNIX=1
3994
3995     LLVM_ON_WIN32=0
3996
3997     ;;
3998   Win32)
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define LLVM_ON_WIN32 1
4002 _ACEOF
4003
4004     LLVM_ON_UNIX=0
4005
4006     LLVM_ON_WIN32=1
4007
4008     ;;
4009 esac
4010
4011 { echo "$as_me:$LINENO: checking target architecture" >&5
4012 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4013 if test "${llvm_cv_target_arch+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $target in
4017   i?86-*)                 llvm_cv_target_arch="x86" ;;
4018   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4019   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4020   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4021   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4022   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4023   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4024   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4025   xcore-*)                llvm_cv_target_arch="XCore" ;;
4026   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4027   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4028   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4029   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4030   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4031   *)                      llvm_cv_target_arch="Unknown" ;;
4032 esac
4033 fi
4034 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4035 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4036
4037 if test "$llvm_cv_target_arch" = "Unknown" ; then
4038   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4039 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4040 fi
4041
4042 case "$llvm_cv_target_arch" in
4043     x86)     LLVM_NATIVE_ARCH="X86" ;;
4044     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4045     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4046 esac
4047
4048 ARCH=$llvm_cv_target_arch
4049
4050
4051 case $host in
4052   i?86-*)                 host_arch="x86" ;;
4053   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4054   sparc*-*)               host_arch="Sparc" ;;
4055   powerpc*-*)             host_arch="PowerPC" ;;
4056   arm*-*)                 host_arch="ARM" ;;
4057   aarch64*-*)             host_arch="AArch64" ;;
4058   mips-* | mips64-*)      host_arch="Mips" ;;
4059   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4060   xcore-*)                host_arch="XCore" ;;
4061   msp430-*)               host_arch="MSP430" ;;
4062   hexagon-*)              host_arch="Hexagon" ;;
4063   mblaze-*)               host_arch="MBlaze" ;;
4064   s390x-*)                host_arch="SystemZ" ;;
4065   *)                      host_arch="Unknown" ;;
4066 esac
4067
4068 if test "$host_arch" = "Unknown" ; then
4069   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4070 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4071 fi
4072
4073 HOST_ARCH=$host_arch
4074
4075
4076
4077
4078 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4079 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4080 if test "${ac_cv_path_GREP+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   # Extract the first word of "grep ggrep" to use in msg output
4084 if test -z "$GREP"; then
4085 set dummy grep ggrep; ac_prog_name=$2
4086 if test "${ac_cv_path_GREP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   ac_path_GREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_prog in grep ggrep; do
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4099     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4100     # Check for GNU ac_path_GREP and select it if it is found.
4101   # Check for GNU $ac_path_GREP
4102 case `"$ac_path_GREP" --version 2>&1` in
4103 *GNU*)
4104   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4105 *)
4106   ac_count=0
4107   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4108   while :
4109   do
4110     cat "conftest.in" "conftest.in" >"conftest.tmp"
4111     mv "conftest.tmp" "conftest.in"
4112     cp "conftest.in" "conftest.nl"
4113     echo 'GREP' >> "conftest.nl"
4114     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116     ac_count=`expr $ac_count + 1`
4117     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4118       # Best one so far, save it but keep looking for a better one
4119       ac_cv_path_GREP="$ac_path_GREP"
4120       ac_path_GREP_max=$ac_count
4121     fi
4122     # 10*(2^10) chars as input seems more than enough
4123     test $ac_count -gt 10 && break
4124   done
4125   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 esac
4127
4128
4129     $ac_path_GREP_found && break 3
4130   done
4131 done
4132
4133 done
4134 IFS=$as_save_IFS
4135
4136
4137 fi
4138
4139 GREP="$ac_cv_path_GREP"
4140 if test -z "$GREP"; then
4141   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4143    { (exit 1); exit 1; }; }
4144 fi
4145
4146 else
4147   ac_cv_path_GREP=$GREP
4148 fi
4149
4150
4151 fi
4152 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4153 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4154  GREP="$ac_cv_path_GREP"
4155
4156
4157 { echo "$as_me:$LINENO: checking for egrep" >&5
4158 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4159 if test "${ac_cv_path_EGREP+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4163    then ac_cv_path_EGREP="$GREP -E"
4164    else
4165      # Extract the first word of "egrep" to use in msg output
4166 if test -z "$EGREP"; then
4167 set dummy egrep; ac_prog_name=$2
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   ac_path_EGREP_found=false
4172 # Loop through the user's path and test for each of PROGNAME-LIST
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_prog in egrep; do
4179   for ac_exec_ext in '' $ac_executable_extensions; do
4180     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4181     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4182     # Check for GNU ac_path_EGREP and select it if it is found.
4183   # Check for GNU $ac_path_EGREP
4184 case `"$ac_path_EGREP" --version 2>&1` in
4185 *GNU*)
4186   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4187 *)
4188   ac_count=0
4189   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4190   while :
4191   do
4192     cat "conftest.in" "conftest.in" >"conftest.tmp"
4193     mv "conftest.tmp" "conftest.in"
4194     cp "conftest.in" "conftest.nl"
4195     echo 'EGREP' >> "conftest.nl"
4196     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198     ac_count=`expr $ac_count + 1`
4199     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4200       # Best one so far, save it but keep looking for a better one
4201       ac_cv_path_EGREP="$ac_path_EGREP"
4202       ac_path_EGREP_max=$ac_count
4203     fi
4204     # 10*(2^10) chars as input seems more than enough
4205     test $ac_count -gt 10 && break
4206   done
4207   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208 esac
4209
4210
4211     $ac_path_EGREP_found && break 3
4212   done
4213 done
4214
4215 done
4216 IFS=$as_save_IFS
4217
4218
4219 fi
4220
4221 EGREP="$ac_cv_path_EGREP"
4222 if test -z "$EGREP"; then
4223   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4224 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4225    { (exit 1); exit 1; }; }
4226 fi
4227
4228 else
4229   ac_cv_path_EGREP=$EGREP
4230 fi
4231
4232
4233    fi
4234 fi
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4237  EGREP="$ac_cv_path_EGREP"
4238
4239
4240 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4242 if test "${ac_cv_header_stdc+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 #include <stdlib.h>
4252 #include <stdarg.h>
4253 #include <string.h>
4254 #include <float.h>
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (ac_try="$ac_compile"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_compile") 2>conftest.er1
4272   ac_status=$?
4273   grep -v '^ *+' conftest.er1 >conftest.err
4274   rm -f conftest.er1
4275   cat conftest.err >&5
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } &&
4278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4279   { (case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; } &&
4288          { ac_try='test -s conftest.$ac_objext'
4289   { (case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294   (eval "$ac_try") 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; }; then
4298   ac_cv_header_stdc=yes
4299 else
4300   echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303         ac_cv_header_stdc=no
4304 fi
4305
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307
4308 if test $ac_cv_header_stdc = yes; then
4309   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4310   cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 #include <string.h>
4317
4318 _ACEOF
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320   $EGREP "memchr" >/dev/null 2>&1; then
4321   :
4322 else
4323   ac_cv_header_stdc=no
4324 fi
4325 rm -f conftest*
4326
4327 fi
4328
4329 if test $ac_cv_header_stdc = yes; then
4330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 #include <stdlib.h>
4338
4339 _ACEOF
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341   $EGREP "free" >/dev/null 2>&1; then
4342   :
4343 else
4344   ac_cv_header_stdc=no
4345 fi
4346 rm -f conftest*
4347
4348 fi
4349
4350 if test $ac_cv_header_stdc = yes; then
4351   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4352   if test "$cross_compiling" = yes; then
4353   :
4354 else
4355   cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h.  */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h.  */
4361 #include <ctype.h>
4362 #include <stdlib.h>
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366 #else
4367 # define ISLOWER(c) \
4368                    (('a' <= (c) && (c) <= 'i') \
4369                      || ('j' <= (c) && (c) <= 'r') \
4370                      || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4372 #endif
4373
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4375 int
4376 main ()
4377 {
4378   int i;
4379   for (i = 0; i < 256; i++)
4380     if (XOR (islower (i), ISLOWER (i))
4381         || toupper (i) != TOUPPER (i))
4382       return 2;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest$ac_exeext
4387 if { (ac_try="$ac_link"
4388 case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_link") 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397   { (case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_try") 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   :
4407 else
4408   echo "$as_me: program exited with status $ac_status" >&5
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ( exit $ac_status )
4413 ac_cv_header_stdc=no
4414 fi
4415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 fi
4417
4418
4419 fi
4420 fi
4421 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4422 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4423 if test $ac_cv_header_stdc = yes; then
4424
4425 cat >>confdefs.h <<\_ACEOF
4426 #define STDC_HEADERS 1
4427 _ACEOF
4428
4429 fi
4430
4431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4442                   inttypes.h stdint.h unistd.h
4443 do
4444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 $ac_includes_default
4457
4458 #include <$ac_header>
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (ac_try="$ac_compile"
4462 case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467   (eval "$ac_compile") 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } &&
4474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475   { (case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480   (eval "$ac_try") 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest.$ac_objext'
4485   { (case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; }; then
4494   eval "$as_ac_Header=yes"
4495 else
4496   echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499         eval "$as_ac_Header=no"
4500 fi
4501
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 fi
4504 ac_res=`eval echo '${'$as_ac_Header'}'`
4505                { echo "$as_me:$LINENO: result: $ac_res" >&5
4506 echo "${ECHO_T}$ac_res" >&6; }
4507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4508   cat >>confdefs.h <<_ACEOF
4509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4510 _ACEOF
4511
4512 fi
4513
4514 done
4515
4516
4517 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4518 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4519 if test "${ac_cv_c_bigendian+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   # See if sys/param.h defines the BYTE_ORDER macro.
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 #include <sys/types.h>
4530 #include <sys/param.h>
4531
4532 int
4533 main ()
4534 {
4535 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4536  bogus endian macros
4537 #endif
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_compile") 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } &&
4557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558   { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (case "(($ac_try" in
4569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570   *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573   (eval "$ac_try") 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; }; then
4577   # It does; now see whether it defined to BIG_ENDIAN or not.
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584 #include <sys/types.h>
4585 #include <sys/param.h>
4586
4587 int
4588 main ()
4589 {
4590 #if BYTE_ORDER != BIG_ENDIAN
4591  not big endian
4592 #endif
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4600 case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_compile") 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } &&
4612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4613   { (case "(($ac_try" in
4614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615   *) ac_try_echo=$ac_try;;
4616 esac
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618   (eval "$ac_try") 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; } &&
4622          { ac_try='test -s conftest.$ac_objext'
4623   { (case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628   (eval "$ac_try") 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_cv_c_bigendian=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637         ac_cv_c_bigendian=no
4638 fi
4639
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645         # It does not; compile a test program.
4646 if test "$cross_compiling" = yes; then
4647   # try to guess the endianness by grepping values into an object file
4648   ac_cv_c_bigendian=unknown
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4656 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4657 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4658 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4659 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4660 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4661 int
4662 main ()
4663 {
4664  _ascii (); _ebcdic ();
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676   (eval "$ac_compile") 2>conftest.er1
4677   ac_status=$?
4678   grep -v '^ *+' conftest.er1 >conftest.err
4679   rm -f conftest.er1
4680   cat conftest.err >&5
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } &&
4683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4684   { (case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_try") 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (case "(($ac_try" in
4695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696   *) ac_try_echo=$ac_try;;
4697 esac
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699   (eval "$ac_try") 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4704   ac_cv_c_bigendian=yes
4705 fi
4706 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4707   if test "$ac_cv_c_bigendian" = unknown; then
4708     ac_cv_c_bigendian=no
4709   else
4710     # finding both strings is unlikely to happen, but who knows?
4711     ac_cv_c_bigendian=unknown
4712   fi
4713 fi
4714 else
4715   echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718
4719 fi
4720
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 else
4723   cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729 $ac_includes_default
4730 int
4731 main ()
4732 {
4733
4734   /* Are we little or big endian?  From Harbison&Steele.  */
4735   union
4736   {
4737     long int l;
4738     char c[sizeof (long int)];
4739   } u;
4740   u.l = 1;
4741   return u.c[sizeof (long int) - 1] == 1;
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest$ac_exeext
4748 if { (ac_try="$ac_link"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_link") 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758   { (case "(($ac_try" in
4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760   *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763   (eval "$ac_try") 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_cv_c_bigendian=no
4768 else
4769   echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ( exit $ac_status )
4774 ac_cv_c_bigendian=yes
4775 fi
4776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4777 fi
4778
4779
4780 fi
4781
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4786 case $ac_cv_c_bigendian in
4787   yes)
4788     ENDIAN=big
4789  ;;
4790   no)
4791     ENDIAN=little
4792  ;;
4793   *)
4794     { { echo "$as_me:$LINENO: error: unknown endianness
4795 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4796 echo "$as_me: error: unknown endianness
4797 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4798    { (exit 1); exit 1; }; } ;;
4799 esac
4800
4801
4802 if test "$cross_compiling" = yes; then
4803   LLVM_CROSS_COMPILING=1
4804
4805
4806 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4807 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4808 if test "${ac_cv_build_exeext+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4812   ac_cv_build_exeext=.exe
4813 else
4814   ac_build_prefix=${build_alias}-
4815
4816   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_build_prefix}gcc; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$BUILD_CC"; then
4824   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 BUILD_CC=$ac_cv_prog_BUILD_CC
4844 if test -n "$BUILD_CC"; then
4845   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4846 echo "${ECHO_T}$BUILD_CC" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853   if test -z "$BUILD_CC"; then
4854      # Extract the first word of "gcc", so it can be a program name with args.
4855 set dummy gcc; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   if test -n "$BUILD_CC"; then
4862   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869   for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_prog_BUILD_CC="gcc"
4872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 BUILD_CC=$ac_cv_prog_BUILD_CC
4882 if test -n "$BUILD_CC"; then
4883   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4884 echo "${ECHO_T}$BUILD_CC" >&6; }
4885 else
4886   { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4888 fi
4889
4890
4891      if test -z "$BUILD_CC"; then
4892        # Extract the first word of "cc", so it can be a program name with args.
4893 set dummy cc; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   if test -n "$BUILD_CC"; then
4900   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4901 else
4902   ac_prog_rejected=no
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4911        ac_prog_rejected=yes
4912        continue
4913      fi
4914     ac_cv_prog_BUILD_CC="cc"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920 IFS=$as_save_IFS
4921
4922 if test $ac_prog_rejected = yes; then
4923   # We found a bogon in the path, so make sure we never use it.
4924   set dummy $ac_cv_prog_BUILD_CC
4925   shift
4926   if test $# != 0; then
4927     # We chose a different compiler from the bogus one.
4928     # However, it has the same basename, so the bogon will be chosen
4929     # first if we set BUILD_CC to just the basename; use the full file name.
4930     shift
4931     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4932   fi
4933 fi
4934 fi
4935 fi
4936 BUILD_CC=$ac_cv_prog_BUILD_CC
4937 if test -n "$BUILD_CC"; then
4938   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4939 echo "${ECHO_T}$BUILD_CC" >&6; }
4940 else
4941   { echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6; }
4943 fi
4944
4945
4946      fi
4947   fi
4948   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4949 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4950    { (exit 1); exit 1; }; }
4951   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4952   rm -f conftest*
4953   echo 'int main () { return 0; }' > conftest.$ac_ext
4954   ac_cv_build_exeext=
4955   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4956   (eval $ac_build_link) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }; then
4960     for file in conftest.*; do
4961       case $file in
4962       *.c | *.o | *.obj | *.dSYM) ;;
4963       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4964       esac
4965     done
4966   else
4967     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4968 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4969    { (exit 1); exit 1; }; }
4970   fi
4971   rm -f conftest*
4972   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4973 fi
4974 fi
4975
4976 BUILD_EXEEXT=""
4977 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4978 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4979 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4980 ac_build_exeext=$BUILD_EXEEXT
4981
4982   ac_build_prefix=${build_alias}-
4983   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4984 set dummy ${ac_build_prefix}g++; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   if test -n "$BUILD_CXX"; then
4991   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998   for ac_exec_ext in '' $ac_executable_extensions; do
4999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5000     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005 done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5011 if test -n "$BUILD_CXX"; then
5012   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5013 echo "${ECHO_T}$BUILD_CXX" >&6; }
5014 else
5015   { echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6; }
5017 fi
5018
5019
5020   if test -z "$BUILD_CXX"; then
5021      # Extract the first word of "g++", so it can be a program name with args.
5022 set dummy g++; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   if test -n "$BUILD_CXX"; then
5029   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_prog_BUILD_CXX="g++"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5049 if test -n "$BUILD_CXX"; then
5050   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5051 echo "${ECHO_T}$BUILD_CXX" >&6; }
5052 else
5053   { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5055 fi
5056
5057
5058      if test -z "$BUILD_CXX"; then
5059        # Extract the first word of "c++", so it can be a program name with args.
5060 set dummy c++; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   if test -n "$BUILD_CXX"; then
5067   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5068 else
5069   ac_prog_rejected=no
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5078        ac_prog_rejected=yes
5079        continue
5080      fi
5081     ac_cv_prog_BUILD_CXX="c++"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089 if test $ac_prog_rejected = yes; then
5090   # We found a bogon in the path, so make sure we never use it.
5091   set dummy $ac_cv_prog_BUILD_CXX
5092   shift
5093   if test $# != 0; then
5094     # We chose a different compiler from the bogus one.
5095     # However, it has the same basename, so the bogon will be chosen
5096     # first if we set BUILD_CXX to just the basename; use the full file name.
5097     shift
5098     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5099   fi
5100 fi
5101 fi
5102 fi
5103 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5104 if test -n "$BUILD_CXX"; then
5105   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5106 echo "${ECHO_T}$BUILD_CXX" >&6; }
5107 else
5108   { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5110 fi
5111
5112
5113      fi
5114   fi
5115 else
5116   LLVM_CROSS_COMPILING=0
5117
5118 fi
5119
5120 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5121   cvsbuild="yes"
5122   optimize="no"
5123   CVSBUILD=CVSBUILD=1
5124
5125 else
5126   cvsbuild="no"
5127   optimize="yes"
5128 fi
5129
5130
5131 # Check whether --enable-libcpp was given.
5132 if test "${enable_libcpp+set}" = set; then
5133   enableval=$enable_libcpp;
5134 else
5135   enableval=default
5136 fi
5137
5138 case "$enableval" in
5139   yes) ENABLE_LIBCPP=1
5140  ;;
5141   no)  ENABLE_LIBCPP=0
5142  ;;
5143   default) ENABLE_LIBCPP=0
5144 ;;
5145   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5147    { (exit 1); exit 1; }; } ;;
5148 esac
5149
5150 # Check whether --enable-cxx11 was given.
5151 if test "${enable_cxx11+set}" = set; then
5152   enableval=$enable_cxx11;
5153 else
5154   enableval=default
5155 fi
5156
5157 case "$enableval" in
5158   yes) ENABLE_CXX11=1
5159  ;;
5160   no)  ENABLE_CXX11=0
5161  ;;
5162   default) ENABLE_CXX11=0
5163 ;;
5164   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5166    { (exit 1); exit 1; }; } ;;
5167 esac
5168
5169 clang_arcmt="yes"
5170 # Check whether --enable-clang-arcmt was given.
5171 if test "${enable_clang_arcmt+set}" = set; then
5172   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5173 else
5174   enableval="yes"
5175 fi
5176
5177 case "$enableval" in
5178   yes) ENABLE_CLANG_ARCMT=1
5179  ;;
5180   no)  ENABLE_CLANG_ARCMT=0
5181  ;;
5182   default) ENABLE_CLANG_ARCMT=1
5183 ;;
5184   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5185 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5186    { (exit 1); exit 1; }; } ;;
5187 esac
5188
5189 clang_static_analyzer="yes"
5190 # Check whether --enable-clang-static-analyzer was given.
5191 if test "${enable_clang_static_analyzer+set}" = set; then
5192   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5193 else
5194   enableval="yes"
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5199  ;;
5200   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5201  ;;
5202   default) ENABLE_CLANG_STATIC_ANALYZER=1
5203 ;;
5204   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5206    { (exit 1); exit 1; }; } ;;
5207 esac
5208
5209 # Check whether --enable-clang-rewriter was given.
5210 if test "${enable_clang_rewriter+set}" = set; then
5211   enableval=$enable_clang_rewriter;
5212 else
5213   enableval="yes"
5214 fi
5215
5216 case "$enableval" in
5217   yes) ENABLE_CLANG_REWRITER=1
5218  ;;
5219   no)
5220     if test ${clang_arcmt} != "no" ; then
5221       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5222 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5223    { (exit 1); exit 1; }; }
5224     fi
5225     if test ${clang_static_analyzer} != "no" ; then
5226       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5227 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5228    { (exit 1); exit 1; }; }
5229     fi
5230     ENABLE_CLANG_REWRITER=0
5231
5232     ;;
5233   default) ENABLE_CLANG_REWRITER=1
5234 ;;
5235   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5237    { (exit 1); exit 1; }; } ;;
5238 esac
5239
5240 # Check whether --enable-optimized was given.
5241 if test "${enable_optimized+set}" = set; then
5242   enableval=$enable_optimized;
5243 else
5244   enableval=$optimize
5245 fi
5246
5247 if test ${enableval} = "no" ; then
5248   ENABLE_OPTIMIZED=
5249
5250 else
5251   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5252
5253 fi
5254
5255 # Check whether --enable-profiling was given.
5256 if test "${enable_profiling+set}" = set; then
5257   enableval=$enable_profiling;
5258 else
5259   enableval="no"
5260 fi
5261
5262 if test ${enableval} = "no" ; then
5263   ENABLE_PROFILING=
5264
5265 else
5266   ENABLE_PROFILING=ENABLE_PROFILING=1
5267
5268 fi
5269
5270 # Check whether --enable-assertions was given.
5271 if test "${enable_assertions+set}" = set; then
5272   enableval=$enable_assertions;
5273 else
5274   enableval="yes"
5275 fi
5276
5277 if test ${enableval} = "yes" ; then
5278   DISABLE_ASSERTIONS=
5279
5280 else
5281   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5282
5283 fi
5284
5285 # Check whether --enable-werror was given.
5286 if test "${enable_werror+set}" = set; then
5287   enableval=$enable_werror;
5288 else
5289   enableval="no"
5290 fi
5291
5292 case "$enableval" in
5293   yes) ENABLE_WERROR=1
5294  ;;
5295   no)  ENABLE_WERROR=0
5296  ;;
5297   default) ENABLE_WERROR=0
5298 ;;
5299   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5300 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5301    { (exit 1); exit 1; }; } ;;
5302 esac
5303
5304 # Check whether --enable-expensive-checks was given.
5305 if test "${enable_expensive_checks+set}" = set; then
5306   enableval=$enable_expensive_checks;
5307 else
5308   enableval="no"
5309 fi
5310
5311 if test ${enableval} = "yes" ; then
5312   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5313
5314   EXPENSIVE_CHECKS=yes
5315
5316 else
5317   ENABLE_EXPENSIVE_CHECKS=
5318
5319   EXPENSIVE_CHECKS=no
5320
5321 fi
5322
5323 # Check whether --enable-debug-runtime was given.
5324 if test "${enable_debug_runtime+set}" = set; then
5325   enableval=$enable_debug_runtime;
5326 else
5327   enableval=no
5328 fi
5329
5330 if test ${enableval} = "no" ; then
5331   DEBUG_RUNTIME=
5332
5333 else
5334   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5335
5336 fi
5337
5338 # Check whether --enable-debug-symbols was given.
5339 if test "${enable_debug_symbols+set}" = set; then
5340   enableval=$enable_debug_symbols;
5341 else
5342   enableval=no
5343 fi
5344
5345 if test ${enableval} = "no" ; then
5346   DEBUG_SYMBOLS=
5347
5348 else
5349   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5350
5351 fi
5352
5353 # Check whether --enable-keep-symbols was given.
5354 if test "${enable_keep_symbols+set}" = set; then
5355   enableval=$enable_keep_symbols;
5356 else
5357   enableval=no
5358 fi
5359
5360 if test ${enableval} = "no" ; then
5361   KEEP_SYMBOLS=
5362
5363 else
5364   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5365
5366 fi
5367
5368 # Check whether --enable-jit was given.
5369 if test "${enable_jit+set}" = set; then
5370   enableval=$enable_jit;
5371 else
5372   enableval=default
5373 fi
5374
5375 if test ${enableval} = "no"
5376 then
5377   JIT=
5378
5379 else
5380   case "$llvm_cv_target_arch" in
5381     x86)         TARGET_HAS_JIT=1
5382  ;;
5383     Sparc)       TARGET_HAS_JIT=0
5384  ;;
5385     PowerPC)     TARGET_HAS_JIT=1
5386  ;;
5387     x86_64)      TARGET_HAS_JIT=1
5388  ;;
5389     ARM)         TARGET_HAS_JIT=1
5390  ;;
5391     AArch64)     TARGET_HAS_JIT=0
5392  ;;
5393     Mips)        TARGET_HAS_JIT=1
5394  ;;
5395     XCore)       TARGET_HAS_JIT=0
5396  ;;
5397     MSP430)      TARGET_HAS_JIT=0
5398  ;;
5399     Hexagon)     TARGET_HAS_JIT=0
5400  ;;
5401     MBlaze)      TARGET_HAS_JIT=0
5402  ;;
5403     NVPTX)       TARGET_HAS_JIT=0
5404  ;;
5405     SystemZ)     TARGET_HAS_JIT=1
5406  ;;
5407     *)           TARGET_HAS_JIT=0
5408  ;;
5409   esac
5410 fi
5411
5412 # Check whether --enable-docs was given.
5413 if test "${enable_docs+set}" = set; then
5414   enableval=$enable_docs;
5415 else
5416   enableval=default
5417 fi
5418
5419 case "$enableval" in
5420   yes) ENABLE_DOCS=1
5421  ;;
5422   no)  ENABLE_DOCS=0
5423  ;;
5424   default) ENABLE_DOCS=1
5425  ;;
5426   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5428    { (exit 1); exit 1; }; } ;;
5429 esac
5430
5431 # Check whether --enable-doxygen was given.
5432 if test "${enable_doxygen+set}" = set; then
5433   enableval=$enable_doxygen;
5434 else
5435   enableval=default
5436 fi
5437
5438 case "$enableval" in
5439   yes) ENABLE_DOXYGEN=1
5440  ;;
5441   no)  ENABLE_DOXYGEN=0
5442  ;;
5443   default) ENABLE_DOXYGEN=0
5444  ;;
5445   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5446 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5447    { (exit 1); exit 1; }; } ;;
5448 esac
5449
5450 # Check whether --enable-threads was given.
5451 if test "${enable_threads+set}" = set; then
5452   enableval=$enable_threads;
5453 else
5454   enableval=default
5455 fi
5456
5457 case "$enableval" in
5458   yes) LLVM_ENABLE_THREADS=1
5459  ;;
5460   no)  LLVM_ENABLE_THREADS=0
5461  ;;
5462   default) LLVM_ENABLE_THREADS=1
5463  ;;
5464   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5465 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5466    { (exit 1); exit 1; }; } ;;
5467 esac
5468
5469 cat >>confdefs.h <<_ACEOF
5470 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5471 _ACEOF
5472
5473
5474 # Check whether --enable-pthreads was given.
5475 if test "${enable_pthreads+set}" = set; then
5476   enableval=$enable_pthreads;
5477 else
5478   enableval=default
5479 fi
5480
5481 case "$enableval" in
5482   yes) ENABLE_PTHREADS=1
5483  ;;
5484   no)  ENABLE_PTHREADS=0
5485  ;;
5486   default) ENABLE_PTHREADS=1
5487  ;;
5488   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5489 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5490    { (exit 1); exit 1; }; } ;;
5491 esac
5492
5493 # Check whether --enable-zlib was given.
5494 if test "${enable_zlib+set}" = set; then
5495   enableval=$enable_zlib;
5496 else
5497   enableval=default
5498 fi
5499
5500 case "$enableval" in
5501   yes) LLVM_ENABLE_ZLIB=1
5502  ;;
5503   no)  LLVM_ENABLE_ZLIB=0
5504  ;;
5505   default) LLVM_ENABLE_ZLIB=1
5506  ;;
5507   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5508 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5509    { (exit 1); exit 1; }; } ;;
5510 esac
5511
5512 cat >>confdefs.h <<_ACEOF
5513 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5514 _ACEOF
5515
5516
5517 # Check whether --enable-pic was given.
5518 if test "${enable_pic+set}" = set; then
5519   enableval=$enable_pic;
5520 else
5521   enableval=default
5522 fi
5523
5524 case "$enableval" in
5525   yes) ENABLE_PIC=1
5526  ;;
5527   no)  ENABLE_PIC=0
5528  ;;
5529   default) ENABLE_PIC=1
5530  ;;
5531   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5532 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534 esac
5535
5536 cat >>confdefs.h <<_ACEOF
5537 #define ENABLE_PIC $ENABLE_PIC
5538 _ACEOF
5539
5540
5541 # Check whether --enable-shared was given.
5542 if test "${enable_shared+set}" = set; then
5543   enableval=$enable_shared;
5544 else
5545   enableval=default
5546 fi
5547
5548 case "$enableval" in
5549   yes) ENABLE_SHARED=1
5550  ;;
5551   no)  ENABLE_SHARED=0
5552  ;;
5553   default) ENABLE_SHARED=0
5554  ;;
5555   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5556 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5557    { (exit 1); exit 1; }; } ;;
5558 esac
5559
5560 # Check whether --enable-embed-stdcxx was given.
5561 if test "${enable_embed_stdcxx+set}" = set; then
5562   enableval=$enable_embed_stdcxx;
5563 else
5564   enableval=default
5565 fi
5566
5567 case "$enableval" in
5568   yes) ENABLE_EMBED_STDCXX=1
5569  ;;
5570   no)  ENABLE_EMBED_STDCXX=0
5571  ;;
5572   default) ENABLE_EMBED_STDCXX=0
5573  ;;
5574   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5575 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5576    { (exit 1); exit 1; }; } ;;
5577 esac
5578
5579 # Check whether --enable-timestamps was given.
5580 if test "${enable_timestamps+set}" = set; then
5581   enableval=$enable_timestamps;
5582 else
5583   enableval=default
5584 fi
5585
5586 case "$enableval" in
5587   yes) ENABLE_TIMESTAMPS=1
5588  ;;
5589   no)  ENABLE_TIMESTAMPS=0
5590  ;;
5591   default) ENABLE_TIMESTAMPS=1
5592  ;;
5593   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5594 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5595    { (exit 1); exit 1; }; } ;;
5596 esac
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5600 _ACEOF
5601
5602
5603
5604 # Check whether --enable-backtraces was given.
5605 if test "${enable_backtraces+set}" = set; then
5606   enableval=$enable_backtraces;
5607 else
5608   enableval=default
5609 fi
5610
5611 case "$enableval" in
5612   yes) ENABLE_BACKTRACES=1
5613  ;;
5614   no)  ENABLE_BACKTRACES=0
5615  ;;
5616   default) ENABLE_BACKTRACES=1
5617  ;;
5618   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5620    { (exit 1); exit 1; }; } ;;
5621 esac
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5625 _ACEOF
5626
5627
5628 TARGETS_TO_BUILD=""
5629 # Check whether --enable-targets was given.
5630 if test "${enable_targets+set}" = set; then
5631   enableval=$enable_targets;
5632 else
5633   enableval=all
5634 fi
5635
5636 if test "$enableval" = host-only ; then
5637   enableval=host
5638 fi
5639 case "$enableval" in
5640   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5641   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5642       case "$a_target" in
5643         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5645         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5646         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5647         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5648         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5649         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5653         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5654         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5655         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5656         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5657         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5658         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5659         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5660         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5661         host) case "$llvm_cv_target_arch" in
5662             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5664             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5665             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5666             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5667             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5668             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5669             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5670             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5671             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5672             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5673             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5674             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5675             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5676 echo "$as_me: error: Can not set target to build" >&2;}
5677    { (exit 1); exit 1; }; } ;;
5678           esac ;;
5679         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5680 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5681    { (exit 1); exit 1; }; } ;;
5682       esac
5683   done
5684   ;;
5685 esac
5686
5687 # Check whether --enable-experimental-targets was given.
5688 if test "${enable_experimental_targets+set}" = set; then
5689   enableval=$enable_experimental_targets;
5690 else
5691   enableval=disable
5692 fi
5693
5694
5695 if test ${enableval} != "disable"
5696 then
5697   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5698 fi
5699
5700 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5701
5702
5703 for a_target in $TARGETS_TO_BUILD; do
5704   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5708 _ACEOF
5709
5710     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5711     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5712     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5713     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5714     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5715       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5716     fi
5717     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5718       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5719     fi
5720
5721 cat >>confdefs.h <<_ACEOF
5722 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5723 _ACEOF
5724
5725
5726 cat >>confdefs.h <<_ACEOF
5727 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5728 _ACEOF
5729
5730
5731 cat >>confdefs.h <<_ACEOF
5732 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5733 _ACEOF
5734
5735
5736 cat >>confdefs.h <<_ACEOF
5737 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5738 _ACEOF
5739
5740     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5744 _ACEOF
5745
5746     fi
5747     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5751 _ACEOF
5752
5753     fi
5754   fi
5755 done
5756
5757 LLVM_ENUM_TARGETS=""
5758 LLVM_ENUM_ASM_PRINTERS=""
5759 LLVM_ENUM_ASM_PARSERS=""
5760 LLVM_ENUM_DISASSEMBLERS=""
5761 for target_to_build in $TARGETS_TO_BUILD; do
5762   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5763   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5764     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5765   fi
5766   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5767     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5768   fi
5769   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5770     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5771   fi
5772 done
5773
5774
5775
5776
5777
5778
5779 # Check whether --with-optimize-option was given.
5780 if test "${with_optimize_option+set}" = set; then
5781   withval=$with_optimize_option;
5782 else
5783   withval=default
5784 fi
5785
5786 { echo "$as_me:$LINENO: checking optimization flags" >&5
5787 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5788 case "$withval" in
5789   default)
5790     case "$llvm_cv_os_type" in
5791     FreeBSD) optimize_option=-O2 ;;
5792     MingW) optimize_option=-O2 ;;
5793     *)     optimize_option=-O3 ;;
5794     esac ;;
5795   *) optimize_option="$withval" ;;
5796 esac
5797 OPTIMIZE_OPTION=$optimize_option
5798
5799 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5800 echo "${ECHO_T}$optimize_option" >&6; }
5801
5802
5803 # Check whether --with-extra-options was given.
5804 if test "${with_extra_options+set}" = set; then
5805   withval=$with_extra_options;
5806 else
5807   withval=default
5808 fi
5809
5810 case "$withval" in
5811   default) EXTRA_OPTIONS= ;;
5812   *) EXTRA_OPTIONS=$withval ;;
5813 esac
5814 EXTRA_OPTIONS=$EXTRA_OPTIONS
5815
5816
5817
5818 # Check whether --with-extra-ld-options was given.
5819 if test "${with_extra_ld_options+set}" = set; then
5820   withval=$with_extra_ld_options;
5821 else
5822   withval=default
5823 fi
5824
5825 case "$withval" in
5826   default) EXTRA_LD_OPTIONS= ;;
5827   *) EXTRA_LD_OPTIONS=$withval ;;
5828 esac
5829 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5830
5831
5832 # Check whether --enable-bindings was given.
5833 if test "${enable_bindings+set}" = set; then
5834   enableval=$enable_bindings;
5835 else
5836   enableval=default
5837 fi
5838
5839 BINDINGS_TO_BUILD=""
5840 case "$enableval" in
5841   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5842   all ) BINDINGS_TO_BUILD="ocaml" ;;
5843   none | no) BINDINGS_TO_BUILD="" ;;
5844   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5845       case "$a_binding" in
5846         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5847         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5848 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5849    { (exit 1); exit 1; }; } ;;
5850       esac
5851   done
5852   ;;
5853 esac
5854
5855
5856 # Check whether --with-ocaml-libdir was given.
5857 if test "${with_ocaml_libdir+set}" = set; then
5858   withval=$with_ocaml_libdir;
5859 else
5860   withval=auto
5861 fi
5862
5863 case "$withval" in
5864   auto) with_ocaml_libdir="$withval" ;;
5865   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5866   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5867 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5868    { (exit 1); exit 1; }; } ;;
5869 esac
5870
5871
5872 # Check whether --with-clang-srcdir was given.
5873 if test "${with_clang_srcdir+set}" = set; then
5874   withval=$with_clang_srcdir;
5875 else
5876   withval="-"
5877 fi
5878
5879 case "$withval" in
5880   -) clang_src_root="" ;;
5881   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5882   *) clang_src_root="$ac_pwd/$withval" ;;
5883 esac
5884 CLANG_SRC_ROOT=$clang_src_root
5885
5886
5887
5888 # Check whether --with-clang-resource-dir was given.
5889 if test "${with_clang_resource_dir+set}" = set; then
5890   withval=$with_clang_resource_dir;
5891 else
5892   withval=""
5893 fi
5894
5895
5896 cat >>confdefs.h <<_ACEOF
5897 #define CLANG_RESOURCE_DIR "$withval"
5898 _ACEOF
5899
5900
5901
5902 # Check whether --with-c-include-dirs was given.
5903 if test "${with_c_include_dirs+set}" = set; then
5904   withval=$with_c_include_dirs;
5905 else
5906   withval=""
5907 fi
5908
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define C_INCLUDE_DIRS "$withval"
5912 _ACEOF
5913
5914
5915 # Clang normally uses the system c++ headers and libraries. With this option,
5916 # clang will use the ones provided by a gcc installation instead. This option should
5917 # be passed the same value that was used with --prefix when configuring gcc.
5918
5919 # Check whether --with-gcc-toolchain was given.
5920 if test "${with_gcc_toolchain+set}" = set; then
5921   withval=$with_gcc_toolchain;
5922 else
5923   withval=""
5924 fi
5925
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define GCC_INSTALL_PREFIX "$withval"
5929 _ACEOF
5930
5931
5932
5933 # Check whether --with-default-sysroot was given.
5934 if test "${with_default_sysroot+set}" = set; then
5935   withval=$with_default_sysroot;
5936 else
5937   withval=""
5938 fi
5939
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define DEFAULT_SYSROOT "$withval"
5943 _ACEOF
5944
5945
5946
5947 # Check whether --with-binutils-include was given.
5948 if test "${with_binutils_include+set}" = set; then
5949   withval=$with_binutils_include;
5950 else
5951   withval=default
5952 fi
5953
5954 case "$withval" in
5955   default) WITH_BINUTILS_INCDIR=default ;;
5956   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5957   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5958 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5959    { (exit 1); exit 1; }; } ;;
5960 esac
5961 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5962   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5963
5964   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5965      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5966      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5967 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5968    { (exit 1); exit 1; }; };
5969   fi
5970 fi
5971
5972
5973 # Check whether --with-bug-report-url was given.
5974 if test "${with_bug_report_url+set}" = set; then
5975   withval=$with_bug_report_url;
5976 else
5977   withval="http://llvm.org/bugs/"
5978 fi
5979
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define BUG_REPORT_URL "$withval"
5983 _ACEOF
5984
5985
5986 # Check whether --enable-libffi was given.
5987 if test "${enable_libffi+set}" = set; then
5988   enableval=$enable_libffi; case "$enableval" in
5989     yes) llvm_cv_enable_libffi="yes" ;;
5990     no)  llvm_cv_enable_libffi="no"  ;;
5991     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5992 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5993    { (exit 1); exit 1; }; } ;;
5994   esac
5995 else
5996   llvm_cv_enable_libffi=no
5997 fi
5998
5999
6000
6001 # Check whether --with-internal-prefix was given.
6002 if test "${with_internal_prefix+set}" = set; then
6003   withval=$with_internal_prefix;
6004 else
6005   withval=""
6006 fi
6007
6008 INTERNAL_PREFIX=$withval
6009
6010
6011
6012 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6013 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6014 if test "${lt_cv_path_NM+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   if test -n "$NM"; then
6018   # Let the user override the test.
6019   lt_cv_path_NM="$NM"
6020 else
6021   lt_nm_to_check="${ac_tool_prefix}nm"
6022   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6023     lt_nm_to_check="$lt_nm_to_check nm"
6024   fi
6025   for lt_tmp_nm in $lt_nm_to_check; do
6026     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6027     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6028       IFS="$lt_save_ifs"
6029       test -z "$ac_dir" && ac_dir=.
6030       tmp_nm="$ac_dir/$lt_tmp_nm"
6031       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6032         # Check to see if the nm accepts a BSD-compat flag.
6033         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6034         #   nm: unknown option "B" ignored
6035         # Tru64's nm complains that /dev/null is an invalid object file
6036         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6037         */dev/null* | *'Invalid file or object type'*)
6038           lt_cv_path_NM="$tmp_nm -B"
6039           break
6040           ;;
6041         *)
6042           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6043           */dev/null*)
6044             lt_cv_path_NM="$tmp_nm -p"
6045             break
6046             ;;
6047           *)
6048             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6049             continue # so that we can try to find one that supports BSD flags
6050             ;;
6051           esac
6052           ;;
6053         esac
6054       fi
6055     done
6056     IFS="$lt_save_ifs"
6057   done
6058   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6059 fi
6060 fi
6061 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6062 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6063 NM="$lt_cv_path_NM"
6064
6065
6066
6067 { echo "$as_me:$LINENO: checking for GNU make" >&5
6068 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6069 if test "${llvm_cv_gnu_make_command+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   llvm_cv_gnu_make_command=''
6073  for a in "$MAKE" make gmake gnumake ; do
6074   if test -z "$a" ; then continue ; fi ;
6075   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6076   then
6077    llvm_cv_gnu_make_command=$a ;
6078    break;
6079   fi
6080  done
6081 fi
6082 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6083 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6084  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6085    ifGNUmake='' ;
6086  else
6087    ifGNUmake='#' ;
6088    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6089 echo "${ECHO_T}\"Not found\"" >&6; };
6090  fi
6091
6092
6093 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6094 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6095 LN_S=$as_ln_s
6096 if test "$LN_S" = "ln -s"; then
6097   { echo "$as_me:$LINENO: result: yes" >&5
6098 echo "${ECHO_T}yes" >&6; }
6099 else
6100   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6101 echo "${ECHO_T}no, using $LN_S" >&6; }
6102 fi
6103
6104 # Extract the first word of "cmp", so it can be a program name with args.
6105 set dummy cmp; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_CMP+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   case $CMP in
6112   [\\/]* | ?:[\\/]*)
6113   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6114   ;;
6115   *)
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6132   ;;
6133 esac
6134 fi
6135 CMP=$ac_cv_path_CMP
6136 if test -n "$CMP"; then
6137   { echo "$as_me:$LINENO: result: $CMP" >&5
6138 echo "${ECHO_T}$CMP" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143
6144
6145 # Extract the first word of "cp", so it can be a program name with args.
6146 set dummy cp; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_CP+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   case $CP in
6153   [\\/]* | ?:[\\/]*)
6154   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6155   ;;
6156   *)
6157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6173   ;;
6174 esac
6175 fi
6176 CP=$ac_cv_path_CP
6177 if test -n "$CP"; then
6178   { echo "$as_me:$LINENO: result: $CP" >&5
6179 echo "${ECHO_T}$CP" >&6; }
6180 else
6181   { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6183 fi
6184
6185
6186 # Extract the first word of "date", so it can be a program name with args.
6187 set dummy date; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_DATE+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   case $DATE in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6214   ;;
6215 esac
6216 fi
6217 DATE=$ac_cv_path_DATE
6218 if test -n "$DATE"; then
6219   { echo "$as_me:$LINENO: result: $DATE" >&5
6220 echo "${ECHO_T}$DATE" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227 # Extract the first word of "find", so it can be a program name with args.
6228 set dummy find; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_FIND+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   case $FIND in
6235   [\\/]* | ?:[\\/]*)
6236   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6237   ;;
6238   *)
6239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244   for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6255   ;;
6256 esac
6257 fi
6258 FIND=$ac_cv_path_FIND
6259 if test -n "$FIND"; then
6260   { echo "$as_me:$LINENO: result: $FIND" >&5
6261 echo "${ECHO_T}$FIND" >&6; }
6262 else
6263   { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6265 fi
6266
6267
6268 # Extract the first word of "grep", so it can be a program name with args.
6269 set dummy grep; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_GREP+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   case $GREP in
6276   [\\/]* | ?:[\\/]*)
6277   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6278   ;;
6279   *)
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285   for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6296   ;;
6297 esac
6298 fi
6299 GREP=$ac_cv_path_GREP
6300 if test -n "$GREP"; then
6301   { echo "$as_me:$LINENO: result: $GREP" >&5
6302 echo "${ECHO_T}$GREP" >&6; }
6303 else
6304   { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6306 fi
6307
6308
6309 # Extract the first word of "mkdir", so it can be a program name with args.
6310 set dummy mkdir; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_MKDIR+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   case $MKDIR in
6317   [\\/]* | ?:[\\/]*)
6318   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6319   ;;
6320   *)
6321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326   for ac_exec_ext in '' $ac_executable_extensions; do
6327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6337   ;;
6338 esac
6339 fi
6340 MKDIR=$ac_cv_path_MKDIR
6341 if test -n "$MKDIR"; then
6342   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6343 echo "${ECHO_T}$MKDIR" >&6; }
6344 else
6345   { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6347 fi
6348
6349
6350 # Extract the first word of "mv", so it can be a program name with args.
6351 set dummy mv; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_path_MV+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   case $MV in
6358   [\\/]* | ?:[\\/]*)
6359   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6360   ;;
6361   *)
6362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367   for ac_exec_ext in '' $ac_executable_extensions; do
6368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6378   ;;
6379 esac
6380 fi
6381 MV=$ac_cv_path_MV
6382 if test -n "$MV"; then
6383   { echo "$as_me:$LINENO: result: $MV" >&5
6384 echo "${ECHO_T}$MV" >&6; }
6385 else
6386   { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6388 fi
6389
6390
6391 if test -n "$ac_tool_prefix"; then
6392   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_RANLIB+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   if test -n "$RANLIB"; then
6400   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407   for ac_exec_ext in '' $ac_executable_extensions; do
6408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 RANLIB=$ac_cv_prog_RANLIB
6420 if test -n "$RANLIB"; then
6421   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6422 echo "${ECHO_T}$RANLIB" >&6; }
6423 else
6424   { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 fi
6427
6428
6429 fi
6430 if test -z "$ac_cv_prog_RANLIB"; then
6431   ac_ct_RANLIB=$RANLIB
6432   # Extract the first word of "ranlib", so it can be a program name with args.
6433 set dummy ranlib; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   if test -n "$ac_ct_RANLIB"; then
6440   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447   for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_prog_ac_ct_RANLIB="ranlib"
6450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6460 if test -n "$ac_ct_RANLIB"; then
6461   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6462 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6463 else
6464   { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6466 fi
6467
6468   if test "x$ac_ct_RANLIB" = x; then
6469     RANLIB=":"
6470   else
6471     case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6474 whose name does not start with the host triplet.  If you think this
6475 configuration is useful to you, please write to autoconf@gnu.org." >&5
6476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6477 whose name does not start with the host triplet.  If you think this
6478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481     RANLIB=$ac_ct_RANLIB
6482   fi
6483 else
6484   RANLIB="$ac_cv_prog_RANLIB"
6485 fi
6486
6487 if test -n "$ac_tool_prefix"; then
6488   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}ar; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_AR+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   if test -n "$AR"; then
6496   ac_cv_prog_AR="$AR" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_prog_AR="${ac_tool_prefix}ar"
6506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 AR=$ac_cv_prog_AR
6516 if test -n "$AR"; then
6517   { echo "$as_me:$LINENO: result: $AR" >&5
6518 echo "${ECHO_T}$AR" >&6; }
6519 else
6520   { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_AR"; then
6527   ac_ct_AR=$AR
6528   # Extract the first word of "ar", so it can be a program name with args.
6529 set dummy ar; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   if test -n "$ac_ct_AR"; then
6536   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_prog_ac_ct_AR="ar"
6546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6556 if test -n "$ac_ct_AR"; then
6557   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6558 echo "${ECHO_T}$ac_ct_AR" >&6; }
6559 else
6560   { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6562 fi
6563
6564   if test "x$ac_ct_AR" = x; then
6565     AR="false"
6566   else
6567     case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet.  If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&5
6572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6573 whose name does not start with the host triplet.  If you think this
6574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577     AR=$ac_ct_AR
6578   fi
6579 else
6580   AR="$ac_cv_prog_AR"
6581 fi
6582
6583 # Extract the first word of "rm", so it can be a program name with args.
6584 set dummy rm; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_RM+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   case $RM in
6591   [\\/]* | ?:[\\/]*)
6592   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6593   ;;
6594   *)
6595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6611   ;;
6612 esac
6613 fi
6614 RM=$ac_cv_path_RM
6615 if test -n "$RM"; then
6616   { echo "$as_me:$LINENO: result: $RM" >&5
6617 echo "${ECHO_T}$RM" >&6; }
6618 else
6619   { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6621 fi
6622
6623
6624 # Extract the first word of "sed", so it can be a program name with args.
6625 set dummy sed; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_SED+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   case $SED in
6632   [\\/]* | ?:[\\/]*)
6633   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6634   ;;
6635   *)
6636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641   for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6652   ;;
6653 esac
6654 fi
6655 SED=$ac_cv_path_SED
6656 if test -n "$SED"; then
6657   { echo "$as_me:$LINENO: result: $SED" >&5
6658 echo "${ECHO_T}$SED" >&6; }
6659 else
6660   { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6662 fi
6663
6664
6665 # Extract the first word of "tar", so it can be a program name with args.
6666 set dummy tar; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_TAR+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   case $TAR in
6673   [\\/]* | ?:[\\/]*)
6674   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6675   ;;
6676   *)
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682   for ac_exec_ext in '' $ac_executable_extensions; do
6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6693   ;;
6694 esac
6695 fi
6696 TAR=$ac_cv_path_TAR
6697 if test -n "$TAR"; then
6698   { echo "$as_me:$LINENO: result: $TAR" >&5
6699 echo "${ECHO_T}$TAR" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706 # Extract the first word of "pwd", so it can be a program name with args.
6707 set dummy pwd; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_BINPWD+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   case $BINPWD in
6714   [\\/]* | ?:[\\/]*)
6715   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6716   ;;
6717   *)
6718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6734   ;;
6735 esac
6736 fi
6737 BINPWD=$ac_cv_path_BINPWD
6738 if test -n "$BINPWD"; then
6739   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6740 echo "${ECHO_T}$BINPWD" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746
6747
6748 # Extract the first word of "Graphviz", so it can be a program name with args.
6749 set dummy Graphviz; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $GRAPHVIZ in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6776   ;;
6777 esac
6778 fi
6779 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6780 if test -n "$GRAPHVIZ"; then
6781   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6782 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_GRAPHVIZ 1
6793 _ACEOF
6794
6795     if test "$llvm_cv_os_type" = "MingW" ; then
6796     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797   fi
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6801 _ACEOF
6802
6803 fi
6804 # Extract the first word of "dot", so it can be a program name with args.
6805 set dummy dot; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_DOT+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   case $DOT in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6832   ;;
6833 esac
6834 fi
6835 DOT=$ac_cv_path_DOT
6836 if test -n "$DOT"; then
6837   { echo "$as_me:$LINENO: result: $DOT" >&5
6838 echo "${ECHO_T}$DOT" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844
6845 if test "$DOT" != "echo dot" ; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define HAVE_DOT 1
6849 _ACEOF
6850
6851     if test "$llvm_cv_os_type" = "MingW" ; then
6852     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853   fi
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6857 _ACEOF
6858
6859 fi
6860 # Extract the first word of "fdp", so it can be a program name with args.
6861 set dummy fdp; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_FDP+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   case $FDP in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6888   ;;
6889 esac
6890 fi
6891 FDP=$ac_cv_path_FDP
6892 if test -n "$FDP"; then
6893   { echo "$as_me:$LINENO: result: $FDP" >&5
6894 echo "${ECHO_T}$FDP" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901 if test "$FDP" != "echo fdp" ; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_FDP 1
6905 _ACEOF
6906
6907     if test "$llvm_cv_os_type" = "MingW" ; then
6908     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909   fi
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6913 _ACEOF
6914
6915 fi
6916 # Extract the first word of "neato", so it can be a program name with args.
6917 set dummy neato; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_path_NEATO+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   case $NEATO in
6924   [\\/]* | ?:[\\/]*)
6925   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6926   ;;
6927   *)
6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933   for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6944   ;;
6945 esac
6946 fi
6947 NEATO=$ac_cv_path_NEATO
6948 if test -n "$NEATO"; then
6949   { echo "$as_me:$LINENO: result: $NEATO" >&5
6950 echo "${ECHO_T}$NEATO" >&6; }
6951 else
6952   { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6954 fi
6955
6956
6957 if test "$NEATO" != "echo neato" ; then
6958
6959 cat >>confdefs.h <<\_ACEOF
6960 #define HAVE_NEATO 1
6961 _ACEOF
6962
6963     if test "$llvm_cv_os_type" = "MingW" ; then
6964     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6965   fi
6966
6967 cat >>confdefs.h <<_ACEOF
6968 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6969 _ACEOF
6970
6971 fi
6972 # Extract the first word of "twopi", so it can be a program name with args.
6973 set dummy twopi; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_path_TWOPI+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   case $TWOPI in
6980   [\\/]* | ?:[\\/]*)
6981   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6982   ;;
6983   *)
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_exec_ext in '' $ac_executable_extensions; do
6990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7000   ;;
7001 esac
7002 fi
7003 TWOPI=$ac_cv_path_TWOPI
7004 if test -n "$TWOPI"; then
7005   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7006 echo "${ECHO_T}$TWOPI" >&6; }
7007 else
7008   { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7010 fi
7011
7012
7013 if test "$TWOPI" != "echo twopi" ; then
7014
7015 cat >>confdefs.h <<\_ACEOF
7016 #define HAVE_TWOPI 1
7017 _ACEOF
7018
7019     if test "$llvm_cv_os_type" = "MingW" ; then
7020     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7021   fi
7022
7023 cat >>confdefs.h <<_ACEOF
7024 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7025 _ACEOF
7026
7027 fi
7028 # Extract the first word of "circo", so it can be a program name with args.
7029 set dummy circo; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_path_CIRCO+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   case $CIRCO in
7036   [\\/]* | ?:[\\/]*)
7037   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7038   ;;
7039   *)
7040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045   for ac_exec_ext in '' $ac_executable_extensions; do
7046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7056   ;;
7057 esac
7058 fi
7059 CIRCO=$ac_cv_path_CIRCO
7060 if test -n "$CIRCO"; then
7061   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7062 echo "${ECHO_T}$CIRCO" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068
7069 if test "$CIRCO" != "echo circo" ; then
7070
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_CIRCO 1
7073 _ACEOF
7074
7075     if test "$llvm_cv_os_type" = "MingW" ; then
7076     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7077   fi
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7081 _ACEOF
7082
7083 fi
7084 for ac_prog in gv gsview32
7085 do
7086   # Extract the first word of "$ac_prog", so it can be a program name with args.
7087 set dummy $ac_prog; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_GV+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   case $GV in
7094   [\\/]* | ?:[\\/]*)
7095   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7096   ;;
7097   *)
7098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103   for ac_exec_ext in '' $ac_executable_extensions; do
7104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113   ;;
7114 esac
7115 fi
7116 GV=$ac_cv_path_GV
7117 if test -n "$GV"; then
7118   { echo "$as_me:$LINENO: result: $GV" >&5
7119 echo "${ECHO_T}$GV" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123 fi
7124
7125
7126   test -n "$GV" && break
7127 done
7128 test -n "$GV" || GV="echo gv"
7129
7130 if test "$GV" != "echo gv" ; then
7131
7132 cat >>confdefs.h <<\_ACEOF
7133 #define HAVE_GV 1
7134 _ACEOF
7135
7136     if test "$llvm_cv_os_type" = "MingW" ; then
7137     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7138   fi
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define LLVM_PATH_GV "$GV${EXEEXT}"
7142 _ACEOF
7143
7144 fi
7145 # Extract the first word of "dotty", so it can be a program name with args.
7146 set dummy dotty; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_DOTTY+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   case $DOTTY in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7173   ;;
7174 esac
7175 fi
7176 DOTTY=$ac_cv_path_DOTTY
7177 if test -n "$DOTTY"; then
7178   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7179 echo "${ECHO_T}$DOTTY" >&6; }
7180 else
7181   { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7183 fi
7184
7185
7186 if test "$DOTTY" != "echo dotty" ; then
7187
7188 cat >>confdefs.h <<\_ACEOF
7189 #define HAVE_DOTTY 1
7190 _ACEOF
7191
7192     if test "$llvm_cv_os_type" = "MingW" ; then
7193     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7194   fi
7195
7196 cat >>confdefs.h <<_ACEOF
7197 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7198 _ACEOF
7199
7200 fi
7201 # Extract the first word of "xdot.py", so it can be a program name with args.
7202 set dummy xdot.py; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   case $XDOT_PY in
7209   [\\/]* | ?:[\\/]*)
7210   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7211   ;;
7212   *)
7213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218   for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7229   ;;
7230 esac
7231 fi
7232 XDOT_PY=$ac_cv_path_XDOT_PY
7233 if test -n "$XDOT_PY"; then
7234   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7235 echo "${ECHO_T}$XDOT_PY" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 if test "$XDOT_PY" != "echo xdot.py" ; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_XDOT_PY 1
7246 _ACEOF
7247
7248     if test "$llvm_cv_os_type" = "MingW" ; then
7249     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7250   fi
7251
7252 cat >>confdefs.h <<_ACEOF
7253 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7254 _ACEOF
7255
7256 fi
7257
7258 # Find a good install program.  We prefer a C program (faster),
7259 # so one script is as good as another.  But avoid the broken or
7260 # incompatible versions:
7261 # SysV /etc/install, /usr/sbin/install
7262 # SunOS /usr/etc/install
7263 # IRIX /sbin/install
7264 # AIX /bin/install
7265 # AmigaOS /C/install, which installs bootblocks on floppy discs
7266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7269 # OS/2's system install, which has a completely different semantic
7270 # ./install, which can be erroneously created by make from ./install.sh.
7271 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7273 if test -z "$INSTALL"; then
7274 if test "${ac_cv_path_install+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   # Account for people who put trailing slashes in PATH elements.
7283 case $as_dir/ in
7284   ./ | .// | /cC/* | \
7285   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7286   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7287   /usr/ucb/* ) ;;
7288   *)
7289     # OSF1 and SCO ODT 3.0 have their own names for install.
7290     # Don't use installbsd from OSF since it installs stuff as root
7291     # by default.
7292     for ac_prog in ginstall scoinst install; do
7293       for ac_exec_ext in '' $ac_executable_extensions; do
7294         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7295           if test $ac_prog = install &&
7296             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7297             # AIX install.  It has an incompatible calling convention.
7298             :
7299           elif test $ac_prog = install &&
7300             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7301             # program-specific install script used by HP pwplus--don't use.
7302             :
7303           else
7304             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7305             break 3
7306           fi
7307         fi
7308       done
7309     done
7310     ;;
7311 esac
7312 done
7313 IFS=$as_save_IFS
7314
7315
7316 fi
7317   if test "${ac_cv_path_install+set}" = set; then
7318     INSTALL=$ac_cv_path_install
7319   else
7320     # As a last resort, use the slow shell script.  Don't cache a
7321     # value for INSTALL within a source directory, because that will
7322     # break other packages using the cache if that directory is
7323     # removed, or if the value is a relative name.
7324     INSTALL=$ac_install_sh
7325   fi
7326 fi
7327 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7328 echo "${ECHO_T}$INSTALL" >&6; }
7329
7330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7331 # It thinks the first close brace ends the variable substitution.
7332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7333
7334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7335
7336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7337
7338 case "$INSTALL" in
7339  [\\/$]* | ?:[\\/]* ) ;;
7340  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7341 esac
7342
7343 # Extract the first word of "bzip2", so it can be a program name with args.
7344 set dummy bzip2; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_BZIP2+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $BZIP2 in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 BZIP2=$ac_cv_path_BZIP2
7374 if test -n "$BZIP2"; then
7375   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7376 echo "${ECHO_T}$BZIP2" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383 # Extract the first word of "cat", so it can be a program name with args.
7384 set dummy cat; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_CAT+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   case $CAT in
7391   [\\/]* | ?:[\\/]*)
7392   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7393   ;;
7394   *)
7395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400   for ac_exec_ext in '' $ac_executable_extensions; do
7401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407 done
7408 IFS=$as_save_IFS
7409
7410   ;;
7411 esac
7412 fi
7413 CAT=$ac_cv_path_CAT
7414 if test -n "$CAT"; then
7415   { echo "$as_me:$LINENO: result: $CAT" >&5
7416 echo "${ECHO_T}$CAT" >&6; }
7417 else
7418   { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7420 fi
7421
7422
7423 # Extract the first word of "doxygen", so it can be a program name with args.
7424 set dummy doxygen; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   case $DOXYGEN in
7431   [\\/]* | ?:[\\/]*)
7432   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7433   ;;
7434   *)
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440   for ac_exec_ext in '' $ac_executable_extensions; do
7441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450   ;;
7451 esac
7452 fi
7453 DOXYGEN=$ac_cv_path_DOXYGEN
7454 if test -n "$DOXYGEN"; then
7455   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7456 echo "${ECHO_T}$DOXYGEN" >&6; }
7457 else
7458   { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7460 fi
7461
7462
7463 # Extract the first word of "groff", so it can be a program name with args.
7464 set dummy groff; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GROFF+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $GROFF in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490   ;;
7491 esac
7492 fi
7493 GROFF=$ac_cv_path_GROFF
7494 if test -n "$GROFF"; then
7495   { echo "$as_me:$LINENO: result: $GROFF" >&5
7496 echo "${ECHO_T}$GROFF" >&6; }
7497 else
7498   { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7500 fi
7501
7502
7503 # Extract the first word of "gzip", so it can be a program name with args.
7504 set dummy gzip; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   case $GZIPBIN in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530   ;;
7531 esac
7532 fi
7533 GZIPBIN=$ac_cv_path_GZIPBIN
7534 if test -n "$GZIPBIN"; then
7535   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7536 echo "${ECHO_T}$GZIPBIN" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543 # Extract the first word of "pdfroff", so it can be a program name with args.
7544 set dummy pdfroff; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_PDFROFF+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $PDFROFF in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 PDFROFF=$ac_cv_path_PDFROFF
7574 if test -n "$PDFROFF"; then
7575   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7576 echo "${ECHO_T}$PDFROFF" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583 # Extract the first word of "zip", so it can be a program name with args.
7584 set dummy zip; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_ZIP+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   case $ZIP in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610   ;;
7611 esac
7612 fi
7613 ZIP=$ac_cv_path_ZIP
7614 if test -n "$ZIP"; then
7615   { echo "$as_me:$LINENO: result: $ZIP" >&5
7616 echo "${ECHO_T}$ZIP" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623 for ac_prog in ocamlc
7624 do
7625   # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_OCAMLC+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   case $OCAMLC in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642   for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652   ;;
7653 esac
7654 fi
7655 OCAMLC=$ac_cv_path_OCAMLC
7656 if test -n "$OCAMLC"; then
7657   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7658 echo "${ECHO_T}$OCAMLC" >&6; }
7659 else
7660   { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7662 fi
7663
7664
7665   test -n "$OCAMLC" && break
7666 done
7667
7668 for ac_prog in ocamlopt
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $OCAMLOPT in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   ;;
7698 esac
7699 fi
7700 OCAMLOPT=$ac_cv_path_OCAMLOPT
7701 if test -n "$OCAMLOPT"; then
7702   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7703 echo "${ECHO_T}$OCAMLOPT" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710   test -n "$OCAMLOPT" && break
7711 done
7712
7713 for ac_prog in ocamldep
7714 do
7715   # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   case $OCAMLDEP in
7723   [\\/]* | ?:[\\/]*)
7724   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7725   ;;
7726   *)
7727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732   for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742   ;;
7743 esac
7744 fi
7745 OCAMLDEP=$ac_cv_path_OCAMLDEP
7746 if test -n "$OCAMLDEP"; then
7747   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7748 echo "${ECHO_T}$OCAMLDEP" >&6; }
7749 else
7750   { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7752 fi
7753
7754
7755   test -n "$OCAMLDEP" && break
7756 done
7757
7758 for ac_prog in ocamldoc
7759 do
7760   # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   case $OCAMLDOC in
7768   [\\/]* | ?:[\\/]*)
7769   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7770   ;;
7771   *)
7772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777   for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787   ;;
7788 esac
7789 fi
7790 OCAMLDOC=$ac_cv_path_OCAMLDOC
7791 if test -n "$OCAMLDOC"; then
7792   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7793 echo "${ECHO_T}$OCAMLDOC" >&6; }
7794 else
7795   { echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6; }
7797 fi
7798
7799
7800   test -n "$OCAMLDOC" && break
7801 done
7802
7803 for ac_prog in gas as
7804 do
7805   # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7809 if test "${ac_cv_path_GAS+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   case $GAS in
7813   [\\/]* | ?:[\\/]*)
7814   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7815   ;;
7816   *)
7817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820   IFS=$as_save_IFS
7821   test -z "$as_dir" && as_dir=.
7822   for ac_exec_ext in '' $ac_executable_extensions; do
7823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7824     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826     break 2
7827   fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832   ;;
7833 esac
7834 fi
7835 GAS=$ac_cv_path_GAS
7836 if test -n "$GAS"; then
7837   { echo "$as_me:$LINENO: result: $GAS" >&5
7838 echo "${ECHO_T}$GAS" >&6; }
7839 else
7840   { echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6; }
7842 fi
7843
7844
7845   test -n "$GAS" && break
7846 done
7847
7848
7849 { echo "$as_me:$LINENO: checking for linker version" >&5
7850 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7851 if test "${llvm_cv_link_version+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854
7855    version_string="$(ld -v 2>&1 | head -1)"
7856
7857    # Check for ld64.
7858    if (echo "$version_string" | grep -q "ld64"); then
7859      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7860    else
7861      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7862    fi
7863
7864 fi
7865 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7866 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7870 _ACEOF
7871
7872
7873
7874 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7875 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7876 if test "${llvm_cv_link_use_r+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879    ac_ext=c
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884
7885   oldcflags="$CFLAGS"
7886   CFLAGS="$CFLAGS -Wl,-R."
7887   cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893
7894 int
7895 main ()
7896 {
7897
7898   ;
7899   return 0;
7900 }
7901 _ACEOF
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (ac_try="$ac_link"
7904 case "(($ac_try" in
7905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906   *) ac_try_echo=$ac_try;;
7907 esac
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909   (eval "$ac_link") 2>conftest.er1
7910   ac_status=$?
7911   grep -v '^ *+' conftest.er1 >conftest.err
7912   rm -f conftest.er1
7913   cat conftest.err >&5
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917   { (case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_try") 2>&5
7923   ac_status=$?
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); }; } &&
7926          { ac_try='test -s conftest$ac_exeext'
7927   { (case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932   (eval "$ac_try") 2>&5
7933   ac_status=$?
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); }; }; then
7936   llvm_cv_link_use_r=yes
7937 else
7938   echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941         llvm_cv_link_use_r=no
7942 fi
7943
7944 rm -f core conftest.err conftest.$ac_objext \
7945       conftest$ac_exeext conftest.$ac_ext
7946   CFLAGS="$oldcflags"
7947   ac_ext=c
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953
7954 fi
7955 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7956 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7957 if test "$llvm_cv_link_use_r" = yes ; then
7958
7959 cat >>confdefs.h <<\_ACEOF
7960 #define HAVE_LINK_R 1
7961 _ACEOF
7962
7963   fi
7964
7965
7966 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7967 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7968 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971    ac_ext=c
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976
7977   oldcflags="$CFLAGS"
7978   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7979   cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985
7986 int
7987 main ()
7988 {
7989
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7996 case "(($ac_try" in
7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998   *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001   (eval "$ac_link") 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } &&
8008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8009   { (case "(($ac_try" in
8010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011   *) ac_try_echo=$ac_try;;
8012 esac
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014   (eval "$ac_try") 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; } &&
8018          { ac_try='test -s conftest$ac_exeext'
8019   { (case "(($ac_try" in
8020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021   *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024   (eval "$ac_try") 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }; }; then
8028   llvm_cv_link_use_export_dynamic=yes
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033         llvm_cv_link_use_export_dynamic=no
8034 fi
8035
8036 rm -f core conftest.err conftest.$ac_objext \
8037       conftest$ac_exeext conftest.$ac_ext
8038   CFLAGS="$oldcflags"
8039   ac_ext=c
8040 ac_cpp='$CPP $CPPFLAGS'
8041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044
8045
8046 fi
8047 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8048 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8049 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8050
8051 cat >>confdefs.h <<\_ACEOF
8052 #define HAVE_LINK_EXPORT_DYNAMIC 1
8053 _ACEOF
8054
8055   fi
8056
8057
8058 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8059 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8060 if test "${llvm_cv_link_use_version_script+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063    ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069   oldcflags="$CFLAGS"
8070
8071   # The following code is from the autoconf manual,
8072   # "11.13: Limitations of Usual Tools".
8073   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8074   # Use mktemp if possible; otherwise fall back on mkdir,
8075   # with $RANDOM to make collisions less likely.
8076   : ${TMPDIR=/tmp}
8077   {
8078     tmp=`
8079       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8080     ` &&
8081     test -n "$tmp" && test -d "$tmp"
8082   } || {
8083     tmp=$TMPDIR/foo$$-$RANDOM
8084     (umask 077 && mkdir "$tmp")
8085   } || exit $?
8086
8087   echo "{" > "$tmp/export.map"
8088   echo "  global: main;" >> "$tmp/export.map"
8089   echo "  local: *;" >> "$tmp/export.map"
8090   echo "};" >> "$tmp/export.map"
8091
8092   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8093   cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8110 case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115   (eval "$ac_link") 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123   { (case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_try") 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; } &&
8132          { ac_try='test -s conftest$ac_exeext'
8133   { (case "(($ac_try" in
8134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135   *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138   (eval "$ac_try") 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; }; then
8142   llvm_cv_link_use_version_script=yes
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147         llvm_cv_link_use_version_script=no
8148 fi
8149
8150 rm -f core conftest.err conftest.$ac_objext \
8151       conftest$ac_exeext conftest.$ac_ext
8152   rm "$tmp/export.map"
8153   rmdir "$tmp"
8154   CFLAGS="$oldcflags"
8155   ac_ext=c
8156 ac_cpp='$CPP $CPPFLAGS'
8157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160
8161
8162 fi
8163 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8164 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8165 if test "$llvm_cv_link_use_version_script" = yes ; then
8166   HAVE_LINK_VERSION_SCRIPT=1
8167
8168   fi
8169
8170
8171
8172
8173 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8174 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8175 if test "${ac_cv_c_const+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184
8185 int
8186 main ()
8187 {
8188 /* FIXME: Include the comments suggested by Paul. */
8189 #ifndef __cplusplus
8190   /* Ultrix mips cc rejects this.  */
8191   typedef int charset[2];
8192   const charset x;
8193   /* SunOS 4.1.1 cc rejects this.  */
8194   char const *const *ccp;
8195   char **p;
8196   /* NEC SVR4.0.2 mips cc rejects this.  */
8197   struct point {int x, y;};
8198   static struct point const zero = {0,0};
8199   /* AIX XL C 1.02.0.0 rejects this.
8200      It does not let you subtract one const X* pointer from another in
8201      an arm of an if-expression whose if-part is not a constant
8202      expression */
8203   const char *g = "string";
8204   ccp = &g + (g ? g-g : 0);
8205   /* HPUX 7.0 cc rejects these. */
8206   ++ccp;
8207   p = (char**) ccp;
8208   ccp = (char const *const *) p;
8209   { /* SCO 3.2v4 cc rejects this.  */
8210     char *t;
8211     char const *s = 0 ? (char *) 0 : (char const *) 0;
8212
8213     *t++ = 0;
8214     if (s) return 0;
8215   }
8216   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8217     int x[] = {25, 17};
8218     const int *foo = &x[0];
8219     ++foo;
8220   }
8221   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8222     typedef const int *iptr;
8223     iptr p = 0;
8224     ++p;
8225   }
8226   { /* AIX XL C 1.02.0.0 rejects this saying
8227        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8228     struct s { int j; const int *ap[3]; };
8229     struct s *b; b->j = 5;
8230   }
8231   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8232     const int foo = 10;
8233     if (!foo) return 0;
8234   }
8235   return !x[0] && !zero.x;
8236 #endif
8237
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246   *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_compile") 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } &&
8256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8257   { (case "(($ac_try" in
8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259   *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262   (eval "$ac_try") 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; } &&
8266          { ac_try='test -s conftest.$ac_objext'
8267   { (case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272   (eval "$ac_try") 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; }; then
8276   ac_cv_c_const=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281         ac_cv_c_const=no
8282 fi
8283
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 fi
8286 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8287 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8288 if test $ac_cv_c_const = no; then
8289
8290 cat >>confdefs.h <<\_ACEOF
8291 #define const
8292 _ACEOF
8293
8294 fi
8295
8296
8297
8298
8299
8300
8301 ac_header_dirent=no
8302 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8303   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8304 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8305 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8307   echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309   cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h.  */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h.  */
8315 #include <sys/types.h>
8316 #include <$ac_hdr>
8317
8318 int
8319 main ()
8320 {
8321 if ((DIR *) 0)
8322 return 0;
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8329 case "(($ac_try" in
8330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331   *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334   (eval "$ac_compile") 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } &&
8341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342   { (case "(($ac_try" in
8343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344   *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347   (eval "$ac_try") 2>&5
8348   ac_status=$?
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); }; } &&
8351          { ac_try='test -s conftest.$ac_objext'
8352   { (case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357   (eval "$ac_try") 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361   eval "$as_ac_Header=yes"
8362 else
8363   echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366         eval "$as_ac_Header=no"
8367 fi
8368
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 fi
8371 ac_res=`eval echo '${'$as_ac_Header'}'`
8372                { echo "$as_me:$LINENO: result: $ac_res" >&5
8373 echo "${ECHO_T}$ac_res" >&6; }
8374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8375   cat >>confdefs.h <<_ACEOF
8376 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8377 _ACEOF
8378
8379 ac_header_dirent=$ac_hdr; break
8380 fi
8381
8382 done
8383 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8384 if test $ac_header_dirent = dirent.h; then
8385   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8387 if test "${ac_cv_search_opendir+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   ac_func_search_save_LIBS=$LIBS
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397
8398 /* Override any GCC internal prototype to avoid an error.
8399    Use char because int might match the return type of a GCC
8400    builtin and then its argument prototype would still apply.  */
8401 #ifdef __cplusplus
8402 extern "C"
8403 #endif
8404 char opendir ();
8405 int
8406 main ()
8407 {
8408 return opendir ();
8409   ;
8410   return 0;
8411 }
8412 _ACEOF
8413 for ac_lib in '' dir; do
8414   if test -z "$ac_lib"; then
8415     ac_res="none required"
8416   else
8417     ac_res=-l$ac_lib
8418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8419   fi
8420   rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8422 case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_link") 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435   { (case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_try") 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }; } &&
8444          { ac_try='test -s conftest$ac_exeext'
8445   { (case "(($ac_try" in
8446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447   *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450   (eval "$ac_try") 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_cv_search_opendir=$ac_res
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext \
8463       conftest$ac_exeext
8464   if test "${ac_cv_search_opendir+set}" = set; then
8465   break
8466 fi
8467 done
8468 if test "${ac_cv_search_opendir+set}" = set; then
8469   :
8470 else
8471   ac_cv_search_opendir=no
8472 fi
8473 rm conftest.$ac_ext
8474 LIBS=$ac_func_search_save_LIBS
8475 fi
8476 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8477 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8478 ac_res=$ac_cv_search_opendir
8479 if test "$ac_res" != no; then
8480   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8481
8482 fi
8483
8484 else
8485   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8487 if test "${ac_cv_search_opendir+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   ac_func_search_save_LIBS=$LIBS
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497
8498 /* Override any GCC internal prototype to avoid an error.
8499    Use char because int might match the return type of a GCC
8500    builtin and then its argument prototype would still apply.  */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char opendir ();
8505 int
8506 main ()
8507 {
8508 return opendir ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 for ac_lib in '' x; do
8514   if test -z "$ac_lib"; then
8515     ac_res="none required"
8516   else
8517     ac_res=-l$ac_lib
8518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8519   fi
8520   rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (ac_try="$ac_link"
8522 case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527   (eval "$ac_link") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } &&
8534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8535   { (case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_try") 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; } &&
8544          { ac_try='test -s conftest$ac_exeext'
8545   { (case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550   (eval "$ac_try") 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; }; then
8554   ac_cv_search_opendir=$ac_res
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559
8560 fi
8561
8562 rm -f core conftest.err conftest.$ac_objext \
8563       conftest$ac_exeext
8564   if test "${ac_cv_search_opendir+set}" = set; then
8565   break
8566 fi
8567 done
8568 if test "${ac_cv_search_opendir+set}" = set; then
8569   :
8570 else
8571   ac_cv_search_opendir=no
8572 fi
8573 rm conftest.$ac_ext
8574 LIBS=$ac_func_search_save_LIBS
8575 fi
8576 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8577 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8578 ac_res=$ac_cv_search_opendir
8579 if test "$ac_res" != no; then
8580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8581
8582 fi
8583
8584 fi
8585
8586
8587 for ac_header in dlfcn.h
8588 do
8589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 fi
8596 ac_res=`eval echo '${'$as_ac_Header'}'`
8597                { echo "$as_me:$LINENO: result: $ac_res" >&5
8598 echo "${ECHO_T}$ac_res" >&6; }
8599 else
8600   # Is the header compilable?
8601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h.  */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h.  */
8609 $ac_includes_default
8610 #include <$ac_header>
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_compile") 2>conftest.er1
8620   ac_status=$?
8621   grep -v '^ *+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } &&
8626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627   { (case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_try") 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; } &&
8636          { ac_try='test -s conftest.$ac_objext'
8637   { (case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_try") 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_header_compiler=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651         ac_header_compiler=no
8652 fi
8653
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8656 echo "${ECHO_T}$ac_header_compiler" >&6; }
8657
8658 # Is the header present?
8659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 #include <$ac_header>
8668 _ACEOF
8669 if { (ac_try="$ac_cpp conftest.$ac_ext"
8670 case "(($ac_try" in
8671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672   *) ac_try_echo=$ac_try;;
8673 esac
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8676   ac_status=$?
8677   grep -v '^ *+' conftest.er1 >conftest.err
8678   rm -f conftest.er1
8679   cat conftest.err >&5
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } >/dev/null; then
8682   if test -s conftest.err; then
8683     ac_cpp_err=$ac_c_preproc_warn_flag
8684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8685   else
8686     ac_cpp_err=
8687   fi
8688 else
8689   ac_cpp_err=yes
8690 fi
8691 if test -z "$ac_cpp_err"; then
8692   ac_header_preproc=yes
8693 else
8694   echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697   ac_header_preproc=no
8698 fi
8699
8700 rm -f conftest.err conftest.$ac_ext
8701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8702 echo "${ECHO_T}$ac_header_preproc" >&6; }
8703
8704 # So?  What about this header?
8705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8706   yes:no: )
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8711     ac_header_preproc=yes
8712     ;;
8713   no:yes:* )
8714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8726     ( cat <<\_ASBOX
8727 ## ------------------------------------ ##
8728 ## Report this to http://llvm.org/bugs/ ##
8729 ## ------------------------------------ ##
8730 _ASBOX
8731      ) | sed "s/^/$as_me: WARNING:     /" >&2
8732     ;;
8733 esac
8734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   eval "$as_ac_Header=\$ac_header_preproc"
8740 fi
8741 ac_res=`eval echo '${'$as_ac_Header'}'`
8742                { echo "$as_me:$LINENO: result: $ac_res" >&5
8743 echo "${ECHO_T}$ac_res" >&6; }
8744
8745 fi
8746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747   cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749 _ACEOF
8750
8751 fi
8752
8753 done
8754
8755 # Check whether --enable-ltdl-install was given.
8756 if test "${enable_ltdl_install+set}" = set; then
8757   enableval=$enable_ltdl_install;
8758 fi
8759
8760
8761
8762
8763 if test x"${enable_ltdl_install-no}" != xno; then
8764   INSTALL_LTDL_TRUE=
8765   INSTALL_LTDL_FALSE='#'
8766 else
8767   INSTALL_LTDL_TRUE='#'
8768   INSTALL_LTDL_FALSE=
8769 fi
8770
8771
8772
8773 if test x"${enable_ltdl_convenience-no}" != xno; then
8774   CONVENIENCE_LTDL_TRUE=
8775   CONVENIENCE_LTDL_FALSE='#'
8776 else
8777   CONVENIENCE_LTDL_TRUE='#'
8778   CONVENIENCE_LTDL_FALSE=
8779 fi
8780
8781
8782 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8784 library_names_spec=
8785 libname_spec='lib$name'
8786 soname_spec=
8787 shrext_cmds=".so"
8788 postinstall_cmds=
8789 postuninstall_cmds=
8790 finish_cmds=
8791 finish_eval=
8792 shlibpath_var=
8793 shlibpath_overrides_runpath=unknown
8794 version_type=none
8795 dynamic_linker="$host_os ld.so"
8796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8797 if test "$GCC" = yes; then
8798   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8799   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8800     # if the path contains ";" then we assume it to be the separator
8801     # otherwise default to the standard path separator (i.e. ":") - it is
8802     # assumed that no part of a normal pathname contains ";" but that should
8803     # okay in the real world where ";" in dirpaths is itself problematic.
8804     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8805   else
8806     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8807   fi
8808 else
8809   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8810 fi
8811 need_lib_prefix=unknown
8812 hardcode_into_libs=no
8813
8814 # when you set need_version to no, make sure it does not cause -set_version
8815 # flags to be left without arguments
8816 need_version=unknown
8817
8818 case $host_os in
8819 aix3*)
8820   version_type=linux
8821   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8822   shlibpath_var=LIBPATH
8823
8824   # AIX 3 has no versioning support, so we append a major version to the name.
8825   soname_spec='${libname}${release}${shared_ext}$major'
8826   ;;
8827
8828 aix4* | aix5*)
8829   version_type=linux
8830   need_lib_prefix=no
8831   need_version=no
8832   hardcode_into_libs=yes
8833   if test "$host_cpu" = ia64; then
8834     # AIX 5 supports IA64
8835     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8836     shlibpath_var=LD_LIBRARY_PATH
8837   else
8838     # With GCC up to 2.95.x, collect2 would create an import file
8839     # for dependence libraries.  The import file would start with
8840     # the line `#! .'.  This would cause the generated library to
8841     # depend on `.', always an invalid library.  This was fixed in
8842     # development snapshots of GCC prior to 3.0.
8843     case $host_os in
8844       aix4 | aix4.[01] | aix4.[01].*)
8845       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8846            echo ' yes '
8847            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8848         :
8849       else
8850         can_build_shared=no
8851       fi
8852       ;;
8853     esac
8854     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8855     # soname into executable. Probably we can add versioning support to
8856     # collect2, so additional links can be useful in future.
8857     if test "$aix_use_runtimelinking" = yes; then
8858       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8859       # instead of lib<name>.a to let people know that these are not
8860       # typical AIX shared libraries.
8861       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862     else
8863       # We preserve .a as extension for shared libraries through AIX4.2
8864       # and later when we are not doing run time linking.
8865       library_names_spec='${libname}${release}.a $libname.a'
8866       soname_spec='${libname}${release}${shared_ext}$major'
8867     fi
8868     shlibpath_var=LIBPATH
8869   fi
8870   ;;
8871
8872 amigaos*)
8873   library_names_spec='$libname.ixlibrary $libname.a'
8874   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8875   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'
8876   ;;
8877
8878 beos*)
8879   library_names_spec='${libname}${shared_ext}'
8880   dynamic_linker="$host_os ld.so"
8881   shlibpath_var=LIBRARY_PATH
8882   ;;
8883
8884 bsdi[45]*)
8885   version_type=linux
8886   need_version=no
8887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888   soname_spec='${libname}${release}${shared_ext}$major'
8889   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8890   shlibpath_var=LD_LIBRARY_PATH
8891   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8892   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8893   # the default ld.so.conf also contains /usr/contrib/lib and
8894   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8895   # libtool to hard-code these into programs
8896   ;;
8897
8898 cygwin* | mingw* | pw32*)
8899   version_type=windows
8900   shrext_cmds=".dll"
8901   need_version=no
8902   need_lib_prefix=no
8903
8904   case $GCC,$host_os in
8905   yes,cygwin* | yes,mingw* | yes,pw32*)
8906     library_names_spec='$libname.dll.a'
8907     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8908     postinstall_cmds='base_file=`basename \${file}`~
8909       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8910       dldir=$destdir/`dirname \$dlpath`~
8911       test -d \$dldir || mkdir -p \$dldir~
8912       $install_prog $dir/$dlname \$dldir/$dlname~
8913       chmod a+x \$dldir/$dlname'
8914     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8915       dlpath=$dir/\$dldll~
8916        $rm \$dlpath'
8917     shlibpath_overrides_runpath=yes
8918
8919     case $host_os in
8920     cygwin*)
8921       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8922       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8923       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8924       ;;
8925     mingw*)
8926       # MinGW DLLs use traditional 'lib' prefix
8927       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8928       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8929       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8930         # It is most probably a Windows format PATH printed by
8931         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8932         # path with ; separators, and with drive letters. We can handle the
8933         # drive letters (cygwin fileutils understands them), so leave them,
8934         # especially as we might pass files found there to a mingw objdump,
8935         # which wouldn't understand a cygwinified path. Ahh.
8936         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8937       else
8938         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8939       fi
8940       ;;
8941     pw32*)
8942       # pw32 DLLs use 'pw' prefix rather than 'lib'
8943       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8944       ;;
8945     esac
8946     ;;
8947
8948   *)
8949     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8950     ;;
8951   esac
8952   dynamic_linker='Win32 ld.exe'
8953   # FIXME: first we should search . and the directory the executable is in
8954   shlibpath_var=PATH
8955   ;;
8956
8957 darwin* | rhapsody*)
8958   dynamic_linker="$host_os dyld"
8959   version_type=darwin
8960   need_lib_prefix=no
8961   need_version=no
8962   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8963   soname_spec='${libname}${release}${major}$shared_ext'
8964   shlibpath_overrides_runpath=yes
8965   shlibpath_var=DYLD_LIBRARY_PATH
8966   shrext_cmds='.dylib'
8967   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8968   if test "$GCC" = yes; then
8969     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"`
8970   else
8971     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8972   fi
8973   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8974   ;;
8975
8976 dgux*)
8977   version_type=linux
8978   need_lib_prefix=no
8979   need_version=no
8980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8981   soname_spec='${libname}${release}${shared_ext}$major'
8982   shlibpath_var=LD_LIBRARY_PATH
8983   ;;
8984
8985 freebsd1.*)
8986   dynamic_linker=no
8987   ;;
8988
8989 kfreebsd*-gnu)
8990   version_type=linux
8991   need_lib_prefix=no
8992   need_version=no
8993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8994   soname_spec='${libname}${release}${shared_ext}$major'
8995   shlibpath_var=LD_LIBRARY_PATH
8996   shlibpath_overrides_runpath=no
8997   hardcode_into_libs=yes
8998   dynamic_linker='GNU ld.so'
8999   ;;
9000
9001 freebsd* | dragonfly*)
9002   # DragonFly does not have aout.  When/if they implement a new
9003   # versioning mechanism, adjust this.
9004   if test -x /usr/bin/objformat; then
9005     objformat=`/usr/bin/objformat`
9006   else
9007     case $host_os in
9008     freebsd[123].*) objformat=aout ;;
9009     *) objformat=elf ;;
9010     esac
9011   fi
9012   version_type=freebsd-$objformat
9013   case $version_type in
9014     freebsd-elf*)
9015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9016       need_version=no
9017       need_lib_prefix=no
9018       ;;
9019     freebsd-*)
9020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9021       need_version=yes
9022       ;;
9023   esac
9024   shlibpath_var=LD_LIBRARY_PATH
9025   case $host_os in
9026   freebsd2.*)
9027     shlibpath_overrides_runpath=yes
9028     ;;
9029   freebsd3.[01]* | freebsdelf3.[01]*)
9030     shlibpath_overrides_runpath=yes
9031     hardcode_into_libs=yes
9032     ;;
9033   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9034   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9035     shlibpath_overrides_runpath=no
9036     hardcode_into_libs=yes
9037     ;;
9038   freebsd*) # from 4.6 on
9039     shlibpath_overrides_runpath=yes
9040     hardcode_into_libs=yes
9041     ;;
9042   esac
9043   ;;
9044
9045 gnu*)
9046   version_type=linux
9047   need_lib_prefix=no
9048   need_version=no
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9050   soname_spec='${libname}${release}${shared_ext}$major'
9051   shlibpath_var=LD_LIBRARY_PATH
9052   hardcode_into_libs=yes
9053   ;;
9054
9055 hpux9* | hpux10* | hpux11*)
9056   # Give a soname corresponding to the major version so that dld.sl refuses to
9057   # link against other versions.
9058   version_type=sunos
9059   need_lib_prefix=no
9060   need_version=no
9061   case $host_cpu in
9062   ia64*)
9063     shrext_cmds='.so'
9064     hardcode_into_libs=yes
9065     dynamic_linker="$host_os dld.so"
9066     shlibpath_var=LD_LIBRARY_PATH
9067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069     soname_spec='${libname}${release}${shared_ext}$major'
9070     if test "X$HPUX_IA64_MODE" = X32; then
9071       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9072     else
9073       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9074     fi
9075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076     ;;
9077    hppa*64*)
9078      shrext_cmds='.sl'
9079      hardcode_into_libs=yes
9080      dynamic_linker="$host_os dld.sl"
9081      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9082      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084      soname_spec='${libname}${release}${shared_ext}$major'
9085      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9086      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9087      ;;
9088    *)
9089     shrext_cmds='.sl'
9090     dynamic_linker="$host_os dld.sl"
9091     shlibpath_var=SHLIB_PATH
9092     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094     soname_spec='${libname}${release}${shared_ext}$major'
9095     ;;
9096   esac
9097   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9098   postinstall_cmds='chmod 555 $lib'
9099   ;;
9100
9101 interix3*)
9102   version_type=linux
9103   need_lib_prefix=no
9104   need_version=no
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106   soname_spec='${libname}${release}${shared_ext}$major'
9107   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9108   shlibpath_var=LD_LIBRARY_PATH
9109   shlibpath_overrides_runpath=no
9110   hardcode_into_libs=yes
9111   ;;
9112
9113 irix5* | irix6* | nonstopux*)
9114   case $host_os in
9115     nonstopux*) version_type=nonstopux ;;
9116     *)
9117         if test "$lt_cv_prog_gnu_ld" = yes; then
9118                 version_type=linux
9119         else
9120                 version_type=irix
9121         fi ;;
9122   esac
9123   need_lib_prefix=no
9124   need_version=no
9125   soname_spec='${libname}${release}${shared_ext}$major'
9126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9127   case $host_os in
9128   irix5* | nonstopux*)
9129     libsuff= shlibsuff=
9130     ;;
9131   *)
9132     case $LD in # libtool.m4 will add one of these switches to LD
9133     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9134       libsuff= shlibsuff= libmagic=32-bit;;
9135     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9136       libsuff=32 shlibsuff=N32 libmagic=N32;;
9137     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9138       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9139     *) libsuff= shlibsuff= libmagic=never-match;;
9140     esac
9141     ;;
9142   esac
9143   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9144   shlibpath_overrides_runpath=no
9145   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9146   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9147   hardcode_into_libs=yes
9148   ;;
9149
9150 # No shared lib support for Linux oldld, aout, or coff.
9151 linux*oldld* | linux*aout* | linux*coff*)
9152   dynamic_linker=no
9153   ;;
9154
9155 # This must be Linux ELF.
9156 linux*)
9157   version_type=linux
9158   need_lib_prefix=no
9159   need_version=no
9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161   soname_spec='${libname}${release}${shared_ext}$major'
9162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   shlibpath_overrides_runpath=no
9165   # This implies no fast_install, which is unacceptable.
9166   # Some rework will be needed to allow for fast_install
9167   # before this can be enabled.
9168   hardcode_into_libs=yes
9169
9170   # Append ld.so.conf contents to the search path
9171   if test -f /etc/ld.so.conf; then
9172     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' ' '`
9173     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9174   fi
9175
9176   # We used to test for /lib/ld.so.1 and disable shared libraries on
9177   # powerpc, because MkLinux only supported shared libraries with the
9178   # GNU dynamic linker.  Since this was broken with cross compilers,
9179   # most powerpc-linux boxes support dynamic linking these days and
9180   # people can always --disable-shared, the test was removed, and we
9181   # assume the GNU/Linux dynamic linker is in use.
9182   dynamic_linker='GNU/Linux ld.so'
9183   ;;
9184
9185 knetbsd*-gnu)
9186   version_type=linux
9187   need_lib_prefix=no
9188   need_version=no
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9190   soname_spec='${libname}${release}${shared_ext}$major'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   shlibpath_overrides_runpath=no
9193   hardcode_into_libs=yes
9194   dynamic_linker='GNU ld.so'
9195   ;;
9196
9197 netbsd*)
9198   version_type=sunos
9199   need_lib_prefix=no
9200   need_version=no
9201   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204     dynamic_linker='NetBSD (a.out) ld.so'
9205   else
9206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207     soname_spec='${libname}${release}${shared_ext}$major'
9208     dynamic_linker='NetBSD ld.elf_so'
9209   fi
9210   shlibpath_var=LD_LIBRARY_PATH
9211   shlibpath_overrides_runpath=yes
9212   hardcode_into_libs=yes
9213   ;;
9214
9215 newsos6)
9216   version_type=linux
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218   shlibpath_var=LD_LIBRARY_PATH
9219   shlibpath_overrides_runpath=yes
9220   ;;
9221
9222 nto-qnx*)
9223   version_type=linux
9224   need_lib_prefix=no
9225   need_version=no
9226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227   soname_spec='${libname}${release}${shared_ext}$major'
9228   shlibpath_var=LD_LIBRARY_PATH
9229   shlibpath_overrides_runpath=yes
9230   ;;
9231
9232 openbsd* | bitrig*)
9233   version_type=sunos
9234   sys_lib_dlsearch_path_spec="/usr/lib"
9235   need_lib_prefix=no
9236   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9237   case $host_os in
9238     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9239     *)                         need_version=no  ;;
9240   esac
9241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9243   shlibpath_var=LD_LIBRARY_PATH
9244   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245     case $host_os in
9246       openbsd2.[89] | openbsd2.[89].*)
9247         shlibpath_overrides_runpath=no
9248         ;;
9249       *)
9250         shlibpath_overrides_runpath=yes
9251         ;;
9252       esac
9253   else
9254     shlibpath_overrides_runpath=yes
9255   fi
9256   ;;
9257
9258 os2*)
9259   libname_spec='$name'
9260   shrext_cmds=".dll"
9261   need_lib_prefix=no
9262   library_names_spec='$libname${shared_ext} $libname.a'
9263   dynamic_linker='OS/2 ld.exe'
9264   shlibpath_var=LIBPATH
9265   ;;
9266
9267 osf3* | osf4* | osf5*)
9268   version_type=osf
9269   need_lib_prefix=no
9270   need_version=no
9271   soname_spec='${libname}${release}${shared_ext}$major'
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9275   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9276   ;;
9277
9278 solaris*)
9279   version_type=linux
9280   need_lib_prefix=no
9281   need_version=no
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   hardcode_into_libs=yes
9287   # ldd complains unless libraries are executable
9288   postinstall_cmds='chmod +x $lib'
9289   ;;
9290
9291 sunos4*)
9292   version_type=sunos
9293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   shlibpath_overrides_runpath=yes
9297   if test "$with_gnu_ld" = yes; then
9298     need_lib_prefix=no
9299   fi
9300   need_version=yes
9301   ;;
9302
9303 sysv4 | sysv4.3*)
9304   version_type=linux
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   case $host_vendor in
9309     sni)
9310       shlibpath_overrides_runpath=no
9311       need_lib_prefix=no
9312       export_dynamic_flag_spec='${wl}-Blargedynsym'
9313       runpath_var=LD_RUN_PATH
9314       ;;
9315     siemens)
9316       need_lib_prefix=no
9317       ;;
9318     motorola)
9319       need_lib_prefix=no
9320       need_version=no
9321       shlibpath_overrides_runpath=no
9322       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9323       ;;
9324   esac
9325   ;;
9326
9327 sysv4*MP*)
9328   if test -d /usr/nec ;then
9329     version_type=linux
9330     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9331     soname_spec='$libname${shared_ext}.$major'
9332     shlibpath_var=LD_LIBRARY_PATH
9333   fi
9334   ;;
9335
9336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9337   version_type=freebsd-elf
9338   need_lib_prefix=no
9339   need_version=no
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9341   soname_spec='${libname}${release}${shared_ext}$major'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   hardcode_into_libs=yes
9344   if test "$with_gnu_ld" = yes; then
9345     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9346     shlibpath_overrides_runpath=no
9347   else
9348     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9349     shlibpath_overrides_runpath=yes
9350     case $host_os in
9351       sco3.2v5*)
9352         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9353         ;;
9354     esac
9355   fi
9356   sys_lib_dlsearch_path_spec='/usr/lib'
9357   ;;
9358
9359 uts4*)
9360   version_type=linux
9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362   soname_spec='${libname}${release}${shared_ext}$major'
9363   shlibpath_var=LD_LIBRARY_PATH
9364   ;;
9365
9366 *)
9367   dynamic_linker=no
9368   ;;
9369 esac
9370 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9371 echo "${ECHO_T}$dynamic_linker" >&6; }
9372 test "$dynamic_linker" = no && can_build_shared=no
9373
9374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9375 if test "$GCC" = yes; then
9376   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9377 fi
9378
9379
9380 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9381 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9382 if test "${libltdl_cv_shlibext+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385
9386 module=yes
9387 eval libltdl_cv_shlibext=$shrext_cmds
9388
9389 fi
9390 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9391 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9392 if test -n "$libltdl_cv_shlibext"; then
9393
9394 cat >>confdefs.h <<_ACEOF
9395 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9396 _ACEOF
9397
9398 fi
9399
9400
9401 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9402 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9403 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9404   echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406   libltdl_cv_shlibpath_var="$shlibpath_var"
9407 fi
9408 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9409 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9410 if test -n "$libltdl_cv_shlibpath_var"; then
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9414 _ACEOF
9415
9416 fi
9417
9418
9419 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9420 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9421 if test "${libltdl_cv_sys_search_path+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9425 fi
9426 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9427 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9428 if test -n "$libltdl_cv_sys_search_path"; then
9429   sys_search_path=
9430   for dir in $libltdl_cv_sys_search_path; do
9431     if test -z "$sys_search_path"; then
9432       sys_search_path="$dir"
9433     else
9434       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9435     fi
9436   done
9437
9438 cat >>confdefs.h <<_ACEOF
9439 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9440 _ACEOF
9441
9442 fi
9443
9444 { echo "$as_me:$LINENO: checking for objdir" >&5
9445 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9446 if test "${libltdl_cv_objdir+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   libltdl_cv_objdir="$objdir"
9450   if test -n "$objdir"; then
9451     :
9452   else
9453     rm -f .libs 2>/dev/null
9454     mkdir .libs 2>/dev/null
9455     if test -d .libs; then
9456       libltdl_cv_objdir=.libs
9457     else
9458       # MS-DOS does not allow filenames that begin with a dot.
9459       libltdl_cv_objdir=_libs
9460     fi
9461   rmdir .libs 2>/dev/null
9462   fi
9463
9464 fi
9465 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9466 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9467
9468 cat >>confdefs.h <<_ACEOF
9469 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9470 _ACEOF
9471
9472
9473
9474
9475
9476
9477 # Check for command to grab the raw symbol name followed by C symbol from nm.
9478 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483
9484 # These are sane defaults that work on at least a few old systems.
9485 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9486
9487 # Character class describing NM global symbol codes.
9488 symcode='[BCDEGRST]'
9489
9490 # Regexp to match symbols that can be accessed directly from C.
9491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9492
9493 # Transform an extracted symbol line into a proper C declaration
9494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9495
9496 # Transform an extracted symbol line into symbol name and symbol address
9497 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'"
9498
9499 # Define system-specific variables.
9500 case $host_os in
9501 aix*)
9502   symcode='[BCDT]'
9503   ;;
9504 cygwin* | mingw* | pw32*)
9505   symcode='[ABCDGISTW]'
9506   ;;
9507 hpux*) # Its linker distinguishes data from code symbols
9508   if test "$host_cpu" = ia64; then
9509     symcode='[ABCDEGRST]'
9510   fi
9511   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9512   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'"
9513   ;;
9514 linux*)
9515   if test "$host_cpu" = ia64; then
9516     symcode='[ABCDGIRSTW]'
9517     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9518     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'"
9519   fi
9520   ;;
9521 irix* | nonstopux*)
9522   symcode='[BCDEGRST]'
9523   ;;
9524 osf*)
9525   symcode='[BCDEGQRST]'
9526   ;;
9527 solaris*)
9528   symcode='[BDRT]'
9529   ;;
9530 sco3.2v5*)
9531   symcode='[DT]'
9532   ;;
9533 sysv4.2uw2*)
9534   symcode='[DT]'
9535   ;;
9536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9537   symcode='[ABDT]'
9538   ;;
9539 sysv4)
9540   symcode='[DFNSTU]'
9541   ;;
9542 esac
9543
9544 # Handle CRLF in mingw tool chain
9545 opt_cr=
9546 case $build_os in
9547 mingw*)
9548   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9549   ;;
9550 esac
9551
9552 # If we're using GNU nm, then use its standard symbol codes.
9553 case `$NM -V 2>&1` in
9554 *GNU* | *'with BFD'*)
9555   symcode='[ABCDGIRSTW]' ;;
9556 esac
9557
9558 # Try without a prefix undercore, then with it.
9559 for ac_symprfx in "" "_"; do
9560
9561   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9562   symxfrm="\\1 $ac_symprfx\\2 \\2"
9563
9564   # Write the raw and C identifiers.
9565   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9566
9567   # Check to see that the pipe works correctly.
9568   pipe_works=no
9569
9570   rm -f conftest*
9571   cat > conftest.$ac_ext <<EOF
9572 #ifdef __cplusplus
9573 extern "C" {
9574 #endif
9575 char nm_test_var;
9576 void nm_test_func(){}
9577 #ifdef __cplusplus
9578 }
9579 #endif
9580 int main(){nm_test_var='a';nm_test_func();return(0);}
9581 EOF
9582
9583   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584   (eval $ac_compile) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; then
9588     # Now try to grab the symbols.
9589     nlist=conftest.nm
9590     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9591   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } && test -s "$nlist"; then
9595       # Try sorting and uniquifying the output.
9596       if sort "$nlist" | uniq > "$nlist"T; then
9597         mv -f "$nlist"T "$nlist"
9598       else
9599         rm -f "$nlist"T
9600       fi
9601
9602       # Make sure that we snagged all the symbols we need.
9603       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9604         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9605           cat <<EOF > conftest.$ac_ext
9606 #ifdef __cplusplus
9607 extern "C" {
9608 #endif
9609
9610 EOF
9611           # Now generate the symbol file.
9612           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9613
9614           cat <<EOF >> conftest.$ac_ext
9615 #if defined (__STDC__) && __STDC__
9616 # define lt_ptr_t void *
9617 #else
9618 # define lt_ptr_t char *
9619 # define const
9620 #endif
9621
9622 /* The mapping between symbol names and symbols. */
9623 const struct {
9624   const char *name;
9625   lt_ptr_t address;
9626 }
9627 lt_preloaded_symbols[] =
9628 {
9629 EOF
9630           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9631           cat <<\EOF >> conftest.$ac_ext
9632   {0, (lt_ptr_t) 0}
9633 };
9634
9635 #ifdef __cplusplus
9636 }
9637 #endif
9638 EOF
9639           # Now try linking the two files.
9640           mv conftest.$ac_objext conftstm.$ac_objext
9641           lt_save_LIBS="$LIBS"
9642           lt_save_CFLAGS="$CFLAGS"
9643           LIBS="conftstm.$ac_objext"
9644           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9645           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646   (eval $ac_link) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9650             pipe_works=yes
9651           fi
9652           LIBS="$lt_save_LIBS"
9653           CFLAGS="$lt_save_CFLAGS"
9654         else
9655           echo "cannot find nm_test_func in $nlist" >&5
9656         fi
9657       else
9658         echo "cannot find nm_test_var in $nlist" >&5
9659       fi
9660     else
9661       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9662     fi
9663   else
9664     echo "$progname: failed program was:" >&5
9665     cat conftest.$ac_ext >&5
9666   fi
9667   rm -f conftest* conftst*
9668
9669   # Do not use the global_symbol_pipe unless it works.
9670   if test "$pipe_works" = yes; then
9671     break
9672   else
9673     lt_cv_sys_global_symbol_pipe=
9674   fi
9675 done
9676
9677 fi
9678
9679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9680   lt_cv_sys_global_symbol_to_cdecl=
9681 fi
9682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9683   { echo "$as_me:$LINENO: result: failed" >&5
9684 echo "${ECHO_T}failed" >&6; }
9685 else
9686   { echo "$as_me:$LINENO: result: ok" >&5
9687 echo "${ECHO_T}ok" >&6; }
9688 fi
9689
9690
9691 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9692 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9693 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9697     libltdl_cv_preloaded_symbols=yes
9698   else
9699     libltdl_cv_preloaded_symbols=no
9700   fi
9701
9702 fi
9703 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9704 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9705 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9706
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_PRELOADED_SYMBOLS 1
9709 _ACEOF
9710
9711 fi
9712
9713 LIBADD_DL=
9714
9715 ac_ext=c
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9720
9721
9722 { echo "$as_me:$LINENO: checking for shl_load" >&5
9723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9724 if test "${ac_cv_func_shl_load+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9735 #define shl_load innocuous_shl_load
9736
9737 /* System header to define __stub macros and hopefully few prototypes,
9738     which can conflict with char shl_load (); below.
9739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740     <limits.h> exists even on freestanding compilers.  */
9741
9742 #ifdef __STDC__
9743 # include <limits.h>
9744 #else
9745 # include <assert.h>
9746 #endif
9747
9748 #undef shl_load
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751    Use char because int might match the return type of a GCC
9752    builtin and then its argument prototype would still apply.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char shl_load ();
9757 /* The GNU C library defines this for functions which it implements
9758     to always fail with ENOSYS.  Some functions are actually named
9759     something starting with __ and the normal name is an alias.  */
9760 #if defined __stub_shl_load || defined __stub___shl_load
9761 choke me
9762 #endif
9763
9764 int
9765 main ()
9766 {
9767 return shl_load ();
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9774 case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_link") 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787   { (case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_try") 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; } &&
9796          { ac_try='test -s conftest$ac_exeext'
9797   { (case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_try") 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_func_shl_load=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         ac_cv_func_shl_load=no
9812 fi
9813
9814 rm -f core conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816 fi
9817 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9818 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9819 if test $ac_cv_func_shl_load = yes; then
9820
9821 cat >>confdefs.h <<\_ACEOF
9822 #define HAVE_SHL_LOAD 1
9823 _ACEOF
9824
9825 else
9826   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9827 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9828 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-ldld  $LIBS"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h.  */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h.  */
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841    Use char because int might match the return type of a GCC
9842    builtin and then its argument prototype would still apply.  */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char shl_load ();
9847 int
9848 main ()
9849 {
9850 return shl_load ();
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_link") 2>conftest.er1
9863   ac_status=$?
9864   grep -v '^ *+' conftest.er1 >conftest.err
9865   rm -f conftest.er1
9866   cat conftest.err >&5
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } &&
9869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870   { (case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_try") 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_try") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; }; then
9889   ac_cv_lib_dld_shl_load=yes
9890 else
9891   echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894         ac_cv_lib_dld_shl_load=no
9895 fi
9896
9897 rm -f core conftest.err conftest.$ac_objext \
9898       conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9900 fi
9901 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9903 if test $ac_cv_lib_dld_shl_load = yes; then
9904
9905 cat >>confdefs.h <<\_ACEOF
9906 #define HAVE_SHL_LOAD 1
9907 _ACEOF
9908
9909         LIBADD_DL="$LIBADD_DL -ldld"
9910 else
9911   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   ac_check_lib_save_LIBS=$LIBS
9917 LIBS="-ldl  $LIBS"
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924
9925 /* Override any GCC internal prototype to avoid an error.
9926    Use char because int might match the return type of a GCC
9927    builtin and then its argument prototype would still apply.  */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 char dlopen ();
9932 int
9933 main ()
9934 {
9935 return dlopen ();
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9942 case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_link") 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955   { (case "(($ac_try" in
9956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957   *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960   (eval "$ac_try") 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; } &&
9964          { ac_try='test -s conftest$ac_exeext'
9965   { (case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_try") 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_cv_lib_dl_dlopen=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979         ac_cv_lib_dl_dlopen=no
9980 fi
9981
9982 rm -f core conftest.err conftest.$ac_objext \
9983       conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9985 fi
9986 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9987 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9988 if test $ac_cv_lib_dl_dlopen = yes; then
9989
9990 cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_LIBDL 1
9992 _ACEOF
9993
9994                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9995 else
9996   cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002 #if HAVE_DLFCN_H
10003 #  include <dlfcn.h>
10004 #endif
10005
10006 int
10007 main ()
10008 {
10009 dlopen(0, 0);
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018   *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021   (eval "$ac_link") 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } &&
10028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029   { (case "(($ac_try" in
10030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031   *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034   (eval "$ac_try") 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_try") 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; }; then
10048
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_LIBDL 1
10051 _ACEOF
10052  libltdl_cv_func_dlopen="yes"
10053 else
10054   echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10058 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10059 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-lsvld  $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072    Use char because int might match the return type of a GCC
10073    builtin and then its argument prototype would still apply.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char dlopen ();
10078 int
10079 main ()
10080 {
10081 return dlopen ();
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_link") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } &&
10100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101   { (case "(($ac_try" in
10102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103   *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106   (eval "$ac_try") 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; } &&
10110          { ac_try='test -s conftest$ac_exeext'
10111   { (case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_try") 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; }; then
10120   ac_cv_lib_svld_dlopen=yes
10121 else
10122   echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10124
10125         ac_cv_lib_svld_dlopen=no
10126 fi
10127
10128 rm -f core conftest.err conftest.$ac_objext \
10129       conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_lib_save_LIBS
10131 fi
10132 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10133 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10134 if test $ac_cv_lib_svld_dlopen = yes; then
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_LIBDL 1
10138 _ACEOF
10139
10140                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10141 else
10142   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   ac_check_lib_save_LIBS=$LIBS
10148 LIBS="-ldld  $LIBS"
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155
10156 /* Override any GCC internal prototype to avoid an error.
10157    Use char because int might match the return type of a GCC
10158    builtin and then its argument prototype would still apply.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char dld_link ();
10163 int
10164 main ()
10165 {
10166 return dld_link ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_link") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186   { (case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_try") 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest$ac_exeext'
10196   { (case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_try") 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   ac_cv_lib_dld_dld_link=yes
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210         ac_cv_lib_dld_dld_link=no
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext \
10214       conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10216 fi
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10219 if test $ac_cv_lib_dld_dld_link = yes; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_DLD 1
10223 _ACEOF
10224
10225                 LIBADD_DL="$LIBADD_DL -ldld"
10226 else
10227   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10228 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10229 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10240 #define _dyld_func_lookup innocuous__dyld_func_lookup
10241
10242 /* System header to define __stub macros and hopefully few prototypes,
10243     which can conflict with char _dyld_func_lookup (); below.
10244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10245     <limits.h> exists even on freestanding compilers.  */
10246
10247 #ifdef __STDC__
10248 # include <limits.h>
10249 #else
10250 # include <assert.h>
10251 #endif
10252
10253 #undef _dyld_func_lookup
10254
10255 /* Override any GCC internal prototype to avoid an error.
10256    Use char because int might match the return type of a GCC
10257    builtin and then its argument prototype would still apply.  */
10258 #ifdef __cplusplus
10259 extern "C"
10260 #endif
10261 char _dyld_func_lookup ();
10262 /* The GNU C library defines this for functions which it implements
10263     to always fail with ENOSYS.  Some functions are actually named
10264     something starting with __ and the normal name is an alias.  */
10265 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10266 choke me
10267 #endif
10268
10269 int
10270 main ()
10271 {
10272 return _dyld_func_lookup ();
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (ac_try="$ac_link"
10279 case "(($ac_try" in
10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281   *) ac_try_echo=$ac_try;;
10282 esac
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284   (eval "$ac_link") 2>conftest.er1
10285   ac_status=$?
10286   grep -v '^ *+' conftest.er1 >conftest.err
10287   rm -f conftest.er1
10288   cat conftest.err >&5
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } &&
10291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10292   { (case "(($ac_try" in
10293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294   *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297   (eval "$ac_try") 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; } &&
10301          { ac_try='test -s conftest$ac_exeext'
10302   { (case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307   (eval "$ac_try") 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   ac_cv_func__dyld_func_lookup=yes
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316         ac_cv_func__dyld_func_lookup=no
10317 fi
10318
10319 rm -f core conftest.err conftest.$ac_objext \
10320       conftest$ac_exeext conftest.$ac_ext
10321 fi
10322 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10323 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10324 if test $ac_cv_func__dyld_func_lookup = yes; then
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_DYLD 1
10328 _ACEOF
10329
10330 fi
10331
10332
10333 fi
10334
10335
10336 fi
10337
10338
10339 fi
10340
10341 rm -f core conftest.err conftest.$ac_objext \
10342       conftest$ac_exeext conftest.$ac_ext
10343
10344 fi
10345
10346
10347 fi
10348
10349
10350 fi
10351
10352
10353 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10354 then
10355   lt_save_LIBS="$LIBS"
10356   LIBS="$LIBS $LIBADD_DL"
10357
10358 for ac_func in dlerror
10359 do
10360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10374 #define $ac_func innocuous_$ac_func
10375
10376 /* System header to define __stub macros and hopefully few prototypes,
10377     which can conflict with char $ac_func (); below.
10378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10379     <limits.h> exists even on freestanding compilers.  */
10380
10381 #ifdef __STDC__
10382 # include <limits.h>
10383 #else
10384 # include <assert.h>
10385 #endif
10386
10387 #undef $ac_func
10388
10389 /* Override any GCC internal prototype to avoid an error.
10390    Use char because int might match the return type of a GCC
10391    builtin and then its argument prototype would still apply.  */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char $ac_func ();
10396 /* The GNU C library defines this for functions which it implements
10397     to always fail with ENOSYS.  Some functions are actually named
10398     something starting with __ and the normal name is an alias.  */
10399 #if defined __stub_$ac_func || defined __stub___$ac_func
10400 choke me
10401 #endif
10402
10403 int
10404 main ()
10405 {
10406 return $ac_func ();
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_link") 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426   { (case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_try") 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; } &&
10435          { ac_try='test -s conftest$ac_exeext'
10436   { (case "(($ac_try" in
10437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438   *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441   (eval "$ac_try") 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; }; then
10445   eval "$as_ac_var=yes"
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         eval "$as_ac_var=no"
10451 fi
10452
10453 rm -f core conftest.err conftest.$ac_objext \
10454       conftest$ac_exeext conftest.$ac_ext
10455 fi
10456 ac_res=`eval echo '${'$as_ac_var'}'`
10457                { echo "$as_me:$LINENO: result: $ac_res" >&5
10458 echo "${ECHO_T}$ac_res" >&6; }
10459 if test `eval echo '${'$as_ac_var'}'` = yes; then
10460   cat >>confdefs.h <<_ACEOF
10461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10462 _ACEOF
10463
10464 fi
10465 done
10466
10467   LIBS="$lt_save_LIBS"
10468 fi
10469 ac_ext=c
10470 ac_cpp='$CPP $CPPFLAGS'
10471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10474
10475
10476
10477 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10478 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10479 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10480   echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482   ac_cv_sys_symbol_underscore=no
10483   cat > conftest.$ac_ext <<EOF
10484 void nm_test_func(){}
10485 int main(){nm_test_func;return 0;}
10486 EOF
10487   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488   (eval $ac_compile) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; then
10492     # Now try to grab the symbols.
10493     ac_nlist=conftest.nm
10494     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10495   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } && test -s "$ac_nlist"; then
10499       # See whether the symbols have a leading underscore.
10500       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10501         ac_cv_sys_symbol_underscore=yes
10502       else
10503         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10504           :
10505         else
10506           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10507         fi
10508       fi
10509     else
10510       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10511     fi
10512   else
10513     echo "configure: failed program was:" >&5
10514     cat conftest.c >&5
10515   fi
10516   rm -rf conftest*
10517
10518 fi
10519 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10520 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10521
10522
10523 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10524   if test x"$libltdl_cv_func_dlopen" = xyes ||
10525      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10526         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10527 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10528 if test "${libltdl_cv_need_uscore+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   libltdl_cv_need_uscore=unknown
10532           save_LIBS="$LIBS"
10533           LIBS="$LIBS $LIBADD_DL"
10534           if test "$cross_compiling" = yes; then :
10535   libltdl_cv_need_uscore=cross
10536 else
10537   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10538   lt_status=$lt_dlunknown
10539   cat > conftest.$ac_ext <<EOF
10540 #line 10540 "configure"
10541 #include "confdefs.h"
10542
10543 #if HAVE_DLFCN_H
10544 #include <dlfcn.h>
10545 #endif
10546
10547 #include <stdio.h>
10548
10549 #ifdef RTLD_GLOBAL
10550 #  define LT_DLGLOBAL           RTLD_GLOBAL
10551 #else
10552 #  ifdef DL_GLOBAL
10553 #    define LT_DLGLOBAL         DL_GLOBAL
10554 #  else
10555 #    define LT_DLGLOBAL         0
10556 #  endif
10557 #endif
10558
10559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10560    find out it does not work in some platform. */
10561 #ifndef LT_DLLAZY_OR_NOW
10562 #  ifdef RTLD_LAZY
10563 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10564 #  else
10565 #    ifdef DL_LAZY
10566 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10567 #    else
10568 #      ifdef RTLD_NOW
10569 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10570 #      else
10571 #        ifdef DL_NOW
10572 #          define LT_DLLAZY_OR_NOW      DL_NOW
10573 #        else
10574 #          define LT_DLLAZY_OR_NOW      0
10575 #        endif
10576 #      endif
10577 #    endif
10578 #  endif
10579 #endif
10580
10581 #ifdef __cplusplus
10582 extern "C" void exit (int);
10583 #endif
10584
10585 void fnord() { int i=42;}
10586 int main ()
10587 {
10588   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10589   int status = $lt_dlunknown;
10590
10591   if (self)
10592     {
10593       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10594       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10595       /* dlclose (self); */
10596     }
10597   else
10598     puts (dlerror ());
10599
10600     exit (status);
10601 }
10602 EOF
10603   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604   (eval $ac_link) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10608     (./conftest; exit; ) >&5 2>/dev/null
10609     lt_status=$?
10610     case x$lt_status in
10611       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10612       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10613       x$lt_dlunknown|x*)  ;;
10614     esac
10615   else :
10616     # compilation failed
10617
10618   fi
10619 fi
10620 rm -fr conftest*
10621
10622           LIBS="$save_LIBS"
10623
10624 fi
10625 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10626 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10627   fi
10628 fi
10629
10630 if test x"$libltdl_cv_need_uscore" = xyes; then
10631
10632 cat >>confdefs.h <<\_ACEOF
10633 #define NEED_USCORE 1
10634 _ACEOF
10635
10636 fi
10637
10638
10639 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10640 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10641 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   # PORTME does your system automatically load deplibs for dlopen?
10645   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10646   # For now, we just catch OSes we know something about -- in the
10647   # future, we'll try test this programmatically.
10648   libltdl_cv_sys_dlopen_deplibs=unknown
10649   case "$host_os" in
10650   aix3*|aix4.1.*|aix4.2.*)
10651     # Unknown whether this is true for these versions of AIX, but
10652     # we want this `case' here to explicitly catch those versions.
10653     libltdl_cv_sys_dlopen_deplibs=unknown
10654     ;;
10655   aix[45]*)
10656     libltdl_cv_sys_dlopen_deplibs=yes
10657     ;;
10658   darwin*)
10659     # Assuming the user has installed a libdl from somewhere, this is true
10660     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10661     libltdl_cv_sys_dlopen_deplibs=yes
10662     ;;
10663   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10664     # GNU and its variants, using gnu ld.so (Glibc)
10665     libltdl_cv_sys_dlopen_deplibs=yes
10666     ;;
10667   hpux10*|hpux11*)
10668     libltdl_cv_sys_dlopen_deplibs=yes
10669     ;;
10670   interix*)
10671     libltdl_cv_sys_dlopen_deplibs=yes
10672     ;;
10673   irix[12345]*|irix6.[01]*)
10674     # Catch all versions of IRIX before 6.2, and indicate that we don't
10675     # know how it worked for any of those versions.
10676     libltdl_cv_sys_dlopen_deplibs=unknown
10677     ;;
10678   irix*)
10679     # The case above catches anything before 6.2, and it's known that
10680     # at 6.2 and later dlopen does load deplibs.
10681     libltdl_cv_sys_dlopen_deplibs=yes
10682     ;;
10683   netbsd*)
10684     libltdl_cv_sys_dlopen_deplibs=yes
10685     ;;
10686   openbsd*)
10687     libltdl_cv_sys_dlopen_deplibs=yes
10688     ;;
10689   osf[1234]*)
10690     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10691     # it did *not* use an RPATH in a shared library to find objects the
10692     # library depends on, so we explicitly say `no'.
10693     libltdl_cv_sys_dlopen_deplibs=no
10694     ;;
10695   osf5.0|osf5.0a|osf5.1)
10696     # dlopen *does* load deplibs and with the right loader patch applied
10697     # it even uses RPATH in a shared library to search for shared objects
10698     # that the library depends on, but there's no easy way to know if that
10699     # patch is installed.  Since this is the case, all we can really
10700     # say is unknown -- it depends on the patch being installed.  If
10701     # it is, this changes to `yes'.  Without it, it would be `no'.
10702     libltdl_cv_sys_dlopen_deplibs=unknown
10703     ;;
10704   osf*)
10705     # the two cases above should catch all versions of osf <= 5.1.  Read
10706     # the comments above for what we know about them.
10707     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10708     # is used to find them so we can finally say `yes'.
10709     libltdl_cv_sys_dlopen_deplibs=yes
10710     ;;
10711   solaris*)
10712     libltdl_cv_sys_dlopen_deplibs=yes
10713     ;;
10714   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10715     libltdl_cv_sys_dlopen_deplibs=yes
10716     ;;
10717   esac
10718
10719 fi
10720 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10721 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10722 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10723
10724 cat >>confdefs.h <<\_ACEOF
10725 #define LTDL_DLOPEN_DEPLIBS 1
10726 _ACEOF
10727
10728 fi
10729
10730
10731 for ac_header in argz.h
10732 do
10733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 fi
10740 ac_res=`eval echo '${'$as_ac_Header'}'`
10741                { echo "$as_me:$LINENO: result: $ac_res" >&5
10742 echo "${ECHO_T}$ac_res" >&6; }
10743 else
10744   # Is the header compilable?
10745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753 $ac_includes_default
10754 #include <$ac_header>
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_compile") 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771   { (case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_try") 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest.$ac_objext'
10781   { (case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_try") 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; }; then
10790   ac_header_compiler=yes
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795         ac_header_compiler=no
10796 fi
10797
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10800 echo "${ECHO_T}$ac_header_compiler" >&6; }
10801
10802 # Is the header present?
10803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 #include <$ac_header>
10812 _ACEOF
10813 if { (ac_try="$ac_cpp conftest.$ac_ext"
10814 case "(($ac_try" in
10815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816   *) ac_try_echo=$ac_try;;
10817 esac
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10820   ac_status=$?
10821   grep -v '^ *+' conftest.er1 >conftest.err
10822   rm -f conftest.er1
10823   cat conftest.err >&5
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); } >/dev/null; then
10826   if test -s conftest.err; then
10827     ac_cpp_err=$ac_c_preproc_warn_flag
10828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10829   else
10830     ac_cpp_err=
10831   fi
10832 else
10833   ac_cpp_err=yes
10834 fi
10835 if test -z "$ac_cpp_err"; then
10836   ac_header_preproc=yes
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841   ac_header_preproc=no
10842 fi
10843
10844 rm -f conftest.err conftest.$ac_ext
10845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6; }
10847
10848 # So?  What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850   yes:no: )
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855     ac_header_preproc=yes
10856     ;;
10857   no:yes:* )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870     ( cat <<\_ASBOX
10871 ## ------------------------------------ ##
10872 ## Report this to http://llvm.org/bugs/ ##
10873 ## ------------------------------------ ##
10874 _ASBOX
10875      ) | sed "s/^/$as_me: WARNING:     /" >&2
10876     ;;
10877 esac
10878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   eval "$as_ac_Header=\$ac_header_preproc"
10884 fi
10885 ac_res=`eval echo '${'$as_ac_Header'}'`
10886                { echo "$as_me:$LINENO: result: $ac_res" >&5
10887 echo "${ECHO_T}$ac_res" >&6; }
10888
10889 fi
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891   cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10893 _ACEOF
10894
10895 fi
10896
10897 done
10898
10899
10900 { echo "$as_me:$LINENO: checking for error_t" >&5
10901 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10902 if test "${ac_cv_type_error_t+set}" = set; then
10903   echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905   cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911 #if HAVE_ARGZ_H
10912 #  include <argz.h>
10913 #endif
10914
10915 typedef error_t ac__type_new_;
10916 int
10917 main ()
10918 {
10919 if ((ac__type_new_ *) 0)
10920   return 0;
10921 if (sizeof (ac__type_new_))
10922   return 0;
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_compile") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest.$ac_objext'
10952   { (case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_cv_type_error_t=yes
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966         ac_cv_type_error_t=no
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 fi
10971 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10972 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10973 if test $ac_cv_type_error_t = yes; then
10974
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_ERROR_T 1
10977 _ACEOF
10978
10979
10980 else
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define error_t int
10984 _ACEOF
10985
10986 fi
10987
10988
10989
10990
10991
10992
10993
10994 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10995 do
10996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11010 #define $ac_func innocuous_$ac_func
11011
11012 /* System header to define __stub macros and hopefully few prototypes,
11013     which can conflict with char $ac_func (); below.
11014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11015     <limits.h> exists even on freestanding compilers.  */
11016
11017 #ifdef __STDC__
11018 # include <limits.h>
11019 #else
11020 # include <assert.h>
11021 #endif
11022
11023 #undef $ac_func
11024
11025 /* Override any GCC internal prototype to avoid an error.
11026    Use char because int might match the return type of a GCC
11027    builtin and then its argument prototype would still apply.  */
11028 #ifdef __cplusplus
11029 extern "C"
11030 #endif
11031 char $ac_func ();
11032 /* The GNU C library defines this for functions which it implements
11033     to always fail with ENOSYS.  Some functions are actually named
11034     something starting with __ and the normal name is an alias.  */
11035 #if defined __stub_$ac_func || defined __stub___$ac_func
11036 choke me
11037 #endif
11038
11039 int
11040 main ()
11041 {
11042 return $ac_func ();
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_link") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062   { (case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_try") 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest$ac_exeext'
11072   { (case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_try") 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   eval "$as_ac_var=yes"
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         eval "$as_ac_var=no"
11087 fi
11088
11089 rm -f core conftest.err conftest.$ac_objext \
11090       conftest$ac_exeext conftest.$ac_ext
11091 fi
11092 ac_res=`eval echo '${'$as_ac_var'}'`
11093                { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 if test `eval echo '${'$as_ac_var'}'` = yes; then
11096   cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11098 _ACEOF
11099
11100 fi
11101 done
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11131                   stdio.h unistd.h
11132 do
11133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 fi
11140 ac_res=`eval echo '${'$as_ac_Header'}'`
11141                { echo "$as_me:$LINENO: result: $ac_res" >&5
11142 echo "${ECHO_T}$ac_res" >&6; }
11143 else
11144   # Is the header compilable?
11145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 $ac_includes_default
11154 #include <$ac_header>
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_compile") 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171   { (case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_try") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; } &&
11180          { ac_try='test -s conftest.$ac_objext'
11181   { (case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_try") 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   ac_header_compiler=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195         ac_header_compiler=no
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6; }
11201
11202 # Is the header present?
11203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 #include <$ac_header>
11212 _ACEOF
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } >/dev/null; then
11226   if test -s conftest.err; then
11227     ac_cpp_err=$ac_c_preproc_warn_flag
11228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229   else
11230     ac_cpp_err=
11231   fi
11232 else
11233   ac_cpp_err=yes
11234 fi
11235 if test -z "$ac_cpp_err"; then
11236   ac_header_preproc=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241   ac_header_preproc=no
11242 fi
11243
11244 rm -f conftest.err conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 echo "${ECHO_T}$ac_header_preproc" >&6; }
11247
11248 # So?  What about this header?
11249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250   yes:no: )
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255     ac_header_preproc=yes
11256     ;;
11257   no:yes:* )
11258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270     ( cat <<\_ASBOX
11271 ## ------------------------------------ ##
11272 ## Report this to http://llvm.org/bugs/ ##
11273 ## ------------------------------------ ##
11274 _ASBOX
11275      ) | sed "s/^/$as_me: WARNING:     /" >&2
11276     ;;
11277 esac
11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   eval "$as_ac_Header=\$ac_header_preproc"
11284 fi
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286                { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11288
11289 fi
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291   cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 _ACEOF
11294
11295 fi
11296
11297 done
11298
11299
11300
11301
11302
11303 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11304 do
11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 fi
11312 ac_res=`eval echo '${'$as_ac_Header'}'`
11313                { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11315 else
11316   # Is the header compilable?
11317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h.  */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h.  */
11325 $ac_includes_default
11326 #include <$ac_header>
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_compile") 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11343   { (case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_try") 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; } &&
11352          { ac_try='test -s conftest.$ac_objext'
11353   { (case "(($ac_try" in
11354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355   *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358   (eval "$ac_try") 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   ac_header_compiler=yes
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367         ac_header_compiler=no
11368 fi
11369
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11372 echo "${ECHO_T}$ac_header_compiler" >&6; }
11373
11374 # Is the header present?
11375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383 #include <$ac_header>
11384 _ACEOF
11385 if { (ac_try="$ac_cpp conftest.$ac_ext"
11386 case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11392   ac_status=$?
11393   grep -v '^ *+' conftest.er1 >conftest.err
11394   rm -f conftest.er1
11395   cat conftest.err >&5
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } >/dev/null; then
11398   if test -s conftest.err; then
11399     ac_cpp_err=$ac_c_preproc_warn_flag
11400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11401   else
11402     ac_cpp_err=
11403   fi
11404 else
11405   ac_cpp_err=yes
11406 fi
11407 if test -z "$ac_cpp_err"; then
11408   ac_header_preproc=yes
11409 else
11410   echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413   ac_header_preproc=no
11414 fi
11415
11416 rm -f conftest.err conftest.$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419
11420 # So?  What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422   yes:no: )
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427     ac_header_preproc=yes
11428     ;;
11429   no:yes:* )
11430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442     ( cat <<\_ASBOX
11443 ## ------------------------------------ ##
11444 ## Report this to http://llvm.org/bugs/ ##
11445 ## ------------------------------------ ##
11446 _ASBOX
11447      ) | sed "s/^/$as_me: WARNING:     /" >&2
11448     ;;
11449 esac
11450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   eval "$as_ac_Header=\$ac_header_preproc"
11456 fi
11457 ac_res=`eval echo '${'$as_ac_Header'}'`
11458                { echo "$as_me:$LINENO: result: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11460
11461 fi
11462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11463   cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11465 _ACEOF
11466
11467 fi
11468
11469 done
11470
11471
11472
11473 for ac_header in string.h strings.h
11474 do
11475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 fi
11482 ac_res=`eval echo '${'$as_ac_Header'}'`
11483                { echo "$as_me:$LINENO: result: $ac_res" >&5
11484 echo "${ECHO_T}$ac_res" >&6; }
11485 else
11486   # Is the header compilable?
11487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495 $ac_includes_default
11496 #include <$ac_header>
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (ac_try="$ac_compile"
11500 case "(($ac_try" in
11501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502   *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505   (eval "$ac_compile") 2>conftest.er1
11506   ac_status=$?
11507   grep -v '^ *+' conftest.er1 >conftest.err
11508   rm -f conftest.er1
11509   cat conftest.err >&5
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); } &&
11512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513   { (case "(($ac_try" in
11514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515   *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518   (eval "$ac_try") 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; } &&
11522          { ac_try='test -s conftest.$ac_objext'
11523   { (case "(($ac_try" in
11524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525   *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528   (eval "$ac_try") 2>&5
11529   ac_status=$?
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); }; }; then
11532   ac_header_compiler=yes
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537         ac_header_compiler=no
11538 fi
11539
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11542 echo "${ECHO_T}$ac_header_compiler" >&6; }
11543
11544 # Is the header present?
11545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553 #include <$ac_header>
11554 _ACEOF
11555 if { (ac_try="$ac_cpp conftest.$ac_ext"
11556 case "(($ac_try" in
11557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558   *) ac_try_echo=$ac_try;;
11559 esac
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11562   ac_status=$?
11563   grep -v '^ *+' conftest.er1 >conftest.err
11564   rm -f conftest.er1
11565   cat conftest.err >&5
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } >/dev/null; then
11568   if test -s conftest.err; then
11569     ac_cpp_err=$ac_c_preproc_warn_flag
11570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11571   else
11572     ac_cpp_err=
11573   fi
11574 else
11575   ac_cpp_err=yes
11576 fi
11577 if test -z "$ac_cpp_err"; then
11578   ac_header_preproc=yes
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583   ac_header_preproc=no
11584 fi
11585
11586 rm -f conftest.err conftest.$ac_ext
11587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 echo "${ECHO_T}$ac_header_preproc" >&6; }
11589
11590 # So?  What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11592   yes:no: )
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597     ac_header_preproc=yes
11598     ;;
11599   no:yes:* )
11600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11612     ( cat <<\_ASBOX
11613 ## ------------------------------------ ##
11614 ## Report this to http://llvm.org/bugs/ ##
11615 ## ------------------------------------ ##
11616 _ASBOX
11617      ) | sed "s/^/$as_me: WARNING:     /" >&2
11618     ;;
11619 esac
11620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625   eval "$as_ac_Header=\$ac_header_preproc"
11626 fi
11627 ac_res=`eval echo '${'$as_ac_Header'}'`
11628                { echo "$as_me:$LINENO: result: $ac_res" >&5
11629 echo "${ECHO_T}$ac_res" >&6; }
11630
11631 fi
11632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11633   cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11635 _ACEOF
11636  break
11637 fi
11638
11639 done
11640
11641
11642
11643
11644 for ac_func in strchr index
11645 do
11646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11650   echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11652   cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11660 #define $ac_func innocuous_$ac_func
11661
11662 /* System header to define __stub macros and hopefully few prototypes,
11663     which can conflict with char $ac_func (); below.
11664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11665     <limits.h> exists even on freestanding compilers.  */
11666
11667 #ifdef __STDC__
11668 # include <limits.h>
11669 #else
11670 # include <assert.h>
11671 #endif
11672
11673 #undef $ac_func
11674
11675 /* Override any GCC internal prototype to avoid an error.
11676    Use char because int might match the return type of a GCC
11677    builtin and then its argument prototype would still apply.  */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 char $ac_func ();
11682 /* The GNU C library defines this for functions which it implements
11683     to always fail with ENOSYS.  Some functions are actually named
11684     something starting with __ and the normal name is an alias.  */
11685 #if defined __stub_$ac_func || defined __stub___$ac_func
11686 choke me
11687 #endif
11688
11689 int
11690 main ()
11691 {
11692 return $ac_func ();
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701   *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704   (eval "$ac_link") 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } &&
11711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712   { (case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717   (eval "$ac_try") 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; } &&
11721          { ac_try='test -s conftest$ac_exeext'
11722   { (case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_try") 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; }; then
11731   eval "$as_ac_var=yes"
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736         eval "$as_ac_var=no"
11737 fi
11738
11739 rm -f core conftest.err conftest.$ac_objext \
11740       conftest$ac_exeext conftest.$ac_ext
11741 fi
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743                { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746   cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11748 _ACEOF
11749  break
11750 fi
11751 done
11752
11753
11754
11755 for ac_func in strrchr rindex
11756 do
11757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h.  */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h.  */
11769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11771 #define $ac_func innocuous_$ac_func
11772
11773 /* System header to define __stub macros and hopefully few prototypes,
11774     which can conflict with char $ac_func (); below.
11775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11776     <limits.h> exists even on freestanding compilers.  */
11777
11778 #ifdef __STDC__
11779 # include <limits.h>
11780 #else
11781 # include <assert.h>
11782 #endif
11783
11784 #undef $ac_func
11785
11786 /* Override any GCC internal prototype to avoid an error.
11787    Use char because int might match the return type of a GCC
11788    builtin and then its argument prototype would still apply.  */
11789 #ifdef __cplusplus
11790 extern "C"
11791 #endif
11792 char $ac_func ();
11793 /* The GNU C library defines this for functions which it implements
11794     to always fail with ENOSYS.  Some functions are actually named
11795     something starting with __ and the normal name is an alias.  */
11796 #if defined __stub_$ac_func || defined __stub___$ac_func
11797 choke me
11798 #endif
11799
11800 int
11801 main ()
11802 {
11803 return $ac_func ();
11804   ;
11805   return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext conftest$ac_exeext
11809 if { (ac_try="$ac_link"
11810 case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_link") 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } &&
11822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823   { (case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_try") 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; } &&
11832          { ac_try='test -s conftest$ac_exeext'
11833   { (case "(($ac_try" in
11834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835   *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838   (eval "$ac_try") 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   eval "$as_ac_var=yes"
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847         eval "$as_ac_var=no"
11848 fi
11849
11850 rm -f core conftest.err conftest.$ac_objext \
11851       conftest$ac_exeext conftest.$ac_ext
11852 fi
11853 ac_res=`eval echo '${'$as_ac_var'}'`
11854                { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11856 if test `eval echo '${'$as_ac_var'}'` = yes; then
11857   cat >>confdefs.h <<_ACEOF
11858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11859 _ACEOF
11860  break
11861 fi
11862 done
11863
11864
11865
11866 for ac_func in memcpy bcopy
11867 do
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11882 #define $ac_func innocuous_$ac_func
11883
11884 /* System header to define __stub macros and hopefully few prototypes,
11885     which can conflict with char $ac_func (); below.
11886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887     <limits.h> exists even on freestanding compilers.  */
11888
11889 #ifdef __STDC__
11890 # include <limits.h>
11891 #else
11892 # include <assert.h>
11893 #endif
11894
11895 #undef $ac_func
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898    Use char because int might match the return type of a GCC
11899    builtin and then its argument prototype would still apply.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char $ac_func ();
11904 /* The GNU C library defines this for functions which it implements
11905     to always fail with ENOSYS.  Some functions are actually named
11906     something starting with __ and the normal name is an alias.  */
11907 #if defined __stub_$ac_func || defined __stub___$ac_func
11908 choke me
11909 #endif
11910
11911 int
11912 main ()
11913 {
11914 return $ac_func ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923   *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926   (eval "$ac_link") 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934   { (case "(($ac_try" in
11935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936   *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939   (eval "$ac_try") 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest$ac_exeext'
11944   { (case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_try") 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; }; then
11953   eval "$as_ac_var=yes"
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958         eval "$as_ac_var=no"
11959 fi
11960
11961 rm -f core conftest.err conftest.$ac_objext \
11962       conftest$ac_exeext conftest.$ac_ext
11963 fi
11964 ac_res=`eval echo '${'$as_ac_var'}'`
11965                { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968   cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 _ACEOF
11971  break
11972 fi
11973 done
11974
11975
11976
11977 for ac_func in memmove strcmp
11978 do
11979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985   cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h.  */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h.  */
11991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11993 #define $ac_func innocuous_$ac_func
11994
11995 /* System header to define __stub macros and hopefully few prototypes,
11996     which can conflict with char $ac_func (); below.
11997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11998     <limits.h> exists even on freestanding compilers.  */
11999
12000 #ifdef __STDC__
12001 # include <limits.h>
12002 #else
12003 # include <assert.h>
12004 #endif
12005
12006 #undef $ac_func
12007
12008 /* Override any GCC internal prototype to avoid an error.
12009    Use char because int might match the return type of a GCC
12010    builtin and then its argument prototype would still apply.  */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 char $ac_func ();
12015 /* The GNU C library defines this for functions which it implements
12016     to always fail with ENOSYS.  Some functions are actually named
12017     something starting with __ and the normal name is an alias.  */
12018 #if defined __stub_$ac_func || defined __stub___$ac_func
12019 choke me
12020 #endif
12021
12022 int
12023 main ()
12024 {
12025 return $ac_func ();
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034   *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037   (eval "$ac_link") 2>conftest.er1
12038   ac_status=$?
12039   grep -v '^ *+' conftest.er1 >conftest.err
12040   rm -f conftest.er1
12041   cat conftest.err >&5
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045   { (case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_try") 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; } &&
12054          { ac_try='test -s conftest$ac_exeext'
12055   { (case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_try") 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   eval "$as_ac_var=yes"
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069         eval "$as_ac_var=no"
12070 fi
12071
12072 rm -f core conftest.err conftest.$ac_objext \
12073       conftest$ac_exeext conftest.$ac_ext
12074 fi
12075 ac_res=`eval echo '${'$as_ac_var'}'`
12076                { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12078 if test `eval echo '${'$as_ac_var'}'` = yes; then
12079   cat >>confdefs.h <<_ACEOF
12080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 _ACEOF
12082
12083 fi
12084 done
12085
12086
12087
12088
12089 for ac_func in closedir opendir readdir
12090 do
12091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12105 #define $ac_func innocuous_$ac_func
12106
12107 /* System header to define __stub macros and hopefully few prototypes,
12108     which can conflict with char $ac_func (); below.
12109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110     <limits.h> exists even on freestanding compilers.  */
12111
12112 #ifdef __STDC__
12113 # include <limits.h>
12114 #else
12115 # include <assert.h>
12116 #endif
12117
12118 #undef $ac_func
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121    Use char because int might match the return type of a GCC
12122    builtin and then its argument prototype would still apply.  */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char $ac_func ();
12127 /* The GNU C library defines this for functions which it implements
12128     to always fail with ENOSYS.  Some functions are actually named
12129     something starting with __ and the normal name is an alias.  */
12130 #if defined __stub_$ac_func || defined __stub___$ac_func
12131 choke me
12132 #endif
12133
12134 int
12135 main ()
12136 {
12137 return $ac_func ();
12138   ;
12139   return 0;
12140 }
12141 _ACEOF
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (ac_try="$ac_link"
12144 case "(($ac_try" in
12145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146   *) ac_try_echo=$ac_try;;
12147 esac
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149   (eval "$ac_link") 2>conftest.er1
12150   ac_status=$?
12151   grep -v '^ *+' conftest.er1 >conftest.err
12152   rm -f conftest.er1
12153   cat conftest.err >&5
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } &&
12156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12157   { (case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_try") 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; } &&
12166          { ac_try='test -s conftest$ac_exeext'
12167   { (case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_try") 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; }; then
12176   eval "$as_ac_var=yes"
12177 else
12178   echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181         eval "$as_ac_var=no"
12182 fi
12183
12184 rm -f core conftest.err conftest.$ac_objext \
12185       conftest$ac_exeext conftest.$ac_ext
12186 fi
12187 ac_res=`eval echo '${'$as_ac_var'}'`
12188                { echo "$as_me:$LINENO: result: $ac_res" >&5
12189 echo "${ECHO_T}$ac_res" >&6; }
12190 if test `eval echo '${'$as_ac_var'}'` = yes; then
12191   cat >>confdefs.h <<_ACEOF
12192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193 _ACEOF
12194
12195 fi
12196 done
12197
12198
12199
12200 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12201 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12202
12203 ICC=no
12204 IXX=no
12205 case $CC in
12206   icc*|icpc*)
12207     ICC=yes
12208     IXX=yes
12209     ;;
12210    *)
12211     ;;
12212 esac
12213
12214 if test "$GCC" != "yes" && test "$ICC" != "yes"
12215 then
12216   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12217 echo "$as_me: error: gcc|icc required but not found" >&2;}
12218    { (exit 1); exit 1; }; }
12219 fi
12220
12221 if test "$GXX" != "yes" && test "$IXX" != "yes"
12222 then
12223   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12224 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12225    { (exit 1); exit 1; }; }
12226 fi
12227
12228 if test "$GCC" = "yes"
12229 then
12230   cat >conftest.$ac_ext <<_ACEOF
12231
12232   /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237
12238     #if !defined(__GNUC__) || __GNUC__ < 3
12239     #error Unsupported GCC version
12240     #endif
12241
12242
12243 _ACEOF
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251   (eval "$ac_compile") 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259   { (case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_try") 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; } &&
12268          { ac_try='test -s conftest.$ac_objext'
12269   { (case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_try") 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   :
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12284 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12285    { (exit 1); exit 1; }; }
12286 fi
12287
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 fi
12290
12291 if test -z "$llvm_cv_gnu_make_command"
12292 then
12293   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12294 echo "$as_me: error: GNU Make required but not found" >&2;}
12295    { (exit 1); exit 1; }; }
12296 fi
12297
12298 { echo "$as_me:$LINENO: result: ok" >&5
12299 echo "${ECHO_T}ok" >&6; }
12300
12301 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12302 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12303 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12304
12305 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12306
12307 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12308
12309
12310 NO_UNINITIALIZED=
12311 NO_MAYBE_UNINITIALIZED=
12312 if test "$GXX" = "yes"
12313 then
12314   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12315
12316         if test -z "$NO_MAYBE_UNINITIALIZED"
12317   then
12318     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12319
12320   fi
12321 fi
12322 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12323 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12324
12325
12326 # Check whether --with-python was given.
12327 if test "${with_python+set}" = set; then
12328   withval=$with_python; PYTHON="$withval"
12329 fi
12330
12331
12332 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12333   { echo "$as_me:$LINENO: checking for python" >&5
12334 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12335   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12336 echo "${ECHO_T}user defined: $with_python" >&6; }
12337 else
12338   if test -n "$PYTHON" ; then
12339     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12340 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12341   fi
12342
12343   # Extract the first word of "python python2 python26", so it can be a program name with args.
12344 set dummy python python2 python26; ac_word=$2
12345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12347 if test "${ac_cv_path_PYTHON+set}" = set; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   case $PYTHON in
12351   [\\/]* | ?:[\\/]*)
12352   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12353   ;;
12354   *)
12355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360   for ac_exec_ext in '' $ac_executable_extensions; do
12361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12362     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367 done
12368 IFS=$as_save_IFS
12369
12370   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12371 echo "${ECHO_T}not found" >&6; }
12372                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12373 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12374    { (exit 1); exit 1; }; }"
12375   ;;
12376 esac
12377 fi
12378 PYTHON=$ac_cv_path_PYTHON
12379 if test -n "$PYTHON"; then
12380   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12381 echo "${ECHO_T}$PYTHON" >&6; }
12382 else
12383   { echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6; }
12385 fi
12386
12387
12388 fi
12389
12390 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12391 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12392 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12393 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12394 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12395 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12396 if   test "$ac_python_version_major" -eq "2" \
12397    && test "$ac_python_version_minor" -ge "5" ; then
12398   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12399 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12400 else
12401   { echo "$as_me:$LINENO: result: not found" >&5
12402 echo "${ECHO_T}not found" >&6; }
12403   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12404 See \`config.log' for more details." >&5
12405 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12406 See \`config.log' for more details." >&2;}
12407    { (exit 1); exit 1; }; }
12408 fi
12409
12410
12411
12412 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12413 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12414 if test "${ac_cv_lib_m_sin+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-lm  $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425
12426 /* Override any GCC internal prototype to avoid an error.
12427    Use char because int might match the return type of a GCC
12428    builtin and then its argument prototype would still apply.  */
12429 #ifdef __cplusplus
12430 extern "C"
12431 #endif
12432 char sin ();
12433 int
12434 main ()
12435 {
12436 return sin ();
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_link") 2>conftest.er1
12449   ac_status=$?
12450   grep -v '^ *+' conftest.er1 >conftest.err
12451   rm -f conftest.er1
12452   cat conftest.err >&5
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } &&
12455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456   { (case "(($ac_try" in
12457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458   *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461   (eval "$ac_try") 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; } &&
12465          { ac_try='test -s conftest$ac_exeext'
12466   { (case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_try") 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_lib_m_sin=yes
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480         ac_cv_lib_m_sin=no
12481 fi
12482
12483 rm -f core conftest.err conftest.$ac_objext \
12484       conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12486 fi
12487 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12488 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12489 if test $ac_cv_lib_m_sin = yes; then
12490   cat >>confdefs.h <<_ACEOF
12491 #define HAVE_LIBM 1
12492 _ACEOF
12493
12494   LIBS="-lm $LIBS"
12495
12496 fi
12497
12498 if test "$llvm_cv_os_type" = "MingW" ; then
12499
12500 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12501 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12502 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   ac_check_lib_save_LIBS=$LIBS
12506 LIBS="-limagehlp  $LIBS"
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513
12514
12515 int
12516 main ()
12517 {
12518 return main ();
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (ac_try="$ac_link"
12525 case "(($ac_try" in
12526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527   *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530   (eval "$ac_link") 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538   { (case "(($ac_try" in
12539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540   *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543   (eval "$ac_try") 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; } &&
12547          { ac_try='test -s conftest$ac_exeext'
12548   { (case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553   (eval "$ac_try") 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; }; then
12557   ac_cv_lib_imagehlp_main=yes
12558 else
12559   echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12561
12562         ac_cv_lib_imagehlp_main=no
12563 fi
12564
12565 rm -f core conftest.err conftest.$ac_objext \
12566       conftest$ac_exeext conftest.$ac_ext
12567 LIBS=$ac_check_lib_save_LIBS
12568 fi
12569 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12570 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12571 if test $ac_cv_lib_imagehlp_main = yes; then
12572   cat >>confdefs.h <<_ACEOF
12573 #define HAVE_LIBIMAGEHLP 1
12574 _ACEOF
12575
12576   LIBS="-limagehlp $LIBS"
12577
12578 fi
12579
12580
12581 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12582 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_psapi_main+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lpsapi  $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594
12595
12596 int
12597 main ()
12598 {
12599 return main ();
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608   *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611   (eval "$ac_link") 2>conftest.er1
12612   ac_status=$?
12613   grep -v '^ *+' conftest.er1 >conftest.err
12614   rm -f conftest.er1
12615   cat conftest.err >&5
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } &&
12618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12619   { (case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_try") 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; } &&
12628          { ac_try='test -s conftest$ac_exeext'
12629   { (case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_try") 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   ac_cv_lib_psapi_main=yes
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643         ac_cv_lib_psapi_main=no
12644 fi
12645
12646 rm -f core conftest.err conftest.$ac_objext \
12647       conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12649 fi
12650 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12651 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12652 if test $ac_cv_lib_psapi_main = yes; then
12653   cat >>confdefs.h <<_ACEOF
12654 #define HAVE_LIBPSAPI 1
12655 _ACEOF
12656
12657   LIBS="-lpsapi $LIBS"
12658
12659 fi
12660
12661 fi
12662
12663 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12664 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12665 if test "${ac_cv_search_dlopen+set}" = set; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   ac_func_search_save_LIBS=$LIBS
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675
12676 /* Override any GCC internal prototype to avoid an error.
12677    Use char because int might match the return type of a GCC
12678    builtin and then its argument prototype would still apply.  */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char dlopen ();
12683 int
12684 main ()
12685 {
12686 return dlopen ();
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 for ac_lib in '' dl; do
12692   if test -z "$ac_lib"; then
12693     ac_res="none required"
12694   else
12695     ac_res=-l$ac_lib
12696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12697   fi
12698   rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (ac_try="$ac_link"
12700 case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_link") 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } &&
12712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713   { (case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_try") 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; } &&
12722          { ac_try='test -s conftest$ac_exeext'
12723   { (case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_try") 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; }; then
12732   ac_cv_search_dlopen=$ac_res
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737
12738 fi
12739
12740 rm -f core conftest.err conftest.$ac_objext \
12741       conftest$ac_exeext
12742   if test "${ac_cv_search_dlopen+set}" = set; then
12743   break
12744 fi
12745 done
12746 if test "${ac_cv_search_dlopen+set}" = set; then
12747   :
12748 else
12749   ac_cv_search_dlopen=no
12750 fi
12751 rm conftest.$ac_ext
12752 LIBS=$ac_func_search_save_LIBS
12753 fi
12754 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12755 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12756 ac_res=$ac_cv_search_dlopen
12757 if test "$ac_res" != no; then
12758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12759
12760 cat >>confdefs.h <<\_ACEOF
12761 #define HAVE_DLOPEN 1
12762 _ACEOF
12763
12764 else
12765   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12766 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12767 fi
12768
12769
12770 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12771 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12772 if test "${ac_cv_search_clock_gettime+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   ac_func_search_save_LIBS=$LIBS
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h.  */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h.  */
12782
12783 /* Override any GCC internal prototype to avoid an error.
12784    Use char because int might match the return type of a GCC
12785    builtin and then its argument prototype would still apply.  */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 char clock_gettime ();
12790 int
12791 main ()
12792 {
12793 return clock_gettime ();
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 for ac_lib in '' rt; do
12799   if test -z "$ac_lib"; then
12800     ac_res="none required"
12801   else
12802     ac_res=-l$ac_lib
12803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12804   fi
12805   rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (ac_try="$ac_link"
12807 case "(($ac_try" in
12808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809   *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812   (eval "$ac_link") 2>conftest.er1
12813   ac_status=$?
12814   grep -v '^ *+' conftest.er1 >conftest.err
12815   rm -f conftest.er1
12816   cat conftest.err >&5
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } &&
12819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12820   { (case "(($ac_try" in
12821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822   *) ac_try_echo=$ac_try;;
12823 esac
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825   (eval "$ac_try") 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; } &&
12829          { ac_try='test -s conftest$ac_exeext'
12830   { (case "(($ac_try" in
12831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832   *) ac_try_echo=$ac_try;;
12833 esac
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835   (eval "$ac_try") 2>&5
12836   ac_status=$?
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); }; }; then
12839   ac_cv_search_clock_gettime=$ac_res
12840 else
12841   echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844
12845 fi
12846
12847 rm -f core conftest.err conftest.$ac_objext \
12848       conftest$ac_exeext
12849   if test "${ac_cv_search_clock_gettime+set}" = set; then
12850   break
12851 fi
12852 done
12853 if test "${ac_cv_search_clock_gettime+set}" = set; then
12854   :
12855 else
12856   ac_cv_search_clock_gettime=no
12857 fi
12858 rm conftest.$ac_ext
12859 LIBS=$ac_func_search_save_LIBS
12860 fi
12861 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12862 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12863 ac_res=$ac_cv_search_clock_gettime
12864 if test "$ac_res" != no; then
12865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12866
12867 fi
12868
12869
12870 if test "$llvm_cv_enable_libffi" = "yes" ; then
12871   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12872 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12873 if test "${ac_cv_search_ffi_call+set}" = set; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876   ac_func_search_save_LIBS=$LIBS
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883
12884 /* Override any GCC internal prototype to avoid an error.
12885    Use char because int might match the return type of a GCC
12886    builtin and then its argument prototype would still apply.  */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char ffi_call ();
12891 int
12892 main ()
12893 {
12894 return ffi_call ();
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 for ac_lib in '' ffi; do
12900   if test -z "$ac_lib"; then
12901     ac_res="none required"
12902   else
12903     ac_res=-l$ac_lib
12904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12905   fi
12906   rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (ac_try="$ac_link"
12908 case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913   (eval "$ac_link") 2>conftest.er1
12914   ac_status=$?
12915   grep -v '^ *+' conftest.er1 >conftest.err
12916   rm -f conftest.er1
12917   cat conftest.err >&5
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } &&
12920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12921   { (case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926   (eval "$ac_try") 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; } &&
12930          { ac_try='test -s conftest$ac_exeext'
12931   { (case "(($ac_try" in
12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933   *) ac_try_echo=$ac_try;;
12934 esac
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936   (eval "$ac_try") 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; }; then
12940   ac_cv_search_ffi_call=$ac_res
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945
12946 fi
12947
12948 rm -f core conftest.err conftest.$ac_objext \
12949       conftest$ac_exeext
12950   if test "${ac_cv_search_ffi_call+set}" = set; then
12951   break
12952 fi
12953 done
12954 if test "${ac_cv_search_ffi_call+set}" = set; then
12955   :
12956 else
12957   ac_cv_search_ffi_call=no
12958 fi
12959 rm conftest.$ac_ext
12960 LIBS=$ac_func_search_save_LIBS
12961 fi
12962 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12963 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12964 ac_res=$ac_cv_search_ffi_call
12965 if test "$ac_res" != no; then
12966   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12967
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_FFI_CALL 1
12970 _ACEOF
12971
12972 else
12973   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12974 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12975    { (exit 1); exit 1; }; }
12976 fi
12977
12978 fi
12979
12980 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12981 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12982 if test "${ac_cv_search_mallinfo+set}" = set; then
12983   echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985   ac_func_search_save_LIBS=$LIBS
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992
12993 /* Override any GCC internal prototype to avoid an error.
12994    Use char because int might match the return type of a GCC
12995    builtin and then its argument prototype would still apply.  */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char mallinfo ();
13000 int
13001 main ()
13002 {
13003 return mallinfo ();
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 for ac_lib in '' malloc; do
13009   if test -z "$ac_lib"; then
13010     ac_res="none required"
13011   else
13012     ac_res=-l$ac_lib
13013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13014   fi
13015   rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (ac_try="$ac_link"
13017 case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022   (eval "$ac_link") 2>conftest.er1
13023   ac_status=$?
13024   grep -v '^ *+' conftest.er1 >conftest.err
13025   rm -f conftest.er1
13026   cat conftest.err >&5
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } &&
13029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13030   { (case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_try") 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; } &&
13039          { ac_try='test -s conftest$ac_exeext'
13040   { (case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045   (eval "$ac_try") 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; }; then
13049   ac_cv_search_mallinfo=$ac_res
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054
13055 fi
13056
13057 rm -f core conftest.err conftest.$ac_objext \
13058       conftest$ac_exeext
13059   if test "${ac_cv_search_mallinfo+set}" = set; then
13060   break
13061 fi
13062 done
13063 if test "${ac_cv_search_mallinfo+set}" = set; then
13064   :
13065 else
13066   ac_cv_search_mallinfo=no
13067 fi
13068 rm conftest.$ac_ext
13069 LIBS=$ac_func_search_save_LIBS
13070 fi
13071 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13072 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13073 ac_res=$ac_cv_search_mallinfo
13074 if test "$ac_res" != no; then
13075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13076
13077 cat >>confdefs.h <<\_ACEOF
13078 #define HAVE_MALLINFO 1
13079 _ACEOF
13080
13081 fi
13082
13083
13084 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13085
13086 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13087 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13088 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lpthread  $LIBS"
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099
13100 /* Override any GCC internal prototype to avoid an error.
13101    Use char because int might match the return type of a GCC
13102    builtin and then its argument prototype would still apply.  */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char pthread_mutex_init ();
13107 int
13108 main ()
13109 {
13110 return pthread_mutex_init ();
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (ac_try="$ac_link"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_link") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13130   { (case "(($ac_try" in
13131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132   *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135   (eval "$ac_try") 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; } &&
13139          { ac_try='test -s conftest$ac_exeext'
13140   { (case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_try") 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; }; then
13149   ac_cv_lib_pthread_pthread_mutex_init=yes
13150 else
13151   echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154         ac_cv_lib_pthread_pthread_mutex_init=no
13155 fi
13156
13157 rm -f core conftest.err conftest.$ac_objext \
13158       conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13160 fi
13161 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13162 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13163 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13164   cat >>confdefs.h <<_ACEOF
13165 #define HAVE_LIBPTHREAD 1
13166 _ACEOF
13167
13168   LIBS="-lpthread $LIBS"
13169
13170 fi
13171
13172   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13173 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13174 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13175   echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177   ac_func_search_save_LIBS=$LIBS
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184
13185 /* Override any GCC internal prototype to avoid an error.
13186    Use char because int might match the return type of a GCC
13187    builtin and then its argument prototype would still apply.  */
13188 #ifdef __cplusplus
13189 extern "C"
13190 #endif
13191 char pthread_mutex_lock ();
13192 int
13193 main ()
13194 {
13195 return pthread_mutex_lock ();
13196   ;
13197   return 0;
13198 }
13199 _ACEOF
13200 for ac_lib in '' pthread; do
13201   if test -z "$ac_lib"; then
13202     ac_res="none required"
13203   else
13204     ac_res=-l$ac_lib
13205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13206   fi
13207   rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211   *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214   (eval "$ac_link") 2>conftest.er1
13215   ac_status=$?
13216   grep -v '^ *+' conftest.er1 >conftest.err
13217   rm -f conftest.er1
13218   cat conftest.err >&5
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } &&
13221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13222   { (case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_try") 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; } &&
13231          { ac_try='test -s conftest$ac_exeext'
13232   { (case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_try") 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; }; then
13241   ac_cv_search_pthread_mutex_lock=$ac_res
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246
13247 fi
13248
13249 rm -f core conftest.err conftest.$ac_objext \
13250       conftest$ac_exeext
13251   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13252   break
13253 fi
13254 done
13255 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13256   :
13257 else
13258   ac_cv_search_pthread_mutex_lock=no
13259 fi
13260 rm conftest.$ac_ext
13261 LIBS=$ac_func_search_save_LIBS
13262 fi
13263 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13264 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13265 ac_res=$ac_cv_search_pthread_mutex_lock
13266 if test "$ac_res" != no; then
13267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13268
13269 cat >>confdefs.h <<\_ACEOF
13270 #define HAVE_PTHREAD_MUTEX_LOCK 1
13271 _ACEOF
13272
13273 fi
13274
13275   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13276 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13277 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13278   echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280   ac_func_search_save_LIBS=$LIBS
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287
13288 /* Override any GCC internal prototype to avoid an error.
13289    Use char because int might match the return type of a GCC
13290    builtin and then its argument prototype would still apply.  */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char pthread_rwlock_init ();
13295 int
13296 main ()
13297 {
13298 return pthread_rwlock_init ();
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 for ac_lib in '' pthread; do
13304   if test -z "$ac_lib"; then
13305     ac_res="none required"
13306   else
13307     ac_res=-l$ac_lib
13308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13309   fi
13310   rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314   *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317   (eval "$ac_link") 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325   { (case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_try") 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; } &&
13334          { ac_try='test -s conftest$ac_exeext'
13335   { (case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_try") 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   ac_cv_search_pthread_rwlock_init=$ac_res
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349
13350 fi
13351
13352 rm -f core conftest.err conftest.$ac_objext \
13353       conftest$ac_exeext
13354   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13355   break
13356 fi
13357 done
13358 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13359   :
13360 else
13361   ac_cv_search_pthread_rwlock_init=no
13362 fi
13363 rm conftest.$ac_ext
13364 LIBS=$ac_func_search_save_LIBS
13365 fi
13366 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13367 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13368 ac_res=$ac_cv_search_pthread_rwlock_init
13369 if test "$ac_res" != no; then
13370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13371
13372 cat >>confdefs.h <<\_ACEOF
13373 #define HAVE_PTHREAD_RWLOCK_INIT 1
13374 _ACEOF
13375
13376 fi
13377
13378   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13379 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13380 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13381   echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383   ac_func_search_save_LIBS=$LIBS
13384 cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392    Use char because int might match the return type of a GCC
13393    builtin and then its argument prototype would still apply.  */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char pthread_getspecific ();
13398 int
13399 main ()
13400 {
13401 return pthread_getspecific ();
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 for ac_lib in '' pthread; do
13407   if test -z "$ac_lib"; then
13408     ac_res="none required"
13409   else
13410     ac_res=-l$ac_lib
13411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13412   fi
13413   rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_link") 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } &&
13427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; } &&
13437          { ac_try='test -s conftest$ac_exeext'
13438   { (case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_try") 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447   ac_cv_search_pthread_getspecific=$ac_res
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452
13453 fi
13454
13455 rm -f core conftest.err conftest.$ac_objext \
13456       conftest$ac_exeext
13457   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13458   break
13459 fi
13460 done
13461 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13462   :
13463 else
13464   ac_cv_search_pthread_getspecific=no
13465 fi
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13468 fi
13469 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13470 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13471 ac_res=$ac_cv_search_pthread_getspecific
13472 if test "$ac_res" != no; then
13473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_PTHREAD_GETSPECIFIC 1
13477 _ACEOF
13478
13479 fi
13480
13481 fi
13482
13483 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13484
13485 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13486 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13487 if test "${ac_cv_lib_z_compress2+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-lz  $LIBS"
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499 /* Override any GCC internal prototype to avoid an error.
13500    Use char because int might match the return type of a GCC
13501    builtin and then its argument prototype would still apply.  */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char compress2 ();
13506 int
13507 main ()
13508 {
13509 return compress2 ();
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (ac_try="$ac_link"
13516 case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_link") 2>conftest.er1
13522   ac_status=$?
13523   grep -v '^ *+' conftest.er1 >conftest.err
13524   rm -f conftest.er1
13525   cat conftest.err >&5
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } &&
13528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529   { (case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_try") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (case "(($ac_try" in
13540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541   *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544   (eval "$ac_try") 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_cv_lib_z_compress2=yes
13549 else
13550   echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553         ac_cv_lib_z_compress2=no
13554 fi
13555
13556 rm -f core conftest.err conftest.$ac_objext \
13557       conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13559 fi
13560 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13561 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13562 if test $ac_cv_lib_z_compress2 = yes; then
13563   cat >>confdefs.h <<_ACEOF
13564 #define HAVE_LIBZ 1
13565 _ACEOF
13566
13567   LIBS="-lz $LIBS"
13568
13569 fi
13570
13571 fi
13572
13573
13574 # Check whether --with-udis86 was given.
13575 if test "${with_udis86+set}" = set; then
13576   withval=$with_udis86;
13577       USE_UDIS86=1
13578
13579       case "$withval" in
13580         /usr/lib|yes) ;;
13581         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13582       esac
13583
13584 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13585 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13586 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-ludis86  $LIBS"
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597
13598 /* Override any GCC internal prototype to avoid an error.
13599    Use char because int might match the return type of a GCC
13600    builtin and then its argument prototype would still apply.  */
13601 #ifdef __cplusplus
13602 extern "C"
13603 #endif
13604 char ud_init ();
13605 int
13606 main ()
13607 {
13608 return ud_init ();
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (ac_try="$ac_link"
13615 case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620   (eval "$ac_link") 2>conftest.er1
13621   ac_status=$?
13622   grep -v '^ *+' conftest.er1 >conftest.err
13623   rm -f conftest.er1
13624   cat conftest.err >&5
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628   { (case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_try") 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; } &&
13637          { ac_try='test -s conftest$ac_exeext'
13638   { (case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_try") 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647   ac_cv_lib_udis86_ud_init=yes
13648 else
13649   echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652         ac_cv_lib_udis86_ud_init=no
13653 fi
13654
13655 rm -f core conftest.err conftest.$ac_objext \
13656       conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13658 fi
13659 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13660 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13661 if test $ac_cv_lib_udis86_ud_init = yes; then
13662   cat >>confdefs.h <<_ACEOF
13663 #define HAVE_LIBUDIS86 1
13664 _ACEOF
13665
13666   LIBS="-ludis86 $LIBS"
13667
13668 else
13669
13670         echo "Error! You need to have libudis86 around."
13671         exit -1
13672
13673 fi
13674
13675
13676 else
13677   USE_UDIS86=0
13678
13679 fi
13680
13681
13682 cat >>confdefs.h <<_ACEOF
13683 #define USE_UDIS86 $USE_UDIS86
13684 _ACEOF
13685
13686
13687
13688 # Check whether --with-oprofile was given.
13689 if test "${with_oprofile+set}" = set; then
13690   withval=$with_oprofile;
13691       USE_OPROFILE=1
13692
13693       case "$withval" in
13694         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13695         no) llvm_cv_oppath=
13696             USE_OPROFILE=0
13697  ;;
13698         *) llvm_cv_oppath="${withval}/lib/oprofile"
13699            CPPFLAGS="-I${withval}/include";;
13700       esac
13701       case $llvm_cv_os_type in
13702         Linux)
13703           if test -n "$llvm_cv_oppath" ; then
13704             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13705                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13706 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13707 if test "${ac_cv_search_bfd_init+set}" = set; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   ac_func_search_save_LIBS=$LIBS
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h.  */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h.  */
13717
13718 /* Override any GCC internal prototype to avoid an error.
13719    Use char because int might match the return type of a GCC
13720    builtin and then its argument prototype would still apply.  */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 char bfd_init ();
13725 int
13726 main ()
13727 {
13728 return bfd_init ();
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 for ac_lib in '' bfd; do
13734   if test -z "$ac_lib"; then
13735     ac_res="none required"
13736   else
13737     ac_res=-l$ac_lib
13738     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13739   fi
13740   rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (ac_try="$ac_link"
13742 case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_link") 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755   { (case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_try") 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; } &&
13764          { ac_try='test -s conftest$ac_exeext'
13765   { (case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_try") 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_search_bfd_init=$ac_res
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779
13780 fi
13781
13782 rm -f core conftest.err conftest.$ac_objext \
13783       conftest$ac_exeext
13784   if test "${ac_cv_search_bfd_init+set}" = set; then
13785   break
13786 fi
13787 done
13788 if test "${ac_cv_search_bfd_init+set}" = set; then
13789   :
13790 else
13791   ac_cv_search_bfd_init=no
13792 fi
13793 rm conftest.$ac_ext
13794 LIBS=$ac_func_search_save_LIBS
13795 fi
13796 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13797 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13798 ac_res=$ac_cv_search_bfd_init
13799 if test "$ac_res" != no; then
13800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13801
13802 fi
13803
13804             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13805 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_op_open_agent+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816
13817 /* Override any GCC internal prototype to avoid an error.
13818    Use char because int might match the return type of a GCC
13819    builtin and then its argument prototype would still apply.  */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 char op_open_agent ();
13824 int
13825 main ()
13826 {
13827 return op_open_agent ();
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 for ac_lib in '' opagent; do
13833   if test -z "$ac_lib"; then
13834     ac_res="none required"
13835   else
13836     ac_res=-l$ac_lib
13837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13838   fi
13839   rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843   *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846   (eval "$ac_link") 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854   { (case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_try") 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest$ac_exeext'
13864   { (case "(($ac_try" in
13865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866   *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869   (eval "$ac_try") 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   ac_cv_search_op_open_agent=$ac_res
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext \
13882       conftest$ac_exeext
13883   if test "${ac_cv_search_op_open_agent+set}" = set; then
13884   break
13885 fi
13886 done
13887 if test "${ac_cv_search_op_open_agent+set}" = set; then
13888   :
13889 else
13890   ac_cv_search_op_open_agent=no
13891 fi
13892 rm conftest.$ac_ext
13893 LIBS=$ac_func_search_save_LIBS
13894 fi
13895 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13896 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13897 ac_res=$ac_cv_search_op_open_agent
13898 if test "$ac_res" != no; then
13899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13900
13901 else
13902
13903               echo "Error! You need to have libopagent around."
13904               exit -1
13905
13906 fi
13907
13908             if test "${ac_cv_header_opagent_h+set}" = set; then
13909   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13910 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13911 if test "${ac_cv_header_opagent_h+set}" = set; then
13912   echo $ECHO_N "(cached) $ECHO_C" >&6
13913 fi
13914 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13915 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13916 else
13917   # Is the header compilable?
13918 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13919 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926 $ac_includes_default
13927 #include <opagent.h>
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_compile") 2>conftest.er1
13937   ac_status=$?
13938   grep -v '^ *+' conftest.er1 >conftest.err
13939   rm -f conftest.er1
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944   { (case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_try") 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest.$ac_objext'
13954   { (case "(($ac_try" in
13955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956   *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959   (eval "$ac_try") 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; }; then
13963   ac_header_compiler=yes
13964 else
13965   echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968         ac_header_compiler=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13974
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13977 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #include <opagent.h>
13985 _ACEOF
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993   ac_status=$?
13994   grep -v '^ *+' conftest.er1 >conftest.err
13995   rm -f conftest.er1
13996   cat conftest.err >&5
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); } >/dev/null; then
13999   if test -s conftest.err; then
14000     ac_cpp_err=$ac_c_preproc_warn_flag
14001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14002   else
14003     ac_cpp_err=
14004   fi
14005 else
14006   ac_cpp_err=yes
14007 fi
14008 if test -z "$ac_cpp_err"; then
14009   ac_header_preproc=yes
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014   ac_header_preproc=no
14015 fi
14016
14017 rm -f conftest.err conftest.$ac_ext
14018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14019 echo "${ECHO_T}$ac_header_preproc" >&6; }
14020
14021 # So?  What about this header?
14022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14023   yes:no: )
14024     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14025 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14027 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14028     ac_header_preproc=yes
14029     ;;
14030   no:yes:* )
14031     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14032 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14034 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14036 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14038 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14040 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14042 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14043     ( cat <<\_ASBOX
14044 ## ------------------------------------ ##
14045 ## Report this to http://llvm.org/bugs/ ##
14046 ## ------------------------------------ ##
14047 _ASBOX
14048      ) | sed "s/^/$as_me: WARNING:     /" >&2
14049     ;;
14050 esac
14051 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14052 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14053 if test "${ac_cv_header_opagent_h+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   ac_cv_header_opagent_h=$ac_header_preproc
14057 fi
14058 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14059 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14060
14061 fi
14062 if test $ac_cv_header_opagent_h = yes; then
14063   :
14064 else
14065
14066               echo "Error! You need to have opagent.h around."
14067               exit -1
14068
14069 fi
14070
14071
14072           fi ;;
14073         *)
14074           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14075 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14076    { (exit 1); exit 1; }; } ;;
14077       esac
14078
14079 else
14080
14081       USE_OPROFILE=0
14082
14083
14084 fi
14085
14086
14087 cat >>confdefs.h <<_ACEOF
14088 #define LLVM_USE_OPROFILE $USE_OPROFILE
14089 _ACEOF
14090
14091
14092
14093 # Check whether --with-intel-jitevents was given.
14094 if test "${with_intel_jitevents+set}" = set; then
14095   withval=$with_intel_jitevents;
14096        case "$withval" in
14097           yes) USE_INTEL_JITEVENTS=1
14098 ;;
14099           no)  USE_INTEL_JITEVENTS=0
14100 ;;
14101           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14102 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14103    { (exit 1); exit 1; }; };;
14104        esac
14105
14106       case $llvm_cv_os_type in
14107         Linux|Win32|Cygwin|MingW) ;;
14108         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14109 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14110    { (exit 1); exit 1; }; };;
14111       esac
14112
14113       case "$llvm_cv_target_arch" in
14114         x86|x86_64) ;;
14115         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14116 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14117    { (exit 1); exit 1; }; };;
14118       esac
14119
14120 else
14121
14122       USE_INTEL_JITEVENTS=0
14123
14124
14125 fi
14126
14127
14128 cat >>confdefs.h <<_ACEOF
14129 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14130 _ACEOF
14131
14132
14133 for ac_prog in xml2-config
14134 do
14135   # Extract the first word of "$ac_prog", so it can be a program name with args.
14136 set dummy $ac_prog; ac_word=$2
14137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14139 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   if test -n "$XML2CONFIG"; then
14143   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148   IFS=$as_save_IFS
14149   test -z "$as_dir" && as_dir=.
14150   for ac_exec_ext in '' $ac_executable_extensions; do
14151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14152     ac_cv_prog_XML2CONFIG="$ac_prog"
14153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14154     break 2
14155   fi
14156 done
14157 done
14158 IFS=$as_save_IFS
14159
14160 fi
14161 fi
14162 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14163 if test -n "$XML2CONFIG"; then
14164   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14165 echo "${ECHO_T}$XML2CONFIG" >&6; }
14166 else
14167   { echo "$as_me:$LINENO: result: no" >&5
14168 echo "${ECHO_T}no" >&6; }
14169 fi
14170
14171
14172   test -n "$XML2CONFIG" && break
14173 done
14174
14175
14176 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14177 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14178 if test "x$XML2CONFIG" = "x"; then
14179  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14180 echo "${ECHO_T}xml2-config not found" >&6; }
14181 else
14182  LIBXML2_INC=`$XML2CONFIG --cflags`
14183  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14184 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14185  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14186 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14187 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14188   echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190   ac_check_lib_save_LIBS=$LIBS
14191 LIBS="-lxml2  $LIBS"
14192 cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198
14199 /* Override any GCC internal prototype to avoid an error.
14200    Use char because int might match the return type of a GCC
14201    builtin and then its argument prototype would still apply.  */
14202 #ifdef __cplusplus
14203 extern "C"
14204 #endif
14205 char xmlReadFile ();
14206 int
14207 main ()
14208 {
14209 return xmlReadFile ();
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (ac_try="$ac_link"
14216 case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221   (eval "$ac_link") 2>conftest.er1
14222   ac_status=$?
14223   grep -v '^ *+' conftest.er1 >conftest.err
14224   rm -f conftest.er1
14225   cat conftest.err >&5
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); } &&
14228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14229   { (case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_try") 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; } &&
14238          { ac_try='test -s conftest$ac_exeext'
14239   { (case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_try") 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; }; then
14248   ac_cv_lib_xml2_xmlReadFile=yes
14249 else
14250   echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253         ac_cv_lib_xml2_xmlReadFile=no
14254 fi
14255
14256 rm -f core conftest.err conftest.$ac_objext \
14257       conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14259 fi
14260 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14261 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14262 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14263
14264 cat >>confdefs.h <<\_ACEOF
14265 #define CLANG_HAVE_LIBXML 1
14266 _ACEOF
14267
14268                                 LIBXML2_LIBS="-lxml2"
14269 fi
14270
14271 fi
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281 ac_header_dirent=no
14282 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14283   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14284 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14285 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295 #include <sys/types.h>
14296 #include <$ac_hdr>
14297
14298 int
14299 main ()
14300 {
14301 if ((DIR *) 0)
14302 return 0;
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 rm -f conftest.$ac_objext
14308 if { (ac_try="$ac_compile"
14309 case "(($ac_try" in
14310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311   *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314   (eval "$ac_compile") 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322   { (case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327   (eval "$ac_try") 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest.$ac_objext'
14332   { (case "(($ac_try" in
14333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334   *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337   (eval "$ac_try") 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   eval "$as_ac_Header=yes"
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346         eval "$as_ac_Header=no"
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 ac_res=`eval echo '${'$as_ac_Header'}'`
14352                { echo "$as_me:$LINENO: result: $ac_res" >&5
14353 echo "${ECHO_T}$ac_res" >&6; }
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355   cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14357 _ACEOF
14358
14359 ac_header_dirent=$ac_hdr; break
14360 fi
14361
14362 done
14363 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14364 if test $ac_header_dirent = dirent.h; then
14365   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14366 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14367 if test "${ac_cv_search_opendir+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   ac_func_search_save_LIBS=$LIBS
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379    Use char because int might match the return type of a GCC
14380    builtin and then its argument prototype would still apply.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 char opendir ();
14385 int
14386 main ()
14387 {
14388 return opendir ();
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 for ac_lib in '' dir; do
14394   if test -z "$ac_lib"; then
14395     ac_res="none required"
14396   else
14397     ac_res=-l$ac_lib
14398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14399   fi
14400   rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_link") 2>conftest.er1
14408   ac_status=$?
14409   grep -v '^ *+' conftest.er1 >conftest.err
14410   rm -f conftest.er1
14411   cat conftest.err >&5
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } &&
14414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415   { (case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420   (eval "$ac_try") 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; } &&
14424          { ac_try='test -s conftest$ac_exeext'
14425   { (case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_try") 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434   ac_cv_search_opendir=$ac_res
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439
14440 fi
14441
14442 rm -f core conftest.err conftest.$ac_objext \
14443       conftest$ac_exeext
14444   if test "${ac_cv_search_opendir+set}" = set; then
14445   break
14446 fi
14447 done
14448 if test "${ac_cv_search_opendir+set}" = set; then
14449   :
14450 else
14451   ac_cv_search_opendir=no
14452 fi
14453 rm conftest.$ac_ext
14454 LIBS=$ac_func_search_save_LIBS
14455 fi
14456 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14457 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14458 ac_res=$ac_cv_search_opendir
14459 if test "$ac_res" != no; then
14460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14461
14462 fi
14463
14464 else
14465   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14466 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14467 if test "${ac_cv_search_opendir+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   ac_func_search_save_LIBS=$LIBS
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477
14478 /* Override any GCC internal prototype to avoid an error.
14479    Use char because int might match the return type of a GCC
14480    builtin and then its argument prototype would still apply.  */
14481 #ifdef __cplusplus
14482 extern "C"
14483 #endif
14484 char opendir ();
14485 int
14486 main ()
14487 {
14488 return opendir ();
14489   ;
14490   return 0;
14491 }
14492 _ACEOF
14493 for ac_lib in '' x; do
14494   if test -z "$ac_lib"; then
14495     ac_res="none required"
14496   else
14497     ac_res=-l$ac_lib
14498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14499   fi
14500   rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504   *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507   (eval "$ac_link") 2>conftest.er1
14508   ac_status=$?
14509   grep -v '^ *+' conftest.er1 >conftest.err
14510   rm -f conftest.er1
14511   cat conftest.err >&5
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } &&
14514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14515   { (case "(($ac_try" in
14516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517   *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520   (eval "$ac_try") 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; } &&
14524          { ac_try='test -s conftest$ac_exeext'
14525   { (case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_try") 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_cv_search_opendir=$ac_res
14535 else
14536   echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14538
14539
14540 fi
14541
14542 rm -f core conftest.err conftest.$ac_objext \
14543       conftest$ac_exeext
14544   if test "${ac_cv_search_opendir+set}" = set; then
14545   break
14546 fi
14547 done
14548 if test "${ac_cv_search_opendir+set}" = set; then
14549   :
14550 else
14551   ac_cv_search_opendir=no
14552 fi
14553 rm conftest.$ac_ext
14554 LIBS=$ac_func_search_save_LIBS
14555 fi
14556 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14557 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14558 ac_res=$ac_cv_search_opendir
14559 if test "$ac_res" != no; then
14560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14561
14562 fi
14563
14564 fi
14565
14566 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14567 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14568 if test "${ac_cv_header_mmap_anon+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571    ac_ext=c
14572 ac_cpp='$CPP $CPPFLAGS'
14573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14576
14577   cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h.  */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h.  */
14583 #include <sys/mman.h>
14584 #include <unistd.h>
14585 #include <fcntl.h>
14586 int
14587 main ()
14588 {
14589 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14590   ;
14591   return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_compile") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609   { (case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_try") 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; } &&
14618          { ac_try='test -s conftest.$ac_objext'
14619   { (case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_try") 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_cv_header_mmap_anon=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633         ac_cv_header_mmap_anon=no
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637   ac_ext=c
14638 ac_cpp='$CPP $CPPFLAGS'
14639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14642
14643
14644 fi
14645 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14646 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14647 if test "$ac_cv_header_mmap_anon" = yes; then
14648
14649 cat >>confdefs.h <<\_ACEOF
14650 #define HAVE_MMAP_ANONYMOUS 1
14651 _ACEOF
14652
14653 fi
14654
14655 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14656 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14657 if test "${ac_cv_header_stat_broken+set}" = set; then
14658   echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660   cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h.  */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h.  */
14666 #include <sys/types.h>
14667 #include <sys/stat.h>
14668
14669 #if defined S_ISBLK && defined S_IFDIR
14670 # if S_ISBLK (S_IFDIR)
14671 You lose.
14672 # endif
14673 #endif
14674
14675 #if defined S_ISBLK && defined S_IFCHR
14676 # if S_ISBLK (S_IFCHR)
14677 You lose.
14678 # endif
14679 #endif
14680
14681 #if defined S_ISLNK && defined S_IFREG
14682 # if S_ISLNK (S_IFREG)
14683 You lose.
14684 # endif
14685 #endif
14686
14687 #if defined S_ISSOCK && defined S_IFREG
14688 # if S_ISSOCK (S_IFREG)
14689 You lose.
14690 # endif
14691 #endif
14692
14693 _ACEOF
14694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14695   $EGREP "You lose" >/dev/null 2>&1; then
14696   ac_cv_header_stat_broken=yes
14697 else
14698   ac_cv_header_stat_broken=no
14699 fi
14700 rm -f conftest*
14701
14702 fi
14703 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14704 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14705 if test $ac_cv_header_stat_broken = yes; then
14706
14707 cat >>confdefs.h <<\_ACEOF
14708 #define STAT_MACROS_BROKEN 1
14709 _ACEOF
14710
14711 fi
14712
14713 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14714 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14715 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724 #include <sys/types.h>
14725 #include <sys/wait.h>
14726 #ifndef WEXITSTATUS
14727 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14728 #endif
14729 #ifndef WIFEXITED
14730 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14731 #endif
14732
14733 int
14734 main ()
14735 {
14736   int s;
14737   wait (&s);
14738   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (ac_try="$ac_compile"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_compile") 2>conftest.er1
14751   ac_status=$?
14752   grep -v '^ *+' conftest.er1 >conftest.err
14753   rm -f conftest.er1
14754   cat conftest.err >&5
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } &&
14757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14758   { (case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_try") 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; } &&
14767          { ac_try='test -s conftest.$ac_objext'
14768   { (case "(($ac_try" in
14769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770   *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773   (eval "$ac_try") 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }; then
14777   ac_cv_header_sys_wait_h=yes
14778 else
14779   echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782         ac_cv_header_sys_wait_h=no
14783 fi
14784
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 fi
14787 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14788 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14789 if test $ac_cv_header_sys_wait_h = yes; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_SYS_WAIT_H 1
14793 _ACEOF
14794
14795 fi
14796
14797 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14798 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14799 if test "${ac_cv_header_time+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808 #include <sys/types.h>
14809 #include <sys/time.h>
14810 #include <time.h>
14811
14812 int
14813 main ()
14814 {
14815 if ((struct tm *) 0)
14816 return 0;
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_compile") 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14836   { (case "(($ac_try" in
14837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838   *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841   (eval "$ac_try") 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); }; } &&
14845          { ac_try='test -s conftest.$ac_objext'
14846   { (case "(($ac_try" in
14847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848   *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851   (eval "$ac_try") 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   ac_cv_header_time=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860         ac_cv_header_time=no
14861 fi
14862
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 fi
14865 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14866 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14867 if test $ac_cv_header_time = yes; then
14868
14869 cat >>confdefs.h <<\_ACEOF
14870 #define TIME_WITH_SYS_TIME 1
14871 _ACEOF
14872
14873 fi
14874
14875
14876 ac_ext=cpp
14877 ac_cpp='$CXXCPP $CPPFLAGS'
14878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14881
14882 ac_ext=cpp
14883 ac_cpp='$CXXCPP $CPPFLAGS'
14884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14887 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14888 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14889 if test -z "$CXXCPP"; then
14890   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893       # Double quotes because CXXCPP needs to be expanded
14894     for CXXCPP in "$CXX -E" "/lib/cpp"
14895     do
14896       ac_preproc_ok=false
14897 for ac_cxx_preproc_warn_flag in '' yes
14898 do
14899   # Use a header file that comes with gcc, so configuring glibc
14900   # with a fresh cross-compiler works.
14901   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14902   # <limits.h> exists even on freestanding compilers.
14903   # On the NeXT, cc -E runs the code through the compiler's parser,
14904   # not just through cpp. "Syntax error" is here to catch this case.
14905   cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 #ifdef __STDC__
14912 # include <limits.h>
14913 #else
14914 # include <assert.h>
14915 #endif
14916                      Syntax error
14917 _ACEOF
14918 if { (ac_try="$ac_cpp conftest.$ac_ext"
14919 case "(($ac_try" in
14920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921   *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14925   ac_status=$?
14926   grep -v '^ *+' conftest.er1 >conftest.err
14927   rm -f conftest.er1
14928   cat conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } >/dev/null; then
14931   if test -s conftest.err; then
14932     ac_cpp_err=$ac_cxx_preproc_warn_flag
14933     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14934   else
14935     ac_cpp_err=
14936   fi
14937 else
14938   ac_cpp_err=yes
14939 fi
14940 if test -z "$ac_cpp_err"; then
14941   :
14942 else
14943   echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946   # Broken: fails on valid input.
14947 continue
14948 fi
14949
14950 rm -f conftest.err conftest.$ac_ext
14951
14952   # OK, works on sane cases.  Now check whether nonexistent headers
14953   # can be detected and how.
14954   cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 #include <ac_nonexistent.h>
14961 _ACEOF
14962 if { (ac_try="$ac_cpp conftest.$ac_ext"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } >/dev/null; then
14975   if test -s conftest.err; then
14976     ac_cpp_err=$ac_cxx_preproc_warn_flag
14977     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14978   else
14979     ac_cpp_err=
14980   fi
14981 else
14982   ac_cpp_err=yes
14983 fi
14984 if test -z "$ac_cpp_err"; then
14985   # Broken: success on invalid input.
14986 continue
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991   # Passes both tests.
14992 ac_preproc_ok=:
14993 break
14994 fi
14995
14996 rm -f conftest.err conftest.$ac_ext
14997
14998 done
14999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15000 rm -f conftest.err conftest.$ac_ext
15001 if $ac_preproc_ok; then
15002   break
15003 fi
15004
15005     done
15006     ac_cv_prog_CXXCPP=$CXXCPP
15007
15008 fi
15009   CXXCPP=$ac_cv_prog_CXXCPP
15010 else
15011   ac_cv_prog_CXXCPP=$CXXCPP
15012 fi
15013 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15014 echo "${ECHO_T}$CXXCPP" >&6; }
15015 ac_preproc_ok=false
15016 for ac_cxx_preproc_warn_flag in '' yes
15017 do
15018   # Use a header file that comes with gcc, so configuring glibc
15019   # with a fresh cross-compiler works.
15020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15021   # <limits.h> exists even on freestanding compilers.
15022   # On the NeXT, cc -E runs the code through the compiler's parser,
15023   # not just through cpp. "Syntax error" is here to catch this case.
15024   cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030 #ifdef __STDC__
15031 # include <limits.h>
15032 #else
15033 # include <assert.h>
15034 #endif
15035                      Syntax error
15036 _ACEOF
15037 if { (ac_try="$ac_cpp conftest.$ac_ext"
15038 case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } >/dev/null; then
15050   if test -s conftest.err; then
15051     ac_cpp_err=$ac_cxx_preproc_warn_flag
15052     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15053   else
15054     ac_cpp_err=
15055   fi
15056 else
15057   ac_cpp_err=yes
15058 fi
15059 if test -z "$ac_cpp_err"; then
15060   :
15061 else
15062   echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15064
15065   # Broken: fails on valid input.
15066 continue
15067 fi
15068
15069 rm -f conftest.err conftest.$ac_ext
15070
15071   # OK, works on sane cases.  Now check whether nonexistent headers
15072   # can be detected and how.
15073   cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079 #include <ac_nonexistent.h>
15080 _ACEOF
15081 if { (ac_try="$ac_cpp conftest.$ac_ext"
15082 case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15088   ac_status=$?
15089   grep -v '^ *+' conftest.er1 >conftest.err
15090   rm -f conftest.er1
15091   cat conftest.err >&5
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); } >/dev/null; then
15094   if test -s conftest.err; then
15095     ac_cpp_err=$ac_cxx_preproc_warn_flag
15096     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15097   else
15098     ac_cpp_err=
15099   fi
15100 else
15101   ac_cpp_err=yes
15102 fi
15103 if test -z "$ac_cpp_err"; then
15104   # Broken: success on invalid input.
15105 continue
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110   # Passes both tests.
15111 ac_preproc_ok=:
15112 break
15113 fi
15114
15115 rm -f conftest.err conftest.$ac_ext
15116
15117 done
15118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15119 rm -f conftest.err conftest.$ac_ext
15120 if $ac_preproc_ok; then
15121   :
15122 else
15123   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15124 See \`config.log' for more details." >&5
15125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15126 See \`config.log' for more details." >&2;}
15127    { (exit 1); exit 1; }; }
15128 fi
15129
15130 ac_ext=cpp
15131 ac_cpp='$CXXCPP $CPPFLAGS'
15132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15135
15136
15137
15138 for ac_header in cxxabi.h
15139 do
15140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15142   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 fi
15147 ac_res=`eval echo '${'$as_ac_Header'}'`
15148                { echo "$as_me:$LINENO: result: $ac_res" >&5
15149 echo "${ECHO_T}$ac_res" >&6; }
15150 else
15151   # Is the header compilable?
15152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 $ac_includes_default
15161 #include <$ac_header>
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (ac_try="$ac_compile"
15165 case "(($ac_try" in
15166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167   *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170   (eval "$ac_compile") 2>conftest.er1
15171   ac_status=$?
15172   grep -v '^ *+' conftest.er1 >conftest.err
15173   rm -f conftest.er1
15174   cat conftest.err >&5
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); } &&
15177          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15178   { (case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_try") 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; } &&
15187          { ac_try='test -s conftest.$ac_objext'
15188   { (case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_try") 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; }; then
15197   ac_header_compiler=yes
15198 else
15199   echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202         ac_header_compiler=no
15203 fi
15204
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15207 echo "${ECHO_T}$ac_header_compiler" >&6; }
15208
15209 # Is the header present?
15210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218 #include <$ac_header>
15219 _ACEOF
15220 if { (ac_try="$ac_cpp conftest.$ac_ext"
15221 case "(($ac_try" in
15222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223   *) ac_try_echo=$ac_try;;
15224 esac
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15227   ac_status=$?
15228   grep -v '^ *+' conftest.er1 >conftest.err
15229   rm -f conftest.er1
15230   cat conftest.err >&5
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); } >/dev/null; then
15233   if test -s conftest.err; then
15234     ac_cpp_err=$ac_cxx_preproc_warn_flag
15235     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15236   else
15237     ac_cpp_err=
15238   fi
15239 else
15240   ac_cpp_err=yes
15241 fi
15242 if test -z "$ac_cpp_err"; then
15243   ac_header_preproc=yes
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248   ac_header_preproc=no
15249 fi
15250
15251 rm -f conftest.err conftest.$ac_ext
15252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15253 echo "${ECHO_T}$ac_header_preproc" >&6; }
15254
15255 # So?  What about this header?
15256 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15257   yes:no: )
15258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15262     ac_header_preproc=yes
15263     ;;
15264   no:yes:* )
15265     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15267     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15268 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15269     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15271     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15272 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15275     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15277     ( cat <<\_ASBOX
15278 ## ------------------------------------ ##
15279 ## Report this to http://llvm.org/bugs/ ##
15280 ## ------------------------------------ ##
15281 _ASBOX
15282      ) | sed "s/^/$as_me: WARNING:     /" >&2
15283     ;;
15284 esac
15285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   eval "$as_ac_Header=\$ac_header_preproc"
15291 fi
15292 ac_res=`eval echo '${'$as_ac_Header'}'`
15293                { echo "$as_me:$LINENO: result: $ac_res" >&5
15294 echo "${ECHO_T}$ac_res" >&6; }
15295
15296 fi
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298   cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 _ACEOF
15301
15302 fi
15303
15304 done
15305
15306 ac_ext=c
15307 ac_cpp='$CPP $CPPFLAGS'
15308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15311
15312
15313
15314
15315
15316
15317
15318 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15319 do
15320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 fi
15327 ac_res=`eval echo '${'$as_ac_Header'}'`
15328                { echo "$as_me:$LINENO: result: $ac_res" >&5
15329 echo "${ECHO_T}$ac_res" >&6; }
15330 else
15331   # Is the header compilable?
15332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340 $ac_includes_default
15341 #include <$ac_header>
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (ac_try="$ac_compile"
15345 case "(($ac_try" in
15346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347   *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350   (eval "$ac_compile") 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); }; } &&
15367          { ac_try='test -s conftest.$ac_objext'
15368   { (case "(($ac_try" in
15369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370   *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373   (eval "$ac_try") 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); }; }; then
15377   ac_header_compiler=yes
15378 else
15379   echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382         ac_header_compiler=no
15383 fi
15384
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15387 echo "${ECHO_T}$ac_header_compiler" >&6; }
15388
15389 # Is the header present?
15390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h.  */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h.  */
15398 #include <$ac_header>
15399 _ACEOF
15400 if { (ac_try="$ac_cpp conftest.$ac_ext"
15401 case "(($ac_try" in
15402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403   *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15407   ac_status=$?
15408   grep -v '^ *+' conftest.er1 >conftest.err
15409   rm -f conftest.er1
15410   cat conftest.err >&5
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } >/dev/null; then
15413   if test -s conftest.err; then
15414     ac_cpp_err=$ac_c_preproc_warn_flag
15415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15416   else
15417     ac_cpp_err=
15418   fi
15419 else
15420   ac_cpp_err=yes
15421 fi
15422 if test -z "$ac_cpp_err"; then
15423   ac_header_preproc=yes
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428   ac_header_preproc=no
15429 fi
15430
15431 rm -f conftest.err conftest.$ac_ext
15432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15433 echo "${ECHO_T}$ac_header_preproc" >&6; }
15434
15435 # So?  What about this header?
15436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15437   yes:no: )
15438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15442     ac_header_preproc=yes
15443     ;;
15444   no:yes:* )
15445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15457     ( cat <<\_ASBOX
15458 ## ------------------------------------ ##
15459 ## Report this to http://llvm.org/bugs/ ##
15460 ## ------------------------------------ ##
15461 _ASBOX
15462      ) | sed "s/^/$as_me: WARNING:     /" >&2
15463     ;;
15464 esac
15465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468   echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470   eval "$as_ac_Header=\$ac_header_preproc"
15471 fi
15472 ac_res=`eval echo '${'$as_ac_Header'}'`
15473                { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475
15476 fi
15477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15478   cat >>confdefs.h <<_ACEOF
15479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15480 _ACEOF
15481
15482 fi
15483
15484 done
15485
15486
15487
15488
15489
15490
15491
15492 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15493 do
15494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 fi
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502                { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504 else
15505   # Is the header compilable?
15506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514 $ac_includes_default
15515 #include <$ac_header>
15516 _ACEOF
15517 rm -f conftest.$ac_objext
15518 if { (ac_try="$ac_compile"
15519 case "(($ac_try" in
15520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521   *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524   (eval "$ac_compile") 2>conftest.er1
15525   ac_status=$?
15526   grep -v '^ *+' conftest.er1 >conftest.err
15527   rm -f conftest.er1
15528   cat conftest.err >&5
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15532   { (case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_try") 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; } &&
15541          { ac_try='test -s conftest.$ac_objext'
15542   { (case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_try") 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   ac_header_compiler=yes
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556         ac_header_compiler=no
15557 fi
15558
15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561 echo "${ECHO_T}$ac_header_compiler" >&6; }
15562
15563 # Is the header present?
15564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15566 cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572 #include <$ac_header>
15573 _ACEOF
15574 if { (ac_try="$ac_cpp conftest.$ac_ext"
15575 case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15581   ac_status=$?
15582   grep -v '^ *+' conftest.er1 >conftest.err
15583   rm -f conftest.er1
15584   cat conftest.err >&5
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } >/dev/null; then
15587   if test -s conftest.err; then
15588     ac_cpp_err=$ac_c_preproc_warn_flag
15589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15590   else
15591     ac_cpp_err=
15592   fi
15593 else
15594   ac_cpp_err=yes
15595 fi
15596 if test -z "$ac_cpp_err"; then
15597   ac_header_preproc=yes
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602   ac_header_preproc=no
15603 fi
15604
15605 rm -f conftest.err conftest.$ac_ext
15606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607 echo "${ECHO_T}$ac_header_preproc" >&6; }
15608
15609 # So?  What about this header?
15610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611   yes:no: )
15612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616     ac_header_preproc=yes
15617     ;;
15618   no:yes:* )
15619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15631     ( cat <<\_ASBOX
15632 ## ------------------------------------ ##
15633 ## Report this to http://llvm.org/bugs/ ##
15634 ## ------------------------------------ ##
15635 _ASBOX
15636      ) | sed "s/^/$as_me: WARNING:     /" >&2
15637     ;;
15638 esac
15639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642   echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644   eval "$as_ac_Header=\$ac_header_preproc"
15645 fi
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647                { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15649
15650 fi
15651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15652   cat >>confdefs.h <<_ACEOF
15653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15654 _ACEOF
15655
15656 fi
15657
15658 done
15659
15660
15661
15662 for ac_header in utime.h windows.h
15663 do
15664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669   echo $ECHO_N "(cached) $ECHO_C" >&6
15670 fi
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672                { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15674 else
15675   # Is the header compilable?
15676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684 $ac_includes_default
15685 #include <$ac_header>
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_compile") 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15702   { (case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707   (eval "$ac_try") 2>&5
15708   ac_status=$?
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); }; } &&
15711          { ac_try='test -s conftest.$ac_objext'
15712   { (case "(($ac_try" in
15713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714   *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717   (eval "$ac_try") 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); }; }; then
15721   ac_header_compiler=yes
15722 else
15723   echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726         ac_header_compiler=no
15727 fi
15728
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15731 echo "${ECHO_T}$ac_header_compiler" >&6; }
15732
15733 # Is the header present?
15734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742 #include <$ac_header>
15743 _ACEOF
15744 if { (ac_try="$ac_cpp conftest.$ac_ext"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15751   ac_status=$?
15752   grep -v '^ *+' conftest.er1 >conftest.err
15753   rm -f conftest.er1
15754   cat conftest.err >&5
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } >/dev/null; then
15757   if test -s conftest.err; then
15758     ac_cpp_err=$ac_c_preproc_warn_flag
15759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15760   else
15761     ac_cpp_err=
15762   fi
15763 else
15764   ac_cpp_err=yes
15765 fi
15766 if test -z "$ac_cpp_err"; then
15767   ac_header_preproc=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772   ac_header_preproc=no
15773 fi
15774
15775 rm -f conftest.err conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15777 echo "${ECHO_T}$ac_header_preproc" >&6; }
15778
15779 # So?  What about this header?
15780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15781   yes:no: )
15782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15786     ac_header_preproc=yes
15787     ;;
15788   no:yes:* )
15789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15801     ( cat <<\_ASBOX
15802 ## ------------------------------------ ##
15803 ## Report this to http://llvm.org/bugs/ ##
15804 ## ------------------------------------ ##
15805 _ASBOX
15806      ) | sed "s/^/$as_me: WARNING:     /" >&2
15807     ;;
15808 esac
15809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15812   echo $ECHO_N "(cached) $ECHO_C" >&6
15813 else
15814   eval "$as_ac_Header=\$ac_header_preproc"
15815 fi
15816 ac_res=`eval echo '${'$as_ac_Header'}'`
15817                { echo "$as_me:$LINENO: result: $ac_res" >&5
15818 echo "${ECHO_T}$ac_res" >&6; }
15819
15820 fi
15821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15822   cat >>confdefs.h <<_ACEOF
15823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15824 _ACEOF
15825
15826 fi
15827
15828 done
15829
15830
15831
15832
15833
15834
15835 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15836 do
15837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 fi
15844 ac_res=`eval echo '${'$as_ac_Header'}'`
15845                { echo "$as_me:$LINENO: result: $ac_res" >&5
15846 echo "${ECHO_T}$ac_res" >&6; }
15847 else
15848   # Is the header compilable?
15849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857 $ac_includes_default
15858 #include <$ac_header>
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (ac_try="$ac_compile"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_compile") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15875   { (case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880   (eval "$ac_try") 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }; } &&
15884          { ac_try='test -s conftest.$ac_objext'
15885   { (case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_try") 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; }; then
15894   ac_header_compiler=yes
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15898
15899         ac_header_compiler=no
15900 fi
15901
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15904 echo "${ECHO_T}$ac_header_compiler" >&6; }
15905
15906 # Is the header present?
15907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915 #include <$ac_header>
15916 _ACEOF
15917 if { (ac_try="$ac_cpp conftest.$ac_ext"
15918 case "(($ac_try" in
15919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920   *) ac_try_echo=$ac_try;;
15921 esac
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } >/dev/null; then
15930   if test -s conftest.err; then
15931     ac_cpp_err=$ac_c_preproc_warn_flag
15932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15933   else
15934     ac_cpp_err=
15935   fi
15936 else
15937   ac_cpp_err=yes
15938 fi
15939 if test -z "$ac_cpp_err"; then
15940   ac_header_preproc=yes
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945   ac_header_preproc=no
15946 fi
15947
15948 rm -f conftest.err conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15950 echo "${ECHO_T}$ac_header_preproc" >&6; }
15951
15952 # So?  What about this header?
15953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15954   yes:no: )
15955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15959     ac_header_preproc=yes
15960     ;;
15961   no:yes:* )
15962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15974     ( cat <<\_ASBOX
15975 ## ------------------------------------ ##
15976 ## Report this to http://llvm.org/bugs/ ##
15977 ## ------------------------------------ ##
15978 _ASBOX
15979      ) | sed "s/^/$as_me: WARNING:     /" >&2
15980     ;;
15981 esac
15982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985   echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987   eval "$as_ac_Header=\$ac_header_preproc"
15988 fi
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990                { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992
15993 fi
15994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15995   cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15997 _ACEOF
15998
15999 fi
16000
16001 done
16002
16003
16004
16005
16006
16007 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16008 do
16009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014   echo $ECHO_N "(cached) $ECHO_C" >&6
16015 fi
16016 ac_res=`eval echo '${'$as_ac_Header'}'`
16017                { echo "$as_me:$LINENO: result: $ac_res" >&5
16018 echo "${ECHO_T}$ac_res" >&6; }
16019 else
16020   # Is the header compilable?
16021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029 $ac_includes_default
16030 #include <$ac_header>
16031 _ACEOF
16032 rm -f conftest.$ac_objext
16033 if { (ac_try="$ac_compile"
16034 case "(($ac_try" in
16035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036   *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039   (eval "$ac_compile") 2>conftest.er1
16040   ac_status=$?
16041   grep -v '^ *+' conftest.er1 >conftest.err
16042   rm -f conftest.er1
16043   cat conftest.err >&5
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047   { (case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_try") 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; } &&
16056          { ac_try='test -s conftest.$ac_objext'
16057   { (case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062   (eval "$ac_try") 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; }; then
16066   ac_header_compiler=yes
16067 else
16068   echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071         ac_header_compiler=no
16072 fi
16073
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6; }
16077
16078 # Is the header present?
16079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h.  */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h.  */
16087 #include <$ac_header>
16088 _ACEOF
16089 if { (ac_try="$ac_cpp conftest.$ac_ext"
16090 case "(($ac_try" in
16091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092   *) ac_try_echo=$ac_try;;
16093 esac
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096   ac_status=$?
16097   grep -v '^ *+' conftest.er1 >conftest.err
16098   rm -f conftest.er1
16099   cat conftest.err >&5
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); } >/dev/null; then
16102   if test -s conftest.err; then
16103     ac_cpp_err=$ac_c_preproc_warn_flag
16104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16105   else
16106     ac_cpp_err=
16107   fi
16108 else
16109   ac_cpp_err=yes
16110 fi
16111 if test -z "$ac_cpp_err"; then
16112   ac_header_preproc=yes
16113 else
16114   echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117   ac_header_preproc=no
16118 fi
16119
16120 rm -f conftest.err conftest.$ac_ext
16121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16122 echo "${ECHO_T}$ac_header_preproc" >&6; }
16123
16124 # So?  What about this header?
16125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16126   yes:no: )
16127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16131     ac_header_preproc=yes
16132     ;;
16133   no:yes:* )
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16146     ( cat <<\_ASBOX
16147 ## ------------------------------------ ##
16148 ## Report this to http://llvm.org/bugs/ ##
16149 ## ------------------------------------ ##
16150 _ASBOX
16151      ) | sed "s/^/$as_me: WARNING:     /" >&2
16152     ;;
16153 esac
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157   echo $ECHO_N "(cached) $ECHO_C" >&6
16158 else
16159   eval "$as_ac_Header=\$ac_header_preproc"
16160 fi
16161 ac_res=`eval echo '${'$as_ac_Header'}'`
16162                { echo "$as_me:$LINENO: result: $ac_res" >&5
16163 echo "${ECHO_T}$ac_res" >&6; }
16164
16165 fi
16166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16167   cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16169 _ACEOF
16170
16171 fi
16172
16173 done
16174
16175
16176 for ac_header in valgrind/valgrind.h
16177 do
16178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 fi
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186                { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16188 else
16189   # Is the header compilable?
16190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 $ac_includes_default
16199 #include <$ac_header>
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205   *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208   (eval "$ac_compile") 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16216   { (case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_try") 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; } &&
16225          { ac_try='test -s conftest.$ac_objext'
16226   { (case "(($ac_try" in
16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228   *) ac_try_echo=$ac_try;;
16229 esac
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231   (eval "$ac_try") 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); }; }; then
16235   ac_header_compiler=yes
16236 else
16237   echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16239
16240         ac_header_compiler=no
16241 fi
16242
16243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16245 echo "${ECHO_T}$ac_header_compiler" >&6; }
16246
16247 # Is the header present?
16248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16250 cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h.  */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h.  */
16256 #include <$ac_header>
16257 _ACEOF
16258 if { (ac_try="$ac_cpp conftest.$ac_ext"
16259 case "(($ac_try" in
16260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261   *) ac_try_echo=$ac_try;;
16262 esac
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16265   ac_status=$?
16266   grep -v '^ *+' conftest.er1 >conftest.err
16267   rm -f conftest.er1
16268   cat conftest.err >&5
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } >/dev/null; then
16271   if test -s conftest.err; then
16272     ac_cpp_err=$ac_c_preproc_warn_flag
16273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16274   else
16275     ac_cpp_err=
16276   fi
16277 else
16278   ac_cpp_err=yes
16279 fi
16280 if test -z "$ac_cpp_err"; then
16281   ac_header_preproc=yes
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286   ac_header_preproc=no
16287 fi
16288
16289 rm -f conftest.err conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16291 echo "${ECHO_T}$ac_header_preproc" >&6; }
16292
16293 # So?  What about this header?
16294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16295   yes:no: )
16296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16300     ac_header_preproc=yes
16301     ;;
16302   no:yes:* )
16303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16315     ( cat <<\_ASBOX
16316 ## ------------------------------------ ##
16317 ## Report this to http://llvm.org/bugs/ ##
16318 ## ------------------------------------ ##
16319 _ASBOX
16320      ) | sed "s/^/$as_me: WARNING:     /" >&2
16321     ;;
16322 esac
16323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328   eval "$as_ac_Header=\$ac_header_preproc"
16329 fi
16330 ac_res=`eval echo '${'$as_ac_Header'}'`
16331                { echo "$as_me:$LINENO: result: $ac_res" >&5
16332 echo "${ECHO_T}$ac_res" >&6; }
16333
16334 fi
16335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16336   cat >>confdefs.h <<_ACEOF
16337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16338 _ACEOF
16339
16340 fi
16341
16342 done
16343
16344
16345 for ac_header in fenv.h
16346 do
16347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16349   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 fi
16354 ac_res=`eval echo '${'$as_ac_Header'}'`
16355                { echo "$as_me:$LINENO: result: $ac_res" >&5
16356 echo "${ECHO_T}$ac_res" >&6; }
16357 else
16358   # Is the header compilable?
16359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16361 cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 $ac_includes_default
16368 #include <$ac_header>
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_compile") 2>conftest.er1
16378   ac_status=$?
16379   grep -v '^ *+' conftest.er1 >conftest.err
16380   rm -f conftest.er1
16381   cat conftest.err >&5
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); } &&
16384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385   { (case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_try") 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; } &&
16394          { ac_try='test -s conftest.$ac_objext'
16395   { (case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_try") 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; }; then
16404   ac_header_compiler=yes
16405 else
16406   echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16408
16409         ac_header_compiler=no
16410 fi
16411
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16414 echo "${ECHO_T}$ac_header_compiler" >&6; }
16415
16416 # Is the header present?
16417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 #include <$ac_header>
16426 _ACEOF
16427 if { (ac_try="$ac_cpp conftest.$ac_ext"
16428 case "(($ac_try" in
16429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430   *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16434   ac_status=$?
16435   grep -v '^ *+' conftest.er1 >conftest.err
16436   rm -f conftest.er1
16437   cat conftest.err >&5
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } >/dev/null; then
16440   if test -s conftest.err; then
16441     ac_cpp_err=$ac_c_preproc_warn_flag
16442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16443   else
16444     ac_cpp_err=
16445   fi
16446 else
16447   ac_cpp_err=yes
16448 fi
16449 if test -z "$ac_cpp_err"; then
16450   ac_header_preproc=yes
16451 else
16452   echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455   ac_header_preproc=no
16456 fi
16457
16458 rm -f conftest.err conftest.$ac_ext
16459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16460 echo "${ECHO_T}$ac_header_preproc" >&6; }
16461
16462 # So?  What about this header?
16463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16464   yes:no: )
16465     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16469     ac_header_preproc=yes
16470     ;;
16471   no:yes:* )
16472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16475 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16478     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16479 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16482     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16484     ( cat <<\_ASBOX
16485 ## ------------------------------------ ##
16486 ## Report this to http://llvm.org/bugs/ ##
16487 ## ------------------------------------ ##
16488 _ASBOX
16489      ) | sed "s/^/$as_me: WARNING:     /" >&2
16490     ;;
16491 esac
16492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495   echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497   eval "$as_ac_Header=\$ac_header_preproc"
16498 fi
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500                { echo "$as_me:$LINENO: result: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16502
16503 fi
16504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16505   cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16507 _ACEOF
16508
16509 fi
16510
16511 done
16512
16513 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16514 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16515 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 #include <fenv.h>
16525
16526 int
16527 main ()
16528 {
16529 #ifndef FE_ALL_EXCEPT
16530   char *p = (char *) FE_ALL_EXCEPT;
16531   return !p;
16532 #endif
16533
16534   ;
16535   return 0;
16536 }
16537 _ACEOF
16538 rm -f conftest.$ac_objext
16539 if { (ac_try="$ac_compile"
16540 case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_compile") 2>conftest.er1
16546   ac_status=$?
16547   grep -v '^ *+' conftest.er1 >conftest.err
16548   rm -f conftest.er1
16549   cat conftest.err >&5
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } &&
16552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553   { (case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_try") 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; } &&
16562          { ac_try='test -s conftest.$ac_objext'
16563   { (case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_try") 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; }; then
16572   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577         ac_cv_have_decl_FE_ALL_EXCEPT=no
16578 fi
16579
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16583 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16584 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16585
16586 cat >>confdefs.h <<_ACEOF
16587 #define HAVE_DECL_FE_ALL_EXCEPT 1
16588 _ACEOF
16589
16590
16591 else
16592   cat >>confdefs.h <<_ACEOF
16593 #define HAVE_DECL_FE_ALL_EXCEPT 0
16594 _ACEOF
16595
16596
16597 fi
16598 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16599 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16600 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609 #include <fenv.h>
16610
16611 int
16612 main ()
16613 {
16614 #ifndef FE_INEXACT
16615   char *p = (char *) FE_INEXACT;
16616   return !p;
16617 #endif
16618
16619   ;
16620   return 0;
16621 }
16622 _ACEOF
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_compile") 2>conftest.er1
16631   ac_status=$?
16632   grep -v '^ *+' conftest.er1 >conftest.err
16633   rm -f conftest.er1
16634   cat conftest.err >&5
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); } &&
16637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638   { (case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_try") 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest.$ac_objext'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_cv_have_decl_FE_INEXACT=yes
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662         ac_cv_have_decl_FE_INEXACT=no
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 fi
16667 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16668 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16669 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16670
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_FE_INEXACT 1
16673 _ACEOF
16674
16675
16676 else
16677   cat >>confdefs.h <<_ACEOF
16678 #define HAVE_DECL_FE_INEXACT 0
16679 _ACEOF
16680
16681
16682 fi
16683
16684
16685 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16686
16687 for ac_header in pthread.h
16688 do
16689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16694   echo $ECHO_N "(cached) $ECHO_C" >&6
16695 fi
16696 ac_res=`eval echo '${'$as_ac_Header'}'`
16697                { echo "$as_me:$LINENO: result: $ac_res" >&5
16698 echo "${ECHO_T}$ac_res" >&6; }
16699 else
16700   # Is the header compilable?
16701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h.  */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h.  */
16709 $ac_includes_default
16710 #include <$ac_header>
16711 _ACEOF
16712 rm -f conftest.$ac_objext
16713 if { (ac_try="$ac_compile"
16714 case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_compile") 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; } &&
16736          { ac_try='test -s conftest.$ac_objext'
16737   { (case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_try") 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_header_compiler=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751         ac_header_compiler=no
16752 fi
16753
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16756 echo "${ECHO_T}$ac_header_compiler" >&6; }
16757
16758 # Is the header present?
16759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h.  */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h.  */
16767 #include <$ac_header>
16768 _ACEOF
16769 if { (ac_try="$ac_cpp conftest.$ac_ext"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } >/dev/null; then
16782   if test -s conftest.err; then
16783     ac_cpp_err=$ac_c_preproc_warn_flag
16784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16785   else
16786     ac_cpp_err=
16787   fi
16788 else
16789   ac_cpp_err=yes
16790 fi
16791 if test -z "$ac_cpp_err"; then
16792   ac_header_preproc=yes
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797   ac_header_preproc=no
16798 fi
16799
16800 rm -f conftest.err conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16802 echo "${ECHO_T}$ac_header_preproc" >&6; }
16803
16804 # So?  What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16806   yes:no: )
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16811     ac_header_preproc=yes
16812     ;;
16813   no:yes:* )
16814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16816     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16817 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16818     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16820     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16821 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16824     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16826     ( cat <<\_ASBOX
16827 ## ------------------------------------ ##
16828 ## Report this to http://llvm.org/bugs/ ##
16829 ## ------------------------------------ ##
16830 _ASBOX
16831      ) | sed "s/^/$as_me: WARNING:     /" >&2
16832     ;;
16833 esac
16834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837   echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839   eval "$as_ac_Header=\$ac_header_preproc"
16840 fi
16841 ac_res=`eval echo '${'$as_ac_Header'}'`
16842                { echo "$as_me:$LINENO: result: $ac_res" >&5
16843 echo "${ECHO_T}$ac_res" >&6; }
16844
16845 fi
16846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16847   cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16849 _ACEOF
16850  HAVE_PTHREAD=1
16851
16852 else
16853   HAVE_PTHREAD=0
16854
16855 fi
16856
16857 done
16858
16859 else
16860   HAVE_PTHREAD=0
16861
16862 fi
16863 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16864
16865 for ac_header in zlib.h
16866 do
16867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16869   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 fi
16874 ac_res=`eval echo '${'$as_ac_Header'}'`
16875                { echo "$as_me:$LINENO: result: $ac_res" >&5
16876 echo "${ECHO_T}$ac_res" >&6; }
16877 else
16878   # Is the header compilable?
16879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 #include <$ac_header>
16889 _ACEOF
16890 rm -f conftest.$ac_objext
16891 if { (ac_try="$ac_compile"
16892 case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_compile") 2>conftest.er1
16898   ac_status=$?
16899   grep -v '^ *+' conftest.er1 >conftest.err
16900   rm -f conftest.er1
16901   cat conftest.err >&5
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; } &&
16914          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16924   ac_header_compiler=yes
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929         ac_header_compiler=no
16930 fi
16931
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16934 echo "${ECHO_T}$ac_header_compiler" >&6; }
16935
16936 # Is the header present?
16937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 #include <$ac_header>
16946 _ACEOF
16947 if { (ac_try="$ac_cpp conftest.$ac_ext"
16948 case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } >/dev/null; then
16960   if test -s conftest.err; then
16961     ac_cpp_err=$ac_c_preproc_warn_flag
16962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16963   else
16964     ac_cpp_err=
16965   fi
16966 else
16967   ac_cpp_err=yes
16968 fi
16969 if test -z "$ac_cpp_err"; then
16970   ac_header_preproc=yes
16971 else
16972   echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975   ac_header_preproc=no
16976 fi
16977
16978 rm -f conftest.err conftest.$ac_ext
16979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16980 echo "${ECHO_T}$ac_header_preproc" >&6; }
16981
16982 # So?  What about this header?
16983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16984   yes:no: )
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16989     ac_header_preproc=yes
16990     ;;
16991   no:yes:* )
16992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17004     ( cat <<\_ASBOX
17005 ## ------------------------------------ ##
17006 ## Report this to http://llvm.org/bugs/ ##
17007 ## ------------------------------------ ##
17008 _ASBOX
17009      ) | sed "s/^/$as_me: WARNING:     /" >&2
17010     ;;
17011 esac
17012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   eval "$as_ac_Header=\$ac_header_preproc"
17018 fi
17019 ac_res=`eval echo '${'$as_ac_Header'}'`
17020                { echo "$as_me:$LINENO: result: $ac_res" >&5
17021 echo "${ECHO_T}$ac_res" >&6; }
17022
17023 fi
17024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17025   cat >>confdefs.h <<_ACEOF
17026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17027 _ACEOF
17028  HAVE_LIBZ=1
17029
17030 else
17031   HAVE_LIBZ=0
17032
17033 fi
17034
17035 done
17036
17037 else
17038   HAVE_LIBZ=0
17039
17040 fi
17041
17042 if test "$llvm_cv_enable_libffi" = "yes" ; then
17043
17044
17045 for ac_header in ffi.h ffi/ffi.h
17046 do
17047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 fi
17054 ac_res=`eval echo '${'$as_ac_Header'}'`
17055                { echo "$as_me:$LINENO: result: $ac_res" >&5
17056 echo "${ECHO_T}$ac_res" >&6; }
17057 else
17058   # Is the header compilable?
17059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 $ac_includes_default
17068 #include <$ac_header>
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (ac_try="$ac_compile"
17072 case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_compile") 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } &&
17084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17085   { (case "(($ac_try" in
17086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087   *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090   (eval "$ac_try") 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; } &&
17094          { ac_try='test -s conftest.$ac_objext'
17095   { (case "(($ac_try" in
17096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097   *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100   (eval "$ac_try") 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104   ac_header_compiler=yes
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109         ac_header_compiler=no
17110 fi
17111
17112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17114 echo "${ECHO_T}$ac_header_compiler" >&6; }
17115
17116 # Is the header present?
17117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 #include <$ac_header>
17126 _ACEOF
17127 if { (ac_try="$ac_cpp conftest.$ac_ext"
17128 case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17134   ac_status=$?
17135   grep -v '^ *+' conftest.er1 >conftest.err
17136   rm -f conftest.er1
17137   cat conftest.err >&5
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); } >/dev/null; then
17140   if test -s conftest.err; then
17141     ac_cpp_err=$ac_c_preproc_warn_flag
17142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17143   else
17144     ac_cpp_err=
17145   fi
17146 else
17147   ac_cpp_err=yes
17148 fi
17149 if test -z "$ac_cpp_err"; then
17150   ac_header_preproc=yes
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155   ac_header_preproc=no
17156 fi
17157
17158 rm -f conftest.err conftest.$ac_ext
17159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17160 echo "${ECHO_T}$ac_header_preproc" >&6; }
17161
17162 # So?  What about this header?
17163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17164   yes:no: )
17165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17169     ac_header_preproc=yes
17170     ;;
17171   no:yes:* )
17172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17184     ( cat <<\_ASBOX
17185 ## ------------------------------------ ##
17186 ## Report this to http://llvm.org/bugs/ ##
17187 ## ------------------------------------ ##
17188 _ASBOX
17189      ) | sed "s/^/$as_me: WARNING:     /" >&2
17190     ;;
17191 esac
17192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17195   echo $ECHO_N "(cached) $ECHO_C" >&6
17196 else
17197   eval "$as_ac_Header=\$ac_header_preproc"
17198 fi
17199 ac_res=`eval echo '${'$as_ac_Header'}'`
17200                { echo "$as_me:$LINENO: result: $ac_res" >&5
17201 echo "${ECHO_T}$ac_res" >&6; }
17202
17203 fi
17204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17205   cat >>confdefs.h <<_ACEOF
17206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17207 _ACEOF
17208
17209 fi
17210
17211 done
17212
17213 fi
17214
17215
17216 for ac_header in CrashReporterClient.h
17217 do
17218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 fi
17225 ac_res=`eval echo '${'$as_ac_Header'}'`
17226                { echo "$as_me:$LINENO: result: $ac_res" >&5
17227 echo "${ECHO_T}$ac_res" >&6; }
17228 else
17229   # Is the header compilable?
17230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238 $ac_includes_default
17239 #include <$ac_header>
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (ac_try="$ac_compile"
17243 case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_compile") 2>conftest.er1
17249   ac_status=$?
17250   grep -v '^ *+' conftest.er1 >conftest.err
17251   rm -f conftest.er1
17252   cat conftest.err >&5
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); } &&
17255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17256   { (case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_try") 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; } &&
17265          { ac_try='test -s conftest.$ac_objext'
17266   { (case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_try") 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   ac_header_compiler=yes
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280         ac_header_compiler=no
17281 fi
17282
17283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6; }
17286
17287 # Is the header present?
17288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h.  */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h.  */
17296 #include <$ac_header>
17297 _ACEOF
17298 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
17311   if test -s conftest.err; then
17312     ac_cpp_err=$ac_c_preproc_warn_flag
17313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17314   else
17315     ac_cpp_err=
17316   fi
17317 else
17318   ac_cpp_err=yes
17319 fi
17320 if test -z "$ac_cpp_err"; then
17321   ac_header_preproc=yes
17322 else
17323   echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326   ac_header_preproc=no
17327 fi
17328
17329 rm -f conftest.err conftest.$ac_ext
17330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 echo "${ECHO_T}$ac_header_preproc" >&6; }
17332
17333 # So?  What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17335   yes:no: )
17336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340     ac_header_preproc=yes
17341     ;;
17342   no:yes:* )
17343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17355     ( cat <<\_ASBOX
17356 ## ------------------------------------ ##
17357 ## Report this to http://llvm.org/bugs/ ##
17358 ## ------------------------------------ ##
17359 _ASBOX
17360      ) | sed "s/^/$as_me: WARNING:     /" >&2
17361     ;;
17362 esac
17363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366   echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368   eval "$as_ac_Header=\$ac_header_preproc"
17369 fi
17370 ac_res=`eval echo '${'$as_ac_Header'}'`
17371                { echo "$as_me:$LINENO: result: $ac_res" >&5
17372 echo "${ECHO_T}$ac_res" >&6; }
17373
17374 fi
17375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17376   cat >>confdefs.h <<_ACEOF
17377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17378 _ACEOF
17379
17380 fi
17381
17382 done
17383
17384
17385 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17386 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17387 cat >conftest.$ac_ext <<_ACEOF
17388
17389   /* confdefs.h.  */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h.  */
17394
17395     extern const char *__crashreporter_info__;
17396     int main() {
17397       __crashreporter_info__ = "test";
17398       return 0;
17399     }
17400
17401
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_link") 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418   { (case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_try") 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest$ac_exeext'
17428   { (case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_try") 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437
17438   { echo "$as_me:$LINENO: result: yes" >&5
17439 echo "${ECHO_T}yes" >&6; }
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_CRASHREPORTER_INFO 1
17443 _ACEOF
17444
17445
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450
17451   { echo "$as_me:$LINENO: result: no" >&5
17452 echo "${ECHO_T}no" >&6; }
17453
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CRASHREPORTER_INFO 0
17456 _ACEOF
17457
17458
17459 fi
17460
17461 rm -f core conftest.err conftest.$ac_objext \
17462       conftest$ac_exeext conftest.$ac_ext
17463
17464
17465
17466   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17467 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17468 if test "${ac_cv_huge_val_sanity+set}" = set; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471
17472     ac_ext=cpp
17473 ac_cpp='$CXXCPP $CPPFLAGS'
17474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17477
17478     ac_save_CXXFLAGS=$CXXFLAGS
17479     CXXFLAGS="$CXXFLAGS -pedantic"
17480     if test "$cross_compiling" = yes; then
17481   ac_cv_huge_val_sanity=yes
17482 else
17483   cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h.  */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h.  */
17489 #include <math.h>
17490 int
17491 main ()
17492 {
17493 double x = HUGE_VAL; return x != x;
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_link") 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17509   { (case "(($ac_try" in
17510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511   *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514   (eval "$ac_try") 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518   ac_cv_huge_val_sanity=yes
17519 else
17520   echo "$as_me: program exited with status $ac_status" >&5
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ( exit $ac_status )
17525 ac_cv_huge_val_sanity=no
17526 fi
17527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17528 fi
17529
17530
17531     CXXFLAGS=$ac_save_CXXFLAGS
17532     ac_ext=c
17533 ac_cpp='$CPP $CPPFLAGS'
17534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17537
17538
17539 fi
17540 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17541 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17542   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17543
17544
17545 { echo "$as_me:$LINENO: checking for pid_t" >&5
17546 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17547 if test "${ac_cv_type_pid_t+set}" = set; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550   cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556 $ac_includes_default
17557 typedef pid_t ac__type_new_;
17558 int
17559 main ()
17560 {
17561 if ((ac__type_new_ *) 0)
17562   return 0;
17563 if (sizeof (ac__type_new_))
17564   return 0;
17565   ;
17566   return 0;
17567 }
17568 _ACEOF
17569 rm -f conftest.$ac_objext
17570 if { (ac_try="$ac_compile"
17571 case "(($ac_try" in
17572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573   *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576   (eval "$ac_compile") 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } &&
17583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584   { (case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_try") 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; } &&
17593          { ac_try='test -s conftest.$ac_objext'
17594   { (case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_try") 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; }; then
17603   ac_cv_type_pid_t=yes
17604 else
17605   echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17607
17608         ac_cv_type_pid_t=no
17609 fi
17610
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17612 fi
17613 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17614 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17615 if test $ac_cv_type_pid_t = yes; then
17616   :
17617 else
17618
17619 cat >>confdefs.h <<_ACEOF
17620 #define pid_t int
17621 _ACEOF
17622
17623 fi
17624
17625 { echo "$as_me:$LINENO: checking for size_t" >&5
17626 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17627 if test "${ac_cv_type_size_t+set}" = set; then
17628   echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630   cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636 $ac_includes_default
17637 typedef size_t ac__type_new_;
17638 int
17639 main ()
17640 {
17641 if ((ac__type_new_ *) 0)
17642   return 0;
17643 if (sizeof (ac__type_new_))
17644   return 0;
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653   *) ac_try_echo=$ac_try;;
17654 esac
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656   (eval "$ac_compile") 2>conftest.er1
17657   ac_status=$?
17658   grep -v '^ *+' conftest.er1 >conftest.err
17659   rm -f conftest.er1
17660   cat conftest.err >&5
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); } &&
17663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17673          { ac_try='test -s conftest.$ac_objext'
17674   { (case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_try") 2>&5
17680   ac_status=$?
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); }; }; then
17683   ac_cv_type_size_t=yes
17684 else
17685   echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688         ac_cv_type_size_t=no
17689 fi
17690
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 fi
17693 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17694 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17695 if test $ac_cv_type_size_t = yes; then
17696   :
17697 else
17698
17699 cat >>confdefs.h <<_ACEOF
17700 #define size_t unsigned int
17701 _ACEOF
17702
17703 fi
17704
17705
17706 cat >>confdefs.h <<_ACEOF
17707 #define RETSIGTYPE void
17708 _ACEOF
17709
17710 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17711 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17712 if test "${ac_cv_struct_tm+set}" = set; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721 #include <sys/types.h>
17722 #include <time.h>
17723
17724 int
17725 main ()
17726 {
17727 struct tm *tp; tp->tm_sec;
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext
17733 if { (ac_try="$ac_compile"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_compile") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17747   { (case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_try") 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; } &&
17756          { ac_try='test -s conftest.$ac_objext'
17757   { (case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_try") 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   ac_cv_struct_tm=time.h
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771         ac_cv_struct_tm=sys/time.h
17772 fi
17773
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 fi
17776 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17777 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17778 if test $ac_cv_struct_tm = sys/time.h; then
17779
17780 cat >>confdefs.h <<\_ACEOF
17781 #define TM_IN_SYS_TIME 1
17782 _ACEOF
17783
17784 fi
17785
17786 { echo "$as_me:$LINENO: checking for int64_t" >&5
17787 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17788 if test "${ac_cv_type_int64_t+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797 $ac_includes_default
17798 typedef int64_t ac__type_new_;
17799 int
17800 main ()
17801 {
17802 if ((ac__type_new_ *) 0)
17803   return 0;
17804 if (sizeof (ac__type_new_))
17805   return 0;
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (ac_try="$ac_compile"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_compile") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825   { (case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_try") 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest.$ac_objext'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844   ac_cv_type_int64_t=yes
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849         ac_cv_type_int64_t=no
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 fi
17854 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17855 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17856 if test $ac_cv_type_int64_t = yes; then
17857
17858 cat >>confdefs.h <<_ACEOF
17859 #define HAVE_INT64_T 1
17860 _ACEOF
17861
17862
17863 else
17864   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17865 echo "$as_me: error: Type int64_t required but not found" >&2;}
17866    { (exit 1); exit 1; }; }
17867 fi
17868
17869 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17870 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17871 if test "${ac_cv_type_uint64_t+set}" = set; then
17872   echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874   cat >conftest.$ac_ext <<_ACEOF
17875 /* confdefs.h.  */
17876 _ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h.  */
17880 $ac_includes_default
17881 typedef uint64_t ac__type_new_;
17882 int
17883 main ()
17884 {
17885 if ((ac__type_new_ *) 0)
17886   return 0;
17887 if (sizeof (ac__type_new_))
17888   return 0;
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext
17894 if { (ac_try="$ac_compile"
17895 case "(($ac_try" in
17896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897   *) ac_try_echo=$ac_try;;
17898 esac
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900   (eval "$ac_compile") 2>conftest.er1
17901   ac_status=$?
17902   grep -v '^ *+' conftest.er1 >conftest.err
17903   rm -f conftest.er1
17904   cat conftest.err >&5
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); } &&
17907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908   { (case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_try") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest.$ac_objext'
17918   { (case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   ac_cv_type_uint64_t=yes
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932         ac_cv_type_uint64_t=no
17933 fi
17934
17935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 fi
17937 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17938 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17939 if test $ac_cv_type_uint64_t = yes; then
17940
17941 cat >>confdefs.h <<_ACEOF
17942 #define HAVE_UINT64_T 1
17943 _ACEOF
17944
17945
17946 else
17947   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17948 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17949 if test "${ac_cv_type_u_int64_t+set}" = set; then
17950   echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952   cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h.  */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h.  */
17958 $ac_includes_default
17959 typedef u_int64_t ac__type_new_;
17960 int
17961 main ()
17962 {
17963 if ((ac__type_new_ *) 0)
17964   return 0;
17965 if (sizeof (ac__type_new_))
17966   return 0;
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_compile") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } &&
17985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986   { (case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_try") 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; } &&
17995          { ac_try='test -s conftest.$ac_objext'
17996   { (case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_try") 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   ac_cv_type_u_int64_t=yes
18006 else
18007   echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010         ac_cv_type_u_int64_t=no
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 fi
18015 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18016 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18017 if test $ac_cv_type_u_int64_t = yes; then
18018
18019 cat >>confdefs.h <<_ACEOF
18020 #define HAVE_U_INT64_T 1
18021 _ACEOF
18022
18023
18024 else
18025   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18026 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18027    { (exit 1); exit 1; }; }
18028 fi
18029
18030 fi
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18042 do
18043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18047   echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049   cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h.  */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h.  */
18055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18057 #define $ac_func innocuous_$ac_func
18058
18059 /* System header to define __stub macros and hopefully few prototypes,
18060     which can conflict with char $ac_func (); below.
18061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062     <limits.h> exists even on freestanding compilers.  */
18063
18064 #ifdef __STDC__
18065 # include <limits.h>
18066 #else
18067 # include <assert.h>
18068 #endif
18069
18070 #undef $ac_func
18071
18072 /* Override any GCC internal prototype to avoid an error.
18073    Use char because int might match the return type of a GCC
18074    builtin and then its argument prototype would still apply.  */
18075 #ifdef __cplusplus
18076 extern "C"
18077 #endif
18078 char $ac_func ();
18079 /* The GNU C library defines this for functions which it implements
18080     to always fail with ENOSYS.  Some functions are actually named
18081     something starting with __ and the normal name is an alias.  */
18082 #if defined __stub_$ac_func || defined __stub___$ac_func
18083 choke me
18084 #endif
18085
18086 int
18087 main ()
18088 {
18089 return $ac_func ();
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098   *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101   (eval "$ac_link") 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } &&
18108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109   { (case "(($ac_try" in
18110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111   *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114   (eval "$ac_try") 2>&5
18115   ac_status=$?
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); }; } &&
18118          { ac_try='test -s conftest$ac_exeext'
18119   { (case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_try") 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; }; then
18128   eval "$as_ac_var=yes"
18129 else
18130   echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133         eval "$as_ac_var=no"
18134 fi
18135
18136 rm -f core conftest.err conftest.$ac_objext \
18137       conftest$ac_exeext conftest.$ac_ext
18138 fi
18139 ac_res=`eval echo '${'$as_ac_var'}'`
18140                { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143   cat >>confdefs.h <<_ACEOF
18144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18145 _ACEOF
18146
18147 fi
18148 done
18149
18150
18151
18152
18153
18154 for ac_func in powf fmodf strtof round
18155 do
18156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18160   echo $ECHO_N "(cached) $ECHO_C" >&6
18161 else
18162   cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h.  */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h.  */
18168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18170 #define $ac_func innocuous_$ac_func
18171
18172 /* System header to define __stub macros and hopefully few prototypes,
18173     which can conflict with char $ac_func (); below.
18174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18175     <limits.h> exists even on freestanding compilers.  */
18176
18177 #ifdef __STDC__
18178 # include <limits.h>
18179 #else
18180 # include <assert.h>
18181 #endif
18182
18183 #undef $ac_func
18184
18185 /* Override any GCC internal prototype to avoid an error.
18186    Use char because int might match the return type of a GCC
18187    builtin and then its argument prototype would still apply.  */
18188 #ifdef __cplusplus
18189 extern "C"
18190 #endif
18191 char $ac_func ();
18192 /* The GNU C library defines this for functions which it implements
18193     to always fail with ENOSYS.  Some functions are actually named
18194     something starting with __ and the normal name is an alias.  */
18195 #if defined __stub_$ac_func || defined __stub___$ac_func
18196 choke me
18197 #endif
18198
18199 int
18200 main ()
18201 {
18202 return $ac_func ();
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_link") 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } &&
18221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222   { (case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_try") 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; } &&
18231          { ac_try='test -s conftest$ac_exeext'
18232   { (case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_try") 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; }; then
18241   eval "$as_ac_var=yes"
18242 else
18243   echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246         eval "$as_ac_var=no"
18247 fi
18248
18249 rm -f core conftest.err conftest.$ac_objext \
18250       conftest$ac_exeext conftest.$ac_ext
18251 fi
18252 ac_res=`eval echo '${'$as_ac_var'}'`
18253                { echo "$as_me:$LINENO: result: $ac_res" >&5
18254 echo "${ECHO_T}$ac_res" >&6; }
18255 if test `eval echo '${'$as_ac_var'}'` = yes; then
18256   cat >>confdefs.h <<_ACEOF
18257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 _ACEOF
18259
18260 fi
18261 done
18262
18263
18264
18265
18266
18267
18268 for ac_func in log log2 log10 exp exp2
18269 do
18270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18274   echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276   cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h.  */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h.  */
18282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18284 #define $ac_func innocuous_$ac_func
18285
18286 /* System header to define __stub macros and hopefully few prototypes,
18287     which can conflict with char $ac_func (); below.
18288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18289     <limits.h> exists even on freestanding compilers.  */
18290
18291 #ifdef __STDC__
18292 # include <limits.h>
18293 #else
18294 # include <assert.h>
18295 #endif
18296
18297 #undef $ac_func
18298
18299 /* Override any GCC internal prototype to avoid an error.
18300    Use char because int might match the return type of a GCC
18301    builtin and then its argument prototype would still apply.  */
18302 #ifdef __cplusplus
18303 extern "C"
18304 #endif
18305 char $ac_func ();
18306 /* The GNU C library defines this for functions which it implements
18307     to always fail with ENOSYS.  Some functions are actually named
18308     something starting with __ and the normal name is an alias.  */
18309 #if defined __stub_$ac_func || defined __stub___$ac_func
18310 choke me
18311 #endif
18312
18313 int
18314 main ()
18315 {
18316 return $ac_func ();
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_link") 2>conftest.er1
18329   ac_status=$?
18330   grep -v '^ *+' conftest.er1 >conftest.err
18331   rm -f conftest.er1
18332   cat conftest.err >&5
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); } &&
18335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336   { (case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_try") 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; } &&
18345          { ac_try='test -s conftest$ac_exeext'
18346   { (case "(($ac_try" in
18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348   *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351   (eval "$ac_try") 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; }; then
18355   eval "$as_ac_var=yes"
18356 else
18357   echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360         eval "$as_ac_var=no"
18361 fi
18362
18363 rm -f core conftest.err conftest.$ac_objext \
18364       conftest$ac_exeext conftest.$ac_ext
18365 fi
18366 ac_res=`eval echo '${'$as_ac_var'}'`
18367                { echo "$as_me:$LINENO: result: $ac_res" >&5
18368 echo "${ECHO_T}$ac_res" >&6; }
18369 if test `eval echo '${'$as_ac_var'}'` = yes; then
18370   cat >>confdefs.h <<_ACEOF
18371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18372 _ACEOF
18373
18374 fi
18375 done
18376
18377
18378
18379
18380
18381
18382 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18383 do
18384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18398 #define $ac_func innocuous_$ac_func
18399
18400 /* System header to define __stub macros and hopefully few prototypes,
18401     which can conflict with char $ac_func (); below.
18402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18403     <limits.h> exists even on freestanding compilers.  */
18404
18405 #ifdef __STDC__
18406 # include <limits.h>
18407 #else
18408 # include <assert.h>
18409 #endif
18410
18411 #undef $ac_func
18412
18413 /* Override any GCC internal prototype to avoid an error.
18414    Use char because int might match the return type of a GCC
18415    builtin and then its argument prototype would still apply.  */
18416 #ifdef __cplusplus
18417 extern "C"
18418 #endif
18419 char $ac_func ();
18420 /* The GNU C library defines this for functions which it implements
18421     to always fail with ENOSYS.  Some functions are actually named
18422     something starting with __ and the normal name is an alias.  */
18423 #if defined __stub_$ac_func || defined __stub___$ac_func
18424 choke me
18425 #endif
18426
18427 int
18428 main ()
18429 {
18430 return $ac_func ();
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442   (eval "$ac_link") 2>conftest.er1
18443   ac_status=$?
18444   grep -v '^ *+' conftest.er1 >conftest.err
18445   rm -f conftest.er1
18446   cat conftest.err >&5
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); } &&
18449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450   { (case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_try") 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; } &&
18459          { ac_try='test -s conftest$ac_exeext'
18460   { (case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_try") 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; }; then
18469   eval "$as_ac_var=yes"
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474         eval "$as_ac_var=no"
18475 fi
18476
18477 rm -f core conftest.err conftest.$ac_objext \
18478       conftest$ac_exeext conftest.$ac_ext
18479 fi
18480 ac_res=`eval echo '${'$as_ac_var'}'`
18481                { echo "$as_me:$LINENO: result: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483 if test `eval echo '${'$as_ac_var'}'` = yes; then
18484   cat >>confdefs.h <<_ACEOF
18485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18486 _ACEOF
18487
18488 fi
18489 done
18490
18491
18492
18493
18494 for ac_func in isatty mkdtemp mkstemp
18495 do
18496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h.  */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h.  */
18508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18510 #define $ac_func innocuous_$ac_func
18511
18512 /* System header to define __stub macros and hopefully few prototypes,
18513     which can conflict with char $ac_func (); below.
18514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18515     <limits.h> exists even on freestanding compilers.  */
18516
18517 #ifdef __STDC__
18518 # include <limits.h>
18519 #else
18520 # include <assert.h>
18521 #endif
18522
18523 #undef $ac_func
18524
18525 /* Override any GCC internal prototype to avoid an error.
18526    Use char because int might match the return type of a GCC
18527    builtin and then its argument prototype would still apply.  */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 char $ac_func ();
18532 /* The GNU C library defines this for functions which it implements
18533     to always fail with ENOSYS.  Some functions are actually named
18534     something starting with __ and the normal name is an alias.  */
18535 #if defined __stub_$ac_func || defined __stub___$ac_func
18536 choke me
18537 #endif
18538
18539 int
18540 main ()
18541 {
18542 return $ac_func ();
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_link") 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } &&
18561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18562   { (case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_try") 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; } &&
18571          { ac_try='test -s conftest$ac_exeext'
18572   { (case "(($ac_try" in
18573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574   *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577   (eval "$ac_try") 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; }; then
18581   eval "$as_ac_var=yes"
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586         eval "$as_ac_var=no"
18587 fi
18588
18589 rm -f core conftest.err conftest.$ac_objext \
18590       conftest$ac_exeext conftest.$ac_ext
18591 fi
18592 ac_res=`eval echo '${'$as_ac_var'}'`
18593                { echo "$as_me:$LINENO: result: $ac_res" >&5
18594 echo "${ECHO_T}$ac_res" >&6; }
18595 if test `eval echo '${'$as_ac_var'}'` = yes; then
18596   cat >>confdefs.h <<_ACEOF
18597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18598 _ACEOF
18599
18600 fi
18601 done
18602
18603
18604
18605
18606
18607
18608
18609
18610 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18611 do
18612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618   cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h.  */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h.  */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18626 #define $ac_func innocuous_$ac_func
18627
18628 /* System header to define __stub macros and hopefully few prototypes,
18629     which can conflict with char $ac_func (); below.
18630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631     <limits.h> exists even on freestanding compilers.  */
18632
18633 #ifdef __STDC__
18634 # include <limits.h>
18635 #else
18636 # include <assert.h>
18637 #endif
18638
18639 #undef $ac_func
18640
18641 /* Override any GCC internal prototype to avoid an error.
18642    Use char because int might match the return type of a GCC
18643    builtin and then its argument prototype would still apply.  */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char $ac_func ();
18648 /* The GNU C library defines this for functions which it implements
18649     to always fail with ENOSYS.  Some functions are actually named
18650     something starting with __ and the normal name is an alias.  */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18652 choke me
18653 #endif
18654
18655 int
18656 main ()
18657 {
18658 return $ac_func ();
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670   (eval "$ac_link") 2>conftest.er1
18671   ac_status=$?
18672   grep -v '^ *+' conftest.er1 >conftest.err
18673   rm -f conftest.er1
18674   cat conftest.err >&5
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); } &&
18677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678   { (case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_try") 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; } &&
18687          { ac_try='test -s conftest$ac_exeext'
18688   { (case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_try") 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; }; then
18697   eval "$as_ac_var=yes"
18698 else
18699   echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702         eval "$as_ac_var=no"
18703 fi
18704
18705 rm -f core conftest.err conftest.$ac_objext \
18706       conftest$ac_exeext conftest.$ac_ext
18707 fi
18708 ac_res=`eval echo '${'$as_ac_var'}'`
18709                { echo "$as_me:$LINENO: result: $ac_res" >&5
18710 echo "${ECHO_T}$ac_res" >&6; }
18711 if test `eval echo '${'$as_ac_var'}'` = yes; then
18712   cat >>confdefs.h <<_ACEOF
18713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18714 _ACEOF
18715
18716 fi
18717 done
18718
18719
18720
18721
18722
18723 for ac_func in strerror strerror_r setenv arc4random
18724 do
18725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18739 #define $ac_func innocuous_$ac_func
18740
18741 /* System header to define __stub macros and hopefully few prototypes,
18742     which can conflict with char $ac_func (); below.
18743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744     <limits.h> exists even on freestanding compilers.  */
18745
18746 #ifdef __STDC__
18747 # include <limits.h>
18748 #else
18749 # include <assert.h>
18750 #endif
18751
18752 #undef $ac_func
18753
18754 /* Override any GCC internal prototype to avoid an error.
18755    Use char because int might match the return type of a GCC
18756    builtin and then its argument prototype would still apply.  */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 char $ac_func ();
18761 /* The GNU C library defines this for functions which it implements
18762     to always fail with ENOSYS.  Some functions are actually named
18763     something starting with __ and the normal name is an alias.  */
18764 #if defined __stub_$ac_func || defined __stub___$ac_func
18765 choke me
18766 #endif
18767
18768 int
18769 main ()
18770 {
18771 return $ac_func ();
18772   ;
18773   return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext conftest$ac_exeext
18777 if { (ac_try="$ac_link"
18778 case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_link") 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } &&
18790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791   { (case "(($ac_try" in
18792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793   *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796   (eval "$ac_try") 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; } &&
18800          { ac_try='test -s conftest$ac_exeext'
18801   { (case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_try") 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; }; then
18810   eval "$as_ac_var=yes"
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815         eval "$as_ac_var=no"
18816 fi
18817
18818 rm -f core conftest.err conftest.$ac_objext \
18819       conftest$ac_exeext conftest.$ac_ext
18820 fi
18821 ac_res=`eval echo '${'$as_ac_var'}'`
18822                { echo "$as_me:$LINENO: result: $ac_res" >&5
18823 echo "${ECHO_T}$ac_res" >&6; }
18824 if test `eval echo '${'$as_ac_var'}'` = yes; then
18825   cat >>confdefs.h <<_ACEOF
18826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18827 _ACEOF
18828
18829 fi
18830 done
18831
18832
18833
18834
18835
18836 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18837 do
18838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18842   echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844   cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18852 #define $ac_func innocuous_$ac_func
18853
18854 /* System header to define __stub macros and hopefully few prototypes,
18855     which can conflict with char $ac_func (); below.
18856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857     <limits.h> exists even on freestanding compilers.  */
18858
18859 #ifdef __STDC__
18860 # include <limits.h>
18861 #else
18862 # include <assert.h>
18863 #endif
18864
18865 #undef $ac_func
18866
18867 /* Override any GCC internal prototype to avoid an error.
18868    Use char because int might match the return type of a GCC
18869    builtin and then its argument prototype would still apply.  */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char $ac_func ();
18874 /* The GNU C library defines this for functions which it implements
18875     to always fail with ENOSYS.  Some functions are actually named
18876     something starting with __ and the normal name is an alias.  */
18877 #if defined __stub_$ac_func || defined __stub___$ac_func
18878 choke me
18879 #endif
18880
18881 int
18882 main ()
18883 {
18884 return $ac_func ();
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893   *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896   (eval "$ac_link") 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } &&
18903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904   { (case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_try") 2>&5
18910   ac_status=$?
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); }; } &&
18913          { ac_try='test -s conftest$ac_exeext'
18914   { (case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_try") 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   eval "$as_ac_var=yes"
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         eval "$as_ac_var=no"
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext \
18932       conftest$ac_exeext conftest.$ac_ext
18933 fi
18934 ac_res=`eval echo '${'$as_ac_var'}'`
18935                { echo "$as_me:$LINENO: result: $ac_res" >&5
18936 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_var'}'` = yes; then
18938   cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18940 _ACEOF
18941
18942 fi
18943 done
18944
18945
18946
18947
18948
18949
18950 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18951 do
18952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18966 #define $ac_func innocuous_$ac_func
18967
18968 /* System header to define __stub macros and hopefully few prototypes,
18969     which can conflict with char $ac_func (); below.
18970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18971     <limits.h> exists even on freestanding compilers.  */
18972
18973 #ifdef __STDC__
18974 # include <limits.h>
18975 #else
18976 # include <assert.h>
18977 #endif
18978
18979 #undef $ac_func
18980
18981 /* Override any GCC internal prototype to avoid an error.
18982    Use char because int might match the return type of a GCC
18983    builtin and then its argument prototype would still apply.  */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 char $ac_func ();
18988 /* The GNU C library defines this for functions which it implements
18989     to always fail with ENOSYS.  Some functions are actually named
18990     something starting with __ and the normal name is an alias.  */
18991 #if defined __stub_$ac_func || defined __stub___$ac_func
18992 choke me
18993 #endif
18994
18995 int
18996 main ()
18997 {
18998 return $ac_func ();
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_link") 2>conftest.er1
19011   ac_status=$?
19012   grep -v '^ *+' conftest.er1 >conftest.err
19013   rm -f conftest.er1
19014   cat conftest.err >&5
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); } &&
19017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018   { (case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_try") 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); }; } &&
19027          { ac_try='test -s conftest$ac_exeext'
19028   { (case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033   (eval "$ac_try") 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); }; }; then
19037   eval "$as_ac_var=yes"
19038 else
19039   echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19041
19042         eval "$as_ac_var=no"
19043 fi
19044
19045 rm -f core conftest.err conftest.$ac_objext \
19046       conftest$ac_exeext conftest.$ac_ext
19047 fi
19048 ac_res=`eval echo '${'$as_ac_var'}'`
19049                { echo "$as_me:$LINENO: result: $ac_res" >&5
19050 echo "${ECHO_T}$ac_res" >&6; }
19051 if test `eval echo '${'$as_ac_var'}'` = yes; then
19052   cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19054 _ACEOF
19055
19056 fi
19057 done
19058
19059 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19060 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19061 if test "${llvm_cv_c_printf_a+set}" = set; then
19062   echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064   ac_ext=c
19065 ac_cpp='$CPP $CPPFLAGS'
19066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19069
19070  if test "$cross_compiling" = yes; then
19071   llvmac_cv_c_printf_a=no
19072 else
19073   cat >conftest.$ac_ext <<_ACEOF
19074
19075   /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080
19081 #include <stdio.h>
19082 #include <stdlib.h>
19083
19084 int
19085 main ()
19086 {
19087
19088 volatile double A, B;
19089 char Buffer[100];
19090 A = 1;
19091 A /= 10.0;
19092 sprintf(Buffer, "%a", A);
19093 B = atof(Buffer);
19094 if (A != B)
19095   return (1);
19096 if (A != 0x1.999999999999ap-4)
19097   return (1);
19098 return (0);
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_link") 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114   { (case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119   (eval "$ac_try") 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   llvm_cv_c_printf_a=yes
19124 else
19125   echo "$as_me: program exited with status $ac_status" >&5
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ( exit $ac_status )
19130 llvmac_cv_c_printf_a=no
19131 fi
19132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19133 fi
19134
19135
19136  ac_ext=c
19137 ac_cpp='$CPP $CPPFLAGS'
19138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19141
19142 fi
19143 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19144 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19145  if test "$llvm_cv_c_printf_a" = "yes"; then
19146
19147 cat >>confdefs.h <<\_ACEOF
19148 #define HAVE_PRINTF_A 1
19149 _ACEOF
19150
19151  fi
19152
19153
19154
19155   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19156 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19157 if test "${ac_cv_func_rand48+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160
19161     ac_ext=cpp
19162 ac_cpp='$CXXCPP $CPPFLAGS'
19163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19166
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 #include <stdlib.h>
19174 int
19175 main ()
19176 {
19177 srand48(0);lrand48();drand48();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext
19183 if { (ac_try="$ac_compile"
19184 case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_compile") 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } &&
19196          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19197   { (case "(($ac_try" in
19198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199   *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202   (eval "$ac_try") 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; } &&
19206          { ac_try='test -s conftest.$ac_objext'
19207   { (case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_try") 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; }; then
19216   ac_cv_func_rand48=yes
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221         ac_cv_func_rand48=no
19222 fi
19223
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225     ac_ext=c
19226 ac_cpp='$CPP $CPPFLAGS'
19227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19230
19231
19232 fi
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19234 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19235
19236 if test "$ac_cv_func_rand48" = "yes" ; then
19237
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE_RAND48 1
19240 _ACEOF
19241
19242 fi
19243
19244
19245 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19246 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19247 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 $ac_includes_default
19257 int
19258 main ()
19259 {
19260 #ifndef strerror_s
19261   char *p = (char *) strerror_s;
19262   return !p;
19263 #endif
19264
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext
19270 if { (ac_try="$ac_compile"
19271 case "(($ac_try" in
19272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273   *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276   (eval "$ac_compile") 2>conftest.er1
19277   ac_status=$?
19278   grep -v '^ *+' conftest.er1 >conftest.err
19279   rm -f conftest.er1
19280   cat conftest.err >&5
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); } &&
19283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19284   { (case "(($ac_try" in
19285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286   *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289   (eval "$ac_try") 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; } &&
19293          { ac_try='test -s conftest.$ac_objext'
19294   { (case "(($ac_try" in
19295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296   *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299   (eval "$ac_try") 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); }; }; then
19303   ac_cv_have_decl_strerror_s=yes
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308         ac_cv_have_decl_strerror_s=no
19309 fi
19310
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312 fi
19313 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19314 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19315 if test $ac_cv_have_decl_strerror_s = yes; then
19316
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_DECL_STRERROR_S 1
19319 _ACEOF
19320
19321
19322 else
19323   cat >>confdefs.h <<_ACEOF
19324 #define HAVE_DECL_STRERROR_S 0
19325 _ACEOF
19326
19327
19328 fi
19329
19330
19331
19332 if test "$llvm_cv_os_type" = "MingW" ; then
19333   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19334 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19335 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338   ac_check_lib_save_LIBS=$LIBS
19339 LIBS="-lgcc  $LIBS"
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h.  */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h.  */
19346
19347 /* Override any GCC internal prototype to avoid an error.
19348    Use char because int might match the return type of a GCC
19349    builtin and then its argument prototype would still apply.  */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 char _alloca ();
19354 int
19355 main ()
19356 {
19357 return _alloca ();
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (ac_try="$ac_link"
19364 case "(($ac_try" in
19365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366   *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369   (eval "$ac_link") 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } &&
19376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19377   { (case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_try") 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; } &&
19386          { ac_try='test -s conftest$ac_exeext'
19387   { (case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_try") 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396   ac_cv_lib_gcc__alloca=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401         ac_cv_lib_gcc__alloca=no
19402 fi
19403
19404 rm -f core conftest.err conftest.$ac_objext \
19405       conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19407 fi
19408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19409 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19410 if test $ac_cv_lib_gcc__alloca = yes; then
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE__ALLOCA 1
19414 _ACEOF
19415
19416 fi
19417
19418   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19419 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lgcc  $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431
19432 /* Override any GCC internal prototype to avoid an error.
19433    Use char because int might match the return type of a GCC
19434    builtin and then its argument prototype would still apply.  */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char __alloca ();
19439 int
19440 main ()
19441 {
19442 return __alloca ();
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_link") 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } &&
19461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462   { (case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467   (eval "$ac_try") 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; } &&
19471          { ac_try='test -s conftest$ac_exeext'
19472   { (case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_try") 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_lib_gcc___alloca=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_lib_gcc___alloca=no
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext \
19490       conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19495 if test $ac_cv_lib_gcc___alloca = yes; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___ALLOCA 1
19499 _ACEOF
19500
19501 fi
19502
19503   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19504 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19505 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   ac_check_lib_save_LIBS=$LIBS
19509 LIBS="-lgcc  $LIBS"
19510 cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516
19517 /* Override any GCC internal prototype to avoid an error.
19518    Use char because int might match the return type of a GCC
19519    builtin and then its argument prototype would still apply.  */
19520 #ifdef __cplusplus
19521 extern "C"
19522 #endif
19523 char __chkstk ();
19524 int
19525 main ()
19526 {
19527 return __chkstk ();
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536   *) ac_try_echo=$ac_try;;
19537 esac
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539   (eval "$ac_link") 2>conftest.er1
19540   ac_status=$?
19541   grep -v '^ *+' conftest.er1 >conftest.err
19542   rm -f conftest.er1
19543   cat conftest.err >&5
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } &&
19546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19547   { (case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552   (eval "$ac_try") 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; } &&
19556          { ac_try='test -s conftest$ac_exeext'
19557   { (case "(($ac_try" in
19558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559   *) ac_try_echo=$ac_try;;
19560 esac
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562   (eval "$ac_try") 2>&5
19563   ac_status=$?
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); }; }; then
19566   ac_cv_lib_gcc___chkstk=yes
19567 else
19568   echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571         ac_cv_lib_gcc___chkstk=no
19572 fi
19573
19574 rm -f core conftest.err conftest.$ac_objext \
19575       conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19579 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19580 if test $ac_cv_lib_gcc___chkstk = yes; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE___CHKSTK 1
19584 _ACEOF
19585
19586 fi
19587
19588   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19589 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19590 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lgcc  $LIBS"
19595 cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h.  */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h.  */
19601
19602 /* Override any GCC internal prototype to avoid an error.
19603    Use char because int might match the return type of a GCC
19604    builtin and then its argument prototype would still apply.  */
19605 #ifdef __cplusplus
19606 extern "C"
19607 #endif
19608 char ___chkstk ();
19609 int
19610 main ()
19611 {
19612 return ___chkstk ();
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621   *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624   (eval "$ac_link") 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } &&
19631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19632   { (case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_try") 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); }; } &&
19641          { ac_try='test -s conftest$ac_exeext'
19642   { (case "(($ac_try" in
19643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644   *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647   (eval "$ac_try") 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_lib_gcc____chkstk=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656         ac_cv_lib_gcc____chkstk=no
19657 fi
19658
19659 rm -f core conftest.err conftest.$ac_objext \
19660       conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19662 fi
19663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19664 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19665 if test $ac_cv_lib_gcc____chkstk = yes; then
19666
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE____CHKSTK 1
19669 _ACEOF
19670
19671 fi
19672
19673
19674   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19675 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19676 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lgcc  $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688 /* Override any GCC internal prototype to avoid an error.
19689    Use char because int might match the return type of a GCC
19690    builtin and then its argument prototype would still apply.  */
19691 #ifdef __cplusplus
19692 extern "C"
19693 #endif
19694 char __ashldi3 ();
19695 int
19696 main ()
19697 {
19698 return __ashldi3 ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_link") 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19718   { (case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_try") 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; } &&
19727          { ac_try='test -s conftest$ac_exeext'
19728   { (case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_try") 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_cv_lib_gcc___ashldi3=yes
19738 else
19739   echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742         ac_cv_lib_gcc___ashldi3=no
19743 fi
19744
19745 rm -f core conftest.err conftest.$ac_objext \
19746       conftest$ac_exeext conftest.$ac_ext
19747 LIBS=$ac_check_lib_save_LIBS
19748 fi
19749 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19750 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19751 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE___ASHLDI3 1
19755 _ACEOF
19756
19757 fi
19758
19759   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19760 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19761 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19762   echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764   ac_check_lib_save_LIBS=$LIBS
19765 LIBS="-lgcc  $LIBS"
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 /* Override any GCC internal prototype to avoid an error.
19774    Use char because int might match the return type of a GCC
19775    builtin and then its argument prototype would still apply.  */
19776 #ifdef __cplusplus
19777 extern "C"
19778 #endif
19779 char __ashrdi3 ();
19780 int
19781 main ()
19782 {
19783 return __ashrdi3 ();
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (ac_try="$ac_link"
19790 case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_link") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19812          { ac_try='test -s conftest$ac_exeext'
19813   { (case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_try") 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_cv_lib_gcc___ashrdi3=yes
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827         ac_cv_lib_gcc___ashrdi3=no
19828 fi
19829
19830 rm -f core conftest.err conftest.$ac_objext \
19831       conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19833 fi
19834 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19835 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19836 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19837
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE___ASHRDI3 1
19840 _ACEOF
19841
19842 fi
19843
19844   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19845 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19846 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19847   echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849   ac_check_lib_save_LIBS=$LIBS
19850 LIBS="-lgcc  $LIBS"
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857
19858 /* Override any GCC internal prototype to avoid an error.
19859    Use char because int might match the return type of a GCC
19860    builtin and then its argument prototype would still apply.  */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char __divdi3 ();
19865 int
19866 main ()
19867 {
19868 return __divdi3 ();
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_link") 2>conftest.er1
19881   ac_status=$?
19882   grep -v '^ *+' conftest.er1 >conftest.err
19883   rm -f conftest.er1
19884   cat conftest.err >&5
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } &&
19887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19888   { (case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_try") 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; } &&
19897          { ac_try='test -s conftest$ac_exeext'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ac_cv_lib_gcc___divdi3=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912         ac_cv_lib_gcc___divdi3=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext \
19916       conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19918 fi
19919 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19920 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19921 if test $ac_cv_lib_gcc___divdi3 = yes; then
19922
19923 cat >>confdefs.h <<\_ACEOF
19924 #define HAVE___DIVDI3 1
19925 _ACEOF
19926
19927 fi
19928
19929   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19930 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19931 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19932   echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934   ac_check_lib_save_LIBS=$LIBS
19935 LIBS="-lgcc  $LIBS"
19936 cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h.  */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h.  */
19942
19943 /* Override any GCC internal prototype to avoid an error.
19944    Use char because int might match the return type of a GCC
19945    builtin and then its argument prototype would still apply.  */
19946 #ifdef __cplusplus
19947 extern "C"
19948 #endif
19949 char __fixdfdi ();
19950 int
19951 main ()
19952 {
19953 return __fixdfdi ();
19954   ;
19955   return 0;
19956 }
19957 _ACEOF
19958 rm -f conftest.$ac_objext conftest$ac_exeext
19959 if { (ac_try="$ac_link"
19960 case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965   (eval "$ac_link") 2>conftest.er1
19966   ac_status=$?
19967   grep -v '^ *+' conftest.er1 >conftest.err
19968   rm -f conftest.er1
19969   cat conftest.err >&5
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); } &&
19972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19973   { (case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_try") 2>&5
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); }; } &&
19982          { ac_try='test -s conftest$ac_exeext'
19983   { (case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_try") 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; }; then
19992   ac_cv_lib_gcc___fixdfdi=yes
19993 else
19994   echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19996
19997         ac_cv_lib_gcc___fixdfdi=no
19998 fi
19999
20000 rm -f core conftest.err conftest.$ac_objext \
20001       conftest$ac_exeext conftest.$ac_ext
20002 LIBS=$ac_check_lib_save_LIBS
20003 fi
20004 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20005 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20006 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20007
20008 cat >>confdefs.h <<\_ACEOF
20009 #define HAVE___FIXDFDI 1
20010 _ACEOF
20011
20012 fi
20013
20014   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20015 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20017   echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019   ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-lgcc  $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028 /* Override any GCC internal prototype to avoid an error.
20029    Use char because int might match the return type of a GCC
20030    builtin and then its argument prototype would still apply.  */
20031 #ifdef __cplusplus
20032 extern "C"
20033 #endif
20034 char __fixsfdi ();
20035 int
20036 main ()
20037 {
20038 return __fixsfdi ();
20039   ;
20040   return 0;
20041 }
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047   *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050   (eval "$ac_link") 2>conftest.er1
20051   ac_status=$?
20052   grep -v '^ *+' conftest.er1 >conftest.err
20053   rm -f conftest.er1
20054   cat conftest.err >&5
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); } &&
20057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20058   { (case "(($ac_try" in
20059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060   *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063   (eval "$ac_try") 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; } &&
20067          { ac_try='test -s conftest$ac_exeext'
20068   { (case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073   (eval "$ac_try") 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); }; }; then
20077   ac_cv_lib_gcc___fixsfdi=yes
20078 else
20079   echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20081
20082         ac_cv_lib_gcc___fixsfdi=no
20083 fi
20084
20085 rm -f core conftest.err conftest.$ac_objext \
20086       conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20088 fi
20089 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20090 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20091 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20092
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE___FIXSFDI 1
20095 _ACEOF
20096
20097 fi
20098
20099   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20100 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20101 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104   ac_check_lib_save_LIBS=$LIBS
20105 LIBS="-lgcc  $LIBS"
20106 cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h.  */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h.  */
20112
20113 /* Override any GCC internal prototype to avoid an error.
20114    Use char because int might match the return type of a GCC
20115    builtin and then its argument prototype would still apply.  */
20116 #ifdef __cplusplus
20117 extern "C"
20118 #endif
20119 char __floatdidf ();
20120 int
20121 main ()
20122 {
20123 return __floatdidf ();
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_link") 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; } &&
20152          { ac_try='test -s conftest$ac_exeext'
20153   { (case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_try") 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   ac_cv_lib_gcc___floatdidf=yes
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167         ac_cv_lib_gcc___floatdidf=no
20168 fi
20169
20170 rm -f core conftest.err conftest.$ac_objext \
20171       conftest$ac_exeext conftest.$ac_ext
20172 LIBS=$ac_check_lib_save_LIBS
20173 fi
20174 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20175 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20176 if test $ac_cv_lib_gcc___floatdidf = yes; then
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE___FLOATDIDF 1
20180 _ACEOF
20181
20182 fi
20183
20184   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20185 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20186 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20187   echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189   ac_check_lib_save_LIBS=$LIBS
20190 LIBS="-lgcc  $LIBS"
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197
20198 /* Override any GCC internal prototype to avoid an error.
20199    Use char because int might match the return type of a GCC
20200    builtin and then its argument prototype would still apply.  */
20201 #ifdef __cplusplus
20202 extern "C"
20203 #endif
20204 char __lshrdi3 ();
20205 int
20206 main ()
20207 {
20208 return __lshrdi3 ();
20209   ;
20210   return 0;
20211 }
20212 _ACEOF
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217   *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220   (eval "$ac_link") 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } &&
20227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20228   { (case "(($ac_try" in
20229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230   *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233   (eval "$ac_try") 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; } &&
20237          { ac_try='test -s conftest$ac_exeext'
20238   { (case "(($ac_try" in
20239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240   *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243   (eval "$ac_try") 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; }; then
20247   ac_cv_lib_gcc___lshrdi3=yes
20248 else
20249   echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252         ac_cv_lib_gcc___lshrdi3=no
20253 fi
20254
20255 rm -f core conftest.err conftest.$ac_objext \
20256       conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20258 fi
20259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20260 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20261 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20262
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE___LSHRDI3 1
20265 _ACEOF
20266
20267 fi
20268
20269   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20270 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20271 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20272   echo $ECHO_N "(cached) $ECHO_C" >&6
20273 else
20274   ac_check_lib_save_LIBS=$LIBS
20275 LIBS="-lgcc  $LIBS"
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282
20283 /* Override any GCC internal prototype to avoid an error.
20284    Use char because int might match the return type of a GCC
20285    builtin and then its argument prototype would still apply.  */
20286 #ifdef __cplusplus
20287 extern "C"
20288 #endif
20289 char __moddi3 ();
20290 int
20291 main ()
20292 {
20293 return __moddi3 ();
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest.$ac_objext conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302   *) ac_try_echo=$ac_try;;
20303 esac
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305   (eval "$ac_link") 2>conftest.er1
20306   ac_status=$?
20307   grep -v '^ *+' conftest.er1 >conftest.err
20308   rm -f conftest.er1
20309   cat conftest.err >&5
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); } &&
20312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20313   { (case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_try") 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; } &&
20322          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); }; }; then
20332   ac_cv_lib_gcc___moddi3=yes
20333 else
20334   echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337         ac_cv_lib_gcc___moddi3=no
20338 fi
20339
20340 rm -f core conftest.err conftest.$ac_objext \
20341       conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20343 fi
20344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20345 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20346 if test $ac_cv_lib_gcc___moddi3 = yes; then
20347
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE___MODDI3 1
20350 _ACEOF
20351
20352 fi
20353
20354   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20355 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20356 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20357   echo $ECHO_N "(cached) $ECHO_C" >&6
20358 else
20359   ac_check_lib_save_LIBS=$LIBS
20360 LIBS="-lgcc  $LIBS"
20361 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h.  */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h.  */
20367
20368 /* Override any GCC internal prototype to avoid an error.
20369    Use char because int might match the return type of a GCC
20370    builtin and then its argument prototype would still apply.  */
20371 #ifdef __cplusplus
20372 extern "C"
20373 #endif
20374 char __udivdi3 ();
20375 int
20376 main ()
20377 {
20378 return __udivdi3 ();
20379   ;
20380   return 0;
20381 }
20382 _ACEOF
20383 rm -f conftest.$ac_objext conftest$ac_exeext
20384 if { (ac_try="$ac_link"
20385 case "(($ac_try" in
20386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387   *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390   (eval "$ac_link") 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } &&
20397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20398   { (case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_try") 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; } &&
20407          { ac_try='test -s conftest$ac_exeext'
20408   { (case "(($ac_try" in
20409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410   *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413   (eval "$ac_try") 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_cv_lib_gcc___udivdi3=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422         ac_cv_lib_gcc___udivdi3=no
20423 fi
20424
20425 rm -f core conftest.err conftest.$ac_objext \
20426       conftest$ac_exeext conftest.$ac_ext
20427 LIBS=$ac_check_lib_save_LIBS
20428 fi
20429 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20430 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20431 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20432
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE___UDIVDI3 1
20435 _ACEOF
20436
20437 fi
20438
20439   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20440 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20441 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20442   echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444   ac_check_lib_save_LIBS=$LIBS
20445 LIBS="-lgcc  $LIBS"
20446 cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452
20453 /* Override any GCC internal prototype to avoid an error.
20454    Use char because int might match the return type of a GCC
20455    builtin and then its argument prototype would still apply.  */
20456 #ifdef __cplusplus
20457 extern "C"
20458 #endif
20459 char __umoddi3 ();
20460 int
20461 main ()
20462 {
20463 return __umoddi3 ();
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_link") 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20483   { (case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488   (eval "$ac_try") 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; } &&
20492          { ac_try='test -s conftest$ac_exeext'
20493   { (case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_try") 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; }; then
20502   ac_cv_lib_gcc___umoddi3=yes
20503 else
20504   echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507         ac_cv_lib_gcc___umoddi3=no
20508 fi
20509
20510 rm -f core conftest.err conftest.$ac_objext \
20511       conftest$ac_exeext conftest.$ac_ext
20512 LIBS=$ac_check_lib_save_LIBS
20513 fi
20514 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20515 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20516 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20517
20518 cat >>confdefs.h <<\_ACEOF
20519 #define HAVE___UMODDI3 1
20520 _ACEOF
20521
20522 fi
20523
20524
20525   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20526 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_gcc___main+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530   ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lgcc  $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h.  */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h.  */
20538
20539 /* Override any GCC internal prototype to avoid an error.
20540    Use char because int might match the return type of a GCC
20541    builtin and then its argument prototype would still apply.  */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char __main ();
20546 int
20547 main ()
20548 {
20549 return __main ();
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_link") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } &&
20568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569   { (case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_try") 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; } &&
20578          { ac_try='test -s conftest$ac_exeext'
20579   { (case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_try") 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_cv_lib_gcc___main=yes
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593         ac_cv_lib_gcc___main=no
20594 fi
20595
20596 rm -f core conftest.err conftest.$ac_objext \
20597       conftest$ac_exeext conftest.$ac_ext
20598 LIBS=$ac_check_lib_save_LIBS
20599 fi
20600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20601 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20602 if test $ac_cv_lib_gcc___main = yes; then
20603
20604 cat >>confdefs.h <<\_ACEOF
20605 #define HAVE___MAIN 1
20606 _ACEOF
20607
20608 fi
20609
20610   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20611 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20612 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20613   echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615   ac_check_lib_save_LIBS=$LIBS
20616 LIBS="-lgcc  $LIBS"
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623
20624 /* Override any GCC internal prototype to avoid an error.
20625    Use char because int might match the return type of a GCC
20626    builtin and then its argument prototype would still apply.  */
20627 #ifdef __cplusplus
20628 extern "C"
20629 #endif
20630 char __cmpdi2 ();
20631 int
20632 main ()
20633 {
20634 return __cmpdi2 ();
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_link") 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20654   { (case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_try") 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; } &&
20663          { ac_try='test -s conftest$ac_exeext'
20664   { (case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_try") 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   ac_cv_lib_gcc___cmpdi2=yes
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678         ac_cv_lib_gcc___cmpdi2=no
20679 fi
20680
20681 rm -f core conftest.err conftest.$ac_objext \
20682       conftest$ac_exeext conftest.$ac_ext
20683 LIBS=$ac_check_lib_save_LIBS
20684 fi
20685 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20686 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20687 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20688
20689 cat >>confdefs.h <<\_ACEOF
20690 #define HAVE___CMPDI2 1
20691 _ACEOF
20692
20693 fi
20694
20695 fi
20696
20697 if test "$llvm_cv_os_type" = "MingW" ; then
20698   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20699 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20700   cat >conftest.$ac_ext <<_ACEOF
20701
20702   /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707
20708     #include <windows.h>
20709     #include <imagehlp.h>
20710     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20711     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20712
20713
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722   (eval "$ac_compile") 2>conftest.er1
20723   ac_status=$?
20724   grep -v '^ *+' conftest.er1 >conftest.err
20725   rm -f conftest.er1
20726   cat conftest.err >&5
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); } &&
20729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20730   { (case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_try") 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); }; } &&
20739          { ac_try='test -s conftest.$ac_objext'
20740   { (case "(($ac_try" in
20741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742   *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745   (eval "$ac_try") 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; }; then
20749
20750   { echo "$as_me:$LINENO: result: yes" >&5
20751 echo "${ECHO_T}yes" >&6; }
20752   llvm_cv_win32_elmcb_pcstr="PCSTR"
20753
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758
20759   { echo "$as_me:$LINENO: result: no" >&5
20760 echo "${ECHO_T}no" >&6; }
20761   llvm_cv_win32_elmcb_pcstr="PSTR"
20762
20763 fi
20764
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766
20767 cat >>confdefs.h <<_ACEOF
20768 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20769 _ACEOF
20770
20771 fi
20772
20773
20774
20775   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20776 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20777 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20778   echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780
20781     ac_ext=cpp
20782 ac_cpp='$CXXCPP $CPPFLAGS'
20783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786
20787     cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 #include <math.h>
20794 int
20795 main ()
20796 {
20797 float f; isnan(f);
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (ac_try="$ac_compile"
20804 case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_compile") 2>conftest.er1
20810   ac_status=$?
20811   grep -v '^ *+' conftest.er1 >conftest.err
20812   rm -f conftest.er1
20813   cat conftest.err >&5
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20817   { (case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_try") 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; } &&
20826          { ac_try='test -s conftest.$ac_objext'
20827   { (case "(($ac_try" in
20828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829   *) ac_try_echo=$ac_try;;
20830 esac
20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832   (eval "$ac_try") 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   ac_cv_func_isnan_in_math_h=yes
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841         ac_cv_func_isnan_in_math_h=no
20842 fi
20843
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845     ac_ext=c
20846 ac_cpp='$CPP $CPPFLAGS'
20847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850
20851
20852 fi
20853 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20854 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20855
20856
20857 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20858
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_ISNAN_IN_MATH_H 1
20861 _ACEOF
20862
20863 fi
20864
20865
20866   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20867 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20868 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871
20872     ac_ext=cpp
20873 ac_cpp='$CXXCPP $CPPFLAGS'
20874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20877
20878     cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884 #include <cmath>
20885 int
20886 main ()
20887 {
20888 float f; isnan(f);
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_compile") 2>conftest.er1
20901   ac_status=$?
20902   grep -v '^ *+' conftest.er1 >conftest.err
20903   rm -f conftest.er1
20904   cat conftest.err >&5
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); } &&
20907          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20908   { (case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_try") 2>&5
20914   ac_status=$?
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); }; } &&
20917          { ac_try='test -s conftest.$ac_objext'
20918   { (case "(($ac_try" in
20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920   *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923   (eval "$ac_try") 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; }; then
20927   ac_cv_func_isnan_in_cmath=yes
20928 else
20929   echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932         ac_cv_func_isnan_in_cmath=no
20933 fi
20934
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936     ac_ext=c
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941
20942
20943 fi
20944 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20945 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20946
20947 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_ISNAN_IN_CMATH 1
20951 _ACEOF
20952
20953 fi
20954
20955
20956   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20957 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20958 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20959   echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961
20962     ac_ext=cpp
20963 ac_cpp='$CXXCPP $CPPFLAGS'
20964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20967
20968     cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <cmath>
20975 int
20976 main ()
20977 {
20978 float f; std::isnan(f);
20979   ;
20980   return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987   *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990   (eval "$ac_compile") 2>conftest.er1
20991   ac_status=$?
20992   grep -v '^ *+' conftest.er1 >conftest.err
20993   rm -f conftest.er1
20994   cat conftest.err >&5
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); } &&
20997          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20998   { (case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_try") 2>&5
21004   ac_status=$?
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); }; } &&
21007          { ac_try='test -s conftest.$ac_objext'
21008   { (case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013   (eval "$ac_try") 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; }; then
21017   ac_cv_func_std_isnan_in_cmath=yes
21018 else
21019   echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022         ac_cv_func_std_isnan_in_cmath=no
21023 fi
21024
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026     ac_ext=c
21027 ac_cpp='$CPP $CPPFLAGS'
21028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21031
21032
21033 fi
21034 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21035 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21036
21037 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_STD_ISNAN_IN_CMATH 1
21041 _ACEOF
21042
21043 fi
21044
21045
21046
21047
21048   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21049 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21050 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21051   echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053
21054     ac_ext=cpp
21055 ac_cpp='$CXXCPP $CPPFLAGS'
21056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21059
21060     cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 #include <math.h>
21067 int
21068 main ()
21069 {
21070 float f; isinf(f);
21071   ;
21072   return 0;
21073 }
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079   *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082   (eval "$ac_compile") 2>conftest.er1
21083   ac_status=$?
21084   grep -v '^ *+' conftest.er1 >conftest.err
21085   rm -f conftest.er1
21086   cat conftest.err >&5
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); } &&
21089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21090   { (case "(($ac_try" in
21091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092   *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095   (eval "$ac_try") 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; } &&
21099          { ac_try='test -s conftest.$ac_objext'
21100   { (case "(($ac_try" in
21101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102   *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105   (eval "$ac_try") 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_cv_func_isinf_in_math_h=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         ac_cv_func_isinf_in_math_h=no
21115 fi
21116
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118     ac_ext=c
21119 ac_cpp='$CPP $CPPFLAGS'
21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21123
21124
21125 fi
21126 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21127 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21128
21129 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21130
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_ISINF_IN_MATH_H 1
21133 _ACEOF
21134
21135 fi
21136
21137
21138   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21139 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21140 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143
21144     ac_ext=cpp
21145 ac_cpp='$CXXCPP $CPPFLAGS'
21146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149
21150     cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h.  */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h.  */
21156 #include <cmath>
21157 int
21158 main ()
21159 {
21160 float f; isinf(f);
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169   *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172   (eval "$ac_compile") 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } &&
21179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21180   { (case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_try") 2>&5
21186   ac_status=$?
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); }; } &&
21189          { ac_try='test -s conftest.$ac_objext'
21190   { (case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195   (eval "$ac_try") 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; }; then
21199   ac_cv_func_isinf_in_cmath=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         ac_cv_func_isinf_in_cmath=no
21205 fi
21206
21207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208     ac_ext=c
21209 ac_cpp='$CPP $CPPFLAGS'
21210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21213
21214
21215 fi
21216 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21217 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21218
21219 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21220
21221 cat >>confdefs.h <<\_ACEOF
21222 #define HAVE_ISINF_IN_CMATH 1
21223 _ACEOF
21224
21225 fi
21226
21227
21228   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21229 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21230 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21231   echo $ECHO_N "(cached) $ECHO_C" >&6
21232 else
21233
21234     ac_ext=cpp
21235 ac_cpp='$CXXCPP $CPPFLAGS'
21236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21239
21240     cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246 #include <cmath>
21247 int
21248 main ()
21249 {
21250 float f; std::isinf(f);
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_compile") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } &&
21269          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21270   { (case "(($ac_try" in
21271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272   *) ac_try_echo=$ac_try;;
21273 esac
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275   (eval "$ac_try") 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; } &&
21279          { ac_try='test -s conftest.$ac_objext'
21280   { (case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_try") 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   ac_cv_func_std_isinf_in_cmath=yes
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294         ac_cv_func_std_isinf_in_cmath=no
21295 fi
21296
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298     ac_ext=c
21299 ac_cpp='$CPP $CPPFLAGS'
21300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21303
21304
21305 fi
21306 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21307 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21308
21309 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21310
21311 cat >>confdefs.h <<\_ACEOF
21312 #define HAVE_STD_ISINF_IN_CMATH 1
21313 _ACEOF
21314
21315 fi
21316
21317
21318   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21319 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21320 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21321   echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21323
21324     ac_ext=cpp
21325 ac_cpp='$CXXCPP $CPPFLAGS'
21326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21329
21330     cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 #include <ieeefp.h>
21337 int
21338 main ()
21339 {
21340 float f; finite(f);
21341   ;
21342   return 0;
21343 }
21344 _ACEOF
21345 rm -f conftest.$ac_objext
21346 if { (ac_try="$ac_compile"
21347 case "(($ac_try" in
21348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349   *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352   (eval "$ac_compile") 2>conftest.er1
21353   ac_status=$?
21354   grep -v '^ *+' conftest.er1 >conftest.err
21355   rm -f conftest.er1
21356   cat conftest.err >&5
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } &&
21359          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21360   { (case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365   (eval "$ac_try") 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; } &&
21369          { ac_try='test -s conftest.$ac_objext'
21370   { (case "(($ac_try" in
21371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372   *) ac_try_echo=$ac_try;;
21373 esac
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375   (eval "$ac_try") 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; }; then
21379   ac_cv_func_finite_in_ieeefp_h=yes
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384         ac_cv_func_finite_in_ieeefp_h=no
21385 fi
21386
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388     ac_ext=c
21389 ac_cpp='$CPP $CPPFLAGS'
21390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21393
21394
21395 fi
21396 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21397 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21398
21399 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21400
21401 cat >>confdefs.h <<\_ACEOF
21402 #define HAVE_FINITE_IN_IEEEFP_H 1
21403 _ACEOF
21404
21405 fi
21406
21407
21408
21409 if test "$llvm_cv_platform_type" = "Unix" ; then
21410
21411
21412 for ac_header in stdlib.h unistd.h
21413 do
21414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21416   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21419   echo $ECHO_N "(cached) $ECHO_C" >&6
21420 fi
21421 ac_res=`eval echo '${'$as_ac_Header'}'`
21422                { echo "$as_me:$LINENO: result: $ac_res" >&5
21423 echo "${ECHO_T}$ac_res" >&6; }
21424 else
21425   # Is the header compilable?
21426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h.  */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h.  */
21434 $ac_includes_default
21435 #include <$ac_header>
21436 _ACEOF
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441   *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444   (eval "$ac_compile") 2>conftest.er1
21445   ac_status=$?
21446   grep -v '^ *+' conftest.er1 >conftest.err
21447   rm -f conftest.er1
21448   cat conftest.err >&5
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); } &&
21451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21452   { (case "(($ac_try" in
21453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454   *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457   (eval "$ac_try") 2>&5
21458   ac_status=$?
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); }; } &&
21461          { ac_try='test -s conftest.$ac_objext'
21462   { (case "(($ac_try" in
21463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464   *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467   (eval "$ac_try") 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; }; then
21471   ac_header_compiler=yes
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476         ac_header_compiler=no
21477 fi
21478
21479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21481 echo "${ECHO_T}$ac_header_compiler" >&6; }
21482
21483 # Is the header present?
21484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h.  */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h.  */
21492 #include <$ac_header>
21493 _ACEOF
21494 if { (ac_try="$ac_cpp conftest.$ac_ext"
21495 case "(($ac_try" in
21496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497   *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } >/dev/null; then
21507   if test -s conftest.err; then
21508     ac_cpp_err=$ac_c_preproc_warn_flag
21509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21510   else
21511     ac_cpp_err=
21512   fi
21513 else
21514   ac_cpp_err=yes
21515 fi
21516 if test -z "$ac_cpp_err"; then
21517   ac_header_preproc=yes
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522   ac_header_preproc=no
21523 fi
21524
21525 rm -f conftest.err conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21527 echo "${ECHO_T}$ac_header_preproc" >&6; }
21528
21529 # So?  What about this header?
21530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21531   yes:no: )
21532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21536     ac_header_preproc=yes
21537     ;;
21538   no:yes:* )
21539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21551     ( cat <<\_ASBOX
21552 ## ------------------------------------ ##
21553 ## Report this to http://llvm.org/bugs/ ##
21554 ## ------------------------------------ ##
21555 _ASBOX
21556      ) | sed "s/^/$as_me: WARNING:     /" >&2
21557     ;;
21558 esac
21559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21562   echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564   eval "$as_ac_Header=\$ac_header_preproc"
21565 fi
21566 ac_res=`eval echo '${'$as_ac_Header'}'`
21567                { echo "$as_me:$LINENO: result: $ac_res" >&5
21568 echo "${ECHO_T}$ac_res" >&6; }
21569
21570 fi
21571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21572   cat >>confdefs.h <<_ACEOF
21573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21574 _ACEOF
21575
21576 fi
21577
21578 done
21579
21580
21581 for ac_func in getpagesize
21582 do
21583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21587   echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589   cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21597 #define $ac_func innocuous_$ac_func
21598
21599 /* System header to define __stub macros and hopefully few prototypes,
21600     which can conflict with char $ac_func (); below.
21601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21602     <limits.h> exists even on freestanding compilers.  */
21603
21604 #ifdef __STDC__
21605 # include <limits.h>
21606 #else
21607 # include <assert.h>
21608 #endif
21609
21610 #undef $ac_func
21611
21612 /* Override any GCC internal prototype to avoid an error.
21613    Use char because int might match the return type of a GCC
21614    builtin and then its argument prototype would still apply.  */
21615 #ifdef __cplusplus
21616 extern "C"
21617 #endif
21618 char $ac_func ();
21619 /* The GNU C library defines this for functions which it implements
21620     to always fail with ENOSYS.  Some functions are actually named
21621     something starting with __ and the normal name is an alias.  */
21622 #if defined __stub_$ac_func || defined __stub___$ac_func
21623 choke me
21624 #endif
21625
21626 int
21627 main ()
21628 {
21629 return $ac_func ();
21630   ;
21631   return 0;
21632 }
21633 _ACEOF
21634 rm -f conftest.$ac_objext conftest$ac_exeext
21635 if { (ac_try="$ac_link"
21636 case "(($ac_try" in
21637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638   *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641   (eval "$ac_link") 2>conftest.er1
21642   ac_status=$?
21643   grep -v '^ *+' conftest.er1 >conftest.err
21644   rm -f conftest.er1
21645   cat conftest.err >&5
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); } &&
21648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21649   { (case "(($ac_try" in
21650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651   *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654   (eval "$ac_try") 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; } &&
21658          { ac_try='test -s conftest$ac_exeext'
21659   { (case "(($ac_try" in
21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661   *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664   (eval "$ac_try") 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); }; }; then
21668   eval "$as_ac_var=yes"
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673         eval "$as_ac_var=no"
21674 fi
21675
21676 rm -f core conftest.err conftest.$ac_objext \
21677       conftest$ac_exeext conftest.$ac_ext
21678 fi
21679 ac_res=`eval echo '${'$as_ac_var'}'`
21680                { echo "$as_me:$LINENO: result: $ac_res" >&5
21681 echo "${ECHO_T}$ac_res" >&6; }
21682 if test `eval echo '${'$as_ac_var'}'` = yes; then
21683   cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21685 _ACEOF
21686
21687 fi
21688 done
21689
21690 { echo "$as_me:$LINENO: checking for working mmap" >&5
21691 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21692 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21693   echo $ECHO_N "(cached) $ECHO_C" >&6
21694 else
21695   if test "$cross_compiling" = yes; then
21696   ac_cv_func_mmap_fixed_mapped=no
21697 else
21698   cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 $ac_includes_default
21705 /* malloc might have been renamed as rpl_malloc. */
21706 #undef malloc
21707
21708 /* Thanks to Mike Haertel and Jim Avera for this test.
21709    Here is a matrix of mmap possibilities:
21710         mmap private not fixed
21711         mmap private fixed at somewhere currently unmapped
21712         mmap private fixed at somewhere already mapped
21713         mmap shared not fixed
21714         mmap shared fixed at somewhere currently unmapped
21715         mmap shared fixed at somewhere already mapped
21716    For private mappings, we should verify that changes cannot be read()
21717    back from the file, nor mmap's back from the file at a different
21718    address.  (There have been systems where private was not correctly
21719    implemented like the infamous i386 svr4.0, and systems where the
21720    VM page cache was not coherent with the file system buffer cache
21721    like early versions of FreeBSD and possibly contemporary NetBSD.)
21722    For shared mappings, we should conversely verify that changes get
21723    propagated back to all the places they're supposed to be.
21724
21725    Grep wants private fixed already mapped.
21726    The main things grep needs to know about mmap are:
21727    * does it exist and is it safe to write into the mmap'd area
21728    * how to use it (BSD variants)  */
21729
21730 #include <fcntl.h>
21731 #include <sys/mman.h>
21732
21733 #if !STDC_HEADERS && !HAVE_STDLIB_H
21734 char *malloc ();
21735 #endif
21736
21737 /* This mess was copied from the GNU getpagesize.h.  */
21738 #if !HAVE_GETPAGESIZE
21739 /* Assume that all systems that can run configure have sys/param.h.  */
21740 # if !HAVE_SYS_PARAM_H
21741 #  define HAVE_SYS_PARAM_H 1
21742 # endif
21743
21744 # ifdef _SC_PAGESIZE
21745 #  define getpagesize() sysconf(_SC_PAGESIZE)
21746 # else /* no _SC_PAGESIZE */
21747 #  if HAVE_SYS_PARAM_H
21748 #   include <sys/param.h>
21749 #   ifdef EXEC_PAGESIZE
21750 #    define getpagesize() EXEC_PAGESIZE
21751 #   else /* no EXEC_PAGESIZE */
21752 #    ifdef NBPG
21753 #     define getpagesize() NBPG * CLSIZE
21754 #     ifndef CLSIZE
21755 #      define CLSIZE 1
21756 #     endif /* no CLSIZE */
21757 #    else /* no NBPG */
21758 #     ifdef NBPC
21759 #      define getpagesize() NBPC
21760 #     else /* no NBPC */
21761 #      ifdef PAGESIZE
21762 #       define getpagesize() PAGESIZE
21763 #      endif /* PAGESIZE */
21764 #     endif /* no NBPC */
21765 #    endif /* no NBPG */
21766 #   endif /* no EXEC_PAGESIZE */
21767 #  else /* no HAVE_SYS_PARAM_H */
21768 #   define getpagesize() 8192   /* punt totally */
21769 #  endif /* no HAVE_SYS_PARAM_H */
21770 # endif /* no _SC_PAGESIZE */
21771
21772 #endif /* no HAVE_GETPAGESIZE */
21773
21774 int
21775 main ()
21776 {
21777   char *data, *data2, *data3;
21778   int i, pagesize;
21779   int fd;
21780
21781   pagesize = getpagesize ();
21782
21783   /* First, make a file with some known garbage in it. */
21784   data = (char *) malloc (pagesize);
21785   if (!data)
21786     return 1;
21787   for (i = 0; i < pagesize; ++i)
21788     *(data + i) = rand ();
21789   umask (0);
21790   fd = creat ("conftest.mmap", 0600);
21791   if (fd < 0)
21792     return 1;
21793   if (write (fd, data, pagesize) != pagesize)
21794     return 1;
21795   close (fd);
21796
21797   /* Next, try to mmap the file at a fixed address which already has
21798      something else allocated at it.  If we can, also make sure that
21799      we see the same garbage.  */
21800   fd = open ("conftest.mmap", O_RDWR);
21801   if (fd < 0)
21802     return 1;
21803   data2 = (char *) malloc (2 * pagesize);
21804   if (!data2)
21805     return 1;
21806   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21807   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21808                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21809     return 1;
21810   for (i = 0; i < pagesize; ++i)
21811     if (*(data + i) != *(data2 + i))
21812       return 1;
21813
21814   /* Finally, make sure that changes to the mapped area do not
21815      percolate back to the file as seen by read().  (This is a bug on
21816      some variants of i386 svr4.0.)  */
21817   for (i = 0; i < pagesize; ++i)
21818     *(data2 + i) = *(data2 + i) + 1;
21819   data3 = (char *) malloc (pagesize);
21820   if (!data3)
21821     return 1;
21822   if (read (fd, data3, pagesize) != pagesize)
21823     return 1;
21824   for (i = 0; i < pagesize; ++i)
21825     if (*(data + i) != *(data3 + i))
21826       return 1;
21827   close (fd);
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835   *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838   (eval "$ac_link") 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842   { (case "(($ac_try" in
21843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844   *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847   (eval "$ac_try") 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ac_cv_func_mmap_fixed_mapped=yes
21852 else
21853   echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ( exit $ac_status )
21858 ac_cv_func_mmap_fixed_mapped=no
21859 fi
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21861 fi
21862
21863
21864 fi
21865 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21866 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21868
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_MMAP 1
21871 _ACEOF
21872
21873 fi
21874 rm -f conftest.mmap
21875
21876   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21877 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21878 if test "${ac_cv_func_mmap_file+set}" = set; then
21879   echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881    ac_ext=c
21882 ac_cpp='$CPP $CPPFLAGS'
21883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21886
21887   if test "$cross_compiling" = yes; then
21888   ac_cv_func_mmap_file=no
21889 else
21890   cat >conftest.$ac_ext <<_ACEOF
21891
21892     /* confdefs.h.  */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h.  */
21897
21898 #include <sys/types.h>
21899 #include <sys/mman.h>
21900 #include <fcntl.h>
21901
21902 int
21903 main ()
21904 {
21905
21906   int fd;
21907   fd = creat ("foo",0777);
21908   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21909   unlink ("foo");
21910   return (fd != (int) MAP_FAILED);
21911   ;
21912   return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest$ac_exeext
21916 if { (ac_try="$ac_link"
21917 case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_link") 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21926   { (case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931   (eval "$ac_try") 2>&5
21932   ac_status=$?
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); }; }; then
21935   ac_cv_func_mmap_file=yes
21936 else
21937   echo "$as_me: program exited with status $ac_status" >&5
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941 ( exit $ac_status )
21942 ac_cv_func_mmap_file=no
21943 fi
21944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21945 fi
21946
21947
21948   ac_ext=c
21949 ac_cpp='$CPP $CPPFLAGS'
21950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21953
21954
21955 fi
21956 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21957 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21958 if test "$ac_cv_func_mmap_file" = yes; then
21959
21960 cat >>confdefs.h <<\_ACEOF
21961 #define HAVE_MMAP_FILE
21962 _ACEOF
21963
21964    MMAP_FILE=yes
21965
21966 fi
21967
21968   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21969 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21970 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   if test "$llvm_cv_os_type" = "Interix" ; then
21974    ac_cv_need_dev_zero_for_mmap=yes
21975  else
21976    ac_cv_need_dev_zero_for_mmap=no
21977  fi
21978
21979 fi
21980 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21981 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21982 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21983
21984 cat >>confdefs.h <<\_ACEOF
21985 #define NEED_DEV_ZERO_FOR_MMAP 1
21986 _ACEOF
21987
21988 fi
21989
21990   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21991   then
21992     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21993 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21994   fi
21995   if test "$ac_cv_func_mmap_file" = "no"
21996   then
21997     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21998 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21999   fi
22000 fi
22001
22002 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22003 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22004 ac_ext=cpp
22005 ac_cpp='$CXXCPP $CPPFLAGS'
22006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22009
22010 cat >conftest.$ac_ext <<_ACEOF
22011
22012   /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017
22018     int main() {
22019       volatile unsigned long val = 1;
22020       __sync_synchronize();
22021       __sync_val_compare_and_swap(&val, 1, 0);
22022       __sync_add_and_fetch(&val, 1);
22023       __sync_sub_and_fetch(&val, 1);
22024       return 0;
22025     }
22026
22027
22028 _ACEOF
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (ac_try="$ac_link"
22031 case "(($ac_try" in
22032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033   *) ac_try_echo=$ac_try;;
22034 esac
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036   (eval "$ac_link") 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } &&
22043          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22044   { (case "(($ac_try" in
22045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046   *) ac_try_echo=$ac_try;;
22047 esac
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049   (eval "$ac_try") 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; } &&
22053          { ac_try='test -s conftest$ac_exeext'
22054   { (case "(($ac_try" in
22055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056   *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059   (eval "$ac_try") 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; }; then
22063
22064   { echo "$as_me:$LINENO: result: yes" >&5
22065 echo "${ECHO_T}yes" >&6; }
22066
22067 cat >>confdefs.h <<\_ACEOF
22068 #define LLVM_HAS_ATOMICS 1
22069 _ACEOF
22070
22071
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076
22077   { echo "$as_me:$LINENO: result: no" >&5
22078 echo "${ECHO_T}no" >&6; }
22079
22080 cat >>confdefs.h <<\_ACEOF
22081 #define LLVM_HAS_ATOMICS 0
22082 _ACEOF
22083
22084   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22085 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22086
22087 fi
22088
22089 rm -f core conftest.err conftest.$ac_objext \
22090       conftest$ac_exeext conftest.$ac_ext
22091 ac_ext=c
22092 ac_cpp='$CPP $CPPFLAGS'
22093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22096
22097
22098
22099 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22100   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22101 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22102 if test "${llvm_cv_linux_mixed+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105    ac_ext=c
22106 ac_cpp='$CPP $CPPFLAGS'
22107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22110
22111   cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117 #ifndef __x86_64__
22118        error: Not x86-64 even if uname says so!
22119       #endif
22120
22121 int
22122 main ()
22123 {
22124
22125   ;
22126   return 0;
22127 }
22128 _ACEOF
22129 rm -f conftest.$ac_objext
22130 if { (ac_try="$ac_compile"
22131 case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_compile") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } &&
22143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22144   { (case "(($ac_try" in
22145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146   *) ac_try_echo=$ac_try;;
22147 esac
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149   (eval "$ac_try") 2>&5
22150   ac_status=$?
22151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152   (exit $ac_status); }; } &&
22153          { ac_try='test -s conftest.$ac_objext'
22154   { (case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_try") 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); }; }; then
22163   llvm_cv_linux_mixed=no
22164 else
22165   echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168         llvm_cv_linux_mixed=yes
22169 fi
22170
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172   ac_ext=c
22173 ac_cpp='$CPP $CPPFLAGS'
22174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22177
22178
22179 fi
22180 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22181 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22182
22183   if test "$llvm_cv_linux_mixed" = "yes"; then
22184     llvm_cv_target_arch="x86"
22185     ARCH="x86"
22186   fi
22187 fi
22188
22189
22190 for ac_func in __dso_handle
22191 do
22192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22196   echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198   cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22206 #define $ac_func innocuous_$ac_func
22207
22208 /* System header to define __stub macros and hopefully few prototypes,
22209     which can conflict with char $ac_func (); below.
22210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22211     <limits.h> exists even on freestanding compilers.  */
22212
22213 #ifdef __STDC__
22214 # include <limits.h>
22215 #else
22216 # include <assert.h>
22217 #endif
22218
22219 #undef $ac_func
22220
22221 /* Override any GCC internal prototype to avoid an error.
22222    Use char because int might match the return type of a GCC
22223    builtin and then its argument prototype would still apply.  */
22224 #ifdef __cplusplus
22225 extern "C"
22226 #endif
22227 char $ac_func ();
22228 /* The GNU C library defines this for functions which it implements
22229     to always fail with ENOSYS.  Some functions are actually named
22230     something starting with __ and the normal name is an alias.  */
22231 #if defined __stub_$ac_func || defined __stub___$ac_func
22232 choke me
22233 #endif
22234
22235 int
22236 main ()
22237 {
22238 return $ac_func ();
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (ac_try="$ac_link"
22245 case "(($ac_try" in
22246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247   *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250   (eval "$ac_link") 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } &&
22257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22258   { (case "(($ac_try" in
22259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260   *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263   (eval "$ac_try") 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; } &&
22267          { ac_try='test -s conftest$ac_exeext'
22268   { (case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_try") 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; }; then
22277   eval "$as_ac_var=yes"
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282         eval "$as_ac_var=no"
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext \
22286       conftest$ac_exeext conftest.$ac_ext
22287 fi
22288 ac_res=`eval echo '${'$as_ac_var'}'`
22289                { echo "$as_me:$LINENO: result: $ac_res" >&5
22290 echo "${ECHO_T}$ac_res" >&6; }
22291 if test `eval echo '${'$as_ac_var'}'` = yes; then
22292   cat >>confdefs.h <<_ACEOF
22293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22294 _ACEOF
22295
22296 fi
22297 done
22298
22299
22300 SHLIBEXT=$libltdl_cv_shlibext
22301
22302
22303 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22304
22305
22306 if test "${prefix}" = "NONE" ; then
22307   prefix="/usr/local"
22308 fi
22309 eval LLVM_PREFIX="${prefix}";
22310 eval LLVM_BINDIR="${prefix}/bin";
22311 eval LLVM_LIBDIR="${prefix}/lib";
22312 eval LLVM_DATADIR="${prefix}/share/llvm";
22313 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22314 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22315 eval LLVM_INCLUDEDIR="${prefix}/include";
22316 eval LLVM_INFODIR="${prefix}/info";
22317 eval LLVM_MANDIR="${prefix}/man";
22318 LLVM_CONFIGTIME=`date`
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22331   LLVM_CONFIGTIME="(timestamp not enabled)"
22332 fi
22333
22334
22335 cat >>confdefs.h <<_ACEOF
22336 #define LLVM_PREFIX "$LLVM_PREFIX"
22337 _ACEOF
22338
22339
22340 cat >>confdefs.h <<_ACEOF
22341 #define LLVM_BINDIR "$LLVM_BINDIR"
22342 _ACEOF
22343
22344
22345 cat >>confdefs.h <<_ACEOF
22346 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22347 _ACEOF
22348
22349
22350 cat >>confdefs.h <<_ACEOF
22351 #define LLVM_DATADIR "$LLVM_DATADIR"
22352 _ACEOF
22353
22354
22355 cat >>confdefs.h <<_ACEOF
22356 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22357 _ACEOF
22358
22359
22360 cat >>confdefs.h <<_ACEOF
22361 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22362 _ACEOF
22363
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22367 _ACEOF
22368
22369
22370 cat >>confdefs.h <<_ACEOF
22371 #define LLVM_INFODIR "$LLVM_INFODIR"
22372 _ACEOF
22373
22374
22375 cat >>confdefs.h <<_ACEOF
22376 #define LLVM_MANDIR "$LLVM_MANDIR"
22377 _ACEOF
22378
22379
22380 cat >>confdefs.h <<_ACEOF
22381 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22382 _ACEOF
22383
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define LLVM_HOST_TRIPLE "$host"
22387 _ACEOF
22388
22389
22390 cat >>confdefs.h <<_ACEOF
22391 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22392 _ACEOF
22393
22394
22395 if test "$BINDINGS_TO_BUILD" = auto ; then
22396   BINDINGS_TO_BUILD=""
22397   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22398     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22399   fi
22400 fi
22401 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22402
22403
22404 ALL_BINDINGS=ocaml
22405
22406
22407 binding_prereqs_failed=0
22408 for a_binding in $BINDINGS_TO_BUILD ; do
22409   case "$a_binding" in
22410   ocaml)
22411     if test "x$OCAMLC" = x ; then
22412       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22413 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22414       binding_prereqs_failed=1
22415     fi
22416     if test "x$OCAMLDEP" = x ; then
22417       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22418 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22419       binding_prereqs_failed=1
22420     fi
22421     if test "x$OCAMLOPT" = x ; then
22422       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22423 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22424           fi
22425     if test "x$with_ocaml_libdir" != xauto ; then
22426       OCAML_LIBDIR=$with_ocaml_libdir
22427
22428     else
22429       ocaml_stdlib="`"$OCAMLC" -where`"
22430       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22431       then
22432         # ocaml stdlib is beneath our prefix; use stdlib
22433         OCAML_LIBDIR=$ocaml_stdlib
22434
22435       else
22436         # ocaml stdlib is outside our prefix; use libdir/ocaml
22437         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22438
22439       fi
22440     fi
22441     ;;
22442   esac
22443 done
22444 if test "$binding_prereqs_failed" = 1 ; then
22445   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22446 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22447    { (exit 1); exit 1; }; }
22448 fi
22449
22450 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22451 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22452 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22453   echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455    ac_ext=cpp
22456 ac_cpp='$CXXCPP $CPPFLAGS'
22457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22460
22461   oldcxxflags="$CXXFLAGS"
22462   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22463   cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22470 int
22471 main ()
22472 {
22473 X<int>().f();
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 rm -f conftest.$ac_objext
22479 if { (ac_try="$ac_compile"
22480 case "(($ac_try" in
22481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482   *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485   (eval "$ac_compile") 2>conftest.er1
22486   ac_status=$?
22487   grep -v '^ *+' conftest.er1 >conftest.err
22488   rm -f conftest.er1
22489   cat conftest.err >&5
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); } &&
22492          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22493   { (case "(($ac_try" in
22494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495   *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498   (eval "$ac_try") 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); }; } &&
22502          { ac_try='test -s conftest.$ac_objext'
22503   { (case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_try") 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; }; then
22512   llvm_cv_cxx_visibility_inlines_hidden=yes
22513 else
22514   echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517         llvm_cv_cxx_visibility_inlines_hidden=no
22518 fi
22519
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521   CXXFLAGS="$oldcxxflags"
22522   ac_ext=c
22523 ac_cpp='$CPP $CPPFLAGS'
22524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22527
22528
22529 fi
22530 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22531 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22532 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22533   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22534
22535 else
22536   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22537
22538 fi
22539
22540
22541 if test "$llvm_cv_link_use_r" = "yes" ; then
22542   RPATH="-Wl,-R"
22543 else
22544   RPATH="-Wl,-rpath"
22545 fi
22546
22547
22548 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22549   RDYNAMIC="-Wl,-export-dynamic"
22550 else
22551   RDYNAMIC=""
22552 fi
22553
22554
22555
22556 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22557
22558
22559
22560
22561
22562
22563 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22564
22565 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22566
22567 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22568
22569 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22570
22571 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22572
22573
22574 ac_config_files="$ac_config_files Makefile.config"
22575
22576
22577 ac_config_files="$ac_config_files llvm.spec"
22578
22579
22580 ac_config_files="$ac_config_files docs/doxygen.cfg"
22581
22582
22583 if test "${clang_src_root}" = ""; then
22584   clang_src_root="$srcdir/tools/clang"
22585 fi
22586 if test -f ${clang_src_root}/README.txt; then
22587     configh="include/clang/Config/config.h"
22588   doxy="docs/doxygen.cfg"
22589   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22590
22591   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22592
22593 fi
22594
22595 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22596
22597
22598 test "x$program_prefix" = "xNONE" && program_prefix=""
22599
22600
22601
22602 ac_config_commands="$ac_config_commands setup"
22603
22604 ac_config_commands="$ac_config_commands Makefile"
22605
22606
22607 ac_config_commands="$ac_config_commands Makefile.common"
22608
22609
22610 ac_config_commands="$ac_config_commands examples/Makefile"
22611
22612
22613 ac_config_commands="$ac_config_commands lib/Makefile"
22614
22615
22616 ac_config_commands="$ac_config_commands runtime/Makefile"
22617
22618
22619 ac_config_commands="$ac_config_commands test/Makefile"
22620
22621
22622 ac_config_commands="$ac_config_commands test/Makefile.tests"
22623
22624
22625 ac_config_commands="$ac_config_commands unittests/Makefile"
22626
22627
22628 ac_config_commands="$ac_config_commands tools/Makefile"
22629
22630
22631 ac_config_commands="$ac_config_commands utils/Makefile"
22632
22633
22634 ac_config_commands="$ac_config_commands projects/Makefile"
22635
22636
22637 ac_config_commands="$ac_config_commands bindings/Makefile"
22638
22639
22640 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22641
22642
22643
22644 cat >confcache <<\_ACEOF
22645 # This file is a shell script that caches the results of configure
22646 # tests run on this system so they can be shared between configure
22647 # scripts and configure runs, see configure's option --config-cache.
22648 # It is not useful on other systems.  If it contains results you don't
22649 # want to keep, you may remove or edit it.
22650 #
22651 # config.status only pays attention to the cache file if you give it
22652 # the --recheck option to rerun configure.
22653 #
22654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22656 # following values.
22657
22658 _ACEOF
22659
22660 # The following way of writing the cache mishandles newlines in values,
22661 # but we know of no workaround that is simple, portable, and efficient.
22662 # So, we kill variables containing newlines.
22663 # Ultrix sh set writes to stderr and can't be redirected directly,
22664 # and sets the high bit in the cache file unless we assign to the vars.
22665 (
22666   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22667     eval ac_val=\$$ac_var
22668     case $ac_val in #(
22669     *${as_nl}*)
22670       case $ac_var in #(
22671       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22673       esac
22674       case $ac_var in #(
22675       _ | IFS | as_nl) ;; #(
22676       *) $as_unset $ac_var ;;
22677       esac ;;
22678     esac
22679   done
22680
22681   (set) 2>&1 |
22682     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22683     *${as_nl}ac_space=\ *)
22684       # `set' does not quote correctly, so add quotes (double-quote
22685       # substitution turns \\\\ into \\, and sed turns \\ into \).
22686       sed -n \
22687         "s/'/'\\\\''/g;
22688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22689       ;; #(
22690     *)
22691       # `set' quotes correctly as required by POSIX, so do not add quotes.
22692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22693       ;;
22694     esac |
22695     sort
22696 ) |
22697   sed '
22698      /^ac_cv_env_/b end
22699      t clear
22700      :clear
22701      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22702      t end
22703      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22704      :end' >>confcache
22705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22706   if test -w "$cache_file"; then
22707     test "x$cache_file" != "x/dev/null" &&
22708       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22709 echo "$as_me: updating cache $cache_file" >&6;}
22710     cat confcache >$cache_file
22711   else
22712     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22713 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22714   fi
22715 fi
22716 rm -f confcache
22717
22718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22719 # Let make expand exec_prefix.
22720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22721
22722 DEFS=-DHAVE_CONFIG_H
22723
22724 ac_libobjs=
22725 ac_ltlibobjs=
22726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22727   # 1. Remove the extension, and $U if already installed.
22728   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22729   ac_i=`echo "$ac_i" | sed "$ac_script"`
22730   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22731   #    will be set to the directory where LIBOBJS objects are built.
22732   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22733   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22734 done
22735 LIBOBJS=$ac_libobjs
22736
22737 LTLIBOBJS=$ac_ltlibobjs
22738
22739
22740 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22741   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22742 Usually this means the macro was only invoked conditionally." >&5
22743 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22744 Usually this means the macro was only invoked conditionally." >&2;}
22745    { (exit 1); exit 1; }; }
22746 fi
22747 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22748   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&5
22750 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22751 Usually this means the macro was only invoked conditionally." >&2;}
22752    { (exit 1); exit 1; }; }
22753 fi
22754
22755 : ${CONFIG_STATUS=./config.status}
22756 ac_clean_files_save=$ac_clean_files
22757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22760 cat >$CONFIG_STATUS <<_ACEOF
22761 #! $SHELL
22762 # Generated by $as_me.
22763 # Run this file to recreate the current configuration.
22764 # Compiler output produced by configure, useful for debugging
22765 # configure, is in config.log if it exists.
22766
22767 debug=false
22768 ac_cs_recheck=false
22769 ac_cs_silent=false
22770 SHELL=\${CONFIG_SHELL-$SHELL}
22771 _ACEOF
22772
22773 cat >>$CONFIG_STATUS <<\_ACEOF
22774 ## --------------------- ##
22775 ## M4sh Initialization.  ##
22776 ## --------------------- ##
22777
22778 # Be Bourne compatible
22779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22780   emulate sh
22781   NULLCMD=:
22782   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22783   # is contrary to our usage.  Disable this feature.
22784   alias -g '${1+"$@"}'='"$@"'
22785   setopt NO_GLOB_SUBST
22786 else
22787   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22788 fi
22789 BIN_SH=xpg4; export BIN_SH # for Tru64
22790 DUALCASE=1; export DUALCASE # for MKS sh
22791
22792
22793 # PATH needs CR
22794 # Avoid depending upon Character Ranges.
22795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22798 as_cr_digits='0123456789'
22799 as_cr_alnum=$as_cr_Letters$as_cr_digits
22800
22801 # The user is always right.
22802 if test "${PATH_SEPARATOR+set}" != set; then
22803   echo "#! /bin/sh" >conf$$.sh
22804   echo  "exit 0"   >>conf$$.sh
22805   chmod +x conf$$.sh
22806   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22807     PATH_SEPARATOR=';'
22808   else
22809     PATH_SEPARATOR=:
22810   fi
22811   rm -f conf$$.sh
22812 fi
22813
22814 # Support unset when possible.
22815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22816   as_unset=unset
22817 else
22818   as_unset=false
22819 fi
22820
22821
22822 # IFS
22823 # We need space, tab and new line, in precisely that order.  Quoting is
22824 # there to prevent editors from complaining about space-tab.
22825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22826 # splitting by setting IFS to empty value.)
22827 as_nl='
22828 '
22829 IFS=" ""        $as_nl"
22830
22831 # Find who we are.  Look in the path if we contain no directory separator.
22832 case $0 in
22833   *[\\/]* ) as_myself=$0 ;;
22834   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22835 for as_dir in $PATH
22836 do
22837   IFS=$as_save_IFS
22838   test -z "$as_dir" && as_dir=.
22839   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22840 done
22841 IFS=$as_save_IFS
22842
22843      ;;
22844 esac
22845 # We did not find ourselves, most probably we were run as `sh COMMAND'
22846 # in which case we are not to be found in the path.
22847 if test "x$as_myself" = x; then
22848   as_myself=$0
22849 fi
22850 if test ! -f "$as_myself"; then
22851   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22852   { (exit 1); exit 1; }
22853 fi
22854
22855 # Work around bugs in pre-3.0 UWIN ksh.
22856 for as_var in ENV MAIL MAILPATH
22857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22858 done
22859 PS1='$ '
22860 PS2='> '
22861 PS4='+ '
22862
22863 # NLS nuisances.
22864 for as_var in \
22865   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22866   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22867   LC_TELEPHONE LC_TIME
22868 do
22869   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22870     eval $as_var=C; export $as_var
22871   else
22872     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22873   fi
22874 done
22875
22876 # Required to use basename.
22877 if expr a : '\(a\)' >/dev/null 2>&1 &&
22878    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22879   as_expr=expr
22880 else
22881   as_expr=false
22882 fi
22883
22884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22885   as_basename=basename
22886 else
22887   as_basename=false
22888 fi
22889
22890
22891 # Name of the executable.
22892 as_me=`$as_basename -- "$0" ||
22893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22894          X"$0" : 'X\(//\)$' \| \
22895          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22896 echo X/"$0" |
22897     sed '/^.*\/\([^/][^/]*\)\/*$/{
22898             s//\1/
22899             q
22900           }
22901           /^X\/\(\/\/\)$/{
22902             s//\1/
22903             q
22904           }
22905           /^X\/\(\/\).*/{
22906             s//\1/
22907             q
22908           }
22909           s/.*/./; q'`
22910
22911 # CDPATH.
22912 $as_unset CDPATH
22913
22914
22915
22916   as_lineno_1=$LINENO
22917   as_lineno_2=$LINENO
22918   test "x$as_lineno_1" != "x$as_lineno_2" &&
22919   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22920
22921   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22922   # uniformly replaced by the line number.  The first 'sed' inserts a
22923   # line-number line after each line using $LINENO; the second 'sed'
22924   # does the real work.  The second script uses 'N' to pair each
22925   # line-number line with the line containing $LINENO, and appends
22926   # trailing '-' during substitution so that $LINENO is not a special
22927   # case at line end.
22928   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22929   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22930   # E. McMahon (1931-1989) for sed's syntax.  :-)
22931   sed -n '
22932     p
22933     /[$]LINENO/=
22934   ' <$as_myself |
22935     sed '
22936       s/[$]LINENO.*/&-/
22937       t lineno
22938       b
22939       :lineno
22940       N
22941       :loop
22942       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22943       t loop
22944       s/-\n.*//
22945     ' >$as_me.lineno &&
22946   chmod +x "$as_me.lineno" ||
22947     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22948    { (exit 1); exit 1; }; }
22949
22950   # Don't try to exec as it changes $[0], causing all sort of problems
22951   # (the dirname of $[0] is not the place where we might find the
22952   # original and so on.  Autoconf is especially sensitive to this).
22953   . "./$as_me.lineno"
22954   # Exit status is that of the last command.
22955   exit
22956 }
22957
22958
22959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22960   as_dirname=dirname
22961 else
22962   as_dirname=false
22963 fi
22964
22965 ECHO_C= ECHO_N= ECHO_T=
22966 case `echo -n x` in
22967 -n*)
22968   case `echo 'x\c'` in
22969   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22970   *)   ECHO_C='\c';;
22971   esac;;
22972 *)
22973   ECHO_N='-n';;
22974 esac
22975
22976 if expr a : '\(a\)' >/dev/null 2>&1 &&
22977    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22978   as_expr=expr
22979 else
22980   as_expr=false
22981 fi
22982
22983 rm -f conf$$ conf$$.exe conf$$.file
22984 if test -d conf$$.dir; then
22985   rm -f conf$$.dir/conf$$.file
22986 else
22987   rm -f conf$$.dir
22988   mkdir conf$$.dir
22989 fi
22990 echo >conf$$.file
22991 if ln -s conf$$.file conf$$ 2>/dev/null; then
22992   as_ln_s='ln -s'
22993   # ... but there are two gotchas:
22994   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22995   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22996   # In both cases, we have to default to `cp -p'.
22997   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22998     as_ln_s='cp -p'
22999 elif ln conf$$.file conf$$ 2>/dev/null; then
23000   as_ln_s=ln
23001 else
23002   as_ln_s='cp -p'
23003 fi
23004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23005 rmdir conf$$.dir 2>/dev/null
23006
23007 if mkdir -p . 2>/dev/null; then
23008   as_mkdir_p=:
23009 else
23010   test -d ./-p && rmdir ./-p
23011   as_mkdir_p=false
23012 fi
23013
23014 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23015 # systems may use methods other than mode bits to determine executability.
23016 cat >conf$$.file <<_ASEOF
23017 #! /bin/sh
23018 exit 0
23019 _ASEOF
23020 chmod +x conf$$.file
23021 if test -x conf$$.file >/dev/null 2>&1; then
23022   as_executable_p="test -x"
23023 else
23024   as_executable_p=:
23025 fi
23026 rm -f conf$$.file
23027
23028 # Sed expression to map a string onto a valid CPP name.
23029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23030
23031 # Sed expression to map a string onto a valid variable name.
23032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23033
23034
23035 exec 6>&1
23036
23037 # Save the log message, to keep $[0] and so on meaningful, and to
23038 # report actual input values of CONFIG_FILES etc. instead of their
23039 # values after options handling.
23040 ac_log="
23041 This file was extended by LLVM $as_me 3.4svn, which was
23042 generated by GNU Autoconf 2.60.  Invocation command line was
23043
23044   CONFIG_FILES    = $CONFIG_FILES
23045   CONFIG_HEADERS  = $CONFIG_HEADERS
23046   CONFIG_LINKS    = $CONFIG_LINKS
23047   CONFIG_COMMANDS = $CONFIG_COMMANDS
23048   $ $0 $@
23049
23050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23051 "
23052
23053 _ACEOF
23054
23055 cat >>$CONFIG_STATUS <<_ACEOF
23056 # Files that config.status was made for.
23057 config_files="$ac_config_files"
23058 config_headers="$ac_config_headers"
23059 config_commands="$ac_config_commands"
23060
23061 _ACEOF
23062
23063 cat >>$CONFIG_STATUS <<\_ACEOF
23064 ac_cs_usage="\
23065 \`$as_me' instantiates files from templates according to the
23066 current configuration.
23067
23068 Usage: $0 [OPTIONS] [FILE]...
23069
23070   -h, --help       print this help, then exit
23071   -V, --version    print version number, then exit
23072   -q, --quiet      do not print progress messages
23073   -d, --debug      don't remove temporary files
23074       --recheck    update $as_me by reconfiguring in the same conditions
23075   --file=FILE[:TEMPLATE]
23076                    instantiate the configuration file FILE
23077   --header=FILE[:TEMPLATE]
23078                    instantiate the configuration header FILE
23079
23080 Configuration files:
23081 $config_files
23082
23083 Configuration headers:
23084 $config_headers
23085
23086 Configuration commands:
23087 $config_commands
23088
23089 Report bugs to <bug-autoconf@gnu.org>."
23090
23091 _ACEOF
23092 cat >>$CONFIG_STATUS <<_ACEOF
23093 ac_cs_version="\\
23094 LLVM config.status 3.4svn
23095 configured by $0, generated by GNU Autoconf 2.60,
23096   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23097
23098 Copyright (C) 2006 Free Software Foundation, Inc.
23099 This config.status script is free software; the Free Software Foundation
23100 gives unlimited permission to copy, distribute and modify it."
23101
23102 ac_pwd='$ac_pwd'
23103 srcdir='$srcdir'
23104 INSTALL='$INSTALL'
23105 _ACEOF
23106
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23108 # If no file are specified by the user, then we need to provide default
23109 # value.  By we need to know if files were specified by the user.
23110 ac_need_defaults=:
23111 while test $# != 0
23112 do
23113   case $1 in
23114   --*=*)
23115     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23116     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23117     ac_shift=:
23118     ;;
23119   *)
23120     ac_option=$1
23121     ac_optarg=$2
23122     ac_shift=shift
23123     ;;
23124   esac
23125
23126   case $ac_option in
23127   # Handling of the options.
23128   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23129     ac_cs_recheck=: ;;
23130   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23131     echo "$ac_cs_version"; exit ;;
23132   --debug | --debu | --deb | --de | --d | -d )
23133     debug=: ;;
23134   --file | --fil | --fi | --f )
23135     $ac_shift
23136     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23137     ac_need_defaults=false;;
23138   --header | --heade | --head | --hea )
23139     $ac_shift
23140     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23141     ac_need_defaults=false;;
23142   --he | --h)
23143     # Conflict between --help and --header
23144     { echo "$as_me: error: ambiguous option: $1
23145 Try \`$0 --help' for more information." >&2
23146    { (exit 1); exit 1; }; };;
23147   --help | --hel | -h )
23148     echo "$ac_cs_usage"; exit ;;
23149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23150   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23151     ac_cs_silent=: ;;
23152
23153   # This is an error.
23154   -*) { echo "$as_me: error: unrecognized option: $1
23155 Try \`$0 --help' for more information." >&2
23156    { (exit 1); exit 1; }; } ;;
23157
23158   *) ac_config_targets="$ac_config_targets $1"
23159      ac_need_defaults=false ;;
23160
23161   esac
23162   shift
23163 done
23164
23165 ac_configure_extra_args=
23166
23167 if $ac_cs_silent; then
23168   exec 6>/dev/null
23169   ac_configure_extra_args="$ac_configure_extra_args --silent"
23170 fi
23171
23172 _ACEOF
23173 cat >>$CONFIG_STATUS <<_ACEOF
23174 if \$ac_cs_recheck; then
23175   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23176   CONFIG_SHELL=$SHELL
23177   export CONFIG_SHELL
23178   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23179 fi
23180
23181 _ACEOF
23182 cat >>$CONFIG_STATUS <<\_ACEOF
23183 exec 5>>config.log
23184 {
23185   echo
23186   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23187 ## Running $as_me. ##
23188 _ASBOX
23189   echo "$ac_log"
23190 } >&5
23191
23192 _ACEOF
23193 cat >>$CONFIG_STATUS <<_ACEOF
23194 #
23195 # INIT-COMMANDS
23196 #
23197 llvm_src="${srcdir}"
23198
23199 _ACEOF
23200
23201 cat >>$CONFIG_STATUS <<\_ACEOF
23202
23203 # Handling of arguments.
23204 for ac_config_target in $ac_config_targets
23205 do
23206   case $ac_config_target in
23207     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23208     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23209     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23210     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23211     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23212     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23213     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23214     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23215     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23216     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23217     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23218     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23219     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23220     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23221     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23222     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23223     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23224     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23225     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23226     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23227     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23228     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23229     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23230     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23231     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23232     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23233     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23234
23235   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23237    { (exit 1); exit 1; }; };;
23238   esac
23239 done
23240
23241
23242 # If the user did not use the arguments to specify the items to instantiate,
23243 # then the envvar interface is used.  Set only those that are not.
23244 # We use the long form for the default assignment because of an extremely
23245 # bizarre bug on SunOS 4.1.3.
23246 if $ac_need_defaults; then
23247   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23248   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23249   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23250 fi
23251
23252 # Have a temporary directory for convenience.  Make it in the build tree
23253 # simply because there is no reason against having it here, and in addition,
23254 # creating and moving files from /tmp can sometimes cause problems.
23255 # Hook for its removal unless debugging.
23256 # Note that there is a small window in which the directory will not be cleaned:
23257 # after its creation but before its name has been assigned to `$tmp'.
23258 $debug ||
23259 {
23260   tmp=
23261   trap 'exit_status=$?
23262   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23263 ' 0
23264   trap '{ (exit 1); exit 1; }' 1 2 13 15
23265 }
23266 # Create a (secure) tmp directory for tmp files.
23267
23268 {
23269   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23270   test -n "$tmp" && test -d "$tmp"
23271 }  ||
23272 {
23273   tmp=./conf$$-$RANDOM
23274   (umask 077 && mkdir "$tmp")
23275 } ||
23276 {
23277    echo "$me: cannot create a temporary directory in ." >&2
23278    { (exit 1); exit 1; }
23279 }
23280
23281 #
23282 # Set up the sed scripts for CONFIG_FILES section.
23283 #
23284
23285 # No need to generate the scripts if there are no CONFIG_FILES.
23286 # This happens for instance when ./config.status config.h
23287 if test -n "$CONFIG_FILES"; then
23288
23289 _ACEOF
23290
23291
23292
23293 ac_delim='%!_!# '
23294 for ac_last_try in false false false false false :; do
23295   cat >conf$$subs.sed <<_ACEOF
23296 SHELL!$SHELL$ac_delim
23297 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23298 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23299 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23300 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23301 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23302 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23303 exec_prefix!$exec_prefix$ac_delim
23304 prefix!$prefix$ac_delim
23305 program_transform_name!$program_transform_name$ac_delim
23306 bindir!$bindir$ac_delim
23307 sbindir!$sbindir$ac_delim
23308 libexecdir!$libexecdir$ac_delim
23309 datarootdir!$datarootdir$ac_delim
23310 datadir!$datadir$ac_delim
23311 sysconfdir!$sysconfdir$ac_delim
23312 sharedstatedir!$sharedstatedir$ac_delim
23313 localstatedir!$localstatedir$ac_delim
23314 includedir!$includedir$ac_delim
23315 oldincludedir!$oldincludedir$ac_delim
23316 docdir!$docdir$ac_delim
23317 infodir!$infodir$ac_delim
23318 htmldir!$htmldir$ac_delim
23319 dvidir!$dvidir$ac_delim
23320 pdfdir!$pdfdir$ac_delim
23321 psdir!$psdir$ac_delim
23322 libdir!$libdir$ac_delim
23323 localedir!$localedir$ac_delim
23324 mandir!$mandir$ac_delim
23325 DEFS!$DEFS$ac_delim
23326 ECHO_C!$ECHO_C$ac_delim
23327 ECHO_N!$ECHO_N$ac_delim
23328 ECHO_T!$ECHO_T$ac_delim
23329 LIBS!$LIBS$ac_delim
23330 build_alias!$build_alias$ac_delim
23331 host_alias!$host_alias$ac_delim
23332 target_alias!$target_alias$ac_delim
23333 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23334 CC!$CC$ac_delim
23335 CFLAGS!$CFLAGS$ac_delim
23336 LDFLAGS!$LDFLAGS$ac_delim
23337 CPPFLAGS!$CPPFLAGS$ac_delim
23338 ac_ct_CC!$ac_ct_CC$ac_delim
23339 EXEEXT!$EXEEXT$ac_delim
23340 OBJEXT!$OBJEXT$ac_delim
23341 CXX!$CXX$ac_delim
23342 CXXFLAGS!$CXXFLAGS$ac_delim
23343 ac_ct_CXX!$ac_ct_CXX$ac_delim
23344 CPP!$CPP$ac_delim
23345 subdirs!$subdirs$ac_delim
23346 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23347 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23348 build!$build$ac_delim
23349 build_cpu!$build_cpu$ac_delim
23350 build_vendor!$build_vendor$ac_delim
23351 build_os!$build_os$ac_delim
23352 host!$host$ac_delim
23353 host_cpu!$host_cpu$ac_delim
23354 host_vendor!$host_vendor$ac_delim
23355 host_os!$host_os$ac_delim
23356 target!$target$ac_delim
23357 target_cpu!$target_cpu$ac_delim
23358 target_vendor!$target_vendor$ac_delim
23359 target_os!$target_os$ac_delim
23360 OS!$OS$ac_delim
23361 HOST_OS!$HOST_OS$ac_delim
23362 TARGET_OS!$TARGET_OS$ac_delim
23363 LINKALL!$LINKALL$ac_delim
23364 NOLINKALL!$NOLINKALL$ac_delim
23365 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23366 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23367 ARCH!$ARCH$ac_delim
23368 HOST_ARCH!$HOST_ARCH$ac_delim
23369 ENDIAN!$ENDIAN$ac_delim
23370 GREP!$GREP$ac_delim
23371 EGREP!$EGREP$ac_delim
23372 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23373 BUILD_CC!$BUILD_CC$ac_delim
23374 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23375 BUILD_CXX!$BUILD_CXX$ac_delim
23376 CVSBUILD!$CVSBUILD$ac_delim
23377 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23378 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23379 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23380 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23381 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23382 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23383 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23384 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23385 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23386 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23387 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23388 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23389 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23390 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23391 JIT!$JIT$ac_delim
23392 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23393 _ACEOF
23394
23395   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23396     break
23397   elif $ac_last_try; then
23398     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23399 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23400    { (exit 1); exit 1; }; }
23401   else
23402     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23403   fi
23404 done
23405
23406 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23407 if test -n "$ac_eof"; then
23408   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23409   ac_eof=`expr $ac_eof + 1`
23410 fi
23411
23412 cat >>$CONFIG_STATUS <<_ACEOF
23413 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23415 _ACEOF
23416 sed '
23417 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23418 s/^/s,@/; s/!/@,|#_!!_#|/
23419 :n
23420 t n
23421 s/'"$ac_delim"'$/,g/; t
23422 s/$/\\/; p
23423 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23424 ' >>$CONFIG_STATUS <conf$$subs.sed
23425 rm -f conf$$subs.sed
23426 cat >>$CONFIG_STATUS <<_ACEOF
23427 CEOF$ac_eof
23428 _ACEOF
23429
23430
23431 ac_delim='%!_!# '
23432 for ac_last_try in false false false false false :; do
23433   cat >conf$$subs.sed <<_ACEOF
23434 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23435 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23436 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23437 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23438 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23439 ENABLE_PIC!$ENABLE_PIC$ac_delim
23440 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23441 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23442 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23443 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23444 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23445 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23446 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23447 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23448 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23449 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23450 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23451 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23452 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23453 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23454 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23455 NM!$NM$ac_delim
23456 ifGNUmake!$ifGNUmake$ac_delim
23457 LN_S!$LN_S$ac_delim
23458 CMP!$CMP$ac_delim
23459 CP!$CP$ac_delim
23460 DATE!$DATE$ac_delim
23461 FIND!$FIND$ac_delim
23462 MKDIR!$MKDIR$ac_delim
23463 MV!$MV$ac_delim
23464 RANLIB!$RANLIB$ac_delim
23465 AR!$AR$ac_delim
23466 RM!$RM$ac_delim
23467 SED!$SED$ac_delim
23468 TAR!$TAR$ac_delim
23469 BINPWD!$BINPWD$ac_delim
23470 GRAPHVIZ!$GRAPHVIZ$ac_delim
23471 DOT!$DOT$ac_delim
23472 FDP!$FDP$ac_delim
23473 NEATO!$NEATO$ac_delim
23474 TWOPI!$TWOPI$ac_delim
23475 CIRCO!$CIRCO$ac_delim
23476 GV!$GV$ac_delim
23477 DOTTY!$DOTTY$ac_delim
23478 XDOT_PY!$XDOT_PY$ac_delim
23479 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23480 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23481 INSTALL_DATA!$INSTALL_DATA$ac_delim
23482 BZIP2!$BZIP2$ac_delim
23483 CAT!$CAT$ac_delim
23484 DOXYGEN!$DOXYGEN$ac_delim
23485 GROFF!$GROFF$ac_delim
23486 GZIPBIN!$GZIPBIN$ac_delim
23487 PDFROFF!$PDFROFF$ac_delim
23488 ZIP!$ZIP$ac_delim
23489 OCAMLC!$OCAMLC$ac_delim
23490 OCAMLOPT!$OCAMLOPT$ac_delim
23491 OCAMLDEP!$OCAMLDEP$ac_delim
23492 OCAMLDOC!$OCAMLDOC$ac_delim
23493 GAS!$GAS$ac_delim
23494 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23495 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23496 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23497 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23498 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23499 LIBADD_DL!$LIBADD_DL$ac_delim
23500 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23501 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23502 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23503 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23504 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23505 PYTHON!$PYTHON$ac_delim
23506 USE_UDIS86!$USE_UDIS86$ac_delim
23507 USE_OPROFILE!$USE_OPROFILE$ac_delim
23508 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23509 XML2CONFIG!$XML2CONFIG$ac_delim
23510 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23511 LIBXML2_INC!$LIBXML2_INC$ac_delim
23512 CXXCPP!$CXXCPP$ac_delim
23513 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23514 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23515 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23516 MMAP_FILE!$MMAP_FILE$ac_delim
23517 SHLIBEXT!$SHLIBEXT$ac_delim
23518 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23519 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23520 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23521 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23522 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23523 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23524 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23525 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23526 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23527 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23528 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23529 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23530 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23531 _ACEOF
23532
23533   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23534     break
23535   elif $ac_last_try; then
23536     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23537 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23538    { (exit 1); exit 1; }; }
23539   else
23540     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23541   fi
23542 done
23543
23544 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23545 if test -n "$ac_eof"; then
23546   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23547   ac_eof=`expr $ac_eof + 1`
23548 fi
23549
23550 cat >>$CONFIG_STATUS <<_ACEOF
23551 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23553 _ACEOF
23554 sed '
23555 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23556 s/^/s,@/; s/!/@,|#_!!_#|/
23557 :n
23558 t n
23559 s/'"$ac_delim"'$/,g/; t
23560 s/$/\\/; p
23561 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23562 ' >>$CONFIG_STATUS <conf$$subs.sed
23563 rm -f conf$$subs.sed
23564 cat >>$CONFIG_STATUS <<_ACEOF
23565 CEOF$ac_eof
23566 _ACEOF
23567
23568
23569 ac_delim='%!_!# '
23570 for ac_last_try in false false false false false :; do
23571   cat >conf$$subs.sed <<_ACEOF
23572 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23573 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23574 RPATH!$RPATH$ac_delim
23575 RDYNAMIC!$RDYNAMIC$ac_delim
23576 program_prefix!$program_prefix$ac_delim
23577 LIBOBJS!$LIBOBJS$ac_delim
23578 LTLIBOBJS!$LTLIBOBJS$ac_delim
23579 _ACEOF
23580
23581   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23582     break
23583   elif $ac_last_try; then
23584     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23585 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23586    { (exit 1); exit 1; }; }
23587   else
23588     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23589   fi
23590 done
23591
23592 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23593 if test -n "$ac_eof"; then
23594   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23595   ac_eof=`expr $ac_eof + 1`
23596 fi
23597
23598 cat >>$CONFIG_STATUS <<_ACEOF
23599 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23601 _ACEOF
23602 sed '
23603 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23604 s/^/s,@/; s/!/@,|#_!!_#|/
23605 :n
23606 t n
23607 s/'"$ac_delim"'$/,g/; t
23608 s/$/\\/; p
23609 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23610 ' >>$CONFIG_STATUS <conf$$subs.sed
23611 rm -f conf$$subs.sed
23612 cat >>$CONFIG_STATUS <<_ACEOF
23613 :end
23614 s/|#_!!_#|//g
23615 CEOF$ac_eof
23616 _ACEOF
23617
23618
23619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23621 # trailing colons and then remove the whole line if VPATH becomes empty
23622 # (actually we leave an empty line to preserve line numbers).
23623 if test "x$srcdir" = x.; then
23624   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23625 s/:*\$(srcdir):*/:/
23626 s/:*\${srcdir}:*/:/
23627 s/:*@srcdir@:*/:/
23628 s/^\([^=]*=[     ]*\):*/\1/
23629 s/:*$//
23630 s/^[^=]*=[       ]*$//
23631 }'
23632 fi
23633
23634 cat >>$CONFIG_STATUS <<\_ACEOF
23635 fi # test -n "$CONFIG_FILES"
23636
23637
23638 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23639 do
23640   case $ac_tag in
23641   :[FHLC]) ac_mode=$ac_tag; continue;;
23642   esac
23643   case $ac_mode$ac_tag in
23644   :[FHL]*:*);;
23645   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23646 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23647    { (exit 1); exit 1; }; };;
23648   :[FH]-) ac_tag=-:-;;
23649   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23650   esac
23651   ac_save_IFS=$IFS
23652   IFS=:
23653   set x $ac_tag
23654   IFS=$ac_save_IFS
23655   shift
23656   ac_file=$1
23657   shift
23658
23659   case $ac_mode in
23660   :L) ac_source=$1;;
23661   :[FH])
23662     ac_file_inputs=
23663     for ac_f
23664     do
23665       case $ac_f in
23666       -) ac_f="$tmp/stdin";;
23667       *) # Look for the file first in the build tree, then in the source tree
23668          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23669          # because $ac_f cannot contain `:'.
23670          test -f "$ac_f" ||
23671            case $ac_f in
23672            [\\/$]*) false;;
23673            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23674            esac ||
23675            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23676 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23677    { (exit 1); exit 1; }; };;
23678       esac
23679       ac_file_inputs="$ac_file_inputs $ac_f"
23680     done
23681
23682     # Let's still pretend it is `configure' which instantiates (i.e., don't
23683     # use $as_me), people would be surprised to read:
23684     #    /* config.h.  Generated by config.status.  */
23685     configure_input="Generated from "`IFS=:
23686           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23687     if test x"$ac_file" != x-; then
23688       configure_input="$ac_file.  $configure_input"
23689       { echo "$as_me:$LINENO: creating $ac_file" >&5
23690 echo "$as_me: creating $ac_file" >&6;}
23691     fi
23692
23693     case $ac_tag in
23694     *:-:* | *:-) cat >"$tmp/stdin";;
23695     esac
23696     ;;
23697   esac
23698
23699   ac_dir=`$as_dirname -- "$ac_file" ||
23700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701          X"$ac_file" : 'X\(//\)[^/]' \| \
23702          X"$ac_file" : 'X\(//\)$' \| \
23703          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23704 echo X"$ac_file" |
23705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23706             s//\1/
23707             q
23708           }
23709           /^X\(\/\/\)[^/].*/{
23710             s//\1/
23711             q
23712           }
23713           /^X\(\/\/\)$/{
23714             s//\1/
23715             q
23716           }
23717           /^X\(\/\).*/{
23718             s//\1/
23719             q
23720           }
23721           s/.*/./; q'`
23722   { as_dir="$ac_dir"
23723   case $as_dir in #(
23724   -*) as_dir=./$as_dir;;
23725   esac
23726   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23727     as_dirs=
23728     while :; do
23729       case $as_dir in #(
23730       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23731       *) as_qdir=$as_dir;;
23732       esac
23733       as_dirs="'$as_qdir' $as_dirs"
23734       as_dir=`$as_dirname -- "$as_dir" ||
23735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736          X"$as_dir" : 'X\(//\)[^/]' \| \
23737          X"$as_dir" : 'X\(//\)$' \| \
23738          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23739 echo X"$as_dir" |
23740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741             s//\1/
23742             q
23743           }
23744           /^X\(\/\/\)[^/].*/{
23745             s//\1/
23746             q
23747           }
23748           /^X\(\/\/\)$/{
23749             s//\1/
23750             q
23751           }
23752           /^X\(\/\).*/{
23753             s//\1/
23754             q
23755           }
23756           s/.*/./; q'`
23757       test -d "$as_dir" && break
23758     done
23759     test -z "$as_dirs" || eval "mkdir $as_dirs"
23760   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23761 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23762    { (exit 1); exit 1; }; }; }
23763   ac_builddir=.
23764
23765 case "$ac_dir" in
23766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23767 *)
23768   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769   # A ".." for each directory in $ac_dir_suffix.
23770   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23771   case $ac_top_builddir_sub in
23772   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23773   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23774   esac ;;
23775 esac
23776 ac_abs_top_builddir=$ac_pwd
23777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23778 # for backward compatibility:
23779 ac_top_builddir=$ac_top_build_prefix
23780
23781 case $srcdir in
23782   .)  # We are building in place.
23783     ac_srcdir=.
23784     ac_top_srcdir=$ac_top_builddir_sub
23785     ac_abs_top_srcdir=$ac_pwd ;;
23786   [\\/]* | ?:[\\/]* )  # Absolute name.
23787     ac_srcdir=$srcdir$ac_dir_suffix;
23788     ac_top_srcdir=$srcdir
23789     ac_abs_top_srcdir=$srcdir ;;
23790   *) # Relative name.
23791     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23792     ac_top_srcdir=$ac_top_build_prefix$srcdir
23793     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23794 esac
23795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23796
23797
23798   case $ac_mode in
23799   :F)
23800   #
23801   # CONFIG_FILE
23802   #
23803
23804   case $INSTALL in
23805   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23806   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23807   esac
23808 _ACEOF
23809
23810 cat >>$CONFIG_STATUS <<\_ACEOF
23811 # If the template does not know about datarootdir, expand it.
23812 # FIXME: This hack should be removed a few years after 2.60.
23813 ac_datarootdir_hack=; ac_datarootdir_seen=
23814
23815 case `sed -n '/datarootdir/ {
23816   p
23817   q
23818 }
23819 /@datadir@/p
23820 /@docdir@/p
23821 /@infodir@/p
23822 /@localedir@/p
23823 /@mandir@/p
23824 ' $ac_file_inputs` in
23825 *datarootdir*) ac_datarootdir_seen=yes;;
23826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23827   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23828 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23829 _ACEOF
23830 cat >>$CONFIG_STATUS <<_ACEOF
23831   ac_datarootdir_hack='
23832   s&@datadir@&$datadir&g
23833   s&@docdir@&$docdir&g
23834   s&@infodir@&$infodir&g
23835   s&@localedir@&$localedir&g
23836   s&@mandir@&$mandir&g
23837     s&\\\${datarootdir}&$datarootdir&g' ;;
23838 esac
23839 _ACEOF
23840
23841 # Neutralize VPATH when `$srcdir' = `.'.
23842 # Shell code in configure.ac might set extrasub.
23843 # FIXME: do we really want to maintain this feature?
23844 cat >>$CONFIG_STATUS <<_ACEOF
23845   sed "$ac_vpsub
23846 $extrasub
23847 _ACEOF
23848 cat >>$CONFIG_STATUS <<\_ACEOF
23849 :t
23850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23851 s&@configure_input@&$configure_input&;t t
23852 s&@top_builddir@&$ac_top_builddir_sub&;t t
23853 s&@srcdir@&$ac_srcdir&;t t
23854 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23855 s&@top_srcdir@&$ac_top_srcdir&;t t
23856 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23857 s&@builddir@&$ac_builddir&;t t
23858 s&@abs_builddir@&$ac_abs_builddir&;t t
23859 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23860 s&@INSTALL@&$ac_INSTALL&;t t
23861 $ac_datarootdir_hack
23862 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23863
23864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23865   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23866   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23867   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23868 which seems to be undefined.  Please make sure it is defined." >&5
23869 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23870 which seems to be undefined.  Please make sure it is defined." >&2;}
23871
23872   rm -f "$tmp/stdin"
23873   case $ac_file in
23874   -) cat "$tmp/out"; rm -f "$tmp/out";;
23875   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23876   esac
23877  ;;
23878   :H)
23879   #
23880   # CONFIG_HEADER
23881   #
23882 _ACEOF
23883
23884 # Transform confdefs.h into a sed script `conftest.defines', that
23885 # substitutes the proper values into config.h.in to produce config.h.
23886 rm -f conftest.defines conftest.tail
23887 # First, append a space to every undef/define line, to ease matching.
23888 echo 's/$/ /' >conftest.defines
23889 # Then, protect against being on the right side of a sed subst, or in
23890 # an unquoted here document, in config.status.  If some macros were
23891 # called several times there might be several #defines for the same
23892 # symbol, which is useless.  But do not sort them, since the last
23893 # AC_DEFINE must be honored.
23894 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23895 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23896 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23897 # PARAMS is the parameter list in the macro definition--in most cases, it's
23898 # just an empty string.
23899 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23900 ac_dB='\\)[      (].*,\\1define\\2'
23901 ac_dC=' '
23902 ac_dD=' ,'
23903
23904 uniq confdefs.h |
23905   sed -n '
23906         t rset
23907         :rset
23908         s/^[     ]*#[    ]*define[       ][      ]*//
23909         t ok
23910         d
23911         :ok
23912         s/[\\&,]/\\&/g
23913         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23914         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23915   ' >>conftest.defines
23916
23917 # Remove the space that was appended to ease matching.
23918 # Then replace #undef with comments.  This is necessary, for
23919 # example, in the case of _POSIX_SOURCE, which is predefined and required
23920 # on some systems where configure will not decide to define it.
23921 # (The regexp can be short, since the line contains either #define or #undef.)
23922 echo 's/ $//
23923 s,^[     #]*u.*,/* & */,' >>conftest.defines
23924
23925 # Break up conftest.defines:
23926 ac_max_sed_lines=50
23927
23928 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23929 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23930 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23931 # et cetera.
23932 ac_in='$ac_file_inputs'
23933 ac_out='"$tmp/out1"'
23934 ac_nxt='"$tmp/out2"'
23935
23936 while :
23937 do
23938   # Write a here document:
23939     cat >>$CONFIG_STATUS <<_ACEOF
23940     # First, check the format of the line:
23941     cat >"\$tmp/defines.sed" <<\\CEOF
23942 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23943 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23944 b
23945 :def
23946 _ACEOF
23947   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23948   echo 'CEOF
23949     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23950   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23951   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23952   grep . conftest.tail >/dev/null || break
23953   rm -f conftest.defines
23954   mv conftest.tail conftest.defines
23955 done
23956 rm -f conftest.defines conftest.tail
23957
23958 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23960   if test x"$ac_file" != x-; then
23961     echo "/* $configure_input  */" >"$tmp/config.h"
23962     cat "$ac_result" >>"$tmp/config.h"
23963     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23964       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23965 echo "$as_me: $ac_file is unchanged" >&6;}
23966     else
23967       rm -f $ac_file
23968       mv "$tmp/config.h" $ac_file
23969     fi
23970   else
23971     echo "/* $configure_input  */"
23972     cat "$ac_result"
23973   fi
23974   rm -f "$tmp/out12"
23975  ;;
23976
23977   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23978 echo "$as_me: executing $ac_file commands" >&6;}
23979  ;;
23980   esac
23981
23982
23983   case $ac_file$ac_mode in
23984     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23986     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23988     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23990     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23992     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23994     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23996     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23998     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24000     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24002     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24004     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24005    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24006     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24007    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24008     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24009    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24010
24011   esac
24012 done # for ac_tag
24013
24014
24015 { (exit 0); exit 0; }
24016 _ACEOF
24017 chmod +x $CONFIG_STATUS
24018 ac_clean_files=$ac_clean_files_save
24019
24020
24021 # configure is writing to config.log, and then calls config.status.
24022 # config.status does its own redirection, appending to config.log.
24023 # Unfortunately, on DOS this fails, as config.log is still kept open
24024 # by configure, so config.status won't be able to write to it; its
24025 # output is simply discarded.  So we exec the FD to /dev/null,
24026 # effectively closing config.log, so it can be properly (re)opened and
24027 # appended to by config.status.  When coming back to configure, we
24028 # need to make the FD available again.
24029 if test "$no_create" != yes; then
24030   ac_cs_success=:
24031   ac_config_status_args=
24032   test "$silent" = yes &&
24033     ac_config_status_args="$ac_config_status_args --quiet"
24034   exec 5>/dev/null
24035   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24036   exec 5>>config.log
24037   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24038   # would make configure fail if this is the last instruction.
24039   $ac_cs_success || { (exit 1); exit 1; }
24040 fi
24041
24042 #
24043 # CONFIG_SUBDIRS section.
24044 #
24045 if test "$no_recursion" != yes; then
24046
24047   # Remove --cache-file and --srcdir arguments so they do not pile up.
24048   ac_sub_configure_args=
24049   ac_prev=
24050   eval "set x $ac_configure_args"
24051   shift
24052   for ac_arg
24053   do
24054     if test -n "$ac_prev"; then
24055       ac_prev=
24056       continue
24057     fi
24058     case $ac_arg in
24059     -cache-file | --cache-file | --cache-fil | --cache-fi \
24060     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24061       ac_prev=cache_file ;;
24062     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24063     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24064     | --c=*)
24065       ;;
24066     --config-cache | -C)
24067       ;;
24068     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24069       ac_prev=srcdir ;;
24070     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24071       ;;
24072     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24073       ac_prev=prefix ;;
24074     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24075       ;;
24076     *)
24077       case $ac_arg in
24078       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24079       esac
24080       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24081     esac
24082   done
24083
24084   # Always prepend --prefix to ensure using the same prefix
24085   # in subdir configurations.
24086   ac_arg="--prefix=$prefix"
24087   case $ac_arg in
24088   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24089   esac
24090   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24091
24092   ac_popdir=`pwd`
24093   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24094
24095     # Do not complain, so a configure script can configure whichever
24096     # parts of a large source tree are present.
24097     test -d "$srcdir/$ac_dir" || continue
24098
24099     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24100     echo "$as_me:$LINENO: $ac_msg" >&5
24101     echo "$ac_msg" >&6
24102     { as_dir="$ac_dir"
24103   case $as_dir in #(
24104   -*) as_dir=./$as_dir;;
24105   esac
24106   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24107     as_dirs=
24108     while :; do
24109       case $as_dir in #(
24110       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24111       *) as_qdir=$as_dir;;
24112       esac
24113       as_dirs="'$as_qdir' $as_dirs"
24114       as_dir=`$as_dirname -- "$as_dir" ||
24115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24116          X"$as_dir" : 'X\(//\)[^/]' \| \
24117          X"$as_dir" : 'X\(//\)$' \| \
24118          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24119 echo X"$as_dir" |
24120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24121             s//\1/
24122             q
24123           }
24124           /^X\(\/\/\)[^/].*/{
24125             s//\1/
24126             q
24127           }
24128           /^X\(\/\/\)$/{
24129             s//\1/
24130             q
24131           }
24132           /^X\(\/\).*/{
24133             s//\1/
24134             q
24135           }
24136           s/.*/./; q'`
24137       test -d "$as_dir" && break
24138     done
24139     test -z "$as_dirs" || eval "mkdir $as_dirs"
24140   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24141 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24142    { (exit 1); exit 1; }; }; }
24143     ac_builddir=.
24144
24145 case "$ac_dir" in
24146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24147 *)
24148   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149   # A ".." for each directory in $ac_dir_suffix.
24150   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24151   case $ac_top_builddir_sub in
24152   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24153   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24154   esac ;;
24155 esac
24156 ac_abs_top_builddir=$ac_pwd
24157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24158 # for backward compatibility:
24159 ac_top_builddir=$ac_top_build_prefix
24160
24161 case $srcdir in
24162   .)  # We are building in place.
24163     ac_srcdir=.
24164     ac_top_srcdir=$ac_top_builddir_sub
24165     ac_abs_top_srcdir=$ac_pwd ;;
24166   [\\/]* | ?:[\\/]* )  # Absolute name.
24167     ac_srcdir=$srcdir$ac_dir_suffix;
24168     ac_top_srcdir=$srcdir
24169     ac_abs_top_srcdir=$srcdir ;;
24170   *) # Relative name.
24171     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24172     ac_top_srcdir=$ac_top_build_prefix$srcdir
24173     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24174 esac
24175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24176
24177
24178     cd "$ac_dir"
24179
24180     # Check for guested configure; otherwise get Cygnus style configure.
24181     if test -f "$ac_srcdir/configure.gnu"; then
24182       ac_sub_configure=$ac_srcdir/configure.gnu
24183     elif test -f "$ac_srcdir/configure"; then
24184       ac_sub_configure=$ac_srcdir/configure
24185     elif test -f "$ac_srcdir/configure.in"; then
24186       # This should be Cygnus configure.
24187       ac_sub_configure=$ac_aux_dir/configure
24188     else
24189       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24191       ac_sub_configure=
24192     fi
24193
24194     # The recursion is here.
24195     if test -n "$ac_sub_configure"; then
24196       # Make the cache file name correct relative to the subdirectory.
24197       case $cache_file in
24198       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24199       *) # Relative name.
24200         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24201       esac
24202
24203       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24204 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24205       # The eval makes quoting arguments work.
24206       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24207            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24208         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24209 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24210    { (exit 1); exit 1; }; }
24211     fi
24212
24213     cd "$ac_popdir"
24214   done
24215 fi
24216