1e6121b9abdd8e09d7edd52638fb24d4b36a11be
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 LLVM_CROSS_COMPILING
679 BUILD_CC
680 BUILD_EXEEXT
681 BUILD_CXX
682 CVSBUILD
683 ENABLE_LIBCPP
684 ENABLE_CXX11
685 ENABLE_SPLIT_DWARF
686 ENABLE_CLANG_ARCMT
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
689 ENABLE_OPTIMIZED
690 ENABLE_PROFILING
691 DISABLE_ASSERTIONS
692 ENABLE_WERROR
693 ENABLE_EXPENSIVE_CHECKS
694 EXPENSIVE_CHECKS
695 DEBUG_RUNTIME
696 DEBUG_SYMBOLS
697 KEEP_SYMBOLS
698 JIT
699 TARGET_HAS_JIT
700 ENABLE_DOCS
701 ENABLE_DOXYGEN
702 LLVM_ENABLE_THREADS
703 ENABLE_PTHREADS
704 LLVM_ENABLE_ZLIB
705 ENABLE_PIC
706 ENABLE_SHARED
707 ENABLE_EMBED_STDCXX
708 ENABLE_TIMESTAMPS
709 TARGETS_TO_BUILD
710 LLVM_ENUM_TARGETS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
714 OPTIMIZE_OPTION
715 EXTRA_OPTIONS
716 EXTRA_LD_OPTIONS
717 CLANG_SRC_ROOT
718 BINUTILS_INCDIR
719 INTERNAL_PREFIX
720 NM
721 ifGNUmake
722 LN_S
723 CMP
724 CP
725 DATE
726 FIND
727 GREP
728 MKDIR
729 MV
730 RANLIB
731 AR
732 RM
733 SED
734 TAR
735 BINPWD
736 GRAPHVIZ
737 DOT
738 FDP
739 NEATO
740 TWOPI
741 CIRCO
742 GV
743 DOTTY
744 XDOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 CXXCPP
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 CXXCPP'
817 ac_subdirs_all='projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/privbracket
823 projects/safecode
824 tools/polly'
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876   # If the previous option needs an argument, assign it.
877   if test -n "$ac_prev"; then
878     eval $ac_prev=\$ac_option
879     ac_prev=
880     continue
881   fi
882
883   case $ac_option in
884   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885   *)    ac_optarg=yes ;;
886   esac
887
888   # Accept the important Cygnus configure options, so we can diagnose typos.
889
890   case $ac_dashdash$ac_option in
891   --)
892     ac_dashdash=yes ;;
893
894   -bindir | --bindir | --bindi | --bind | --bin | --bi)
895     ac_prev=bindir ;;
896   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897     bindir=$ac_optarg ;;
898
899   -build | --build | --buil | --bui | --bu)
900     ac_prev=build_alias ;;
901   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902     build_alias=$ac_optarg ;;
903
904   -cache-file | --cache-file | --cache-fil | --cache-fi \
905   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906     ac_prev=cache_file ;;
907   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909     cache_file=$ac_optarg ;;
910
911   --config-cache | -C)
912     cache_file=config.cache ;;
913
914   -datadir | --datadir | --datadi | --datad)
915     ac_prev=datadir ;;
916   -datadir=* | --datadir=* | --datadi=* | --datad=*)
917     datadir=$ac_optarg ;;
918
919   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920   | --dataroo | --dataro | --datar)
921     ac_prev=datarootdir ;;
922   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924     datarootdir=$ac_optarg ;;
925
926   -disable-* | --disable-*)
927     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928     # Reject names that are not valid shell variable names.
929     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
930       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
931    { (exit 1); exit 1; }; }
932     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
933     eval enable_$ac_feature=no ;;
934
935   -docdir | --docdir | --docdi | --doc | --do)
936     ac_prev=docdir ;;
937   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938     docdir=$ac_optarg ;;
939
940   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941     ac_prev=dvidir ;;
942   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943     dvidir=$ac_optarg ;;
944
945   -enable-* | --enable-*)
946     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
949       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950    { (exit 1); exit 1; }; }
951     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
952     eval enable_$ac_feature=\$ac_optarg ;;
953
954   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956   | --exec | --exe | --ex)
957     ac_prev=exec_prefix ;;
958   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960   | --exec=* | --exe=* | --ex=*)
961     exec_prefix=$ac_optarg ;;
962
963   -gas | --gas | --ga | --g)
964     # Obsolete; use --with-gas.
965     with_gas=yes ;;
966
967   -help | --help | --hel | --he | -h)
968     ac_init_help=long ;;
969   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970     ac_init_help=recursive ;;
971   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972     ac_init_help=short ;;
973
974   -host | --host | --hos | --ho)
975     ac_prev=host_alias ;;
976   -host=* | --host=* | --hos=* | --ho=*)
977     host_alias=$ac_optarg ;;
978
979   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980     ac_prev=htmldir ;;
981   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982   | --ht=*)
983     htmldir=$ac_optarg ;;
984
985   -includedir | --includedir | --includedi | --included | --include \
986   | --includ | --inclu | --incl | --inc)
987     ac_prev=includedir ;;
988   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989   | --includ=* | --inclu=* | --incl=* | --inc=*)
990     includedir=$ac_optarg ;;
991
992   -infodir | --infodir | --infodi | --infod | --info | --inf)
993     ac_prev=infodir ;;
994   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995     infodir=$ac_optarg ;;
996
997   -libdir | --libdir | --libdi | --libd)
998     ac_prev=libdir ;;
999   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000     libdir=$ac_optarg ;;
1001
1002   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003   | --libexe | --libex | --libe)
1004     ac_prev=libexecdir ;;
1005   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006   | --libexe=* | --libex=* | --libe=*)
1007     libexecdir=$ac_optarg ;;
1008
1009   -localedir | --localedir | --localedi | --localed | --locale)
1010     ac_prev=localedir ;;
1011   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012     localedir=$ac_optarg ;;
1013
1014   -localstatedir | --localstatedir | --localstatedi | --localstated \
1015   | --localstate | --localstat | --localsta | --localst | --locals)
1016     ac_prev=localstatedir ;;
1017   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019     localstatedir=$ac_optarg ;;
1020
1021   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022     ac_prev=mandir ;;
1023   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024     mandir=$ac_optarg ;;
1025
1026   -nfp | --nfp | --nf)
1027     # Obsolete; use --without-fp.
1028     with_fp=no ;;
1029
1030   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031   | --no-cr | --no-c | -n)
1032     no_create=yes ;;
1033
1034   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036     no_recursion=yes ;;
1037
1038   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040   | --oldin | --oldi | --old | --ol | --o)
1041     ac_prev=oldincludedir ;;
1042   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045     oldincludedir=$ac_optarg ;;
1046
1047   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048     ac_prev=prefix ;;
1049   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050     prefix=$ac_optarg ;;
1051
1052   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053   | --program-pre | --program-pr | --program-p)
1054     ac_prev=program_prefix ;;
1055   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057     program_prefix=$ac_optarg ;;
1058
1059   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060   | --program-suf | --program-su | --program-s)
1061     ac_prev=program_suffix ;;
1062   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064     program_suffix=$ac_optarg ;;
1065
1066   -program-transform-name | --program-transform-name \
1067   | --program-transform-nam | --program-transform-na \
1068   | --program-transform-n | --program-transform- \
1069   | --program-transform | --program-transfor \
1070   | --program-transfo | --program-transf \
1071   | --program-trans | --program-tran \
1072   | --progr-tra | --program-tr | --program-t)
1073     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1082
1083   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084     ac_prev=pdfdir ;;
1085   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086     pdfdir=$ac_optarg ;;
1087
1088   -psdir | --psdir | --psdi | --psd | --ps)
1089     ac_prev=psdir ;;
1090   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091     psdir=$ac_optarg ;;
1092
1093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094   | -silent | --silent | --silen | --sile | --sil)
1095     silent=yes ;;
1096
1097   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098     ac_prev=sbindir ;;
1099   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100   | --sbi=* | --sb=*)
1101     sbindir=$ac_optarg ;;
1102
1103   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105   | --sharedst | --shareds | --shared | --share | --shar \
1106   | --sha | --sh)
1107     ac_prev=sharedstatedir ;;
1108   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111   | --sha=* | --sh=*)
1112     sharedstatedir=$ac_optarg ;;
1113
1114   -site | --site | --sit)
1115     ac_prev=site ;;
1116   -site=* | --site=* | --sit=*)
1117     site=$ac_optarg ;;
1118
1119   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120     ac_prev=srcdir ;;
1121   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122     srcdir=$ac_optarg ;;
1123
1124   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125   | --syscon | --sysco | --sysc | --sys | --sy)
1126     ac_prev=sysconfdir ;;
1127   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129     sysconfdir=$ac_optarg ;;
1130
1131   -target | --target | --targe | --targ | --tar | --ta | --t)
1132     ac_prev=target_alias ;;
1133   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134     target_alias=$ac_optarg ;;
1135
1136   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137     verbose=yes ;;
1138
1139   -version | --version | --versio | --versi | --vers | -V)
1140     ac_init_version=: ;;
1141
1142   -with-* | --with-*)
1143     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid package name: $ac_package" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_package=`echo $ac_package| sed 's/-/_/g'`
1149     eval with_$ac_package=\$ac_optarg ;;
1150
1151   -without-* | --without-*)
1152     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid package name: $ac_package" >&2
1156    { (exit 1); exit 1; }; }
1157     ac_package=`echo $ac_package | sed 's/-/_/g'`
1158     eval with_$ac_package=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) { echo "$as_me: error: unrecognized option: $ac_option
1179 Try \`$0 --help' for more information." >&2
1180    { (exit 1); exit 1; }; }
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1188    { (exit 1); exit 1; }; }
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   { echo "$as_me: error: missing argument to $ac_option" >&2
1206    { (exit 1); exit 1; }; }
1207 fi
1208
1209 # Be sure to have absolute directory names.
1210 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211                 datadir sysconfdir sharedstatedir localstatedir includedir \
1212                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213                 libdir localedir mandir
1214 do
1215   eval ac_val=\$$ac_var
1216   case $ac_val in
1217     [\\/$]* | ?:[\\/]* )  continue;;
1218     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219   esac
1220   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221    { (exit 1); exit 1; }; }
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236     If a cross compiler is detected then cross compile mode will be used." >&2
1237   elif test "x$build_alias" != "x$host_alias"; then
1238     cross_compiling=yes
1239   fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251   { echo "$as_me: error: Working directory cannot be determined" >&2
1252    { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254   { echo "$as_me: error: pwd does not report name of working directory" >&2
1255    { (exit 1); exit 1; }; }
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260   ac_srcdir_defaulted=yes
1261   # Try the directory containing this script, then the parent directory.
1262   ac_confdir=`$as_dirname -- "$0" ||
1263 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264          X"$0" : 'X\(//\)[^/]' \| \
1265          X"$0" : 'X\(//\)$' \| \
1266          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 echo X"$0" |
1268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)[^/].*/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\).*/{
1281             s//\1/
1282             q
1283           }
1284           s/.*/./; q'`
1285   srcdir=$ac_confdir
1286   if test ! -r "$srcdir/$ac_unique_file"; then
1287     srcdir=..
1288   fi
1289 else
1290   ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295    { (exit 1); exit 1; }; }
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1300    { (exit 1); exit 1; }; }
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR           user executables [EPREFIX/bin]
1361   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR       program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR           object code libraries [EPREFIX/lib]
1367   --includedir=DIR       C header files [PREFIX/include]
1368   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR          info documentation [DATAROOTDIR/info]
1372   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR           man documentation [DATAROOTDIR/man]
1374   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1375   --htmldir=DIR          html documentation [DOCDIR]
1376   --dvidir=DIR           dvi documentation [DOCDIR]
1377   --pdfdir=DIR           pdf documentation [DOCDIR]
1378   --psdir=DIR            ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 System types:
1384   --build=BUILD     configure for building on BUILD [guessed]
1385   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386   --target=TARGET   configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391   case $ac_init_help in
1392      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1393    esac
1394   cat <<\_ACEOF
1395
1396 Optional Features:
1397   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1398   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1399   --enable-compiler-version-checks
1400                           Check the version of the host compiler (default is
1401                           YES)
1402   --enable-polly          Use polly if available (default is YES)
1403   --enable-libcpp         Use libc++ if available (default is NO)
1404   --enable-cxx11          Use c++11 if available (default is NO)
1405   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1406   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1407   --enable-clang-static-analyzer
1408                           Enable building of clang Static Analyzer (default is
1409                           YES)
1410   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411   --enable-optimized      Compile with optimizations enabled (default is NO)
1412   --enable-profiling      Compile with profiling enabled (default is NO)
1413   --enable-assertions     Compile with assertion checks enabled (default is
1414                           YES)
1415   --enable-werror         Compile with -Werror enabled (default is NO)
1416   --enable-expensive-checks
1417                           Compile with expensive debug checks enabled (default
1418                           is NO)
1419   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1420                           NO)
1421   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1422                           optimization is on and YES if it's off)
1423   --enable-keep-symbols   Do not strip installed executables)
1424   --enable-jit            Enable Just In Time Compiling (default is YES)
1425   --enable-docs           Build documents (default is YES)
1426   --enable-doxygen        Build doxygen documentation (default is NO)
1427   --enable-threads        Use threads if available (default is YES)
1428   --enable-pthreads       Use pthreads if available (default is YES)
1429   --enable-zlib           Use zlib for compression/decompression if available
1430                           (default is YES)
1431   --enable-pic            Build LLVM with Position Independent Code (default
1432                           is YES)
1433   --enable-shared         Build a shared library and link tools against it
1434                           (default is NO)
1435   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1436                           Win32 DLL (default is NO)
1437   --enable-timestamps     Enable embedding timestamp information in build
1438                           (default is YES)
1439   --enable-backtraces     Enable embedding backtraces on crash (default is
1440                           YES)
1441   --enable-crash-overrides
1442                           Enable crash handling overrides (default is YES)
1443   --enable-targets        Build specific host targets: all or
1444                           target1,target2,... Valid targets are: host, x86,
1445                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1446                           xcore, msp430, nvptx, systemz, r600, and cpp
1447                           (default=all)
1448   --enable-experimental-targets
1449                           Build experimental host targets: disable or
1450                           target1,target2,... (default=disable)
1451   --enable-bindings       Build specific language bindings:
1452                           all,auto,none,{binding-name} (default=auto)
1453   --enable-terminfo       Query the terminfo database if available (default is
1454                           YES)
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.5svn
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-2014 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.5svn, 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 5
1940 _ACEOF
1941
1942
1943 LLVM_COPYRIGHT="Copyright (c) 2003-2014 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 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 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++ 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++ 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 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3582 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3583 ac_ext=cpp
3584 ac_cpp='$CXXCPP $CPPFLAGS'
3585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3588
3589 llvm_cv_cxx_compiler=unknown
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596 #if ! __clang__
3597                                      #error
3598                                      #endif
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3623   { (case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628   (eval "$ac_try") 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; } &&
3632          { ac_try='test -s conftest.$ac_objext'
3633   { (case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638   (eval "$ac_try") 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; }; then
3642   llvm_cv_cxx_compiler=clang
3643 else
3644   echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647         cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h.  */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h.  */
3653 #if ! __GNUC__
3654                                                         #error
3655                                                         #endif
3656
3657 int
3658 main ()
3659 {
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672   (eval "$ac_compile") 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3680   { (case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685   (eval "$ac_try") 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; } &&
3689          { ac_try='test -s conftest.$ac_objext'
3690   { (case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695   (eval "$ac_try") 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; }; then
3699   llvm_cv_cxx_compiler=gcc
3700 else
3701   echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704
3705 fi
3706
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716
3717 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3718 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3719
3720 # Check whether --enable-compiler-version-checks was given.
3721 if test "${enable_compiler_version_checks+set}" = set; then
3722   enableval=$enable_compiler_version_checks;
3723 else
3724   enableval=default
3725 fi
3726
3727 case "$enableval" in
3728   no)
3729     ;;
3730   yes|default)
3731     ac_ext=cpp
3732 ac_cpp='$CXXCPP $CPPFLAGS'
3733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3736
3737     case "$llvm_cv_cxx_compiler" in
3738     clang)
3739       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3740 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3741       cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3749 #error This version of Clang is too old to build LLVM
3750 #endif
3751
3752 int
3753 main ()
3754 {
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } &&
3774          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3775   { (case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780   (eval "$ac_try") 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }; } &&
3784          { ac_try='test -s conftest.$ac_objext'
3785   { (case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790   (eval "$ac_try") 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }; }; then
3794   { echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6; }
3796 else
3797   echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800         { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802            { { echo "$as_me:$LINENO: error:
3803 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3804 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3805 bypass these sanity checks." >&5
3806 echo "$as_me: error:
3807 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3808 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3809 bypass these sanity checks." >&2;}
3810    { (exit 1); exit 1; }; }
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814       ;;
3815     gcc)
3816       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3817 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3818       cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824
3825 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3826 #error This version of GCC is too old to build LLVM
3827 #endif
3828
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_compile") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } &&
3851          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3852   { (case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_try") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   { echo "$as_me:$LINENO: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6; }
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877         { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3879            { { echo "$as_me:$LINENO: error:
3880 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3881 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3882 bypass these sanity checks." >&5
3883 echo "$as_me: error:
3884 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3885 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3886 bypass these sanity checks." >&2;}
3887    { (exit 1); exit 1; }; }
3888 fi
3889
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891       ;;
3892     unknown)
3893       ;;
3894     esac
3895     ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901     ;;
3902   *)
3903     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3904 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3905    { (exit 1); exit 1; }; }
3906     ;;
3907 esac
3908
3909
3910
3911 if test -d ${srcdir}/projects/test-suite ; then
3912   subdirs="$subdirs projects/test-suite"
3913
3914 fi
3915
3916 if test -d ${srcdir}/projects/llvm-test ; then
3917   subdirs="$subdirs projects/llvm-test"
3918
3919 fi
3920
3921 if test -d ${srcdir}/projects/poolalloc ; then
3922   subdirs="$subdirs projects/poolalloc"
3923
3924 fi
3925
3926 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3927   subdirs="$subdirs projects/llvm-poolalloc"
3928
3929 fi
3930
3931 for i in `ls ${srcdir}/projects`
3932 do
3933   if test -d ${srcdir}/projects/${i} ; then
3934     case ${i} in
3935       sample)       subdirs="$subdirs projects/sample"
3936     ;;
3937       privbracket)  subdirs="$subdirs projects/privbracket"
3938  ;;
3939       safecode)     subdirs="$subdirs projects/safecode"
3940  ;;
3941       compiler-rt)       ;;
3942       test-suite)     ;;
3943       llvm-test)      ;;
3944       poolalloc)      ;;
3945       llvm-poolalloc) ;;
3946       *)
3947         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3948 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3949         ;;
3950     esac
3951   fi
3952 done
3953
3954 # Check whether --enable-polly was given.
3955 if test "${enable_polly+set}" = set; then
3956   enableval=$enable_polly;
3957 else
3958   enableval=default
3959 fi
3960
3961 case "$enableval" in
3962   yes) ENABLE_POLLY=1
3963  ;;
3964   no)  ENABLE_POLLY=0
3965  ;;
3966   default) ENABLE_POLLY=1
3967  ;;
3968   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3969 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3970    { (exit 1); exit 1; }; } ;;
3971 esac
3972
3973
3974 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3975   LLVM_HAS_POLLY=1
3976
3977   subdirs="$subdirs tools/polly"
3978
3979 fi
3980
3981
3982 # Make sure we can run config.sub.
3983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3984   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3985 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3986    { (exit 1); exit 1; }; }
3987
3988 { echo "$as_me:$LINENO: checking build system type" >&5
3989 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3990 if test "${ac_cv_build+set}" = set; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   ac_build_alias=$build_alias
3994 test "x$ac_build_alias" = x &&
3995   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3996 test "x$ac_build_alias" = x &&
3997   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3999    { (exit 1); exit 1; }; }
4000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4001   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4003    { (exit 1); exit 1; }; }
4004
4005 fi
4006 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4007 echo "${ECHO_T}$ac_cv_build" >&6; }
4008 case $ac_cv_build in
4009 *-*-*) ;;
4010 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4011 echo "$as_me: error: invalid value of canonical build" >&2;}
4012    { (exit 1); exit 1; }; };;
4013 esac
4014 build=$ac_cv_build
4015 ac_save_IFS=$IFS; IFS='-'
4016 set x $ac_cv_build
4017 shift
4018 build_cpu=$1
4019 build_vendor=$2
4020 shift; shift
4021 # Remember, the first character of IFS is used to create $*,
4022 # except with old shells:
4023 build_os=$*
4024 IFS=$ac_save_IFS
4025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4026
4027
4028 { echo "$as_me:$LINENO: checking host system type" >&5
4029 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4030 if test "${ac_cv_host+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   if test "x$host_alias" = x; then
4034   ac_cv_host=$ac_cv_build
4035 else
4036   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4037     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4038 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4039    { (exit 1); exit 1; }; }
4040 fi
4041
4042 fi
4043 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4044 echo "${ECHO_T}$ac_cv_host" >&6; }
4045 case $ac_cv_host in
4046 *-*-*) ;;
4047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4048 echo "$as_me: error: invalid value of canonical host" >&2;}
4049    { (exit 1); exit 1; }; };;
4050 esac
4051 host=$ac_cv_host
4052 ac_save_IFS=$IFS; IFS='-'
4053 set x $ac_cv_host
4054 shift
4055 host_cpu=$1
4056 host_vendor=$2
4057 shift; shift
4058 # Remember, the first character of IFS is used to create $*,
4059 # except with old shells:
4060 host_os=$*
4061 IFS=$ac_save_IFS
4062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4063
4064
4065 { echo "$as_me:$LINENO: checking target system type" >&5
4066 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4067 if test "${ac_cv_target+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   if test "x$target_alias" = x; then
4071   ac_cv_target=$ac_cv_host
4072 else
4073   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4074     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4076    { (exit 1); exit 1; }; }
4077 fi
4078
4079 fi
4080 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4081 echo "${ECHO_T}$ac_cv_target" >&6; }
4082 case $ac_cv_target in
4083 *-*-*) ;;
4084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4085 echo "$as_me: error: invalid value of canonical target" >&2;}
4086    { (exit 1); exit 1; }; };;
4087 esac
4088 target=$ac_cv_target
4089 ac_save_IFS=$IFS; IFS='-'
4090 set x $ac_cv_target
4091 shift
4092 target_cpu=$1
4093 target_vendor=$2
4094 shift; shift
4095 # Remember, the first character of IFS is used to create $*,
4096 # except with old shells:
4097 target_os=$*
4098 IFS=$ac_save_IFS
4099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4100
4101
4102 # The aliases save the names the user supplied, while $host etc.
4103 # will get canonicalized.
4104 test -n "$target_alias" &&
4105   test "$program_prefix$program_suffix$program_transform_name" = \
4106     NONENONEs,x,x, &&
4107   program_prefix=${target_alias}-
4108
4109 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4110 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4111 if test "${llvm_cv_os_type+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   case $host in
4115   *-*-aix*)
4116     llvm_cv_link_all_option="-Wl,--whole-archive"
4117     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4118     llvm_cv_os_type="AIX"
4119     llvm_cv_platform_type="Unix" ;;
4120   *-*-irix*)
4121     llvm_cv_link_all_option="-Wl,--whole-archive"
4122     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4123     llvm_cv_os_type="IRIX"
4124     llvm_cv_platform_type="Unix" ;;
4125   *-*-cygwin*)
4126     llvm_cv_link_all_option="-Wl,--whole-archive"
4127     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4128     llvm_cv_os_type="Cygwin"
4129     llvm_cv_platform_type="Unix" ;;
4130   *-*-darwin*)
4131     llvm_cv_link_all_option="-Wl,-all_load"
4132     llvm_cv_no_link_all_option="-Wl,-noall_load"
4133     llvm_cv_os_type="Darwin"
4134     llvm_cv_platform_type="Unix" ;;
4135   *-*-minix*)
4136     llvm_cv_link_all_option="-Wl,-all_load"
4137     llvm_cv_no_link_all_option="-Wl,-noall_load"
4138     llvm_cv_os_type="Minix"
4139     llvm_cv_platform_type="Unix" ;;
4140   *-*-freebsd*)
4141     llvm_cv_link_all_option="-Wl,--whole-archive"
4142     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4143     llvm_cv_os_type="FreeBSD"
4144     llvm_cv_platform_type="Unix" ;;
4145   *-*-kfreebsd-gnu)
4146     llvm_cv_link_all_option="-Wl,--whole-archive"
4147     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4148     llvm_cv_os_type="GNU/kFreeBSD"
4149     llvm_cv_platform_type="Unix" ;;
4150   *-*-openbsd*)
4151     llvm_cv_link_all_option="-Wl,--whole-archive"
4152     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4153     llvm_cv_os_type="OpenBSD"
4154     llvm_cv_platform_type="Unix" ;;
4155   *-*-netbsd*)
4156     llvm_cv_link_all_option="-Wl,--whole-archive"
4157     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4158     llvm_cv_os_type="NetBSD"
4159     llvm_cv_platform_type="Unix" ;;
4160   *-*-dragonfly*)
4161     llvm_cv_link_all_option="-Wl,--whole-archive"
4162     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4163     llvm_cv_os_type="DragonFly"
4164     llvm_cv_platform_type="Unix" ;;
4165   *-*-hpux*)
4166     llvm_cv_link_all_option="-Wl,--whole-archive"
4167     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4168     llvm_cv_os_type="HP-UX"
4169     llvm_cv_platform_type="Unix" ;;
4170   *-*-interix*)
4171     llvm_cv_link_all_option="-Wl,--whole-archive"
4172     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4173     llvm_cv_os_type="Interix"
4174     llvm_cv_platform_type="Unix" ;;
4175   *-*-linux*)
4176     llvm_cv_link_all_option="-Wl,--whole-archive"
4177     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4178     llvm_cv_os_type="Linux"
4179     llvm_cv_platform_type="Unix" ;;
4180   *-*-gnu*)
4181     llvm_cv_link_all_option="-Wl,--whole-archive"
4182     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4183     llvm_cv_os_type="GNU"
4184     llvm_cv_platform_type="Unix" ;;
4185   *-*-solaris*)
4186     llvm_cv_link_all_option="-Wl,-z,allextract"
4187     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4188     llvm_cv_os_type="SunOS"
4189     llvm_cv_platform_type="Unix" ;;
4190   *-*-auroraux*)
4191     llvm_cv_link_all_option="-Wl,-z,allextract"
4192     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4193     llvm_cv_os_type="AuroraUX"
4194     llvm_cv_platform_type="Unix" ;;
4195   *-*-win32*)
4196     llvm_cv_link_all_option="-Wl,--whole-archive"
4197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4198     llvm_cv_os_type="Win32"
4199     llvm_cv_platform_type="Win32" ;;
4200   *-*-mingw*)
4201     llvm_cv_link_all_option="-Wl,--whole-archive"
4202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4203     llvm_cv_os_type="MingW"
4204     llvm_cv_platform_type="Win32" ;;
4205   *-*-haiku*)
4206     llvm_cv_link_all_option="-Wl,--whole-archive"
4207     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4208     llvm_cv_os_type="Haiku"
4209     llvm_cv_platform_type="Unix" ;;
4210   *-unknown-eabi*)
4211     llvm_cv_link_all_option="-Wl,--whole-archive"
4212     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4213     llvm_cv_os_type="Freestanding"
4214     llvm_cv_platform_type="Unix" ;;
4215   *-unknown-elf*)
4216     llvm_cv_link_all_option="-Wl,--whole-archive"
4217     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4218     llvm_cv_os_type="Freestanding"
4219     llvm_cv_platform_type="Unix" ;;
4220   *)
4221     llvm_cv_link_all_option=""
4222     llvm_cv_no_link_all_option=""
4223     llvm_cv_os_type="Unknown"
4224     llvm_cv_platform_type="Unknown" ;;
4225 esac
4226 fi
4227 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4228 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4229
4230 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4231 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4232 if test "${llvm_cv_target_os_type+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   case $target in
4236   *-*-aix*)
4237     llvm_cv_target_os_type="AIX" ;;
4238   *-*-irix*)
4239     llvm_cv_target_os_type="IRIX" ;;
4240   *-*-cygwin*)
4241     llvm_cv_target_os_type="Cygwin" ;;
4242   *-*-darwin*)
4243     llvm_cv_target_os_type="Darwin" ;;
4244   *-*-minix*)
4245     llvm_cv_target_os_type="Minix" ;;
4246   *-*-freebsd*)
4247     llvm_cv_target_os_type="FreeBSD" ;;
4248   *-*-kfreebsd-gnu)
4249     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4250   *-*-openbsd*)
4251     llvm_cv_target_os_type="OpenBSD" ;;
4252   *-*-netbsd*)
4253     llvm_cv_target_os_type="NetBSD" ;;
4254   *-*-dragonfly*)
4255     llvm_cv_target_os_type="DragonFly" ;;
4256   *-*-hpux*)
4257     llvm_cv_target_os_type="HP-UX" ;;
4258   *-*-interix*)
4259     llvm_cv_target_os_type="Interix" ;;
4260   *-*-linux*)
4261     llvm_cv_target_os_type="Linux" ;;
4262   *-*-gnu*)
4263     llvm_cv_target_os_type="GNU" ;;
4264   *-*-solaris*)
4265     llvm_cv_target_os_type="SunOS" ;;
4266   *-*-auroraux*)
4267     llvm_cv_target_os_type="AuroraUX" ;;
4268   *-*-win32*)
4269     llvm_cv_target_os_type="Win32" ;;
4270   *-*-mingw*)
4271     llvm_cv_target_os_type="MingW" ;;
4272   *-*-haiku*)
4273     llvm_cv_target_os_type="Haiku" ;;
4274   *-*-rtems*)
4275     llvm_cv_target_os_type="RTEMS" ;;
4276   *-*-nacl*)
4277     llvm_cv_target_os_type="NativeClient" ;;
4278   *-unknown-eabi*)
4279     llvm_cv_target_os_type="Freestanding" ;;
4280   *)
4281     llvm_cv_target_os_type="Unknown" ;;
4282 esac
4283 fi
4284 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4285 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4286
4287 if test "$llvm_cv_os_type" = "Unknown" ; then
4288   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4289 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4290    { (exit 1); exit 1; }; }
4291 fi
4292
4293 OS=$llvm_cv_os_type
4294
4295 HOST_OS=$llvm_cv_os_type
4296
4297 TARGET_OS=$llvm_cv_target_os_type
4298
4299
4300 LINKALL=$llvm_cv_link_all_option
4301
4302 NOLINKALL=$llvm_cv_no_link_all_option
4303
4304
4305 case $llvm_cv_platform_type in
4306   Unix)
4307
4308 cat >>confdefs.h <<\_ACEOF
4309 #define LLVM_ON_UNIX 1
4310 _ACEOF
4311
4312     LLVM_ON_UNIX=1
4313
4314     LLVM_ON_WIN32=0
4315
4316     ;;
4317   Win32)
4318
4319 cat >>confdefs.h <<\_ACEOF
4320 #define LLVM_ON_WIN32 1
4321 _ACEOF
4322
4323     LLVM_ON_UNIX=0
4324
4325     LLVM_ON_WIN32=1
4326
4327     ;;
4328 esac
4329
4330 { echo "$as_me:$LINENO: checking target architecture" >&5
4331 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4332 if test "${llvm_cv_target_arch+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   case $target in
4336   i?86-*)                 llvm_cv_target_arch="x86" ;;
4337   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4338   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4339   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4340   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4341   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4342   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4343   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4344   xcore-*)                llvm_cv_target_arch="XCore" ;;
4345   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4346   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4347   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4348   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4349   *)                      llvm_cv_target_arch="Unknown" ;;
4350 esac
4351 fi
4352 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4353 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4354
4355 if test "$llvm_cv_target_arch" = "Unknown" ; then
4356   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4357 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4358 fi
4359
4360 case "$llvm_cv_target_arch" in
4361     x86)     LLVM_NATIVE_ARCH="X86" ;;
4362     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4363     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4364 esac
4365
4366 ARCH=$llvm_cv_target_arch
4367
4368
4369 case $host in
4370   i?86-*)                 host_arch="x86" ;;
4371   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4372   sparc*-*)               host_arch="Sparc" ;;
4373   powerpc*-*)             host_arch="PowerPC" ;;
4374   arm*-*)                 host_arch="ARM" ;;
4375   aarch64*-*)             host_arch="AArch64" ;;
4376   mips-* | mips64-*)      host_arch="Mips" ;;
4377   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4378   xcore-*)                host_arch="XCore" ;;
4379   msp430-*)               host_arch="MSP430" ;;
4380   hexagon-*)              host_arch="Hexagon" ;;
4381   s390x-*)                host_arch="SystemZ" ;;
4382   *)                      host_arch="Unknown" ;;
4383 esac
4384
4385 if test "$host_arch" = "Unknown" ; then
4386   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4387 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4388 fi
4389
4390 HOST_ARCH=$host_arch
4391
4392
4393 if test "$cross_compiling" = yes; then
4394   LLVM_CROSS_COMPILING=1
4395
4396
4397 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4398 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4399 if test "${ac_cv_build_exeext+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4403   ac_cv_build_exeext=.exe
4404 else
4405   ac_build_prefix=${build_alias}-
4406
4407   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4408 set dummy ${ac_build_prefix}gcc; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test -n "$BUILD_CC"; then
4415   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 BUILD_CC=$ac_cv_prog_BUILD_CC
4435 if test -n "$BUILD_CC"; then
4436   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4437 echo "${ECHO_T}$BUILD_CC" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444   if test -z "$BUILD_CC"; then
4445      # Extract the first word of "gcc", so it can be a program name with args.
4446 set dummy gcc; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   if test -n "$BUILD_CC"; then
4453   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_prog_BUILD_CC="gcc"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4476 else
4477   { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4479 fi
4480
4481
4482      if test -z "$BUILD_CC"; then
4483        # Extract the first word of "cc", so it can be a program name with args.
4484 set dummy cc; ac_word=$2
4485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   if test -n "$BUILD_CC"; then
4491   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4492 else
4493   ac_prog_rejected=no
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499   for ac_exec_ext in '' $ac_executable_extensions; do
4500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4501     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502        ac_prog_rejected=yes
4503        continue
4504      fi
4505     ac_cv_prog_BUILD_CC="cc"
4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 if test $ac_prog_rejected = yes; then
4514   # We found a bogon in the path, so make sure we never use it.
4515   set dummy $ac_cv_prog_BUILD_CC
4516   shift
4517   if test $# != 0; then
4518     # We chose a different compiler from the bogus one.
4519     # However, it has the same basename, so the bogon will be chosen
4520     # first if we set BUILD_CC to just the basename; use the full file name.
4521     shift
4522     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4523   fi
4524 fi
4525 fi
4526 fi
4527 BUILD_CC=$ac_cv_prog_BUILD_CC
4528 if test -n "$BUILD_CC"; then
4529   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4530 echo "${ECHO_T}$BUILD_CC" >&6; }
4531 else
4532   { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4534 fi
4535
4536
4537      fi
4538   fi
4539   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4540 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4541    { (exit 1); exit 1; }; }
4542   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543   rm -f conftest*
4544   echo 'int main () { return 0; }' > conftest.$ac_ext
4545   ac_cv_build_exeext=
4546   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4547   (eval $ac_build_link) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; then
4551     for file in conftest.*; do
4552       case $file in
4553       *.c | *.o | *.obj | *.dSYM) ;;
4554       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4555       esac
4556     done
4557   else
4558     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4559 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4560    { (exit 1); exit 1; }; }
4561   fi
4562   rm -f conftest*
4563   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4564 fi
4565 fi
4566
4567 BUILD_EXEEXT=""
4568 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4569 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4570 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4571 ac_build_exeext=$BUILD_EXEEXT
4572
4573   ac_build_prefix=${build_alias}-
4574   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4575 set dummy ${ac_build_prefix}g++; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   if test -n "$BUILD_CXX"; then
4582   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589   for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4602 if test -n "$BUILD_CXX"; then
4603   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4604 echo "${ECHO_T}$BUILD_CXX" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611   if test -z "$BUILD_CXX"; then
4612      # Extract the first word of "g++", so it can be a program name with args.
4613 set dummy g++; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$BUILD_CXX"; then
4620   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629     ac_cv_prog_BUILD_CXX="g++"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640 if test -n "$BUILD_CXX"; then
4641   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642 echo "${ECHO_T}$BUILD_CXX" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649      if test -z "$BUILD_CXX"; then
4650        # Extract the first word of "c++", so it can be a program name with args.
4651 set dummy c++; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$BUILD_CXX"; then
4658   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4659 else
4660   ac_prog_rejected=no
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4669        ac_prog_rejected=yes
4670        continue
4671      fi
4672     ac_cv_prog_BUILD_CXX="c++"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 if test $ac_prog_rejected = yes; then
4681   # We found a bogon in the path, so make sure we never use it.
4682   set dummy $ac_cv_prog_BUILD_CXX
4683   shift
4684   if test $# != 0; then
4685     # We chose a different compiler from the bogus one.
4686     # However, it has the same basename, so the bogon will be chosen
4687     # first if we set BUILD_CXX to just the basename; use the full file name.
4688     shift
4689     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4690   fi
4691 fi
4692 fi
4693 fi
4694 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4695 if test -n "$BUILD_CXX"; then
4696   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4697 echo "${ECHO_T}$BUILD_CXX" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 fi
4702
4703
4704      fi
4705   fi
4706 else
4707   LLVM_CROSS_COMPILING=0
4708
4709 fi
4710
4711 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4712   cvsbuild="yes"
4713   optimize="no"
4714   CVSBUILD=CVSBUILD=1
4715
4716 else
4717   cvsbuild="no"
4718   optimize="yes"
4719 fi
4720
4721
4722 # Check whether --enable-libcpp was given.
4723 if test "${enable_libcpp+set}" = set; then
4724   enableval=$enable_libcpp;
4725 else
4726   enableval=default
4727 fi
4728
4729 case "$enableval" in
4730   yes) ENABLE_LIBCPP=1
4731  ;;
4732   no)  ENABLE_LIBCPP=0
4733  ;;
4734   default) ENABLE_LIBCPP=0
4735 ;;
4736   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4737 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4738    { (exit 1); exit 1; }; } ;;
4739 esac
4740
4741 # Check whether --enable-cxx11 was given.
4742 if test "${enable_cxx11+set}" = set; then
4743   enableval=$enable_cxx11;
4744 else
4745   enableval=default
4746 fi
4747
4748 case "$enableval" in
4749   yes) ENABLE_CXX11=1
4750  ;;
4751   no)  ENABLE_CXX11=0
4752  ;;
4753   default) ENABLE_CXX11=0
4754 ;;
4755   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4756 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4757    { (exit 1); exit 1; }; } ;;
4758 esac
4759
4760 # Check whether --enable-split-dwarf was given.
4761 if test "${enable_split_dwarf+set}" = set; then
4762   enableval=$enable_split_dwarf;
4763 else
4764   enableval=default
4765 fi
4766
4767 case "$enableval" in
4768   yes) ENABLE_SPLIT_DWARF=1
4769  ;;
4770   no)  ENABLE_SPLIT_DWARF=0
4771  ;;
4772   default) ENABLE_SPLIT_DWARF=0
4773 ;;
4774   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4775 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4776    { (exit 1); exit 1; }; } ;;
4777 esac
4778
4779 clang_arcmt="yes"
4780 # Check whether --enable-clang-arcmt was given.
4781 if test "${enable_clang_arcmt+set}" = set; then
4782   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4783 else
4784   enableval="yes"
4785 fi
4786
4787 case "$enableval" in
4788   yes) ENABLE_CLANG_ARCMT=1
4789  ;;
4790   no)  ENABLE_CLANG_ARCMT=0
4791  ;;
4792   default) ENABLE_CLANG_ARCMT=1
4793 ;;
4794   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4796    { (exit 1); exit 1; }; } ;;
4797 esac
4798
4799 clang_static_analyzer="yes"
4800 # Check whether --enable-clang-static-analyzer was given.
4801 if test "${enable_clang_static_analyzer+set}" = set; then
4802   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4803 else
4804   enableval="yes"
4805 fi
4806
4807 case "$enableval" in
4808   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4809  ;;
4810   no)
4811     if test ${clang_arcmt} != "no" ; then
4812       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4813 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4814    { (exit 1); exit 1; }; }
4815     fi
4816     ENABLE_CLANG_STATIC_ANALYZER=0
4817
4818     ;;
4819   default) ENABLE_CLANG_STATIC_ANALYZER=1
4820 ;;
4821   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4823    { (exit 1); exit 1; }; } ;;
4824 esac
4825
4826 # Check whether --enable-clang-rewriter was given.
4827 if test "${enable_clang_rewriter+set}" = set; then
4828   enableval=$enable_clang_rewriter;
4829 else
4830   enableval="yes"
4831 fi
4832
4833 case "$enableval" in
4834   yes) ENABLE_CLANG_REWRITER=1
4835  ;;
4836   no)
4837     if test ${clang_arcmt} != "no" ; then
4838       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4839 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4840    { (exit 1); exit 1; }; }
4841     fi
4842     if test ${clang_static_analyzer} != "no" ; then
4843       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4844 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4845    { (exit 1); exit 1; }; }
4846     fi
4847     ENABLE_CLANG_REWRITER=0
4848
4849     ;;
4850   default) ENABLE_CLANG_REWRITER=1
4851 ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 # Check whether --enable-optimized was given.
4858 if test "${enable_optimized+set}" = set; then
4859   enableval=$enable_optimized;
4860 else
4861   enableval=$optimize
4862 fi
4863
4864 if test ${enableval} = "no" ; then
4865   ENABLE_OPTIMIZED=
4866
4867 else
4868   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4869
4870 fi
4871
4872 # Check whether --enable-profiling was given.
4873 if test "${enable_profiling+set}" = set; then
4874   enableval=$enable_profiling;
4875 else
4876   enableval="no"
4877 fi
4878
4879 if test ${enableval} = "no" ; then
4880   ENABLE_PROFILING=
4881
4882 else
4883   ENABLE_PROFILING=ENABLE_PROFILING=1
4884
4885 fi
4886
4887 # Check whether --enable-assertions was given.
4888 if test "${enable_assertions+set}" = set; then
4889   enableval=$enable_assertions;
4890 else
4891   enableval="yes"
4892 fi
4893
4894 if test ${enableval} = "yes" ; then
4895   DISABLE_ASSERTIONS=
4896
4897 else
4898   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4899
4900 fi
4901
4902 # Check whether --enable-werror was given.
4903 if test "${enable_werror+set}" = set; then
4904   enableval=$enable_werror;
4905 else
4906   enableval="no"
4907 fi
4908
4909 case "$enableval" in
4910   yes) ENABLE_WERROR=1
4911  ;;
4912   no)  ENABLE_WERROR=0
4913  ;;
4914   default) ENABLE_WERROR=0
4915 ;;
4916   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4917 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4918    { (exit 1); exit 1; }; } ;;
4919 esac
4920
4921 # Check whether --enable-expensive-checks was given.
4922 if test "${enable_expensive_checks+set}" = set; then
4923   enableval=$enable_expensive_checks;
4924 else
4925   enableval="no"
4926 fi
4927
4928 if test ${enableval} = "yes" ; then
4929   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4930
4931   EXPENSIVE_CHECKS=yes
4932
4933 else
4934   ENABLE_EXPENSIVE_CHECKS=
4935
4936   EXPENSIVE_CHECKS=no
4937
4938 fi
4939
4940 # Check whether --enable-debug-runtime was given.
4941 if test "${enable_debug_runtime+set}" = set; then
4942   enableval=$enable_debug_runtime;
4943 else
4944   enableval=no
4945 fi
4946
4947 if test ${enableval} = "no" ; then
4948   DEBUG_RUNTIME=
4949
4950 else
4951   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4952
4953 fi
4954
4955 # Check whether --enable-debug-symbols was given.
4956 if test "${enable_debug_symbols+set}" = set; then
4957   enableval=$enable_debug_symbols;
4958 else
4959   enableval=no
4960 fi
4961
4962 if test ${enableval} = "no" ; then
4963   DEBUG_SYMBOLS=
4964
4965 else
4966   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4967
4968 fi
4969
4970 # Check whether --enable-keep-symbols was given.
4971 if test "${enable_keep_symbols+set}" = set; then
4972   enableval=$enable_keep_symbols;
4973 else
4974   enableval=no
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   KEEP_SYMBOLS=
4979
4980 else
4981   KEEP_SYMBOLS=KEEP_SYMBOLS=1
4982
4983 fi
4984
4985 # Check whether --enable-jit was given.
4986 if test "${enable_jit+set}" = set; then
4987   enableval=$enable_jit;
4988 else
4989   enableval=default
4990 fi
4991
4992 if test ${enableval} = "no"
4993 then
4994   JIT=
4995
4996 else
4997   case "$llvm_cv_target_arch" in
4998     x86)         TARGET_HAS_JIT=1
4999  ;;
5000     Sparc)       TARGET_HAS_JIT=0
5001  ;;
5002     PowerPC)     TARGET_HAS_JIT=1
5003  ;;
5004     x86_64)      TARGET_HAS_JIT=1
5005  ;;
5006     ARM)         TARGET_HAS_JIT=1
5007  ;;
5008     AArch64)     TARGET_HAS_JIT=0
5009  ;;
5010     Mips)        TARGET_HAS_JIT=1
5011  ;;
5012     XCore)       TARGET_HAS_JIT=0
5013  ;;
5014     MSP430)      TARGET_HAS_JIT=0
5015  ;;
5016     Hexagon)     TARGET_HAS_JIT=0
5017  ;;
5018     NVPTX)       TARGET_HAS_JIT=0
5019  ;;
5020     SystemZ)     TARGET_HAS_JIT=1
5021  ;;
5022     *)           TARGET_HAS_JIT=0
5023  ;;
5024   esac
5025 fi
5026
5027 # Check whether --enable-docs was given.
5028 if test "${enable_docs+set}" = set; then
5029   enableval=$enable_docs;
5030 else
5031   enableval=default
5032 fi
5033
5034 case "$enableval" in
5035   yes) ENABLE_DOCS=1
5036  ;;
5037   no)  ENABLE_DOCS=0
5038  ;;
5039   default) ENABLE_DOCS=1
5040  ;;
5041   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5042 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5043    { (exit 1); exit 1; }; } ;;
5044 esac
5045
5046 # Check whether --enable-doxygen was given.
5047 if test "${enable_doxygen+set}" = set; then
5048   enableval=$enable_doxygen;
5049 else
5050   enableval=default
5051 fi
5052
5053 case "$enableval" in
5054   yes) ENABLE_DOXYGEN=1
5055  ;;
5056   no)  ENABLE_DOXYGEN=0
5057  ;;
5058   default) ENABLE_DOXYGEN=0
5059  ;;
5060   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5061 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5062    { (exit 1); exit 1; }; } ;;
5063 esac
5064
5065 # Check whether --enable-threads was given.
5066 if test "${enable_threads+set}" = set; then
5067   enableval=$enable_threads;
5068 else
5069   enableval=default
5070 fi
5071
5072 case "$enableval" in
5073   yes) LLVM_ENABLE_THREADS=1
5074  ;;
5075   no)  LLVM_ENABLE_THREADS=0
5076  ;;
5077   default) LLVM_ENABLE_THREADS=1
5078  ;;
5079   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5080 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5081    { (exit 1); exit 1; }; } ;;
5082 esac
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5086 _ACEOF
5087
5088
5089 # Check whether --enable-pthreads was given.
5090 if test "${enable_pthreads+set}" = set; then
5091   enableval=$enable_pthreads;
5092 else
5093   enableval=default
5094 fi
5095
5096 case "$enableval" in
5097   yes) ENABLE_PTHREADS=1
5098  ;;
5099   no)  ENABLE_PTHREADS=0
5100  ;;
5101   default) ENABLE_PTHREADS=1
5102  ;;
5103   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5104 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5105    { (exit 1); exit 1; }; } ;;
5106 esac
5107
5108 # Check whether --enable-zlib was given.
5109 if test "${enable_zlib+set}" = set; then
5110   enableval=$enable_zlib;
5111 else
5112   enableval=default
5113 fi
5114
5115 case "$enableval" in
5116   yes) LLVM_ENABLE_ZLIB=1
5117  ;;
5118   no)  LLVM_ENABLE_ZLIB=0
5119  ;;
5120   default) LLVM_ENABLE_ZLIB=1
5121  ;;
5122   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5123 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5124    { (exit 1); exit 1; }; } ;;
5125 esac
5126
5127 cat >>confdefs.h <<_ACEOF
5128 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5129 _ACEOF
5130
5131
5132 # Check whether --enable-pic was given.
5133 if test "${enable_pic+set}" = set; then
5134   enableval=$enable_pic;
5135 else
5136   enableval=default
5137 fi
5138
5139 case "$enableval" in
5140   yes) ENABLE_PIC=1
5141  ;;
5142   no)  ENABLE_PIC=0
5143  ;;
5144   default) ENABLE_PIC=1
5145  ;;
5146   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149 esac
5150
5151 cat >>confdefs.h <<_ACEOF
5152 #define ENABLE_PIC $ENABLE_PIC
5153 _ACEOF
5154
5155
5156 # Check whether --enable-shared was given.
5157 if test "${enable_shared+set}" = set; then
5158   enableval=$enable_shared;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_SHARED=1
5165  ;;
5166   no)  ENABLE_SHARED=0
5167  ;;
5168   default) ENABLE_SHARED=0
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-embed-stdcxx was given.
5176 if test "${enable_embed_stdcxx+set}" = set; then
5177   enableval=$enable_embed_stdcxx;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) ENABLE_EMBED_STDCXX=1
5184  ;;
5185   no)  ENABLE_EMBED_STDCXX=0
5186  ;;
5187   default) ENABLE_EMBED_STDCXX=0
5188  ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 # Check whether --enable-timestamps was given.
5195 if test "${enable_timestamps+set}" = set; then
5196   enableval=$enable_timestamps;
5197 else
5198   enableval=default
5199 fi
5200
5201 case "$enableval" in
5202   yes) ENABLE_TIMESTAMPS=1
5203  ;;
5204   no)  ENABLE_TIMESTAMPS=0
5205  ;;
5206   default) ENABLE_TIMESTAMPS=1
5207  ;;
5208   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5209 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5210    { (exit 1); exit 1; }; } ;;
5211 esac
5212
5213 cat >>confdefs.h <<_ACEOF
5214 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5215 _ACEOF
5216
5217
5218 # Check whether --enable-backtraces was given.
5219 if test "${enable_backtraces+set}" = set; then
5220   enableval=$enable_backtraces; case "$enableval" in
5221     yes) llvm_cv_enable_backtraces="yes" ;;
5222     no)  llvm_cv_enable_backtraces="no"  ;;
5223     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5225    { (exit 1); exit 1; }; } ;;
5226   esac
5227 else
5228   llvm_cv_enable_backtraces="yes"
5229 fi
5230
5231 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5232
5233 cat >>confdefs.h <<\_ACEOF
5234 #define ENABLE_BACKTRACES 1
5235 _ACEOF
5236
5237 fi
5238
5239 # Check whether --enable-crash-overrides was given.
5240 if test "${enable_crash_overrides+set}" = set; then
5241   enableval=$enable_crash_overrides; case "$enableval" in
5242     yes) llvm_cv_enable_crash_overrides="yes" ;;
5243     no)  llvm_cv_enable_crash_overrides="no"  ;;
5244     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5245 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5246    { (exit 1); exit 1; }; } ;;
5247   esac
5248 else
5249   llvm_cv_enable_crash_overrides="yes"
5250 fi
5251
5252 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5253
5254 cat >>confdefs.h <<\_ACEOF
5255 #define ENABLE_CRASH_OVERRIDES 1
5256 _ACEOF
5257
5258 fi
5259
5260 TARGETS_TO_BUILD=""
5261 # Check whether --enable-targets was given.
5262 if test "${enable_targets+set}" = set; then
5263   enableval=$enable_targets;
5264 else
5265   enableval=all
5266 fi
5267
5268 if test "$enableval" = host-only ; then
5269   enableval=host
5270 fi
5271 case "$enableval" in
5272   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5273   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5274       case "$a_target" in
5275         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5276         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5278         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5279         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5280         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5281         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5282         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5285         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5288         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5289         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5290         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5291         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5292         host) case "$llvm_cv_target_arch" in
5293             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5296             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5297             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5298             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5299             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5300             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5301             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5302             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5303             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5304             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5305             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5306 echo "$as_me: error: Can not set target to build" >&2;}
5307    { (exit 1); exit 1; }; } ;;
5308           esac ;;
5309         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5310 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5311    { (exit 1); exit 1; }; } ;;
5312       esac
5313   done
5314   ;;
5315 esac
5316
5317 # Check whether --enable-experimental-targets was given.
5318 if test "${enable_experimental_targets+set}" = set; then
5319   enableval=$enable_experimental_targets;
5320 else
5321   enableval=disable
5322 fi
5323
5324
5325 if test ${enableval} != "disable"
5326 then
5327   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5328 fi
5329
5330 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5331
5332
5333 for a_target in $TARGETS_TO_BUILD; do
5334   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5335
5336 cat >>confdefs.h <<_ACEOF
5337 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5338 _ACEOF
5339
5340     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5341     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5342     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5343     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5344     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5345       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5346     fi
5347     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5348       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5349     fi
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5353 _ACEOF
5354
5355
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5358 _ACEOF
5359
5360
5361 cat >>confdefs.h <<_ACEOF
5362 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5363 _ACEOF
5364
5365
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5368 _ACEOF
5369
5370     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5371
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5374 _ACEOF
5375
5376     fi
5377     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5381 _ACEOF
5382
5383     fi
5384   fi
5385 done
5386
5387 LLVM_ENUM_TARGETS=""
5388 LLVM_ENUM_ASM_PRINTERS=""
5389 LLVM_ENUM_ASM_PARSERS=""
5390 LLVM_ENUM_DISASSEMBLERS=""
5391 for target_to_build in $TARGETS_TO_BUILD; do
5392   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5393   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5394     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5395   fi
5396   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5397     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5398   fi
5399   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5400     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5401   fi
5402 done
5403
5404
5405
5406
5407
5408
5409 # Check whether --with-optimize-option was given.
5410 if test "${with_optimize_option+set}" = set; then
5411   withval=$with_optimize_option;
5412 else
5413   withval=default
5414 fi
5415
5416 { echo "$as_me:$LINENO: checking optimization flags" >&5
5417 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5418 case "$withval" in
5419   default)
5420     case "$llvm_cv_os_type" in
5421     FreeBSD) optimize_option=-O2 ;;
5422     MingW) optimize_option=-O2 ;;
5423     *)     optimize_option=-O3 ;;
5424     esac ;;
5425   *) optimize_option="$withval" ;;
5426 esac
5427 OPTIMIZE_OPTION=$optimize_option
5428
5429 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5430 echo "${ECHO_T}$optimize_option" >&6; }
5431
5432
5433 # Check whether --with-extra-options was given.
5434 if test "${with_extra_options+set}" = set; then
5435   withval=$with_extra_options;
5436 else
5437   withval=default
5438 fi
5439
5440 case "$withval" in
5441   default) EXTRA_OPTIONS= ;;
5442   *) EXTRA_OPTIONS=$withval ;;
5443 esac
5444 EXTRA_OPTIONS=$EXTRA_OPTIONS
5445
5446
5447
5448 # Check whether --with-extra-ld-options was given.
5449 if test "${with_extra_ld_options+set}" = set; then
5450   withval=$with_extra_ld_options;
5451 else
5452   withval=default
5453 fi
5454
5455 case "$withval" in
5456   default) EXTRA_LD_OPTIONS= ;;
5457   *) EXTRA_LD_OPTIONS=$withval ;;
5458 esac
5459 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5460
5461
5462 # Check whether --enable-bindings was given.
5463 if test "${enable_bindings+set}" = set; then
5464   enableval=$enable_bindings;
5465 else
5466   enableval=default
5467 fi
5468
5469 BINDINGS_TO_BUILD=""
5470 case "$enableval" in
5471   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5472   all ) BINDINGS_TO_BUILD="ocaml" ;;
5473   none | no) BINDINGS_TO_BUILD="" ;;
5474   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5475       case "$a_binding" in
5476         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5477         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5478 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5479    { (exit 1); exit 1; }; } ;;
5480       esac
5481   done
5482   ;;
5483 esac
5484
5485
5486 # Check whether --with-ocaml-libdir was given.
5487 if test "${with_ocaml_libdir+set}" = set; then
5488   withval=$with_ocaml_libdir;
5489 else
5490   withval=auto
5491 fi
5492
5493 case "$withval" in
5494   auto) with_ocaml_libdir="$withval" ;;
5495   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5496   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5497 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5498    { (exit 1); exit 1; }; } ;;
5499 esac
5500
5501
5502 # Check whether --with-clang-srcdir was given.
5503 if test "${with_clang_srcdir+set}" = set; then
5504   withval=$with_clang_srcdir;
5505 else
5506   withval="-"
5507 fi
5508
5509 case "$withval" in
5510   -) clang_src_root="" ;;
5511   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5512   *) clang_src_root="$ac_pwd/$withval" ;;
5513 esac
5514 CLANG_SRC_ROOT=$clang_src_root
5515
5516
5517
5518 # Check whether --with-clang-resource-dir was given.
5519 if test "${with_clang_resource_dir+set}" = set; then
5520   withval=$with_clang_resource_dir;
5521 else
5522   withval=""
5523 fi
5524
5525
5526 cat >>confdefs.h <<_ACEOF
5527 #define CLANG_RESOURCE_DIR "$withval"
5528 _ACEOF
5529
5530
5531
5532 # Check whether --with-c-include-dirs was given.
5533 if test "${with_c_include_dirs+set}" = set; then
5534   withval=$with_c_include_dirs;
5535 else
5536   withval=""
5537 fi
5538
5539
5540 cat >>confdefs.h <<_ACEOF
5541 #define C_INCLUDE_DIRS "$withval"
5542 _ACEOF
5543
5544
5545 # Clang normally uses the system c++ headers and libraries. With this option,
5546 # clang will use the ones provided by a gcc installation instead. This option should
5547 # be passed the same value that was used with --prefix when configuring gcc.
5548
5549 # Check whether --with-gcc-toolchain was given.
5550 if test "${with_gcc_toolchain+set}" = set; then
5551   withval=$with_gcc_toolchain;
5552 else
5553   withval=""
5554 fi
5555
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define GCC_INSTALL_PREFIX "$withval"
5559 _ACEOF
5560
5561
5562
5563 # Check whether --with-default-sysroot was given.
5564 if test "${with_default_sysroot+set}" = set; then
5565   withval=$with_default_sysroot;
5566 else
5567   withval=""
5568 fi
5569
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define DEFAULT_SYSROOT "$withval"
5573 _ACEOF
5574
5575
5576
5577 # Check whether --with-binutils-include was given.
5578 if test "${with_binutils_include+set}" = set; then
5579   withval=$with_binutils_include;
5580 else
5581   withval=default
5582 fi
5583
5584 case "$withval" in
5585   default) WITH_BINUTILS_INCDIR=default ;;
5586   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5587   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5588 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5589    { (exit 1); exit 1; }; } ;;
5590 esac
5591 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5592   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5593
5594   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5595      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5596      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5597 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5598    { (exit 1); exit 1; }; };
5599   fi
5600 fi
5601
5602
5603 # Check whether --with-bug-report-url was given.
5604 if test "${with_bug_report_url+set}" = set; then
5605   withval=$with_bug_report_url;
5606 else
5607   withval="http://llvm.org/bugs/"
5608 fi
5609
5610
5611 cat >>confdefs.h <<_ACEOF
5612 #define BUG_REPORT_URL "$withval"
5613 _ACEOF
5614
5615
5616 # Check whether --enable-terminfo was given.
5617 if test "${enable_terminfo+set}" = set; then
5618   enableval=$enable_terminfo; case "$enableval" in
5619     yes) llvm_cv_enable_terminfo="yes" ;;
5620     no)  llvm_cv_enable_terminfo="no"  ;;
5621     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5622 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5623    { (exit 1); exit 1; }; } ;;
5624   esac
5625 else
5626   llvm_cv_enable_terminfo="yes"
5627 fi
5628
5629
5630 # Check whether --enable-libffi was given.
5631 if test "${enable_libffi+set}" = set; then
5632   enableval=$enable_libffi; case "$enableval" in
5633     yes) llvm_cv_enable_libffi="yes" ;;
5634     no)  llvm_cv_enable_libffi="no"  ;;
5635     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5636 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5637    { (exit 1); exit 1; }; } ;;
5638   esac
5639 else
5640   llvm_cv_enable_libffi=no
5641 fi
5642
5643
5644
5645 # Check whether --with-internal-prefix was given.
5646 if test "${with_internal_prefix+set}" = set; then
5647   withval=$with_internal_prefix;
5648 else
5649   withval=""
5650 fi
5651
5652 INTERNAL_PREFIX=$withval
5653
5654
5655
5656 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5657 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5658 if test "${lt_cv_path_NM+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   if test -n "$NM"; then
5662   # Let the user override the test.
5663   lt_cv_path_NM="$NM"
5664 else
5665   lt_nm_to_check="${ac_tool_prefix}nm"
5666   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5667     lt_nm_to_check="$lt_nm_to_check nm"
5668   fi
5669   for lt_tmp_nm in $lt_nm_to_check; do
5670     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5671     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5672       IFS="$lt_save_ifs"
5673       test -z "$ac_dir" && ac_dir=.
5674       tmp_nm="$ac_dir/$lt_tmp_nm"
5675       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5676         # Check to see if the nm accepts a BSD-compat flag.
5677         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5678         #   nm: unknown option "B" ignored
5679         # Tru64's nm complains that /dev/null is an invalid object file
5680         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5681         */dev/null* | *'Invalid file or object type'*)
5682           lt_cv_path_NM="$tmp_nm -B"
5683           break
5684           ;;
5685         *)
5686           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5687           */dev/null*)
5688             lt_cv_path_NM="$tmp_nm -p"
5689             break
5690             ;;
5691           *)
5692             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5693             continue # so that we can try to find one that supports BSD flags
5694             ;;
5695           esac
5696           ;;
5697         esac
5698       fi
5699     done
5700     IFS="$lt_save_ifs"
5701   done
5702   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5703 fi
5704 fi
5705 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5706 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5707 NM="$lt_cv_path_NM"
5708
5709
5710
5711 { echo "$as_me:$LINENO: checking for GNU make" >&5
5712 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5713 if test "${llvm_cv_gnu_make_command+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   llvm_cv_gnu_make_command=''
5717  for a in "$MAKE" make gmake gnumake ; do
5718   if test -z "$a" ; then continue ; fi ;
5719   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5720   then
5721    llvm_cv_gnu_make_command=$a ;
5722    break;
5723   fi
5724  done
5725 fi
5726 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5727 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5728  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5729    ifGNUmake='' ;
5730  else
5731    ifGNUmake='#' ;
5732    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5733 echo "${ECHO_T}\"Not found\"" >&6; };
5734  fi
5735
5736
5737 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5739 LN_S=$as_ln_s
5740 if test "$LN_S" = "ln -s"; then
5741   { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5743 else
5744   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5745 echo "${ECHO_T}no, using $LN_S" >&6; }
5746 fi
5747
5748 # Extract the first word of "cmp", so it can be a program name with args.
5749 set dummy cmp; ac_word=$2
5750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5752 if test "${ac_cv_path_CMP+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   case $CMP in
5756   [\\/]* | ?:[\\/]*)
5757   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5758   ;;
5759   *)
5760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765   for ac_exec_ext in '' $ac_executable_extensions; do
5766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5776   ;;
5777 esac
5778 fi
5779 CMP=$ac_cv_path_CMP
5780 if test -n "$CMP"; then
5781   { echo "$as_me:$LINENO: result: $CMP" >&5
5782 echo "${ECHO_T}$CMP" >&6; }
5783 else
5784   { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5786 fi
5787
5788
5789 # Extract the first word of "cp", so it can be a program name with args.
5790 set dummy cp; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_path_CP+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   case $CP in
5797   [\\/]* | ?:[\\/]*)
5798   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5799   ;;
5800   *)
5801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806   for ac_exec_ext in '' $ac_executable_extensions; do
5807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5808     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810     break 2
5811   fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5817   ;;
5818 esac
5819 fi
5820 CP=$ac_cv_path_CP
5821 if test -n "$CP"; then
5822   { echo "$as_me:$LINENO: result: $CP" >&5
5823 echo "${ECHO_T}$CP" >&6; }
5824 else
5825   { echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6; }
5827 fi
5828
5829
5830 # Extract the first word of "date", so it can be a program name with args.
5831 set dummy date; ac_word=$2
5832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834 if test "${ac_cv_path_DATE+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   case $DATE in
5838   [\\/]* | ?:[\\/]*)
5839   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5840   ;;
5841   *)
5842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5849     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5858   ;;
5859 esac
5860 fi
5861 DATE=$ac_cv_path_DATE
5862 if test -n "$DATE"; then
5863   { echo "$as_me:$LINENO: result: $DATE" >&5
5864 echo "${ECHO_T}$DATE" >&6; }
5865 else
5866   { echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6; }
5868 fi
5869
5870
5871 # Extract the first word of "find", so it can be a program name with args.
5872 set dummy find; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_path_FIND+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   case $FIND in
5879   [\\/]* | ?:[\\/]*)
5880   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5881   ;;
5882   *)
5883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5890     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5899   ;;
5900 esac
5901 fi
5902 FIND=$ac_cv_path_FIND
5903 if test -n "$FIND"; then
5904   { echo "$as_me:$LINENO: result: $FIND" >&5
5905 echo "${ECHO_T}$FIND" >&6; }
5906 else
5907   { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5909 fi
5910
5911
5912 # Extract the first word of "grep", so it can be a program name with args.
5913 set dummy grep; ac_word=$2
5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_GREP+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   case $GREP in
5920   [\\/]* | ?:[\\/]*)
5921   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5922   ;;
5923   *)
5924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929   for ac_exec_ext in '' $ac_executable_extensions; do
5930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5931     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5940   ;;
5941 esac
5942 fi
5943 GREP=$ac_cv_path_GREP
5944 if test -n "$GREP"; then
5945   { echo "$as_me:$LINENO: result: $GREP" >&5
5946 echo "${ECHO_T}$GREP" >&6; }
5947 else
5948   { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5950 fi
5951
5952
5953 # Extract the first word of "mkdir", so it can be a program name with args.
5954 set dummy mkdir; ac_word=$2
5955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5957 if test "${ac_cv_path_MKDIR+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   case $MKDIR in
5961   [\\/]* | ?:[\\/]*)
5962   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5963   ;;
5964   *)
5965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5981   ;;
5982 esac
5983 fi
5984 MKDIR=$ac_cv_path_MKDIR
5985 if test -n "$MKDIR"; then
5986   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5987 echo "${ECHO_T}$MKDIR" >&6; }
5988 else
5989   { echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6; }
5991 fi
5992
5993
5994 # Extract the first word of "mv", so it can be a program name with args.
5995 set dummy mv; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_path_MV+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   case $MV in
6002   [\\/]* | ?:[\\/]*)
6003   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6004   ;;
6005   *)
6006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6013     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6022   ;;
6023 esac
6024 fi
6025 MV=$ac_cv_path_MV
6026 if test -n "$MV"; then
6027   { echo "$as_me:$LINENO: result: $MV" >&5
6028 echo "${ECHO_T}$MV" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035 if test -n "$ac_tool_prefix"; then
6036   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_RANLIB+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   if test -n "$RANLIB"; then
6044   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051   for ac_exec_ext in '' $ac_executable_extensions; do
6052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6053     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 RANLIB=$ac_cv_prog_RANLIB
6064 if test -n "$RANLIB"; then
6065   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6066 echo "${ECHO_T}$RANLIB" >&6; }
6067 else
6068   { echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6; }
6070 fi
6071
6072
6073 fi
6074 if test -z "$ac_cv_prog_RANLIB"; then
6075   ac_ct_RANLIB=$RANLIB
6076   # Extract the first word of "ranlib", so it can be a program name with args.
6077 set dummy ranlib; ac_word=$2
6078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   if test -n "$ac_ct_RANLIB"; then
6084   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091   for ac_exec_ext in '' $ac_executable_extensions; do
6092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6093     ac_cv_prog_ac_ct_RANLIB="ranlib"
6094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6104 if test -n "$ac_ct_RANLIB"; then
6105   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6106 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6107 else
6108   { echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6; }
6110 fi
6111
6112   if test "x$ac_ct_RANLIB" = x; then
6113     RANLIB=":"
6114   else
6115     case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet.  If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&5
6120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet.  If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6123 ac_tool_warned=yes ;;
6124 esac
6125     RANLIB=$ac_ct_RANLIB
6126   fi
6127 else
6128   RANLIB="$ac_cv_prog_RANLIB"
6129 fi
6130
6131 if test -n "$ac_tool_prefix"; then
6132   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6133 set dummy ${ac_tool_prefix}ar; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_AR+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   if test -n "$AR"; then
6140   ac_cv_prog_AR="$AR" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147   for ac_exec_ext in '' $ac_executable_extensions; do
6148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149     ac_cv_prog_AR="${ac_tool_prefix}ar"
6150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 AR=$ac_cv_prog_AR
6160 if test -n "$AR"; then
6161   { echo "$as_me:$LINENO: result: $AR" >&5
6162 echo "${ECHO_T}$AR" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169 fi
6170 if test -z "$ac_cv_prog_AR"; then
6171   ac_ct_AR=$AR
6172   # Extract the first word of "ar", so it can be a program name with args.
6173 set dummy ar; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   if test -n "$ac_ct_AR"; then
6180   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187   for ac_exec_ext in '' $ac_executable_extensions; do
6188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6189     ac_cv_prog_ac_ct_AR="ar"
6190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200 if test -n "$ac_ct_AR"; then
6201   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202 echo "${ECHO_T}$ac_ct_AR" >&6; }
6203 else
6204   { echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6; }
6206 fi
6207
6208   if test "x$ac_ct_AR" = x; then
6209     AR="false"
6210   else
6211     case $cross_compiling:$ac_tool_warned in
6212 yes:)
6213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet.  If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&5
6216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet.  If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221     AR=$ac_ct_AR
6222   fi
6223 else
6224   AR="$ac_cv_prog_AR"
6225 fi
6226
6227 # Extract the first word of "rm", so it can be a program name with args.
6228 set dummy rm; 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_RM+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   case $RM in
6235   [\\/]* | ?:[\\/]*)
6236   ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
6255   ;;
6256 esac
6257 fi
6258 RM=$ac_cv_path_RM
6259 if test -n "$RM"; then
6260   { echo "$as_me:$LINENO: result: $RM" >&5
6261 echo "${ECHO_T}$RM" >&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 "sed", so it can be a program name with args.
6269 set dummy sed; 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_SED+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   case $SED in
6276   [\\/]* | ?:[\\/]*)
6277   ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
6296   ;;
6297 esac
6298 fi
6299 SED=$ac_cv_path_SED
6300 if test -n "$SED"; then
6301   { echo "$as_me:$LINENO: result: $SED" >&5
6302 echo "${ECHO_T}$SED" >&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 "tar", so it can be a program name with args.
6310 set dummy tar; 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_TAR+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   case $TAR in
6317   [\\/]* | ?:[\\/]*)
6318   ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
6337   ;;
6338 esac
6339 fi
6340 TAR=$ac_cv_path_TAR
6341 if test -n "$TAR"; then
6342   { echo "$as_me:$LINENO: result: $TAR" >&5
6343 echo "${ECHO_T}$TAR" >&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 "pwd", so it can be a program name with args.
6351 set dummy pwd; 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_BINPWD+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   case $BINPWD in
6358   [\\/]* | ?:[\\/]*)
6359   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
6378   ;;
6379 esac
6380 fi
6381 BINPWD=$ac_cv_path_BINPWD
6382 if test -n "$BINPWD"; then
6383   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6384 echo "${ECHO_T}$BINPWD" >&6; }
6385 else
6386   { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6388 fi
6389
6390
6391
6392 # Extract the first word of "Graphviz", so it can be a program name with args.
6393 set dummy Graphviz; 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_path_GRAPHVIZ+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   case $GRAPHVIZ in
6400   [\\/]* | ?:[\\/]*)
6401   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6402   ;;
6403   *)
6404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6420   ;;
6421 esac
6422 fi
6423 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6424 if test -n "$GRAPHVIZ"; then
6425   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6426 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6427 else
6428   { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6430 fi
6431
6432
6433 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6434
6435 cat >>confdefs.h <<\_ACEOF
6436 #define HAVE_GRAPHVIZ 1
6437 _ACEOF
6438
6439     if test "$llvm_cv_os_type" = "MingW" ; then
6440     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6441   fi
6442
6443 cat >>confdefs.h <<_ACEOF
6444 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6445 _ACEOF
6446
6447 fi
6448 # Extract the first word of "dot", so it can be a program name with args.
6449 set dummy dot; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_path_DOT+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   case $DOT in
6456   [\\/]* | ?:[\\/]*)
6457   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6458   ;;
6459   *)
6460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465   for ac_exec_ext in '' $ac_executable_extensions; do
6466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6467     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6476   ;;
6477 esac
6478 fi
6479 DOT=$ac_cv_path_DOT
6480 if test -n "$DOT"; then
6481   { echo "$as_me:$LINENO: result: $DOT" >&5
6482 echo "${ECHO_T}$DOT" >&6; }
6483 else
6484   { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6486 fi
6487
6488
6489 if test "$DOT" != "echo dot" ; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_DOT 1
6493 _ACEOF
6494
6495     if test "$llvm_cv_os_type" = "MingW" ; then
6496     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6497   fi
6498
6499 cat >>confdefs.h <<_ACEOF
6500 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6501 _ACEOF
6502
6503 fi
6504 # Extract the first word of "fdp", so it can be a program name with args.
6505 set dummy fdp; ac_word=$2
6506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6508 if test "${ac_cv_path_FDP+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   case $FDP in
6512   [\\/]* | ?:[\\/]*)
6513   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6514   ;;
6515   *)
6516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521   for ac_exec_ext in '' $ac_executable_extensions; do
6522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6523     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6532   ;;
6533 esac
6534 fi
6535 FDP=$ac_cv_path_FDP
6536 if test -n "$FDP"; then
6537   { echo "$as_me:$LINENO: result: $FDP" >&5
6538 echo "${ECHO_T}$FDP" >&6; }
6539 else
6540   { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6542 fi
6543
6544
6545 if test "$FDP" != "echo fdp" ; then
6546
6547 cat >>confdefs.h <<\_ACEOF
6548 #define HAVE_FDP 1
6549 _ACEOF
6550
6551     if test "$llvm_cv_os_type" = "MingW" ; then
6552     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6553   fi
6554
6555 cat >>confdefs.h <<_ACEOF
6556 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6557 _ACEOF
6558
6559 fi
6560 # Extract the first word of "neato", so it can be a program name with args.
6561 set dummy neato; ac_word=$2
6562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6564 if test "${ac_cv_path_NEATO+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   case $NEATO in
6568   [\\/]* | ?:[\\/]*)
6569   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6570   ;;
6571   *)
6572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577   for ac_exec_ext in '' $ac_executable_extensions; do
6578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6579     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6588   ;;
6589 esac
6590 fi
6591 NEATO=$ac_cv_path_NEATO
6592 if test -n "$NEATO"; then
6593   { echo "$as_me:$LINENO: result: $NEATO" >&5
6594 echo "${ECHO_T}$NEATO" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6598 fi
6599
6600
6601 if test "$NEATO" != "echo neato" ; then
6602
6603 cat >>confdefs.h <<\_ACEOF
6604 #define HAVE_NEATO 1
6605 _ACEOF
6606
6607     if test "$llvm_cv_os_type" = "MingW" ; then
6608     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6609   fi
6610
6611 cat >>confdefs.h <<_ACEOF
6612 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6613 _ACEOF
6614
6615 fi
6616 # Extract the first word of "twopi", so it can be a program name with args.
6617 set dummy twopi; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_TWOPI+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   case $TWOPI in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6626   ;;
6627   *)
6628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6644   ;;
6645 esac
6646 fi
6647 TWOPI=$ac_cv_path_TWOPI
6648 if test -n "$TWOPI"; then
6649   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6650 echo "${ECHO_T}$TWOPI" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 if test "$TWOPI" != "echo twopi" ; then
6658
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_TWOPI 1
6661 _ACEOF
6662
6663     if test "$llvm_cv_os_type" = "MingW" ; then
6664     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6665   fi
6666
6667 cat >>confdefs.h <<_ACEOF
6668 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6669 _ACEOF
6670
6671 fi
6672 # Extract the first word of "circo", so it can be a program name with args.
6673 set dummy circo; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_CIRCO+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   case $CIRCO in
6680   [\\/]* | ?:[\\/]*)
6681   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6682   ;;
6683   *)
6684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689   for ac_exec_ext in '' $ac_executable_extensions; do
6690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6700   ;;
6701 esac
6702 fi
6703 CIRCO=$ac_cv_path_CIRCO
6704 if test -n "$CIRCO"; then
6705   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6706 echo "${ECHO_T}$CIRCO" >&6; }
6707 else
6708   { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6710 fi
6711
6712
6713 if test "$CIRCO" != "echo circo" ; then
6714
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_CIRCO 1
6717 _ACEOF
6718
6719     if test "$llvm_cv_os_type" = "MingW" ; then
6720     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6721   fi
6722
6723 cat >>confdefs.h <<_ACEOF
6724 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6725 _ACEOF
6726
6727 fi
6728 for ac_prog in gv gsview32
6729 do
6730   # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GV+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   case $GV in
6738   [\\/]* | ?:[\\/]*)
6739   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6740   ;;
6741   *)
6742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757   ;;
6758 esac
6759 fi
6760 GV=$ac_cv_path_GV
6761 if test -n "$GV"; then
6762   { echo "$as_me:$LINENO: result: $GV" >&5
6763 echo "${ECHO_T}$GV" >&6; }
6764 else
6765   { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6767 fi
6768
6769
6770   test -n "$GV" && break
6771 done
6772 test -n "$GV" || GV="echo gv"
6773
6774 if test "$GV" != "echo gv" ; then
6775
6776 cat >>confdefs.h <<\_ACEOF
6777 #define HAVE_GV 1
6778 _ACEOF
6779
6780     if test "$llvm_cv_os_type" = "MingW" ; then
6781     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6782   fi
6783
6784 cat >>confdefs.h <<_ACEOF
6785 #define LLVM_PATH_GV "$GV${EXEEXT}"
6786 _ACEOF
6787
6788 fi
6789 # Extract the first word of "dotty", so it can be a program name with args.
6790 set dummy dotty; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_DOTTY+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   case $DOTTY in
6797   [\\/]* | ?:[\\/]*)
6798   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6799   ;;
6800   *)
6801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6817   ;;
6818 esac
6819 fi
6820 DOTTY=$ac_cv_path_DOTTY
6821 if test -n "$DOTTY"; then
6822   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6823 echo "${ECHO_T}$DOTTY" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830 if test "$DOTTY" != "echo dotty" ; then
6831
6832 cat >>confdefs.h <<\_ACEOF
6833 #define HAVE_DOTTY 1
6834 _ACEOF
6835
6836     if test "$llvm_cv_os_type" = "MingW" ; then
6837     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6838   fi
6839
6840 cat >>confdefs.h <<_ACEOF
6841 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6842 _ACEOF
6843
6844 fi
6845 for ac_prog in xdot xdot.py
6846 do
6847   # Extract the first word of "$ac_prog", so it can be a program name with args.
6848 set dummy $ac_prog; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_XDOT+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $XDOT in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   ;;
6875 esac
6876 fi
6877 XDOT=$ac_cv_path_XDOT
6878 if test -n "$XDOT"; then
6879   { echo "$as_me:$LINENO: result: $XDOT" >&5
6880 echo "${ECHO_T}$XDOT" >&6; }
6881 else
6882   { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6884 fi
6885
6886
6887   test -n "$XDOT" && break
6888 done
6889 test -n "$XDOT" || XDOT="echo xdot"
6890
6891 if test "$XDOT" != "echo xdot" ; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_XDOT 1
6895 _ACEOF
6896
6897     if test "$llvm_cv_os_type" = "MingW" ; then
6898     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6899   fi
6900
6901 cat >>confdefs.h <<_ACEOF
6902 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6903 _ACEOF
6904
6905 fi
6906
6907 # Find a good install program.  We prefer a C program (faster),
6908 # so one script is as good as another.  But avoid the broken or
6909 # incompatible versions:
6910 # SysV /etc/install, /usr/sbin/install
6911 # SunOS /usr/etc/install
6912 # IRIX /sbin/install
6913 # AIX /bin/install
6914 # AmigaOS /C/install, which installs bootblocks on floppy discs
6915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6918 # OS/2's system install, which has a completely different semantic
6919 # ./install, which can be erroneously created by make from ./install.sh.
6920 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6921 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6922 if test -z "$INSTALL"; then
6923 if test "${ac_cv_path_install+set}" = set; then
6924   echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   # Account for people who put trailing slashes in PATH elements.
6932 case $as_dir/ in
6933   ./ | .// | /cC/* | \
6934   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6935   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6936   /usr/ucb/* ) ;;
6937   *)
6938     # OSF1 and SCO ODT 3.0 have their own names for install.
6939     # Don't use installbsd from OSF since it installs stuff as root
6940     # by default.
6941     for ac_prog in ginstall scoinst install; do
6942       for ac_exec_ext in '' $ac_executable_extensions; do
6943         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6944           if test $ac_prog = install &&
6945             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6946             # AIX install.  It has an incompatible calling convention.
6947             :
6948           elif test $ac_prog = install &&
6949             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6950             # program-specific install script used by HP pwplus--don't use.
6951             :
6952           else
6953             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6954             break 3
6955           fi
6956         fi
6957       done
6958     done
6959     ;;
6960 esac
6961 done
6962 IFS=$as_save_IFS
6963
6964
6965 fi
6966   if test "${ac_cv_path_install+set}" = set; then
6967     INSTALL=$ac_cv_path_install
6968   else
6969     # As a last resort, use the slow shell script.  Don't cache a
6970     # value for INSTALL within a source directory, because that will
6971     # break other packages using the cache if that directory is
6972     # removed, or if the value is a relative name.
6973     INSTALL=$ac_install_sh
6974   fi
6975 fi
6976 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6977 echo "${ECHO_T}$INSTALL" >&6; }
6978
6979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6980 # It thinks the first close brace ends the variable substitution.
6981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6982
6983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6984
6985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6986
6987 case "$INSTALL" in
6988  [\\/$]* | ?:[\\/]* ) ;;
6989  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6990 esac
6991
6992 # Extract the first word of "bzip2", so it can be a program name with args.
6993 set dummy bzip2; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_BZIP2+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   case $BZIP2 in
7000   [\\/]* | ?:[\\/]*)
7001   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7002   ;;
7003   *)
7004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009   for ac_exec_ext in '' $ac_executable_extensions; do
7010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019   ;;
7020 esac
7021 fi
7022 BZIP2=$ac_cv_path_BZIP2
7023 if test -n "$BZIP2"; then
7024   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7025 echo "${ECHO_T}$BZIP2" >&6; }
7026 else
7027   { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7029 fi
7030
7031
7032 # Extract the first word of "cat", so it can be a program name with args.
7033 set dummy cat; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_path_CAT+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   case $CAT in
7040   [\\/]* | ?:[\\/]*)
7041   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7042   ;;
7043   *)
7044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047   IFS=$as_save_IFS
7048   test -z "$as_dir" && as_dir=.
7049   for ac_exec_ext in '' $ac_executable_extensions; do
7050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053     break 2
7054   fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059   ;;
7060 esac
7061 fi
7062 CAT=$ac_cv_path_CAT
7063 if test -n "$CAT"; then
7064   { echo "$as_me:$LINENO: result: $CAT" >&5
7065 echo "${ECHO_T}$CAT" >&6; }
7066 else
7067   { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7069 fi
7070
7071
7072 # Extract the first word of "doxygen", so it can be a program name with args.
7073 set dummy doxygen; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $DOXYGEN in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   ;;
7100 esac
7101 fi
7102 DOXYGEN=$ac_cv_path_DOXYGEN
7103 if test -n "$DOXYGEN"; then
7104   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7105 echo "${ECHO_T}$DOXYGEN" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7109 fi
7110
7111
7112 # Extract the first word of "groff", so it can be a program name with args.
7113 set dummy groff; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_GROFF+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   case $GROFF in
7120   [\\/]* | ?:[\\/]*)
7121   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7122   ;;
7123   *)
7124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129   for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139   ;;
7140 esac
7141 fi
7142 GROFF=$ac_cv_path_GROFF
7143 if test -n "$GROFF"; then
7144   { echo "$as_me:$LINENO: result: $GROFF" >&5
7145 echo "${ECHO_T}$GROFF" >&6; }
7146 else
7147   { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7149 fi
7150
7151
7152 # Extract the first word of "gzip", so it can be a program name with args.
7153 set dummy gzip; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   case $GZIPBIN in
7160   [\\/]* | ?:[\\/]*)
7161   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7162   ;;
7163   *)
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169   for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179   ;;
7180 esac
7181 fi
7182 GZIPBIN=$ac_cv_path_GZIPBIN
7183 if test -n "$GZIPBIN"; then
7184   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7185 echo "${ECHO_T}$GZIPBIN" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191
7192 # Extract the first word of "pdfroff", so it can be a program name with args.
7193 set dummy pdfroff; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_PDFROFF+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   case $PDFROFF in
7200   [\\/]* | ?:[\\/]*)
7201   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7202   ;;
7203   *)
7204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209   for ac_exec_ext in '' $ac_executable_extensions; do
7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219   ;;
7220 esac
7221 fi
7222 PDFROFF=$ac_cv_path_PDFROFF
7223 if test -n "$PDFROFF"; then
7224   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7225 echo "${ECHO_T}$PDFROFF" >&6; }
7226 else
7227   { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7229 fi
7230
7231
7232 # Extract the first word of "zip", so it can be a program name with args.
7233 set dummy zip; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_ZIP+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   case $ZIP in
7240   [\\/]* | ?:[\\/]*)
7241   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7242   ;;
7243   *)
7244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249   for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259   ;;
7260 esac
7261 fi
7262 ZIP=$ac_cv_path_ZIP
7263 if test -n "$ZIP"; then
7264   { echo "$as_me:$LINENO: result: $ZIP" >&5
7265 echo "${ECHO_T}$ZIP" >&6; }
7266 else
7267   { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 for ac_prog in ocamlc
7273 do
7274   # Extract the first word of "$ac_prog", so it can be a program name with args.
7275 set dummy $ac_prog; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_path_OCAMLC+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281   case $OCAMLC in
7282   [\\/]* | ?:[\\/]*)
7283   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7284   ;;
7285   *)
7286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291   for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301   ;;
7302 esac
7303 fi
7304 OCAMLC=$ac_cv_path_OCAMLC
7305 if test -n "$OCAMLC"; then
7306   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7307 echo "${ECHO_T}$OCAMLC" >&6; }
7308 else
7309   { echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6; }
7311 fi
7312
7313
7314   test -n "$OCAMLC" && break
7315 done
7316
7317 for ac_prog in ocamlopt
7318 do
7319   # Extract the first word of "$ac_prog", so it can be a program name with args.
7320 set dummy $ac_prog; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   case $OCAMLOPT in
7327   [\\/]* | ?:[\\/]*)
7328   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7329   ;;
7330   *)
7331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346   ;;
7347 esac
7348 fi
7349 OCAMLOPT=$ac_cv_path_OCAMLOPT
7350 if test -n "$OCAMLOPT"; then
7351   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7352 echo "${ECHO_T}$OCAMLOPT" >&6; }
7353 else
7354   { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7356 fi
7357
7358
7359   test -n "$OCAMLOPT" && break
7360 done
7361
7362 for ac_prog in ocamldep
7363 do
7364   # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   case $OCAMLDEP in
7372   [\\/]* | ?:[\\/]*)
7373   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7374   ;;
7375   *)
7376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381   for ac_exec_ext in '' $ac_executable_extensions; do
7382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391   ;;
7392 esac
7393 fi
7394 OCAMLDEP=$ac_cv_path_OCAMLDEP
7395 if test -n "$OCAMLDEP"; then
7396   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7397 echo "${ECHO_T}$OCAMLDEP" >&6; }
7398 else
7399   { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7401 fi
7402
7403
7404   test -n "$OCAMLDEP" && break
7405 done
7406
7407 for ac_prog in ocamldoc
7408 do
7409   # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   case $OCAMLDOC in
7417   [\\/]* | ?:[\\/]*)
7418   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7419   ;;
7420   *)
7421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436   ;;
7437 esac
7438 fi
7439 OCAMLDOC=$ac_cv_path_OCAMLDOC
7440 if test -n "$OCAMLDOC"; then
7441   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7442 echo "${ECHO_T}$OCAMLDOC" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449   test -n "$OCAMLDOC" && break
7450 done
7451
7452 for ac_prog in gas as
7453 do
7454   # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_GAS+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $GAS in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481   ;;
7482 esac
7483 fi
7484 GAS=$ac_cv_path_GAS
7485 if test -n "$GAS"; then
7486   { echo "$as_me:$LINENO: result: $GAS" >&5
7487 echo "${ECHO_T}$GAS" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494   test -n "$GAS" && break
7495 done
7496
7497
7498 { echo "$as_me:$LINENO: checking for linker version" >&5
7499 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7500 if test "${llvm_cv_link_version+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503
7504    version_string="$(ld -v 2>&1 | head -1)"
7505
7506    # Check for ld64.
7507    if (echo "$version_string" | grep -q "ld64"); then
7508      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7509    else
7510      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7511    fi
7512
7513 fi
7514 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7515 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7519 _ACEOF
7520
7521
7522
7523
7524 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7525 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7526 if test "${llvm_cv_link_use_r+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529    ac_ext=c
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535   oldcflags="$CFLAGS"
7536   CFLAGS="$CFLAGS -Wl,-R."
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543
7544 int
7545 main ()
7546 {
7547
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7554 case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559   (eval "$ac_link") 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567   { (case "(($ac_try" in
7568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569   *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572   (eval "$ac_try") 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; } &&
7576          { ac_try='test -s conftest$ac_exeext'
7577   { (case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_try") 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; }; then
7586   llvm_cv_link_use_r=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591         llvm_cv_link_use_r=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext \
7595       conftest$ac_exeext conftest.$ac_ext
7596   CFLAGS="$oldcflags"
7597   ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603
7604 fi
7605 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7606 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7607 if test "$llvm_cv_link_use_r" = yes ; then
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_LINK_R 1
7611 _ACEOF
7612
7613   fi
7614
7615
7616 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7617 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7618 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621    ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627   oldcflags="$CFLAGS"
7628   CFLAGS="$CFLAGS -rdynamic"
7629   cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h.  */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h.  */
7635
7636 int
7637 main ()
7638 {
7639
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (ac_try="$ac_link"
7646 case "(($ac_try" in
7647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648   *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651   (eval "$ac_link") 2>conftest.er1
7652   ac_status=$?
7653   grep -v '^ *+' conftest.er1 >conftest.err
7654   rm -f conftest.er1
7655   cat conftest.err >&5
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); } &&
7658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7659   { (case "(($ac_try" in
7660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661   *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664   (eval "$ac_try") 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; } &&
7668          { ac_try='test -s conftest$ac_exeext'
7669   { (case "(($ac_try" in
7670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671   *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674   (eval "$ac_try") 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; }; then
7678   llvm_cv_link_use_export_dynamic=yes
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683         llvm_cv_link_use_export_dynamic=no
7684 fi
7685
7686 rm -f core conftest.err conftest.$ac_objext \
7687       conftest$ac_exeext conftest.$ac_ext
7688   CFLAGS="$oldcflags"
7689   ac_ext=c
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694
7695
7696 fi
7697 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7698 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7699 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7700
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_LINK_EXPORT_DYNAMIC 1
7703 _ACEOF
7704
7705   fi
7706
7707
7708 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7709 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7710 if test "${llvm_cv_link_use_version_script+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713    ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719   oldcflags="$CFLAGS"
7720
7721   # The following code is from the autoconf manual,
7722   # "11.13: Limitations of Usual Tools".
7723   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7724   # Use mktemp if possible; otherwise fall back on mkdir,
7725   # with $RANDOM to make collisions less likely.
7726   : ${TMPDIR=/tmp}
7727   {
7728     tmp=`
7729       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7730     ` &&
7731     test -n "$tmp" && test -d "$tmp"
7732   } || {
7733     tmp=$TMPDIR/foo$$-$RANDOM
7734     (umask 077 && mkdir "$tmp")
7735   } || exit $?
7736
7737   echo "{" > "$tmp/export.map"
7738   echo "  global: main;" >> "$tmp/export.map"
7739   echo "  local: *;" >> "$tmp/export.map"
7740   echo "};" >> "$tmp/export.map"
7741
7742   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7743   cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h.  */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h.  */
7749
7750 int
7751 main ()
7752 {
7753
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7760 case "(($ac_try" in
7761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762   *) ac_try_echo=$ac_try;;
7763 esac
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765   (eval "$ac_link") 2>conftest.er1
7766   ac_status=$?
7767   grep -v '^ *+' conftest.er1 >conftest.err
7768   rm -f conftest.er1
7769   cat conftest.err >&5
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } &&
7772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7773   { (case "(($ac_try" in
7774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775   *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778   (eval "$ac_try") 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }; } &&
7782          { ac_try='test -s conftest$ac_exeext'
7783   { (case "(($ac_try" in
7784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785   *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788   (eval "$ac_try") 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   llvm_cv_link_use_version_script=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797         llvm_cv_link_use_version_script=no
7798 fi
7799
7800 rm -f core conftest.err conftest.$ac_objext \
7801       conftest$ac_exeext conftest.$ac_ext
7802   rm "$tmp/export.map"
7803   rmdir "$tmp"
7804   CFLAGS="$oldcflags"
7805   ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811
7812 fi
7813 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7814 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7815 if test "$llvm_cv_link_use_version_script" = yes ; then
7816   HAVE_LINK_VERSION_SCRIPT=1
7817
7818   fi
7819
7820
7821
7822
7823 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7824 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7825 if test "${ac_cv_c_const+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834
7835 int
7836 main ()
7837 {
7838 /* FIXME: Include the comments suggested by Paul. */
7839 #ifndef __cplusplus
7840   /* Ultrix mips cc rejects this.  */
7841   typedef int charset[2];
7842   const charset x;
7843   /* SunOS 4.1.1 cc rejects this.  */
7844   char const *const *ccp;
7845   char **p;
7846   /* NEC SVR4.0.2 mips cc rejects this.  */
7847   struct point {int x, y;};
7848   static struct point const zero = {0,0};
7849   /* AIX XL C 1.02.0.0 rejects this.
7850      It does not let you subtract one const X* pointer from another in
7851      an arm of an if-expression whose if-part is not a constant
7852      expression */
7853   const char *g = "string";
7854   ccp = &g + (g ? g-g : 0);
7855   /* HPUX 7.0 cc rejects these. */
7856   ++ccp;
7857   p = (char**) ccp;
7858   ccp = (char const *const *) p;
7859   { /* SCO 3.2v4 cc rejects this.  */
7860     char *t;
7861     char const *s = 0 ? (char *) 0 : (char const *) 0;
7862
7863     *t++ = 0;
7864     if (s) return 0;
7865   }
7866   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7867     int x[] = {25, 17};
7868     const int *foo = &x[0];
7869     ++foo;
7870   }
7871   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7872     typedef const int *iptr;
7873     iptr p = 0;
7874     ++p;
7875   }
7876   { /* AIX XL C 1.02.0.0 rejects this saying
7877        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7878     struct s { int j; const int *ap[3]; };
7879     struct s *b; b->j = 5;
7880   }
7881   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7882     const int foo = 10;
7883     if (!foo) return 0;
7884   }
7885   return !x[0] && !zero.x;
7886 #endif
7887
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7894 case "(($ac_try" in
7895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896   *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899   (eval "$ac_compile") 2>conftest.er1
7900   ac_status=$?
7901   grep -v '^ *+' conftest.er1 >conftest.err
7902   rm -f conftest.er1
7903   cat conftest.err >&5
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } &&
7906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907   { (case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_try") 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7926   ac_cv_c_const=yes
7927 else
7928   echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7930
7931         ac_cv_c_const=no
7932 fi
7933
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7938 if test $ac_cv_c_const = no; then
7939
7940 cat >>confdefs.h <<\_ACEOF
7941 #define const
7942 _ACEOF
7943
7944 fi
7945
7946
7947 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7948 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_GREP+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   # Extract the first word of "grep ggrep" to use in msg output
7953 if test -z "$GREP"; then
7954 set dummy grep ggrep; ac_prog_name=$2
7955 if test "${ac_cv_path_GREP+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   ac_path_GREP_found=false
7959 # Loop through the user's path and test for each of PROGNAME-LIST
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965   for ac_prog in grep ggrep; do
7966   for ac_exec_ext in '' $ac_executable_extensions; do
7967     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7968     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7969     # Check for GNU ac_path_GREP and select it if it is found.
7970   # Check for GNU $ac_path_GREP
7971 case `"$ac_path_GREP" --version 2>&1` in
7972 *GNU*)
7973   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7974 *)
7975   ac_count=0
7976   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7977   while :
7978   do
7979     cat "conftest.in" "conftest.in" >"conftest.tmp"
7980     mv "conftest.tmp" "conftest.in"
7981     cp "conftest.in" "conftest.nl"
7982     echo 'GREP' >> "conftest.nl"
7983     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7985     ac_count=`expr $ac_count + 1`
7986     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7987       # Best one so far, save it but keep looking for a better one
7988       ac_cv_path_GREP="$ac_path_GREP"
7989       ac_path_GREP_max=$ac_count
7990     fi
7991     # 10*(2^10) chars as input seems more than enough
7992     test $ac_count -gt 10 && break
7993   done
7994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7995 esac
7996
7997
7998     $ac_path_GREP_found && break 3
7999   done
8000 done
8001
8002 done
8003 IFS=$as_save_IFS
8004
8005
8006 fi
8007
8008 GREP="$ac_cv_path_GREP"
8009 if test -z "$GREP"; then
8010   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8012    { (exit 1); exit 1; }; }
8013 fi
8014
8015 else
8016   ac_cv_path_GREP=$GREP
8017 fi
8018
8019
8020 fi
8021 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8022 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8023  GREP="$ac_cv_path_GREP"
8024
8025
8026 { echo "$as_me:$LINENO: checking for egrep" >&5
8027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8028 if test "${ac_cv_path_EGREP+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8032    then ac_cv_path_EGREP="$GREP -E"
8033    else
8034      # Extract the first word of "egrep" to use in msg output
8035 if test -z "$EGREP"; then
8036 set dummy egrep; ac_prog_name=$2
8037 if test "${ac_cv_path_EGREP+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   ac_path_EGREP_found=false
8041 # Loop through the user's path and test for each of PROGNAME-LIST
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047   for ac_prog in egrep; do
8048   for ac_exec_ext in '' $ac_executable_extensions; do
8049     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8050     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8051     # Check for GNU ac_path_EGREP and select it if it is found.
8052   # Check for GNU $ac_path_EGREP
8053 case `"$ac_path_EGREP" --version 2>&1` in
8054 *GNU*)
8055   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8056 *)
8057   ac_count=0
8058   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8059   while :
8060   do
8061     cat "conftest.in" "conftest.in" >"conftest.tmp"
8062     mv "conftest.tmp" "conftest.in"
8063     cp "conftest.in" "conftest.nl"
8064     echo 'EGREP' >> "conftest.nl"
8065     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8067     ac_count=`expr $ac_count + 1`
8068     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8069       # Best one so far, save it but keep looking for a better one
8070       ac_cv_path_EGREP="$ac_path_EGREP"
8071       ac_path_EGREP_max=$ac_count
8072     fi
8073     # 10*(2^10) chars as input seems more than enough
8074     test $ac_count -gt 10 && break
8075   done
8076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8077 esac
8078
8079
8080     $ac_path_EGREP_found && break 3
8081   done
8082 done
8083
8084 done
8085 IFS=$as_save_IFS
8086
8087
8088 fi
8089
8090 EGREP="$ac_cv_path_EGREP"
8091 if test -z "$EGREP"; then
8092   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8093 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8094    { (exit 1); exit 1; }; }
8095 fi
8096
8097 else
8098   ac_cv_path_EGREP=$EGREP
8099 fi
8100
8101
8102    fi
8103 fi
8104 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8105 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8106  EGREP="$ac_cv_path_EGREP"
8107
8108
8109 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8111 if test "${ac_cv_header_stdc+set}" = set; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114   cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 #include <stdlib.h>
8121 #include <stdarg.h>
8122 #include <string.h>
8123 #include <float.h>
8124
8125 int
8126 main ()
8127 {
8128
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_compile") 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148   { (case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153   (eval "$ac_try") 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; } &&
8157          { ac_try='test -s conftest.$ac_objext'
8158   { (case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_try") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   ac_cv_header_stdc=yes
8168 else
8169   echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172         ac_cv_header_stdc=no
8173 fi
8174
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176
8177 if test $ac_cv_header_stdc = yes; then
8178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 #include <string.h>
8186
8187 _ACEOF
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189   $EGREP "memchr" >/dev/null 2>&1; then
8190   :
8191 else
8192   ac_cv_header_stdc=no
8193 fi
8194 rm -f conftest*
8195
8196 fi
8197
8198 if test $ac_cv_header_stdc = yes; then
8199   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8200   cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h.  */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h.  */
8206 #include <stdlib.h>
8207
8208 _ACEOF
8209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8210   $EGREP "free" >/dev/null 2>&1; then
8211   :
8212 else
8213   ac_cv_header_stdc=no
8214 fi
8215 rm -f conftest*
8216
8217 fi
8218
8219 if test $ac_cv_header_stdc = yes; then
8220   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8221   if test "$cross_compiling" = yes; then
8222   :
8223 else
8224   cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h.  */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h.  */
8230 #include <ctype.h>
8231 #include <stdlib.h>
8232 #if ((' ' & 0x0FF) == 0x020)
8233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8235 #else
8236 # define ISLOWER(c) \
8237                    (('a' <= (c) && (c) <= 'i') \
8238                      || ('j' <= (c) && (c) <= 'r') \
8239                      || ('s' <= (c) && (c) <= 'z'))
8240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8241 #endif
8242
8243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8244 int
8245 main ()
8246 {
8247   int i;
8248   for (i = 0; i < 256; i++)
8249     if (XOR (islower (i), ISLOWER (i))
8250         || toupper (i) != TOUPPER (i))
8251       return 2;
8252   return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest$ac_exeext
8256 if { (ac_try="$ac_link"
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_link") 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   :
8276 else
8277   echo "$as_me: program exited with status $ac_status" >&5
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281 ( exit $ac_status )
8282 ac_cv_header_stdc=no
8283 fi
8284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8285 fi
8286
8287
8288 fi
8289 fi
8290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8292 if test $ac_cv_header_stdc = yes; then
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define STDC_HEADERS 1
8296 _ACEOF
8297
8298 fi
8299
8300
8301
8302
8303
8304
8305 ac_header_dirent=no
8306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8307   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8308 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8309 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 #include <sys/types.h>
8320 #include <$ac_hdr>
8321
8322 int
8323 main ()
8324 {
8325 if ((DIR *) 0)
8326 return 0;
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8333 case "(($ac_try" in
8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335   *) ac_try_echo=$ac_try;;
8336 esac
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338   (eval "$ac_compile") 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346   { (case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_try") 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; } &&
8355          { ac_try='test -s conftest.$ac_objext'
8356   { (case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_try") 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   eval "$as_ac_Header=yes"
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370         eval "$as_ac_Header=no"
8371 fi
8372
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 ac_res=`eval echo '${'$as_ac_Header'}'`
8376                { echo "$as_me:$LINENO: result: $ac_res" >&5
8377 echo "${ECHO_T}$ac_res" >&6; }
8378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8379   cat >>confdefs.h <<_ACEOF
8380 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8381 _ACEOF
8382
8383 ac_header_dirent=$ac_hdr; break
8384 fi
8385
8386 done
8387 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8388 if test $ac_header_dirent = dirent.h; then
8389   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8390 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8391 if test "${ac_cv_search_opendir+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   ac_func_search_save_LIBS=$LIBS
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401
8402 /* Override any GCC internal prototype to avoid an error.
8403    Use char because int might match the return type of a GCC
8404    builtin and then its argument prototype would still apply.  */
8405 #ifdef __cplusplus
8406 extern "C"
8407 #endif
8408 char opendir ();
8409 int
8410 main ()
8411 {
8412 return opendir ();
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 for ac_lib in '' dir; do
8418   if test -z "$ac_lib"; then
8419     ac_res="none required"
8420   else
8421     ac_res=-l$ac_lib
8422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8423   fi
8424   rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (ac_try="$ac_link"
8426 case "(($ac_try" in
8427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428   *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431   (eval "$ac_link") 2>conftest.er1
8432   ac_status=$?
8433   grep -v '^ *+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } &&
8438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439   { (case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444   (eval "$ac_try") 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest$ac_exeext'
8449   { (case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_try") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_cv_search_opendir=$ac_res
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext \
8467       conftest$ac_exeext
8468   if test "${ac_cv_search_opendir+set}" = set; then
8469   break
8470 fi
8471 done
8472 if test "${ac_cv_search_opendir+set}" = set; then
8473   :
8474 else
8475   ac_cv_search_opendir=no
8476 fi
8477 rm conftest.$ac_ext
8478 LIBS=$ac_func_search_save_LIBS
8479 fi
8480 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8481 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8482 ac_res=$ac_cv_search_opendir
8483 if test "$ac_res" != no; then
8484   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8485
8486 fi
8487
8488 else
8489   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any GCC internal prototype to avoid an error.
8503    Use char because int might match the return type of a GCC
8504    builtin and then its argument prototype would still apply.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char opendir ();
8509 int
8510 main ()
8511 {
8512 return opendir ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 for ac_lib in '' x; do
8518   if test -z "$ac_lib"; then
8519     ac_res="none required"
8520   else
8521     ac_res=-l$ac_lib
8522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8523   fi
8524   rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_link") 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; } &&
8548          { ac_try='test -s conftest$ac_exeext'
8549   { (case "(($ac_try" in
8550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551   *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554   (eval "$ac_try") 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   ac_cv_search_opendir=$ac_res
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext \
8567       conftest$ac_exeext
8568   if test "${ac_cv_search_opendir+set}" = set; then
8569   break
8570 fi
8571 done
8572 if test "${ac_cv_search_opendir+set}" = set; then
8573   :
8574 else
8575   ac_cv_search_opendir=no
8576 fi
8577 rm conftest.$ac_ext
8578 LIBS=$ac_func_search_save_LIBS
8579 fi
8580 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582 ac_res=$ac_cv_search_opendir
8583 if test "$ac_res" != no; then
8584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585
8586 fi
8587
8588 fi
8589
8590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8601                   inttypes.h stdint.h unistd.h
8602 do
8603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615 $ac_includes_default
8616
8617 #include <$ac_header>
8618 _ACEOF
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8621 case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_compile") 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634   { (case "(($ac_try" in
8635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636   *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639   (eval "$ac_try") 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; } &&
8643          { ac_try='test -s conftest.$ac_objext'
8644   { (case "(($ac_try" in
8645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646   *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649   (eval "$ac_try") 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; }; then
8653   eval "$as_ac_Header=yes"
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658         eval "$as_ac_Header=no"
8659 fi
8660
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 fi
8663 ac_res=`eval echo '${'$as_ac_Header'}'`
8664                { echo "$as_me:$LINENO: result: $ac_res" >&5
8665 echo "${ECHO_T}$ac_res" >&6; }
8666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8667   cat >>confdefs.h <<_ACEOF
8668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8669 _ACEOF
8670
8671 fi
8672
8673 done
8674
8675
8676
8677 for ac_header in dlfcn.h
8678 do
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8681   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 fi
8686 ac_res=`eval echo '${'$as_ac_Header'}'`
8687                { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8689 else
8690   # Is the header compilable?
8691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699 $ac_includes_default
8700 #include <$ac_header>
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709   (eval "$ac_compile") 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8717   { (case "(($ac_try" in
8718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719   *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722   (eval "$ac_try") 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest.$ac_objext'
8727   { (case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_try") 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; }; then
8736   ac_header_compiler=yes
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741         ac_header_compiler=no
8742 fi
8743
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8746 echo "${ECHO_T}$ac_header_compiler" >&6; }
8747
8748 # Is the header present?
8749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h.  */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h.  */
8757 #include <$ac_header>
8758 _ACEOF
8759 if { (ac_try="$ac_cpp conftest.$ac_ext"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } >/dev/null; then
8772   if test -s conftest.err; then
8773     ac_cpp_err=$ac_c_preproc_warn_flag
8774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8775   else
8776     ac_cpp_err=
8777   fi
8778 else
8779   ac_cpp_err=yes
8780 fi
8781 if test -z "$ac_cpp_err"; then
8782   ac_header_preproc=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787   ac_header_preproc=no
8788 fi
8789
8790 rm -f conftest.err conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 echo "${ECHO_T}$ac_header_preproc" >&6; }
8793
8794 # So?  What about this header?
8795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8796   yes:no: )
8797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801     ac_header_preproc=yes
8802     ;;
8803   no:yes:* )
8804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8816     ( cat <<\_ASBOX
8817 ## ------------------------------------ ##
8818 ## Report this to http://llvm.org/bugs/ ##
8819 ## ------------------------------------ ##
8820 _ASBOX
8821      ) | sed "s/^/$as_me: WARNING:     /" >&2
8822     ;;
8823 esac
8824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   eval "$as_ac_Header=\$ac_header_preproc"
8830 fi
8831 ac_res=`eval echo '${'$as_ac_Header'}'`
8832                { echo "$as_me:$LINENO: result: $ac_res" >&5
8833 echo "${ECHO_T}$ac_res" >&6; }
8834
8835 fi
8836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8837   cat >>confdefs.h <<_ACEOF
8838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8839 _ACEOF
8840
8841 fi
8842
8843 done
8844
8845 # Check whether --enable-ltdl-install was given.
8846 if test "${enable_ltdl_install+set}" = set; then
8847   enableval=$enable_ltdl_install;
8848 fi
8849
8850
8851
8852
8853 if test x"${enable_ltdl_install-no}" != xno; then
8854   INSTALL_LTDL_TRUE=
8855   INSTALL_LTDL_FALSE='#'
8856 else
8857   INSTALL_LTDL_TRUE='#'
8858   INSTALL_LTDL_FALSE=
8859 fi
8860
8861
8862
8863 if test x"${enable_ltdl_convenience-no}" != xno; then
8864   CONVENIENCE_LTDL_TRUE=
8865   CONVENIENCE_LTDL_FALSE='#'
8866 else
8867   CONVENIENCE_LTDL_TRUE='#'
8868   CONVENIENCE_LTDL_FALSE=
8869 fi
8870
8871
8872 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8873 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8874 library_names_spec=
8875 libname_spec='lib$name'
8876 soname_spec=
8877 shrext_cmds=".so"
8878 postinstall_cmds=
8879 postuninstall_cmds=
8880 finish_cmds=
8881 finish_eval=
8882 shlibpath_var=
8883 shlibpath_overrides_runpath=unknown
8884 version_type=none
8885 dynamic_linker="$host_os ld.so"
8886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8887 if test "$GCC" = yes; then
8888   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8890     # if the path contains ";" then we assume it to be the separator
8891     # otherwise default to the standard path separator (i.e. ":") - it is
8892     # assumed that no part of a normal pathname contains ";" but that should
8893     # okay in the real world where ";" in dirpaths is itself problematic.
8894     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8895   else
8896     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8897   fi
8898 else
8899   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8900 fi
8901 need_lib_prefix=unknown
8902 hardcode_into_libs=no
8903
8904 # when you set need_version to no, make sure it does not cause -set_version
8905 # flags to be left without arguments
8906 need_version=unknown
8907
8908 case $host_os in
8909 aix3*)
8910   version_type=linux
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8912   shlibpath_var=LIBPATH
8913
8914   # AIX 3 has no versioning support, so we append a major version to the name.
8915   soname_spec='${libname}${release}${shared_ext}$major'
8916   ;;
8917
8918 aix4* | aix5*)
8919   version_type=linux
8920   need_lib_prefix=no
8921   need_version=no
8922   hardcode_into_libs=yes
8923   if test "$host_cpu" = ia64; then
8924     # AIX 5 supports IA64
8925     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8926     shlibpath_var=LD_LIBRARY_PATH
8927   else
8928     # With GCC up to 2.95.x, collect2 would create an import file
8929     # for dependence libraries.  The import file would start with
8930     # the line `#! .'.  This would cause the generated library to
8931     # depend on `.', always an invalid library.  This was fixed in
8932     # development snapshots of GCC prior to 3.0.
8933     case $host_os in
8934       aix4 | aix4.[01] | aix4.[01].*)
8935       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8936            echo ' yes '
8937            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8938         :
8939       else
8940         can_build_shared=no
8941       fi
8942       ;;
8943     esac
8944     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8945     # soname into executable. Probably we can add versioning support to
8946     # collect2, so additional links can be useful in future.
8947     if test "$aix_use_runtimelinking" = yes; then
8948       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8949       # instead of lib<name>.a to let people know that these are not
8950       # typical AIX shared libraries.
8951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952     else
8953       # We preserve .a as extension for shared libraries through AIX4.2
8954       # and later when we are not doing run time linking.
8955       library_names_spec='${libname}${release}.a $libname.a'
8956       soname_spec='${libname}${release}${shared_ext}$major'
8957     fi
8958     shlibpath_var=LIBPATH
8959   fi
8960   ;;
8961
8962 amigaos*)
8963   library_names_spec='$libname.ixlibrary $libname.a'
8964   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8965   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'
8966   ;;
8967
8968 beos*)
8969   library_names_spec='${libname}${shared_ext}'
8970   dynamic_linker="$host_os ld.so"
8971   shlibpath_var=LIBRARY_PATH
8972   ;;
8973
8974 bsdi[45]*)
8975   version_type=linux
8976   need_version=no
8977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978   soname_spec='${libname}${release}${shared_ext}$major'
8979   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8982   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8983   # the default ld.so.conf also contains /usr/contrib/lib and
8984   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8985   # libtool to hard-code these into programs
8986   ;;
8987
8988 cygwin* | mingw* | pw32*)
8989   version_type=windows
8990   shrext_cmds=".dll"
8991   need_version=no
8992   need_lib_prefix=no
8993
8994   case $GCC,$host_os in
8995   yes,cygwin* | yes,mingw* | yes,pw32*)
8996     library_names_spec='$libname.dll.a'
8997     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8998     postinstall_cmds='base_file=`basename \${file}`~
8999       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9000       dldir=$destdir/`dirname \$dlpath`~
9001       test -d \$dldir || mkdir -p \$dldir~
9002       $install_prog $dir/$dlname \$dldir/$dlname~
9003       chmod a+x \$dldir/$dlname'
9004     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9005       dlpath=$dir/\$dldll~
9006        $rm \$dlpath'
9007     shlibpath_overrides_runpath=yes
9008
9009     case $host_os in
9010     cygwin*)
9011       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9012       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9013       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9014       ;;
9015     mingw*)
9016       # MinGW DLLs use traditional 'lib' prefix
9017       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9018       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9020         # It is most probably a Windows format PATH printed by
9021         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9022         # path with ; separators, and with drive letters. We can handle the
9023         # drive letters (cygwin fileutils understands them), so leave them,
9024         # especially as we might pass files found there to a mingw objdump,
9025         # which wouldn't understand a cygwinified path. Ahh.
9026         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9027       else
9028         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9029       fi
9030       ;;
9031     pw32*)
9032       # pw32 DLLs use 'pw' prefix rather than 'lib'
9033       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9034       ;;
9035     esac
9036     ;;
9037
9038   *)
9039     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9040     ;;
9041   esac
9042   dynamic_linker='Win32 ld.exe'
9043   # FIXME: first we should search . and the directory the executable is in
9044   shlibpath_var=PATH
9045   ;;
9046
9047 darwin* | rhapsody*)
9048   dynamic_linker="$host_os dyld"
9049   version_type=darwin
9050   need_lib_prefix=no
9051   need_version=no
9052   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9053   soname_spec='${libname}${release}${major}$shared_ext'
9054   shlibpath_overrides_runpath=yes
9055   shlibpath_var=DYLD_LIBRARY_PATH
9056   shrext_cmds='.dylib'
9057   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9058   if test "$GCC" = yes; then
9059     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"`
9060   else
9061     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9062   fi
9063   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9064   ;;
9065
9066 dgux*)
9067   version_type=linux
9068   need_lib_prefix=no
9069   need_version=no
9070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9071   soname_spec='${libname}${release}${shared_ext}$major'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   ;;
9074
9075 freebsd1.*)
9076   dynamic_linker=no
9077   ;;
9078
9079 kfreebsd*-gnu)
9080   version_type=linux
9081   need_lib_prefix=no
9082   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
9086   shlibpath_overrides_runpath=no
9087   hardcode_into_libs=yes
9088   dynamic_linker='GNU ld.so'
9089   ;;
9090
9091 freebsd* | dragonfly*)
9092   # DragonFly does not have aout.  When/if they implement a new
9093   # versioning mechanism, adjust this.
9094   if test -x /usr/bin/objformat; then
9095     objformat=`/usr/bin/objformat`
9096   else
9097     case $host_os in
9098     freebsd[123].*) objformat=aout ;;
9099     *) objformat=elf ;;
9100     esac
9101   fi
9102   version_type=freebsd-$objformat
9103   case $version_type in
9104     freebsd-elf*)
9105       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9106       need_version=no
9107       need_lib_prefix=no
9108       ;;
9109     freebsd-*)
9110       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9111       need_version=yes
9112       ;;
9113   esac
9114   shlibpath_var=LD_LIBRARY_PATH
9115   case $host_os in
9116   freebsd2.*)
9117     shlibpath_overrides_runpath=yes
9118     ;;
9119   freebsd3.[01]* | freebsdelf3.[01]*)
9120     shlibpath_overrides_runpath=yes
9121     hardcode_into_libs=yes
9122     ;;
9123   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9124   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9125     shlibpath_overrides_runpath=no
9126     hardcode_into_libs=yes
9127     ;;
9128   freebsd*) # from 4.6 on
9129     shlibpath_overrides_runpath=yes
9130     hardcode_into_libs=yes
9131     ;;
9132   esac
9133   ;;
9134
9135 gnu*)
9136   version_type=linux
9137   need_lib_prefix=no
9138   need_version=no
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   hardcode_into_libs=yes
9143   ;;
9144
9145 hpux9* | hpux10* | hpux11*)
9146   # Give a soname corresponding to the major version so that dld.sl refuses to
9147   # link against other versions.
9148   version_type=sunos
9149   need_lib_prefix=no
9150   need_version=no
9151   case $host_cpu in
9152   ia64*)
9153     shrext_cmds='.so'
9154     hardcode_into_libs=yes
9155     dynamic_linker="$host_os dld.so"
9156     shlibpath_var=LD_LIBRARY_PATH
9157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159     soname_spec='${libname}${release}${shared_ext}$major'
9160     if test "X$HPUX_IA64_MODE" = X32; then
9161       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9162     else
9163       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9164     fi
9165     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9166     ;;
9167    hppa*64*)
9168      shrext_cmds='.sl'
9169      hardcode_into_libs=yes
9170      dynamic_linker="$host_os dld.sl"
9171      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9172      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9173      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174      soname_spec='${libname}${release}${shared_ext}$major'
9175      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9176      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9177      ;;
9178    *)
9179     shrext_cmds='.sl'
9180     dynamic_linker="$host_os dld.sl"
9181     shlibpath_var=SHLIB_PATH
9182     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184     soname_spec='${libname}${release}${shared_ext}$major'
9185     ;;
9186   esac
9187   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9188   postinstall_cmds='chmod 555 $lib'
9189   ;;
9190
9191 interix3*)
9192   version_type=linux
9193   need_lib_prefix=no
9194   need_version=no
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196   soname_spec='${libname}${release}${shared_ext}$major'
9197   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9198   shlibpath_var=LD_LIBRARY_PATH
9199   shlibpath_overrides_runpath=no
9200   hardcode_into_libs=yes
9201   ;;
9202
9203 irix5* | irix6* | nonstopux*)
9204   case $host_os in
9205     nonstopux*) version_type=nonstopux ;;
9206     *)
9207         if test "$lt_cv_prog_gnu_ld" = yes; then
9208                 version_type=linux
9209         else
9210                 version_type=irix
9211         fi ;;
9212   esac
9213   need_lib_prefix=no
9214   need_version=no
9215   soname_spec='${libname}${release}${shared_ext}$major'
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9217   case $host_os in
9218   irix5* | nonstopux*)
9219     libsuff= shlibsuff=
9220     ;;
9221   *)
9222     case $LD in # libtool.m4 will add one of these switches to LD
9223     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9224       libsuff= shlibsuff= libmagic=32-bit;;
9225     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9226       libsuff=32 shlibsuff=N32 libmagic=N32;;
9227     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9228       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9229     *) libsuff= shlibsuff= libmagic=never-match;;
9230     esac
9231     ;;
9232   esac
9233   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9234   shlibpath_overrides_runpath=no
9235   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9236   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9237   hardcode_into_libs=yes
9238   ;;
9239
9240 # No shared lib support for Linux oldld, aout, or coff.
9241 linux*oldld* | linux*aout* | linux*coff*)
9242   dynamic_linker=no
9243   ;;
9244
9245 # This must be Linux ELF.
9246 linux*)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9253   shlibpath_var=LD_LIBRARY_PATH
9254   shlibpath_overrides_runpath=no
9255   # This implies no fast_install, which is unacceptable.
9256   # Some rework will be needed to allow for fast_install
9257   # before this can be enabled.
9258   hardcode_into_libs=yes
9259
9260   # Append ld.so.conf contents to the search path
9261   if test -f /etc/ld.so.conf; then
9262     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' ' '`
9263     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9264   fi
9265
9266   # We used to test for /lib/ld.so.1 and disable shared libraries on
9267   # powerpc, because MkLinux only supported shared libraries with the
9268   # GNU dynamic linker.  Since this was broken with cross compilers,
9269   # most powerpc-linux boxes support dynamic linking these days and
9270   # people can always --disable-shared, the test was removed, and we
9271   # assume the GNU/Linux dynamic linker is in use.
9272   dynamic_linker='GNU/Linux ld.so'
9273   ;;
9274
9275 knetbsd*-gnu)
9276   version_type=linux
9277   need_lib_prefix=no
9278   need_version=no
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9280   soname_spec='${libname}${release}${shared_ext}$major'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   shlibpath_overrides_runpath=no
9283   hardcode_into_libs=yes
9284   dynamic_linker='GNU ld.so'
9285   ;;
9286
9287 netbsd*)
9288   version_type=sunos
9289   need_lib_prefix=no
9290   need_version=no
9291   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9294     dynamic_linker='NetBSD (a.out) ld.so'
9295   else
9296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9297     soname_spec='${libname}${release}${shared_ext}$major'
9298     dynamic_linker='NetBSD ld.elf_so'
9299   fi
9300   shlibpath_var=LD_LIBRARY_PATH
9301   shlibpath_overrides_runpath=yes
9302   hardcode_into_libs=yes
9303   ;;
9304
9305 newsos6)
9306   version_type=linux
9307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9308   shlibpath_var=LD_LIBRARY_PATH
9309   shlibpath_overrides_runpath=yes
9310   ;;
9311
9312 nto-qnx*)
9313   version_type=linux
9314   need_lib_prefix=no
9315   need_version=no
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317   soname_spec='${libname}${release}${shared_ext}$major'
9318   shlibpath_var=LD_LIBRARY_PATH
9319   shlibpath_overrides_runpath=yes
9320   ;;
9321
9322 openbsd* | bitrig*)
9323   version_type=sunos
9324   sys_lib_dlsearch_path_spec="/usr/lib"
9325   need_lib_prefix=no
9326   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9327   case $host_os in
9328     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9329     *)                         need_version=no  ;;
9330   esac
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9335     case $host_os in
9336       openbsd2.[89] | openbsd2.[89].*)
9337         shlibpath_overrides_runpath=no
9338         ;;
9339       *)
9340         shlibpath_overrides_runpath=yes
9341         ;;
9342       esac
9343   else
9344     shlibpath_overrides_runpath=yes
9345   fi
9346   ;;
9347
9348 os2*)
9349   libname_spec='$name'
9350   shrext_cmds=".dll"
9351   need_lib_prefix=no
9352   library_names_spec='$libname${shared_ext} $libname.a'
9353   dynamic_linker='OS/2 ld.exe'
9354   shlibpath_var=LIBPATH
9355   ;;
9356
9357 osf3* | osf4* | osf5*)
9358   version_type=osf
9359   need_lib_prefix=no
9360   need_version=no
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363   shlibpath_var=LD_LIBRARY_PATH
9364   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9365   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9366   ;;
9367
9368 solaris*)
9369   version_type=linux
9370   need_lib_prefix=no
9371   need_version=no
9372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   shlibpath_var=LD_LIBRARY_PATH
9375   shlibpath_overrides_runpath=yes
9376   hardcode_into_libs=yes
9377   # ldd complains unless libraries are executable
9378   postinstall_cmds='chmod +x $lib'
9379   ;;
9380
9381 sunos4*)
9382   version_type=sunos
9383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9385   shlibpath_var=LD_LIBRARY_PATH
9386   shlibpath_overrides_runpath=yes
9387   if test "$with_gnu_ld" = yes; then
9388     need_lib_prefix=no
9389   fi
9390   need_version=yes
9391   ;;
9392
9393 sysv4 | sysv4.3*)
9394   version_type=linux
9395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396   soname_spec='${libname}${release}${shared_ext}$major'
9397   shlibpath_var=LD_LIBRARY_PATH
9398   case $host_vendor in
9399     sni)
9400       shlibpath_overrides_runpath=no
9401       need_lib_prefix=no
9402       export_dynamic_flag_spec='${wl}-Blargedynsym'
9403       runpath_var=LD_RUN_PATH
9404       ;;
9405     siemens)
9406       need_lib_prefix=no
9407       ;;
9408     motorola)
9409       need_lib_prefix=no
9410       need_version=no
9411       shlibpath_overrides_runpath=no
9412       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9413       ;;
9414   esac
9415   ;;
9416
9417 sysv4*MP*)
9418   if test -d /usr/nec ;then
9419     version_type=linux
9420     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9421     soname_spec='$libname${shared_ext}.$major'
9422     shlibpath_var=LD_LIBRARY_PATH
9423   fi
9424   ;;
9425
9426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9427   version_type=freebsd-elf
9428   need_lib_prefix=no
9429   need_version=no
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9431   soname_spec='${libname}${release}${shared_ext}$major'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   hardcode_into_libs=yes
9434   if test "$with_gnu_ld" = yes; then
9435     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9436     shlibpath_overrides_runpath=no
9437   else
9438     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9439     shlibpath_overrides_runpath=yes
9440     case $host_os in
9441       sco3.2v5*)
9442         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9443         ;;
9444     esac
9445   fi
9446   sys_lib_dlsearch_path_spec='/usr/lib'
9447   ;;
9448
9449 uts4*)
9450   version_type=linux
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452   soname_spec='${libname}${release}${shared_ext}$major'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   ;;
9455
9456 *)
9457   dynamic_linker=no
9458   ;;
9459 esac
9460 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9461 echo "${ECHO_T}$dynamic_linker" >&6; }
9462 test "$dynamic_linker" = no && can_build_shared=no
9463
9464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9465 if test "$GCC" = yes; then
9466   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9467 fi
9468
9469
9470 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9471 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9472 if test "${libltdl_cv_shlibext+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475
9476 module=yes
9477 eval libltdl_cv_shlibext=$shrext_cmds
9478
9479 fi
9480 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9481 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9482 if test -n "$libltdl_cv_shlibext"; then
9483
9484 cat >>confdefs.h <<_ACEOF
9485 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9486 _ACEOF
9487
9488 fi
9489
9490
9491 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9492 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9493 if test "${libltdl_cv_sys_search_path+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9497 fi
9498 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9499 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9500 if test -n "$libltdl_cv_sys_search_path"; then
9501   sys_search_path=
9502   for dir in $libltdl_cv_sys_search_path; do
9503     if test -z "$sys_search_path"; then
9504       sys_search_path="$dir"
9505     else
9506       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9507     fi
9508   done
9509
9510 cat >>confdefs.h <<_ACEOF
9511 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9512 _ACEOF
9513
9514 fi
9515
9516 { echo "$as_me:$LINENO: checking for objdir" >&5
9517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9518 if test "${libltdl_cv_objdir+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   libltdl_cv_objdir="$objdir"
9522   if test -n "$objdir"; then
9523     :
9524   else
9525     rm -f .libs 2>/dev/null
9526     mkdir .libs 2>/dev/null
9527     if test -d .libs; then
9528       libltdl_cv_objdir=.libs
9529     else
9530       # MS-DOS does not allow filenames that begin with a dot.
9531       libltdl_cv_objdir=_libs
9532     fi
9533   rmdir .libs 2>/dev/null
9534   fi
9535
9536 fi
9537 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9538 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9539
9540 cat >>confdefs.h <<_ACEOF
9541 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9542 _ACEOF
9543
9544
9545
9546
9547
9548
9549 # Check for command to grab the raw symbol name followed by C symbol from nm.
9550 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9551 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9552 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555
9556 # These are sane defaults that work on at least a few old systems.
9557 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9558
9559 # Character class describing NM global symbol codes.
9560 symcode='[BCDEGRST]'
9561
9562 # Regexp to match symbols that can be accessed directly from C.
9563 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9564
9565 # Transform an extracted symbol line into a proper C declaration
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9567
9568 # Transform an extracted symbol line into symbol name and symbol address
9569 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'"
9570
9571 # Define system-specific variables.
9572 case $host_os in
9573 aix*)
9574   symcode='[BCDT]'
9575   ;;
9576 cygwin* | mingw* | pw32*)
9577   symcode='[ABCDGISTW]'
9578   ;;
9579 hpux*) # Its linker distinguishes data from code symbols
9580   if test "$host_cpu" = ia64; then
9581     symcode='[ABCDEGRST]'
9582   fi
9583   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9584   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'"
9585   ;;
9586 linux*)
9587   if test "$host_cpu" = ia64; then
9588     symcode='[ABCDGIRSTW]'
9589     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9590     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'"
9591   fi
9592   ;;
9593 irix* | nonstopux*)
9594   symcode='[BCDEGRST]'
9595   ;;
9596 osf*)
9597   symcode='[BCDEGQRST]'
9598   ;;
9599 solaris*)
9600   symcode='[BDRT]'
9601   ;;
9602 sco3.2v5*)
9603   symcode='[DT]'
9604   ;;
9605 sysv4.2uw2*)
9606   symcode='[DT]'
9607   ;;
9608 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9609   symcode='[ABDT]'
9610   ;;
9611 sysv4)
9612   symcode='[DFNSTU]'
9613   ;;
9614 esac
9615
9616 # Handle CRLF in mingw tool chain
9617 opt_cr=
9618 case $build_os in
9619 mingw*)
9620   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9621   ;;
9622 esac
9623
9624 # If we're using GNU nm, then use its standard symbol codes.
9625 case `$NM -V 2>&1` in
9626 *GNU* | *'with BFD'*)
9627   symcode='[ABCDGIRSTW]' ;;
9628 esac
9629
9630 # Try without a prefix undercore, then with it.
9631 for ac_symprfx in "" "_"; do
9632
9633   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9634   symxfrm="\\1 $ac_symprfx\\2 \\2"
9635
9636   # Write the raw and C identifiers.
9637   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9638
9639   # Check to see that the pipe works correctly.
9640   pipe_works=no
9641
9642   rm -f conftest*
9643   cat > conftest.$ac_ext <<EOF
9644 #ifdef __cplusplus
9645 extern "C" {
9646 #endif
9647 char nm_test_var;
9648 void nm_test_func(){}
9649 #ifdef __cplusplus
9650 }
9651 #endif
9652 int main(){nm_test_var='a';nm_test_func();return(0);}
9653 EOF
9654
9655   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656   (eval $ac_compile) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; then
9660     # Now try to grab the symbols.
9661     nlist=conftest.nm
9662     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } && test -s "$nlist"; then
9667       # Try sorting and uniquifying the output.
9668       if sort "$nlist" | uniq > "$nlist"T; then
9669         mv -f "$nlist"T "$nlist"
9670       else
9671         rm -f "$nlist"T
9672       fi
9673
9674       # Make sure that we snagged all the symbols we need.
9675       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9676         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9677           cat <<EOF > conftest.$ac_ext
9678 #ifdef __cplusplus
9679 extern "C" {
9680 #endif
9681
9682 EOF
9683           # Now generate the symbol file.
9684           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9685
9686           cat <<EOF >> conftest.$ac_ext
9687 #if defined (__STDC__) && __STDC__
9688 # define lt_ptr_t void *
9689 #else
9690 # define lt_ptr_t char *
9691 # define const
9692 #endif
9693
9694 /* The mapping between symbol names and symbols. */
9695 const struct {
9696   const char *name;
9697   lt_ptr_t address;
9698 }
9699 lt_preloaded_symbols[] =
9700 {
9701 EOF
9702           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9703           cat <<\EOF >> conftest.$ac_ext
9704   {0, (lt_ptr_t) 0}
9705 };
9706
9707 #ifdef __cplusplus
9708 }
9709 #endif
9710 EOF
9711           # Now try linking the two files.
9712           mv conftest.$ac_objext conftstm.$ac_objext
9713           lt_save_LIBS="$LIBS"
9714           lt_save_CFLAGS="$CFLAGS"
9715           LIBS="conftstm.$ac_objext"
9716           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9717           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718   (eval $ac_link) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9722             pipe_works=yes
9723           fi
9724           LIBS="$lt_save_LIBS"
9725           CFLAGS="$lt_save_CFLAGS"
9726         else
9727           echo "cannot find nm_test_func in $nlist" >&5
9728         fi
9729       else
9730         echo "cannot find nm_test_var in $nlist" >&5
9731       fi
9732     else
9733       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9734     fi
9735   else
9736     echo "$progname: failed program was:" >&5
9737     cat conftest.$ac_ext >&5
9738   fi
9739   rm -f conftest* conftst*
9740
9741   # Do not use the global_symbol_pipe unless it works.
9742   if test "$pipe_works" = yes; then
9743     break
9744   else
9745     lt_cv_sys_global_symbol_pipe=
9746   fi
9747 done
9748
9749 fi
9750
9751 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9752   lt_cv_sys_global_symbol_to_cdecl=
9753 fi
9754 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9755   { echo "$as_me:$LINENO: result: failed" >&5
9756 echo "${ECHO_T}failed" >&6; }
9757 else
9758   { echo "$as_me:$LINENO: result: ok" >&5
9759 echo "${ECHO_T}ok" >&6; }
9760 fi
9761
9762
9763 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9764 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9765 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9769     libltdl_cv_preloaded_symbols=yes
9770   else
9771     libltdl_cv_preloaded_symbols=no
9772   fi
9773
9774 fi
9775 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9776 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9777 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_PRELOADED_SYMBOLS 1
9781 _ACEOF
9782
9783 fi
9784
9785 LIBADD_DL=
9786
9787 ac_ext=c
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9792
9793
9794 { echo "$as_me:$LINENO: checking for shl_load" >&5
9795 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9796 if test "${ac_cv_func_shl_load+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807 #define shl_load innocuous_shl_load
9808
9809 /* System header to define __stub macros and hopefully few prototypes,
9810     which can conflict with char shl_load (); below.
9811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812     <limits.h> exists even on freestanding compilers.  */
9813
9814 #ifdef __STDC__
9815 # include <limits.h>
9816 #else
9817 # include <assert.h>
9818 #endif
9819
9820 #undef shl_load
9821
9822 /* Override any GCC internal prototype to avoid an error.
9823    Use char because int might match the return type of a GCC
9824    builtin and then its argument prototype would still apply.  */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char shl_load ();
9829 /* The GNU C library defines this for functions which it implements
9830     to always fail with ENOSYS.  Some functions are actually named
9831     something starting with __ and the normal name is an alias.  */
9832 #if defined __stub_shl_load || defined __stub___shl_load
9833 choke me
9834 #endif
9835
9836 int
9837 main ()
9838 {
9839 return shl_load ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_func_shl_load=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_func_shl_load=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9890 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9891 if test $ac_cv_func_shl_load = yes; then
9892
9893 cat >>confdefs.h <<\_ACEOF
9894 #define HAVE_SHL_LOAD 1
9895 _ACEOF
9896
9897 else
9898   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9899 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9901   echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903   ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-ldld  $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911
9912 /* Override any GCC internal prototype to avoid an error.
9913    Use char because int might match the return type of a GCC
9914    builtin and then its argument prototype would still apply.  */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char shl_load ();
9919 int
9920 main ()
9921 {
9922 return shl_load ();
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934   (eval "$ac_link") 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; } &&
9951          { ac_try='test -s conftest$ac_exeext'
9952   { (case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_try") 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   ac_cv_lib_dld_shl_load=yes
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966         ac_cv_lib_dld_shl_load=no
9967 fi
9968
9969 rm -f core conftest.err conftest.$ac_objext \
9970       conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9972 fi
9973 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9974 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9975 if test $ac_cv_lib_dld_shl_load = yes; then
9976
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_SHL_LOAD 1
9979 _ACEOF
9980
9981         LIBADD_DL="$LIBADD_DL -ldld"
9982 else
9983   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-ldl  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char dlopen ();
10004 int
10005 main ()
10006 {
10007 return dlopen ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest$ac_exeext'
10037   { (case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_try") 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_lib_dl_dlopen=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051         ac_cv_lib_dl_dlopen=no
10052 fi
10053
10054 rm -f core conftest.err conftest.$ac_objext \
10055       conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10057 fi
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10060 if test $ac_cv_lib_dl_dlopen = yes; then
10061
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_LIBDL 1
10064 _ACEOF
10065
10066                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10067 else
10068   cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 #if HAVE_DLFCN_H
10075 #  include <dlfcn.h>
10076 #endif
10077
10078 int
10079 main ()
10080 {
10081 dlopen(0, 0);
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
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_LIBDL 1
10123 _ACEOF
10124  libltdl_cv_func_dlopen="yes"
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsvld  $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142
10143 /* Override any GCC internal prototype to avoid an error.
10144    Use char because int might match the return type of a GCC
10145    builtin and then its argument prototype would still apply.  */
10146 #ifdef __cplusplus
10147 extern "C"
10148 #endif
10149 char dlopen ();
10150 int
10151 main ()
10152 {
10153 return dlopen ();
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_link") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } &&
10172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; } &&
10182          { ac_try='test -s conftest$ac_exeext'
10183   { (case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188   (eval "$ac_try") 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_cv_lib_svld_dlopen=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197         ac_cv_lib_svld_dlopen=no
10198 fi
10199
10200 rm -f core conftest.err conftest.$ac_objext \
10201       conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10206 if test $ac_cv_lib_svld_dlopen = yes; then
10207
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_LIBDL 1
10210 _ACEOF
10211
10212                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10213 else
10214   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10215 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10216 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   ac_check_lib_save_LIBS=$LIBS
10220 LIBS="-ldld  $LIBS"
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227
10228 /* Override any GCC internal prototype to avoid an error.
10229    Use char because int might match the return type of a GCC
10230    builtin and then its argument prototype would still apply.  */
10231 #ifdef __cplusplus
10232 extern "C"
10233 #endif
10234 char dld_link ();
10235 int
10236 main ()
10237 {
10238 return dld_link ();
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_link") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_cv_lib_dld_dld_link=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282         ac_cv_lib_dld_dld_link=no
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10291 if test $ac_cv_lib_dld_dld_link = yes; then
10292
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_DLD 1
10295 _ACEOF
10296
10297                 LIBADD_DL="$LIBADD_DL -ldld"
10298 else
10299   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10300 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10301 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10312 #define _dyld_func_lookup innocuous__dyld_func_lookup
10313
10314 /* System header to define __stub macros and hopefully few prototypes,
10315     which can conflict with char _dyld_func_lookup (); below.
10316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317     <limits.h> exists even on freestanding compilers.  */
10318
10319 #ifdef __STDC__
10320 # include <limits.h>
10321 #else
10322 # include <assert.h>
10323 #endif
10324
10325 #undef _dyld_func_lookup
10326
10327 /* Override any GCC internal prototype to avoid an error.
10328    Use char because int might match the return type of a GCC
10329    builtin and then its argument prototype would still apply.  */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char _dyld_func_lookup ();
10334 /* The GNU C library defines this for functions which it implements
10335     to always fail with ENOSYS.  Some functions are actually named
10336     something starting with __ and the normal name is an alias.  */
10337 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10338 choke me
10339 #endif
10340
10341 int
10342 main ()
10343 {
10344 return _dyld_func_lookup ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353   *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356   (eval "$ac_link") 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } &&
10363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364   { (case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_try") 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; } &&
10373          { ac_try='test -s conftest$ac_exeext'
10374   { (case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_try") 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; }; then
10383   ac_cv_func__dyld_func_lookup=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388         ac_cv_func__dyld_func_lookup=no
10389 fi
10390
10391 rm -f core conftest.err conftest.$ac_objext \
10392       conftest$ac_exeext conftest.$ac_ext
10393 fi
10394 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10395 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10396 if test $ac_cv_func__dyld_func_lookup = yes; then
10397
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_DYLD 1
10400 _ACEOF
10401
10402 fi
10403
10404
10405 fi
10406
10407
10408 fi
10409
10410
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext \
10414       conftest$ac_exeext conftest.$ac_ext
10415
10416 fi
10417
10418
10419 fi
10420
10421
10422 fi
10423
10424
10425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10426 then
10427   lt_save_LIBS="$LIBS"
10428   LIBS="$LIBS $LIBADD_DL"
10429
10430 for ac_func in dlerror
10431 do
10432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10446 #define $ac_func innocuous_$ac_func
10447
10448 /* System header to define __stub macros and hopefully few prototypes,
10449     which can conflict with char $ac_func (); below.
10450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451     <limits.h> exists even on freestanding compilers.  */
10452
10453 #ifdef __STDC__
10454 # include <limits.h>
10455 #else
10456 # include <assert.h>
10457 #endif
10458
10459 #undef $ac_func
10460
10461 /* Override any GCC internal prototype to avoid an error.
10462    Use char because int might match the return type of a GCC
10463    builtin and then its argument prototype would still apply.  */
10464 #ifdef __cplusplus
10465 extern "C"
10466 #endif
10467 char $ac_func ();
10468 /* The GNU C library defines this for functions which it implements
10469     to always fail with ENOSYS.  Some functions are actually named
10470     something starting with __ and the normal name is an alias.  */
10471 #if defined __stub_$ac_func || defined __stub___$ac_func
10472 choke me
10473 #endif
10474
10475 int
10476 main ()
10477 {
10478 return $ac_func ();
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490   (eval "$ac_link") 2>conftest.er1
10491   ac_status=$?
10492   grep -v '^ *+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } &&
10497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498   { (case "(($ac_try" in
10499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500   *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503   (eval "$ac_try") 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest$ac_exeext'
10508   { (case "(($ac_try" in
10509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510   *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513   (eval "$ac_try") 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); }; }; then
10517   eval "$as_ac_var=yes"
10518 else
10519   echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522         eval "$as_ac_var=no"
10523 fi
10524
10525 rm -f core conftest.err conftest.$ac_objext \
10526       conftest$ac_exeext conftest.$ac_ext
10527 fi
10528 ac_res=`eval echo '${'$as_ac_var'}'`
10529                { echo "$as_me:$LINENO: result: $ac_res" >&5
10530 echo "${ECHO_T}$ac_res" >&6; }
10531 if test `eval echo '${'$as_ac_var'}'` = yes; then
10532   cat >>confdefs.h <<_ACEOF
10533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10534 _ACEOF
10535
10536 fi
10537 done
10538
10539   LIBS="$lt_save_LIBS"
10540 fi
10541 ac_ext=c
10542 ac_cpp='$CPP $CPPFLAGS'
10543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546
10547
10548
10549 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10550 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10551 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   ac_cv_sys_symbol_underscore=no
10555   cat > conftest.$ac_ext <<EOF
10556 void nm_test_func(){}
10557 int main(){nm_test_func;return 0;}
10558 EOF
10559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560   (eval $ac_compile) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; then
10564     # Now try to grab the symbols.
10565     ac_nlist=conftest.nm
10566     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10567   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } && test -s "$ac_nlist"; then
10571       # See whether the symbols have a leading underscore.
10572       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10573         ac_cv_sys_symbol_underscore=yes
10574       else
10575         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10576           :
10577         else
10578           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10579         fi
10580       fi
10581     else
10582       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10583     fi
10584   else
10585     echo "configure: failed program was:" >&5
10586     cat conftest.c >&5
10587   fi
10588   rm -rf conftest*
10589
10590 fi
10591 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10592 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10593
10594
10595 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10596   if test x"$libltdl_cv_func_dlopen" = xyes ||
10597      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10598         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10599 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10600 if test "${libltdl_cv_need_uscore+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   libltdl_cv_need_uscore=unknown
10604           save_LIBS="$LIBS"
10605           LIBS="$LIBS $LIBADD_DL"
10606           if test "$cross_compiling" = yes; then :
10607   libltdl_cv_need_uscore=cross
10608 else
10609   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10610   lt_status=$lt_dlunknown
10611   cat > conftest.$ac_ext <<EOF
10612 #line 10612 "configure"
10613 #include "confdefs.h"
10614
10615 #if HAVE_DLFCN_H
10616 #include <dlfcn.h>
10617 #endif
10618
10619 #include <stdio.h>
10620
10621 #ifdef RTLD_GLOBAL
10622 #  define LT_DLGLOBAL           RTLD_GLOBAL
10623 #else
10624 #  ifdef DL_GLOBAL
10625 #    define LT_DLGLOBAL         DL_GLOBAL
10626 #  else
10627 #    define LT_DLGLOBAL         0
10628 #  endif
10629 #endif
10630
10631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10632    find out it does not work in some platform. */
10633 #ifndef LT_DLLAZY_OR_NOW
10634 #  ifdef RTLD_LAZY
10635 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10636 #  else
10637 #    ifdef DL_LAZY
10638 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10639 #    else
10640 #      ifdef RTLD_NOW
10641 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10642 #      else
10643 #        ifdef DL_NOW
10644 #          define LT_DLLAZY_OR_NOW      DL_NOW
10645 #        else
10646 #          define LT_DLLAZY_OR_NOW      0
10647 #        endif
10648 #      endif
10649 #    endif
10650 #  endif
10651 #endif
10652
10653 #ifdef __cplusplus
10654 extern "C" void exit (int);
10655 #endif
10656
10657 void fnord() { int i=42;}
10658 int main ()
10659 {
10660   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661   int status = $lt_dlunknown;
10662
10663   if (self)
10664     {
10665       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10666       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10667       /* dlclose (self); */
10668     }
10669   else
10670     puts (dlerror ());
10671
10672     exit (status);
10673 }
10674 EOF
10675   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676   (eval $ac_link) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10680     (./conftest; exit; ) >&5 2>/dev/null
10681     lt_status=$?
10682     case x$lt_status in
10683       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10684       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10685       x$lt_dlunknown|x*)  ;;
10686     esac
10687   else :
10688     # compilation failed
10689
10690   fi
10691 fi
10692 rm -fr conftest*
10693
10694           LIBS="$save_LIBS"
10695
10696 fi
10697 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10698 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10699   fi
10700 fi
10701
10702 if test x"$libltdl_cv_need_uscore" = xyes; then
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define NEED_USCORE 1
10706 _ACEOF
10707
10708 fi
10709
10710
10711 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10712 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10713 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   # PORTME does your system automatically load deplibs for dlopen?
10717   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10718   # For now, we just catch OSes we know something about -- in the
10719   # future, we'll try test this programmatically.
10720   libltdl_cv_sys_dlopen_deplibs=unknown
10721   case "$host_os" in
10722   aix3*|aix4.1.*|aix4.2.*)
10723     # Unknown whether this is true for these versions of AIX, but
10724     # we want this `case' here to explicitly catch those versions.
10725     libltdl_cv_sys_dlopen_deplibs=unknown
10726     ;;
10727   aix[45]*)
10728     libltdl_cv_sys_dlopen_deplibs=yes
10729     ;;
10730   darwin*)
10731     # Assuming the user has installed a libdl from somewhere, this is true
10732     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10733     libltdl_cv_sys_dlopen_deplibs=yes
10734     ;;
10735   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10736     # GNU and its variants, using gnu ld.so (Glibc)
10737     libltdl_cv_sys_dlopen_deplibs=yes
10738     ;;
10739   hpux10*|hpux11*)
10740     libltdl_cv_sys_dlopen_deplibs=yes
10741     ;;
10742   interix*)
10743     libltdl_cv_sys_dlopen_deplibs=yes
10744     ;;
10745   irix[12345]*|irix6.[01]*)
10746     # Catch all versions of IRIX before 6.2, and indicate that we don't
10747     # know how it worked for any of those versions.
10748     libltdl_cv_sys_dlopen_deplibs=unknown
10749     ;;
10750   irix*)
10751     # The case above catches anything before 6.2, and it's known that
10752     # at 6.2 and later dlopen does load deplibs.
10753     libltdl_cv_sys_dlopen_deplibs=yes
10754     ;;
10755   netbsd*)
10756     libltdl_cv_sys_dlopen_deplibs=yes
10757     ;;
10758   openbsd*)
10759     libltdl_cv_sys_dlopen_deplibs=yes
10760     ;;
10761   osf[1234]*)
10762     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10763     # it did *not* use an RPATH in a shared library to find objects the
10764     # library depends on, so we explicitly say `no'.
10765     libltdl_cv_sys_dlopen_deplibs=no
10766     ;;
10767   osf5.0|osf5.0a|osf5.1)
10768     # dlopen *does* load deplibs and with the right loader patch applied
10769     # it even uses RPATH in a shared library to search for shared objects
10770     # that the library depends on, but there's no easy way to know if that
10771     # patch is installed.  Since this is the case, all we can really
10772     # say is unknown -- it depends on the patch being installed.  If
10773     # it is, this changes to `yes'.  Without it, it would be `no'.
10774     libltdl_cv_sys_dlopen_deplibs=unknown
10775     ;;
10776   osf*)
10777     # the two cases above should catch all versions of osf <= 5.1.  Read
10778     # the comments above for what we know about them.
10779     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10780     # is used to find them so we can finally say `yes'.
10781     libltdl_cv_sys_dlopen_deplibs=yes
10782     ;;
10783   solaris*)
10784     libltdl_cv_sys_dlopen_deplibs=yes
10785     ;;
10786   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10787     libltdl_cv_sys_dlopen_deplibs=yes
10788     ;;
10789   esac
10790
10791 fi
10792 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10793 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10794 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10795
10796 cat >>confdefs.h <<\_ACEOF
10797 #define LTDL_DLOPEN_DEPLIBS 1
10798 _ACEOF
10799
10800 fi
10801
10802
10803 for ac_header in argz.h
10804 do
10805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 fi
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813                { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10815 else
10816   # Is the header compilable?
10817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 $ac_includes_default
10826 #include <$ac_header>
10827 _ACEOF
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832   *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835   (eval "$ac_compile") 2>conftest.er1
10836   ac_status=$?
10837   grep -v '^ *+' conftest.er1 >conftest.err
10838   rm -f conftest.er1
10839   cat conftest.err >&5
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); } &&
10842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843   { (case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848   (eval "$ac_try") 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; } &&
10852          { ac_try='test -s conftest.$ac_objext'
10853   { (case "(($ac_try" in
10854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855   *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858   (eval "$ac_try") 2>&5
10859   ac_status=$?
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); }; }; then
10862   ac_header_compiler=yes
10863 else
10864   echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867         ac_header_compiler=no
10868 fi
10869
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10872 echo "${ECHO_T}$ac_header_compiler" >&6; }
10873
10874 # Is the header present?
10875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <$ac_header>
10884 _ACEOF
10885 if { (ac_try="$ac_cpp conftest.$ac_ext"
10886 case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } >/dev/null; then
10898   if test -s conftest.err; then
10899     ac_cpp_err=$ac_c_preproc_warn_flag
10900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10901   else
10902     ac_cpp_err=
10903   fi
10904 else
10905   ac_cpp_err=yes
10906 fi
10907 if test -z "$ac_cpp_err"; then
10908   ac_header_preproc=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913   ac_header_preproc=no
10914 fi
10915
10916 rm -f conftest.err conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 echo "${ECHO_T}$ac_header_preproc" >&6; }
10919
10920 # So?  What about this header?
10921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10922   yes:no: )
10923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927     ac_header_preproc=yes
10928     ;;
10929   no:yes:* )
10930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10942     ( cat <<\_ASBOX
10943 ## ------------------------------------ ##
10944 ## Report this to http://llvm.org/bugs/ ##
10945 ## ------------------------------------ ##
10946 _ASBOX
10947      ) | sed "s/^/$as_me: WARNING:     /" >&2
10948     ;;
10949 esac
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   eval "$as_ac_Header=\$ac_header_preproc"
10956 fi
10957 ac_res=`eval echo '${'$as_ac_Header'}'`
10958                { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10960
10961 fi
10962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10963   cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10965 _ACEOF
10966
10967 fi
10968
10969 done
10970
10971
10972 { echo "$as_me:$LINENO: checking for error_t" >&5
10973 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10974 if test "${ac_cv_type_error_t+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #if HAVE_ARGZ_H
10984 #  include <argz.h>
10985 #endif
10986
10987 typedef error_t ac__type_new_;
10988 int
10989 main ()
10990 {
10991 if ((ac__type_new_ *) 0)
10992   return 0;
10993 if (sizeof (ac__type_new_))
10994   return 0;
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext
11000 if { (ac_try="$ac_compile"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_compile") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest.$ac_objext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   ac_cv_type_error_t=yes
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         ac_cv_type_error_t=no
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11044 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11045 if test $ac_cv_type_error_t = yes; then
11046
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_ERROR_T 1
11049 _ACEOF
11050
11051
11052 else
11053
11054 cat >>confdefs.h <<\_ACEOF
11055 #define error_t int
11056 _ACEOF
11057
11058 fi
11059
11060
11061
11062
11063
11064
11065
11066 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11067 do
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11082 #define $ac_func innocuous_$ac_func
11083
11084 /* System header to define __stub macros and hopefully few prototypes,
11085     which can conflict with char $ac_func (); below.
11086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087     <limits.h> exists even on freestanding compilers.  */
11088
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094
11095 #undef $ac_func
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098    Use char because int might match the return type of a GCC
11099    builtin and then its argument prototype would still apply.  */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105     to always fail with ENOSYS.  Some functions are actually named
11106     something starting with __ and the normal name is an alias.  */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11108 choke me
11109 #endif
11110
11111 int
11112 main ()
11113 {
11114 return $ac_func ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_link") 2>conftest.er1
11127   ac_status=$?
11128   grep -v '^ *+' conftest.er1 >conftest.err
11129   rm -f conftest.er1
11130   cat conftest.err >&5
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } &&
11133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134   { (case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_try") 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; } &&
11143          { ac_try='test -s conftest$ac_exeext'
11144   { (case "(($ac_try" in
11145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146   *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149   (eval "$ac_try") 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   eval "$as_ac_var=yes"
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158         eval "$as_ac_var=no"
11159 fi
11160
11161 rm -f core conftest.err conftest.$ac_objext \
11162       conftest$ac_exeext conftest.$ac_ext
11163 fi
11164 ac_res=`eval echo '${'$as_ac_var'}'`
11165                { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11167 if test `eval echo '${'$as_ac_var'}'` = yes; then
11168   cat >>confdefs.h <<_ACEOF
11169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11170 _ACEOF
11171
11172 fi
11173 done
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197 for ac_header in errno.h malloc.h memory.h unistd.h
11198 do
11199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 fi
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207                { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209 else
11210   # Is the header compilable?
11211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 $ac_includes_default
11220 #include <$ac_header>
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (ac_try="$ac_compile"
11224 case "(($ac_try" in
11225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226   *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229   (eval "$ac_compile") 2>conftest.er1
11230   ac_status=$?
11231   grep -v '^ *+' conftest.er1 >conftest.err
11232   rm -f conftest.er1
11233   cat conftest.err >&5
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); } &&
11236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237   { (case "(($ac_try" in
11238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239   *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242   (eval "$ac_try") 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; } &&
11246          { ac_try='test -s conftest.$ac_objext'
11247   { (case "(($ac_try" in
11248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249   *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252   (eval "$ac_try") 2>&5
11253   ac_status=$?
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); }; }; then
11256   ac_header_compiler=yes
11257 else
11258   echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261         ac_header_compiler=no
11262 fi
11263
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11266 echo "${ECHO_T}$ac_header_compiler" >&6; }
11267
11268 # Is the header present?
11269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 #include <$ac_header>
11278 _ACEOF
11279 if { (ac_try="$ac_cpp conftest.$ac_ext"
11280 case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } >/dev/null; then
11292   if test -s conftest.err; then
11293     ac_cpp_err=$ac_c_preproc_warn_flag
11294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11295   else
11296     ac_cpp_err=
11297   fi
11298 else
11299   ac_cpp_err=yes
11300 fi
11301 if test -z "$ac_cpp_err"; then
11302   ac_header_preproc=yes
11303 else
11304   echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11306
11307   ac_header_preproc=no
11308 fi
11309
11310 rm -f conftest.err conftest.$ac_ext
11311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11312 echo "${ECHO_T}$ac_header_preproc" >&6; }
11313
11314 # So?  What about this header?
11315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11316   yes:no: )
11317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11321     ac_header_preproc=yes
11322     ;;
11323   no:yes:* )
11324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11326     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11327 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11328     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11330     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11331 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11334     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11336     ( cat <<\_ASBOX
11337 ## ------------------------------------ ##
11338 ## Report this to http://llvm.org/bugs/ ##
11339 ## ------------------------------------ ##
11340 _ASBOX
11341      ) | sed "s/^/$as_me: WARNING:     /" >&2
11342     ;;
11343 esac
11344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   eval "$as_ac_Header=\$ac_header_preproc"
11350 fi
11351 ac_res=`eval echo '${'$as_ac_Header'}'`
11352                { echo "$as_me:$LINENO: result: $ac_res" >&5
11353 echo "${ECHO_T}$ac_res" >&6; }
11354
11355 fi
11356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11357   cat >>confdefs.h <<_ACEOF
11358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11359 _ACEOF
11360
11361 fi
11362
11363 done
11364
11365
11366 for ac_header in mach-o/dyld.h
11367 do
11368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 fi
11375 ac_res=`eval echo '${'$as_ac_Header'}'`
11376                { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11378 else
11379   # Is the header compilable?
11380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388 $ac_includes_default
11389 #include <$ac_header>
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_compile") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406   { (case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_try") 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_header_compiler=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430         ac_header_compiler=no
11431 fi
11432
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11435 echo "${ECHO_T}$ac_header_compiler" >&6; }
11436
11437 # Is the header present?
11438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h.  */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h.  */
11446 #include <$ac_header>
11447 _ACEOF
11448 if { (ac_try="$ac_cpp conftest.$ac_ext"
11449 case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11455   ac_status=$?
11456   grep -v '^ *+' conftest.er1 >conftest.err
11457   rm -f conftest.er1
11458   cat conftest.err >&5
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); } >/dev/null; then
11461   if test -s conftest.err; then
11462     ac_cpp_err=$ac_c_preproc_warn_flag
11463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11464   else
11465     ac_cpp_err=
11466   fi
11467 else
11468   ac_cpp_err=yes
11469 fi
11470 if test -z "$ac_cpp_err"; then
11471   ac_header_preproc=yes
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476   ac_header_preproc=no
11477 fi
11478
11479 rm -f conftest.err conftest.$ac_ext
11480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11481 echo "${ECHO_T}$ac_header_preproc" >&6; }
11482
11483 # So?  What about this header?
11484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11485   yes:no: )
11486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11490     ac_header_preproc=yes
11491     ;;
11492   no:yes:* )
11493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11495     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11496 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11499     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11500 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11503     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11505     ( cat <<\_ASBOX
11506 ## ------------------------------------ ##
11507 ## Report this to http://llvm.org/bugs/ ##
11508 ## ------------------------------------ ##
11509 _ASBOX
11510      ) | sed "s/^/$as_me: WARNING:     /" >&2
11511     ;;
11512 esac
11513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   eval "$as_ac_Header=\$ac_header_preproc"
11519 fi
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521                { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523
11524 fi
11525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11526   cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11528 _ACEOF
11529
11530 fi
11531
11532 done
11533
11534
11535
11536
11537
11538 for ac_func in closedir opendir readdir
11539 do
11540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11554 #define $ac_func innocuous_$ac_func
11555
11556 /* System header to define __stub macros and hopefully few prototypes,
11557     which can conflict with char $ac_func (); below.
11558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11559     <limits.h> exists even on freestanding compilers.  */
11560
11561 #ifdef __STDC__
11562 # include <limits.h>
11563 #else
11564 # include <assert.h>
11565 #endif
11566
11567 #undef $ac_func
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570    Use char because int might match the return type of a GCC
11571    builtin and then its argument prototype would still apply.  */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char $ac_func ();
11576 /* The GNU C library defines this for functions which it implements
11577     to always fail with ENOSYS.  Some functions are actually named
11578     something starting with __ and the normal name is an alias.  */
11579 #if defined __stub_$ac_func || defined __stub___$ac_func
11580 choke me
11581 #endif
11582
11583 int
11584 main ()
11585 {
11586 return $ac_func ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598   (eval "$ac_link") 2>conftest.er1
11599   ac_status=$?
11600   grep -v '^ *+' conftest.er1 >conftest.err
11601   rm -f conftest.er1
11602   cat conftest.err >&5
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606   { (case "(($ac_try" in
11607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608   *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611   (eval "$ac_try") 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; } &&
11615          { ac_try='test -s conftest$ac_exeext'
11616   { (case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_try") 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   eval "$as_ac_var=yes"
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630         eval "$as_ac_var=no"
11631 fi
11632
11633 rm -f core conftest.err conftest.$ac_objext \
11634       conftest$ac_exeext conftest.$ac_ext
11635 fi
11636 ac_res=`eval echo '${'$as_ac_var'}'`
11637                { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639 if test `eval echo '${'$as_ac_var'}'` = yes; then
11640   cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11642 _ACEOF
11643
11644 fi
11645 done
11646
11647
11648
11649 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11650 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11651
11652 ICC=no
11653 IXX=no
11654 case $CC in
11655   icc*|icpc*)
11656     ICC=yes
11657     IXX=yes
11658     ;;
11659    *)
11660     ;;
11661 esac
11662
11663 if test "$GCC" != "yes" && test "$ICC" != "yes"
11664 then
11665   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11666 echo "$as_me: error: gcc|icc required but not found" >&2;}
11667    { (exit 1); exit 1; }; }
11668 fi
11669
11670 if test "$GXX" != "yes" && test "$IXX" != "yes"
11671 then
11672   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11673 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11674    { (exit 1); exit 1; }; }
11675 fi
11676
11677 if test "$GCC" = "yes"
11678 then
11679   cat >conftest.$ac_ext <<_ACEOF
11680
11681   /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686
11687     #if !defined(__GNUC__) || __GNUC__ < 3
11688     #error Unsupported GCC version
11689     #endif
11690
11691
11692 _ACEOF
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_compile") 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708   { (case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713   (eval "$ac_try") 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; } &&
11717          { ac_try='test -s conftest.$ac_objext'
11718   { (case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_try") 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; }; then
11727   :
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11733 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11734    { (exit 1); exit 1; }; }
11735 fi
11736
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 fi
11739
11740 if test -z "$llvm_cv_gnu_make_command"
11741 then
11742   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11743 echo "$as_me: error: GNU Make required but not found" >&2;}
11744    { (exit 1); exit 1; }; }
11745 fi
11746
11747 { echo "$as_me:$LINENO: result: ok" >&5
11748 echo "${ECHO_T}ok" >&6; }
11749
11750 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11751 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11752 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11753
11754 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11755
11756 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11757
11758
11759 NO_UNINITIALIZED=
11760 NO_MAYBE_UNINITIALIZED=
11761 if test "$GXX" = "yes"
11762 then
11763   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11764
11765         if test -z "$NO_MAYBE_UNINITIALIZED"
11766   then
11767     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11768
11769   fi
11770 fi
11771 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11772 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11773
11774
11775 # Check whether --with-python was given.
11776 if test "${with_python+set}" = set; then
11777   withval=$with_python; PYTHON="$withval"
11778 fi
11779
11780
11781 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11782   { echo "$as_me:$LINENO: checking for python" >&5
11783 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11784   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11785 echo "${ECHO_T}user defined: $with_python" >&6; }
11786 else
11787   if test -n "$PYTHON" ; then
11788     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11789 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11790   fi
11791
11792   # Extract the first word of "python python2 python26", so it can be a program name with args.
11793 set dummy python python2 python26; ac_word=$2
11794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11796 if test "${ac_cv_path_PYTHON+set}" = set; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799   case $PYTHON in
11800   [\\/]* | ?:[\\/]*)
11801   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11802   ;;
11803   *)
11804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11806 do
11807   IFS=$as_save_IFS
11808   test -z "$as_dir" && as_dir=.
11809   for ac_exec_ext in '' $ac_executable_extensions; do
11810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11811     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11813     break 2
11814   fi
11815 done
11816 done
11817 IFS=$as_save_IFS
11818
11819   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11820 echo "${ECHO_T}not found" >&6; }
11821                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11822 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11823    { (exit 1); exit 1; }; }"
11824   ;;
11825 esac
11826 fi
11827 PYTHON=$ac_cv_path_PYTHON
11828 if test -n "$PYTHON"; then
11829   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11830 echo "${ECHO_T}$PYTHON" >&6; }
11831 else
11832   { echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6; }
11834 fi
11835
11836
11837 fi
11838
11839 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11840 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11841 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11842 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11843 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11844 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11845 if test "$ac_python_version_major" -gt "2" || \
11846    (test "$ac_python_version_major" -eq "2" && \
11847     test "$ac_python_version_minor" -ge "5") ; then
11848   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11849 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11850 else
11851   { echo "$as_me:$LINENO: result: not found" >&5
11852 echo "${ECHO_T}not found" >&6; }
11853   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11854 See \`config.log' for more details." >&5
11855 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11856 See \`config.log' for more details." >&2;}
11857    { (exit 1); exit 1; }; }
11858 fi
11859
11860
11861
11862 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11863 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11864 if test "${ac_cv_lib_m_sin+set}" = set; then
11865   echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867   ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-lm  $LIBS"
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877    Use char because int might match the return type of a GCC
11878    builtin and then its argument prototype would still apply.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char sin ();
11883 int
11884 main ()
11885 {
11886 return sin ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (ac_try="$ac_link"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898   (eval "$ac_link") 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906   { (case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_try") 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; } &&
11915          { ac_try='test -s conftest$ac_exeext'
11916   { (case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_try") 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   ac_cv_lib_m_sin=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930         ac_cv_lib_m_sin=no
11931 fi
11932
11933 rm -f core conftest.err conftest.$ac_objext \
11934       conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11936 fi
11937 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11938 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11939 if test $ac_cv_lib_m_sin = yes; then
11940   cat >>confdefs.h <<_ACEOF
11941 #define HAVE_LIBM 1
11942 _ACEOF
11943
11944   LIBS="-lm $LIBS"
11945
11946 fi
11947
11948 if test "$llvm_cv_os_type" = "MingW" ; then
11949
11950 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11951 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11952 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11953   echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955   ac_check_lib_save_LIBS=$LIBS
11956 LIBS="-limagehlp  $LIBS"
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963
11964
11965 int
11966 main ()
11967 {
11968 return main ();
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977   *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980   (eval "$ac_link") 2>conftest.er1
11981   ac_status=$?
11982   grep -v '^ *+' conftest.er1 >conftest.err
11983   rm -f conftest.er1
11984   cat conftest.err >&5
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } &&
11987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11988   { (case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_try") 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); }; } &&
11997          { ac_try='test -s conftest$ac_exeext'
11998   { (case "(($ac_try" in
11999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000   *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003   (eval "$ac_try") 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   ac_cv_lib_imagehlp_main=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012         ac_cv_lib_imagehlp_main=no
12013 fi
12014
12015 rm -f core conftest.err conftest.$ac_objext \
12016       conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12020 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12021 if test $ac_cv_lib_imagehlp_main = yes; then
12022   cat >>confdefs.h <<_ACEOF
12023 #define HAVE_LIBIMAGEHLP 1
12024 _ACEOF
12025
12026   LIBS="-limagehlp $LIBS"
12027
12028 fi
12029
12030
12031 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12032 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12033 if test "${ac_cv_lib_psapi_main+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-lpsapi  $LIBS"
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044
12045
12046 int
12047 main ()
12048 {
12049 return main ();
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_link") 2>conftest.er1
12062   ac_status=$?
12063   grep -v '^ *+' conftest.er1 >conftest.err
12064   rm -f conftest.er1
12065   cat conftest.err >&5
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } &&
12068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12069   { (case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_try") 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; } &&
12078          { ac_try='test -s conftest$ac_exeext'
12079   { (case "(($ac_try" in
12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081   *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084   (eval "$ac_try") 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   ac_cv_lib_psapi_main=yes
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093         ac_cv_lib_psapi_main=no
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext \
12097       conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12099 fi
12100 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12101 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12102 if test $ac_cv_lib_psapi_main = yes; then
12103   cat >>confdefs.h <<_ACEOF
12104 #define HAVE_LIBPSAPI 1
12105 _ACEOF
12106
12107   LIBS="-lpsapi $LIBS"
12108
12109 fi
12110
12111
12112 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12113 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_shell32_main+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-lshell32  $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125
12126
12127 int
12128 main ()
12129 {
12130 return main ();
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_link") 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12150   { (case "(($ac_try" in
12151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152   *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155   (eval "$ac_try") 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; } &&
12159          { ac_try='test -s conftest$ac_exeext'
12160   { (case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_try") 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; }; then
12169   ac_cv_lib_shell32_main=yes
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174         ac_cv_lib_shell32_main=no
12175 fi
12176
12177 rm -f core conftest.err conftest.$ac_objext \
12178       conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12182 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12183 if test $ac_cv_lib_shell32_main = yes; then
12184   cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBSHELL32 1
12186 _ACEOF
12187
12188   LIBS="-lshell32 $LIBS"
12189
12190 fi
12191
12192 fi
12193
12194 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12195 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12196 if test "${ac_cv_search_dlopen+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   ac_func_search_save_LIBS=$LIBS
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206
12207 /* Override any GCC internal prototype to avoid an error.
12208    Use char because int might match the return type of a GCC
12209    builtin and then its argument prototype would still apply.  */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char dlopen ();
12214 int
12215 main ()
12216 {
12217 return dlopen ();
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 for ac_lib in '' dl; do
12223   if test -z "$ac_lib"; then
12224     ac_res="none required"
12225   else
12226     ac_res=-l$ac_lib
12227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12228   fi
12229   rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_link") 2>conftest.er1
12237   ac_status=$?
12238   grep -v '^ *+' conftest.er1 >conftest.err
12239   rm -f conftest.er1
12240   cat conftest.err >&5
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } &&
12243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244   { (case "(($ac_try" in
12245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246   *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249   (eval "$ac_try") 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; } &&
12253          { ac_try='test -s conftest$ac_exeext'
12254   { (case "(($ac_try" in
12255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256   *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259   (eval "$ac_try") 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   ac_cv_search_dlopen=$ac_res
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268
12269 fi
12270
12271 rm -f core conftest.err conftest.$ac_objext \
12272       conftest$ac_exeext
12273   if test "${ac_cv_search_dlopen+set}" = set; then
12274   break
12275 fi
12276 done
12277 if test "${ac_cv_search_dlopen+set}" = set; then
12278   :
12279 else
12280   ac_cv_search_dlopen=no
12281 fi
12282 rm conftest.$ac_ext
12283 LIBS=$ac_func_search_save_LIBS
12284 fi
12285 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12286 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12287 ac_res=$ac_cv_search_dlopen
12288 if test "$ac_res" != no; then
12289   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12290
12291 cat >>confdefs.h <<\_ACEOF
12292 #define HAVE_DLOPEN 1
12293 _ACEOF
12294
12295 else
12296   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12297 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12298 fi
12299
12300
12301 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12302 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12303 if test "${ac_cv_search_clock_gettime+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   ac_func_search_save_LIBS=$LIBS
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313
12314 /* Override any GCC internal prototype to avoid an error.
12315    Use char because int might match the return type of a GCC
12316    builtin and then its argument prototype would still apply.  */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char clock_gettime ();
12321 int
12322 main ()
12323 {
12324 return clock_gettime ();
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 for ac_lib in '' rt; do
12330   if test -z "$ac_lib"; then
12331     ac_res="none required"
12332   else
12333     ac_res=-l$ac_lib
12334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12335   fi
12336   rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_link") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12351   { (case "(($ac_try" in
12352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353   *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356   (eval "$ac_try") 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }; } &&
12360          { ac_try='test -s conftest$ac_exeext'
12361   { (case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_try") 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ac_cv_search_clock_gettime=$ac_res
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375
12376 fi
12377
12378 rm -f core conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext
12380   if test "${ac_cv_search_clock_gettime+set}" = set; then
12381   break
12382 fi
12383 done
12384 if test "${ac_cv_search_clock_gettime+set}" = set; then
12385   :
12386 else
12387   ac_cv_search_clock_gettime=no
12388 fi
12389 rm conftest.$ac_ext
12390 LIBS=$ac_func_search_save_LIBS
12391 fi
12392 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12393 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12394 ac_res=$ac_cv_search_clock_gettime
12395 if test "$ac_res" != no; then
12396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12397
12398 fi
12399
12400
12401 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12402     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12403 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12404 if test "${ac_cv_search_setupterm+set}" = set; then
12405   echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407   ac_func_search_save_LIBS=$LIBS
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416    Use char because int might match the return type of a GCC
12417    builtin and then its argument prototype would still apply.  */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char setupterm ();
12422 int
12423 main ()
12424 {
12425 return setupterm ();
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12431   if test -z "$ac_lib"; then
12432     ac_res="none required"
12433   else
12434     ac_res=-l$ac_lib
12435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12436   fi
12437   rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_link") 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } &&
12451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452   { (case "(($ac_try" in
12453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454   *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457   (eval "$ac_try") 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; } &&
12461          { ac_try='test -s conftest$ac_exeext'
12462   { (case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_try") 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   ac_cv_search_setupterm=$ac_res
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476
12477 fi
12478
12479 rm -f core conftest.err conftest.$ac_objext \
12480       conftest$ac_exeext
12481   if test "${ac_cv_search_setupterm+set}" = set; then
12482   break
12483 fi
12484 done
12485 if test "${ac_cv_search_setupterm+set}" = set; then
12486   :
12487 else
12488   ac_cv_search_setupterm=no
12489 fi
12490 rm conftest.$ac_ext
12491 LIBS=$ac_func_search_save_LIBS
12492 fi
12493 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12494 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12495 ac_res=$ac_cv_search_setupterm
12496 if test "$ac_res" != no; then
12497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12498
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_TERMINFO 1
12501 _ACEOF
12502
12503 fi
12504
12505 fi
12506
12507 if test "$llvm_cv_enable_libffi" = "yes" ; then
12508   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12509 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12510 if test "${ac_cv_search_ffi_call+set}" = set; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   ac_func_search_save_LIBS=$LIBS
12514 cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h.  */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h.  */
12520
12521 /* Override any GCC internal prototype to avoid an error.
12522    Use char because int might match the return type of a GCC
12523    builtin and then its argument prototype would still apply.  */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 char ffi_call ();
12528 int
12529 main ()
12530 {
12531 return ffi_call ();
12532   ;
12533   return 0;
12534 }
12535 _ACEOF
12536 for ac_lib in '' ffi; do
12537   if test -z "$ac_lib"; then
12538     ac_res="none required"
12539   else
12540     ac_res=-l$ac_lib
12541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12542   fi
12543   rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_link") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } &&
12557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558   { (case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_try") 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest$ac_exeext'
12568   { (case "(($ac_try" in
12569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570   *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573   (eval "$ac_try") 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   ac_cv_search_ffi_call=$ac_res
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582
12583 fi
12584
12585 rm -f core conftest.err conftest.$ac_objext \
12586       conftest$ac_exeext
12587   if test "${ac_cv_search_ffi_call+set}" = set; then
12588   break
12589 fi
12590 done
12591 if test "${ac_cv_search_ffi_call+set}" = set; then
12592   :
12593 else
12594   ac_cv_search_ffi_call=no
12595 fi
12596 rm conftest.$ac_ext
12597 LIBS=$ac_func_search_save_LIBS
12598 fi
12599 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12600 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12601 ac_res=$ac_cv_search_ffi_call
12602 if test "$ac_res" != no; then
12603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12604
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_FFI_CALL 1
12607 _ACEOF
12608
12609 else
12610   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12611 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12612    { (exit 1); exit 1; }; }
12613 fi
12614
12615 fi
12616
12617 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12618 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12619 if test "${ac_cv_search_mallinfo+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   ac_func_search_save_LIBS=$LIBS
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629
12630 /* Override any GCC internal prototype to avoid an error.
12631    Use char because int might match the return type of a GCC
12632    builtin and then its argument prototype would still apply.  */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 char mallinfo ();
12637 int
12638 main ()
12639 {
12640 return mallinfo ();
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 for ac_lib in '' malloc; do
12646   if test -z "$ac_lib"; then
12647     ac_res="none required"
12648   else
12649     ac_res=-l$ac_lib
12650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12651   fi
12652   rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656   *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659   (eval "$ac_link") 2>conftest.er1
12660   ac_status=$?
12661   grep -v '^ *+' conftest.er1 >conftest.err
12662   rm -f conftest.er1
12663   cat conftest.err >&5
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); } &&
12666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667   { (case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672   (eval "$ac_try") 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; } &&
12676          { ac_try='test -s conftest$ac_exeext'
12677   { (case "(($ac_try" in
12678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679   *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682   (eval "$ac_try") 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; }; then
12686   ac_cv_search_mallinfo=$ac_res
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691
12692 fi
12693
12694 rm -f core conftest.err conftest.$ac_objext \
12695       conftest$ac_exeext
12696   if test "${ac_cv_search_mallinfo+set}" = set; then
12697   break
12698 fi
12699 done
12700 if test "${ac_cv_search_mallinfo+set}" = set; then
12701   :
12702 else
12703   ac_cv_search_mallinfo=no
12704 fi
12705 rm conftest.$ac_ext
12706 LIBS=$ac_func_search_save_LIBS
12707 fi
12708 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12709 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12710 ac_res=$ac_cv_search_mallinfo
12711 if test "$ac_res" != no; then
12712   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12713
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_MALLINFO 1
12716 _ACEOF
12717
12718 fi
12719
12720
12721 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12722
12723 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12724 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12725 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12726   echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728   ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-lpthread  $LIBS"
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736
12737 /* Override any GCC internal prototype to avoid an error.
12738    Use char because int might match the return type of a GCC
12739    builtin and then its argument prototype would still apply.  */
12740 #ifdef __cplusplus
12741 extern "C"
12742 #endif
12743 char pthread_mutex_init ();
12744 int
12745 main ()
12746 {
12747 return pthread_mutex_init ();
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759   (eval "$ac_link") 2>conftest.er1
12760   ac_status=$?
12761   grep -v '^ *+' conftest.er1 >conftest.err
12762   rm -f conftest.er1
12763   cat conftest.err >&5
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } &&
12766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12767   { (case "(($ac_try" in
12768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769   *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772   (eval "$ac_try") 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; } &&
12776          { ac_try='test -s conftest$ac_exeext'
12777   { (case "(($ac_try" in
12778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779   *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782   (eval "$ac_try") 2>&5
12783   ac_status=$?
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); }; }; then
12786   ac_cv_lib_pthread_pthread_mutex_init=yes
12787 else
12788   echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791         ac_cv_lib_pthread_pthread_mutex_init=no
12792 fi
12793
12794 rm -f core conftest.err conftest.$ac_objext \
12795       conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12797 fi
12798 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12799 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12800 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12801   cat >>confdefs.h <<_ACEOF
12802 #define HAVE_LIBPTHREAD 1
12803 _ACEOF
12804
12805   LIBS="-lpthread $LIBS"
12806
12807 fi
12808
12809   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12810 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12811 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   ac_func_search_save_LIBS=$LIBS
12815 cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h.  */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h.  */
12821
12822 /* Override any GCC internal prototype to avoid an error.
12823    Use char because int might match the return type of a GCC
12824    builtin and then its argument prototype would still apply.  */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 char pthread_mutex_lock ();
12829 int
12830 main ()
12831 {
12832 return pthread_mutex_lock ();
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 for ac_lib in '' pthread; do
12838   if test -z "$ac_lib"; then
12839     ac_res="none required"
12840   else
12841     ac_res=-l$ac_lib
12842     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12843   fi
12844   rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (ac_try="$ac_link"
12846 case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851   (eval "$ac_link") 2>conftest.er1
12852   ac_status=$?
12853   grep -v '^ *+' conftest.er1 >conftest.err
12854   rm -f conftest.er1
12855   cat conftest.err >&5
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); } &&
12858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12859   { (case "(($ac_try" in
12860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861   *) ac_try_echo=$ac_try;;
12862 esac
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864   (eval "$ac_try") 2>&5
12865   ac_status=$?
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); }; } &&
12868          { ac_try='test -s conftest$ac_exeext'
12869   { (case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_try") 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878   ac_cv_search_pthread_mutex_lock=$ac_res
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883
12884 fi
12885
12886 rm -f core conftest.err conftest.$ac_objext \
12887       conftest$ac_exeext
12888   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12889   break
12890 fi
12891 done
12892 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12893   :
12894 else
12895   ac_cv_search_pthread_mutex_lock=no
12896 fi
12897 rm conftest.$ac_ext
12898 LIBS=$ac_func_search_save_LIBS
12899 fi
12900 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12901 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12902 ac_res=$ac_cv_search_pthread_mutex_lock
12903 if test "$ac_res" != no; then
12904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12905
12906 cat >>confdefs.h <<\_ACEOF
12907 #define HAVE_PTHREAD_MUTEX_LOCK 1
12908 _ACEOF
12909
12910 fi
12911
12912   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12913 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12914 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   ac_func_search_save_LIBS=$LIBS
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924
12925 /* Override any GCC internal prototype to avoid an error.
12926    Use char because int might match the return type of a GCC
12927    builtin and then its argument prototype would still apply.  */
12928 #ifdef __cplusplus
12929 extern "C"
12930 #endif
12931 char pthread_rwlock_init ();
12932 int
12933 main ()
12934 {
12935 return pthread_rwlock_init ();
12936   ;
12937   return 0;
12938 }
12939 _ACEOF
12940 for ac_lib in '' pthread; do
12941   if test -z "$ac_lib"; then
12942     ac_res="none required"
12943   else
12944     ac_res=-l$ac_lib
12945     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12946   fi
12947   rm -f conftest.$ac_objext conftest$ac_exeext
12948 if { (ac_try="$ac_link"
12949 case "(($ac_try" in
12950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951   *) ac_try_echo=$ac_try;;
12952 esac
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954   (eval "$ac_link") 2>conftest.er1
12955   ac_status=$?
12956   grep -v '^ *+' conftest.er1 >conftest.err
12957   rm -f conftest.er1
12958   cat conftest.err >&5
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12962   { (case "(($ac_try" in
12963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964   *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967   (eval "$ac_try") 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; } &&
12971          { ac_try='test -s conftest$ac_exeext'
12972   { (case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_try") 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   ac_cv_search_pthread_rwlock_init=$ac_res
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986
12987 fi
12988
12989 rm -f core conftest.err conftest.$ac_objext \
12990       conftest$ac_exeext
12991   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12992   break
12993 fi
12994 done
12995 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12996   :
12997 else
12998   ac_cv_search_pthread_rwlock_init=no
12999 fi
13000 rm conftest.$ac_ext
13001 LIBS=$ac_func_search_save_LIBS
13002 fi
13003 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13004 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13005 ac_res=$ac_cv_search_pthread_rwlock_init
13006 if test "$ac_res" != no; then
13007   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13008
13009 cat >>confdefs.h <<\_ACEOF
13010 #define HAVE_PTHREAD_RWLOCK_INIT 1
13011 _ACEOF
13012
13013 fi
13014
13015   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13016 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13017 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   ac_func_search_save_LIBS=$LIBS
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h.  */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h.  */
13027
13028 /* Override any GCC internal prototype to avoid an error.
13029    Use char because int might match the return type of a GCC
13030    builtin and then its argument prototype would still apply.  */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char pthread_getspecific ();
13035 int
13036 main ()
13037 {
13038 return pthread_getspecific ();
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 for ac_lib in '' pthread; do
13044   if test -z "$ac_lib"; then
13045     ac_res="none required"
13046   else
13047     ac_res=-l$ac_lib
13048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13049   fi
13050   rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (ac_try="$ac_link"
13052 case "(($ac_try" in
13053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054   *) ac_try_echo=$ac_try;;
13055 esac
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057   (eval "$ac_link") 2>conftest.er1
13058   ac_status=$?
13059   grep -v '^ *+' conftest.er1 >conftest.err
13060   rm -f conftest.er1
13061   cat conftest.err >&5
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } &&
13064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13065   { (case "(($ac_try" in
13066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067   *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070   (eval "$ac_try") 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; } &&
13074          { ac_try='test -s conftest$ac_exeext'
13075   { (case "(($ac_try" in
13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077   *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080   (eval "$ac_try") 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084   ac_cv_search_pthread_getspecific=$ac_res
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089
13090 fi
13091
13092 rm -f core conftest.err conftest.$ac_objext \
13093       conftest$ac_exeext
13094   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13095   break
13096 fi
13097 done
13098 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13099   :
13100 else
13101   ac_cv_search_pthread_getspecific=no
13102 fi
13103 rm conftest.$ac_ext
13104 LIBS=$ac_func_search_save_LIBS
13105 fi
13106 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13107 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13108 ac_res=$ac_cv_search_pthread_getspecific
13109 if test "$ac_res" != no; then
13110   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13111
13112 cat >>confdefs.h <<\_ACEOF
13113 #define HAVE_PTHREAD_GETSPECIFIC 1
13114 _ACEOF
13115
13116 fi
13117
13118 fi
13119
13120 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13121
13122 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13123 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13124 if test "${ac_cv_lib_z_compress2+set}" = set; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-lz  $LIBS"
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h.  */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h.  */
13135
13136 /* Override any GCC internal prototype to avoid an error.
13137    Use char because int might match the return type of a GCC
13138    builtin and then its argument prototype would still apply.  */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 char compress2 ();
13143 int
13144 main ()
13145 {
13146 return compress2 ();
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (ac_try="$ac_link"
13153 case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_link") 2>conftest.er1
13159   ac_status=$?
13160   grep -v '^ *+' conftest.er1 >conftest.err
13161   rm -f conftest.er1
13162   cat conftest.err >&5
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); } &&
13165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166   { (case "(($ac_try" in
13167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168   *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171   (eval "$ac_try") 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; } &&
13175          { ac_try='test -s conftest$ac_exeext'
13176   { (case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_try") 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185   ac_cv_lib_z_compress2=yes
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190         ac_cv_lib_z_compress2=no
13191 fi
13192
13193 rm -f core conftest.err conftest.$ac_objext \
13194       conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13196 fi
13197 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13198 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13199 if test $ac_cv_lib_z_compress2 = yes; then
13200   cat >>confdefs.h <<_ACEOF
13201 #define HAVE_LIBZ 1
13202 _ACEOF
13203
13204   LIBS="-lz $LIBS"
13205
13206 fi
13207
13208 fi
13209
13210
13211 # Check whether --with-udis86 was given.
13212 if test "${with_udis86+set}" = set; then
13213   withval=$with_udis86;
13214       USE_UDIS86=1
13215
13216       case "$withval" in
13217         /usr/lib|yes) ;;
13218         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13219       esac
13220
13221 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13222 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13223 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-ludis86  $LIBS"
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h.  */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h.  */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236    Use char because int might match the return type of a GCC
13237    builtin and then its argument prototype would still apply.  */
13238 #ifdef __cplusplus
13239 extern "C"
13240 #endif
13241 char ud_init ();
13242 int
13243 main ()
13244 {
13245 return ud_init ();
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257   (eval "$ac_link") 2>conftest.er1
13258   ac_status=$?
13259   grep -v '^ *+' conftest.er1 >conftest.err
13260   rm -f conftest.er1
13261   cat conftest.err >&5
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } &&
13264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265   { (case "(($ac_try" in
13266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267   *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270   (eval "$ac_try") 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); }; } &&
13274          { ac_try='test -s conftest$ac_exeext'
13275   { (case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280   (eval "$ac_try") 2>&5
13281   ac_status=$?
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); }; }; then
13284   ac_cv_lib_udis86_ud_init=yes
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289         ac_cv_lib_udis86_ud_init=no
13290 fi
13291
13292 rm -f core conftest.err conftest.$ac_objext \
13293       conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13295 fi
13296 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13297 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13298 if test $ac_cv_lib_udis86_ud_init = yes; then
13299   cat >>confdefs.h <<_ACEOF
13300 #define HAVE_LIBUDIS86 1
13301 _ACEOF
13302
13303   LIBS="-ludis86 $LIBS"
13304
13305 else
13306
13307         echo "Error! You need to have libudis86 around."
13308         exit -1
13309
13310 fi
13311
13312
13313 else
13314   USE_UDIS86=0
13315
13316 fi
13317
13318
13319 cat >>confdefs.h <<_ACEOF
13320 #define USE_UDIS86 $USE_UDIS86
13321 _ACEOF
13322
13323
13324
13325 # Check whether --with-oprofile was given.
13326 if test "${with_oprofile+set}" = set; then
13327   withval=$with_oprofile;
13328       USE_OPROFILE=1
13329
13330       case "$withval" in
13331         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13332         no) llvm_cv_oppath=
13333             USE_OPROFILE=0
13334  ;;
13335         *) llvm_cv_oppath="${withval}/lib/oprofile"
13336            CPPFLAGS="-I${withval}/include";;
13337       esac
13338       case $llvm_cv_os_type in
13339         Linux)
13340           if test -n "$llvm_cv_oppath" ; then
13341             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13342                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13343 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13344 if test "${ac_cv_search_bfd_init+set}" = set; then
13345   echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347   ac_func_search_save_LIBS=$LIBS
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354
13355 /* Override any GCC internal prototype to avoid an error.
13356    Use char because int might match the return type of a GCC
13357    builtin and then its argument prototype would still apply.  */
13358 #ifdef __cplusplus
13359 extern "C"
13360 #endif
13361 char bfd_init ();
13362 int
13363 main ()
13364 {
13365 return bfd_init ();
13366   ;
13367   return 0;
13368 }
13369 _ACEOF
13370 for ac_lib in '' bfd; do
13371   if test -z "$ac_lib"; then
13372     ac_res="none required"
13373   else
13374     ac_res=-l$ac_lib
13375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13376   fi
13377   rm -f conftest.$ac_objext conftest$ac_exeext
13378 if { (ac_try="$ac_link"
13379 case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_link") 2>conftest.er1
13385   ac_status=$?
13386   grep -v '^ *+' conftest.er1 >conftest.err
13387   rm -f conftest.er1
13388   cat conftest.err >&5
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; } &&
13401          { ac_try='test -s conftest$ac_exeext'
13402   { (case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_try") 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; }; then
13411   ac_cv_search_bfd_init=$ac_res
13412 else
13413   echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416
13417 fi
13418
13419 rm -f core conftest.err conftest.$ac_objext \
13420       conftest$ac_exeext
13421   if test "${ac_cv_search_bfd_init+set}" = set; then
13422   break
13423 fi
13424 done
13425 if test "${ac_cv_search_bfd_init+set}" = set; then
13426   :
13427 else
13428   ac_cv_search_bfd_init=no
13429 fi
13430 rm conftest.$ac_ext
13431 LIBS=$ac_func_search_save_LIBS
13432 fi
13433 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13434 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13435 ac_res=$ac_cv_search_bfd_init
13436 if test "$ac_res" != no; then
13437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13438
13439 fi
13440
13441             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13442 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13443 if test "${ac_cv_search_op_open_agent+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   ac_func_search_save_LIBS=$LIBS
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453
13454 /* Override any GCC internal prototype to avoid an error.
13455    Use char because int might match the return type of a GCC
13456    builtin and then its argument prototype would still apply.  */
13457 #ifdef __cplusplus
13458 extern "C"
13459 #endif
13460 char op_open_agent ();
13461 int
13462 main ()
13463 {
13464 return op_open_agent ();
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 for ac_lib in '' opagent; do
13470   if test -z "$ac_lib"; then
13471     ac_res="none required"
13472   else
13473     ac_res=-l$ac_lib
13474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13475   fi
13476   rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_link") 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491   { (case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_try") 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; } &&
13500          { ac_try='test -s conftest$ac_exeext'
13501   { (case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_try") 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; }; then
13510   ac_cv_search_op_open_agent=$ac_res
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515
13516 fi
13517
13518 rm -f core conftest.err conftest.$ac_objext \
13519       conftest$ac_exeext
13520   if test "${ac_cv_search_op_open_agent+set}" = set; then
13521   break
13522 fi
13523 done
13524 if test "${ac_cv_search_op_open_agent+set}" = set; then
13525   :
13526 else
13527   ac_cv_search_op_open_agent=no
13528 fi
13529 rm conftest.$ac_ext
13530 LIBS=$ac_func_search_save_LIBS
13531 fi
13532 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13533 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13534 ac_res=$ac_cv_search_op_open_agent
13535 if test "$ac_res" != no; then
13536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13537
13538 else
13539
13540               echo "Error! You need to have libopagent around."
13541               exit -1
13542
13543 fi
13544
13545             if test "${ac_cv_header_opagent_h+set}" = set; then
13546   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13547 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13548 if test "${ac_cv_header_opagent_h+set}" = set; then
13549   echo $ECHO_N "(cached) $ECHO_C" >&6
13550 fi
13551 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13552 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13553 else
13554   # Is the header compilable?
13555 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13556 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h.  */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h.  */
13563 $ac_includes_default
13564 #include <opagent.h>
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_compile") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } &&
13580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581   { (case "(($ac_try" in
13582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583   *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586   (eval "$ac_try") 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; } &&
13590          { ac_try='test -s conftest.$ac_objext'
13591   { (case "(($ac_try" in
13592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593   *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596   (eval "$ac_try") 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; }; then
13600   ac_header_compiler=yes
13601 else
13602   echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605         ac_header_compiler=no
13606 fi
13607
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13610 echo "${ECHO_T}$ac_header_compiler" >&6; }
13611
13612 # Is the header present?
13613 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13614 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h.  */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h.  */
13621 #include <opagent.h>
13622 _ACEOF
13623 if { (ac_try="$ac_cpp conftest.$ac_ext"
13624 case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13630   ac_status=$?
13631   grep -v '^ *+' conftest.er1 >conftest.err
13632   rm -f conftest.er1
13633   cat conftest.err >&5
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } >/dev/null; then
13636   if test -s conftest.err; then
13637     ac_cpp_err=$ac_c_preproc_warn_flag
13638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13639   else
13640     ac_cpp_err=
13641   fi
13642 else
13643   ac_cpp_err=yes
13644 fi
13645 if test -z "$ac_cpp_err"; then
13646   ac_header_preproc=yes
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651   ac_header_preproc=no
13652 fi
13653
13654 rm -f conftest.err conftest.$ac_ext
13655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13656 echo "${ECHO_T}$ac_header_preproc" >&6; }
13657
13658 # So?  What about this header?
13659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13660   yes:no: )
13661     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13662 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13663     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13664 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13665     ac_header_preproc=yes
13666     ;;
13667   no:yes:* )
13668     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13669 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13670     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13671 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13672     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13673 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13674     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13675 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13676     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13677 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13678     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13679 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13680     ( cat <<\_ASBOX
13681 ## ------------------------------------ ##
13682 ## Report this to http://llvm.org/bugs/ ##
13683 ## ------------------------------------ ##
13684 _ASBOX
13685      ) | sed "s/^/$as_me: WARNING:     /" >&2
13686     ;;
13687 esac
13688 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13689 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13690 if test "${ac_cv_header_opagent_h+set}" = set; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693   ac_cv_header_opagent_h=$ac_header_preproc
13694 fi
13695 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13696 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13697
13698 fi
13699 if test $ac_cv_header_opagent_h = yes; then
13700   :
13701 else
13702
13703               echo "Error! You need to have opagent.h around."
13704               exit -1
13705
13706 fi
13707
13708
13709           fi ;;
13710         *)
13711           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13712 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13713    { (exit 1); exit 1; }; } ;;
13714       esac
13715
13716 else
13717
13718       USE_OPROFILE=0
13719
13720
13721 fi
13722
13723
13724 cat >>confdefs.h <<_ACEOF
13725 #define LLVM_USE_OPROFILE $USE_OPROFILE
13726 _ACEOF
13727
13728
13729
13730 # Check whether --with-intel-jitevents was given.
13731 if test "${with_intel_jitevents+set}" = set; then
13732   withval=$with_intel_jitevents;
13733        case "$withval" in
13734           yes) USE_INTEL_JITEVENTS=1
13735 ;;
13736           no)  USE_INTEL_JITEVENTS=0
13737 ;;
13738           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13739 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13740    { (exit 1); exit 1; }; };;
13741        esac
13742
13743       case $llvm_cv_os_type in
13744         Linux|Win32|Cygwin|MingW) ;;
13745         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13746 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13747    { (exit 1); exit 1; }; };;
13748       esac
13749
13750       case "$llvm_cv_target_arch" in
13751         x86|x86_64) ;;
13752         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13753 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13754    { (exit 1); exit 1; }; };;
13755       esac
13756
13757 else
13758
13759       USE_INTEL_JITEVENTS=0
13760
13761
13762 fi
13763
13764
13765 cat >>confdefs.h <<_ACEOF
13766 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13767 _ACEOF
13768
13769
13770 for ac_prog in xml2-config
13771 do
13772   # Extract the first word of "$ac_prog", so it can be a program name with args.
13773 set dummy $ac_prog; ac_word=$2
13774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13776 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   if test -n "$XML2CONFIG"; then
13780   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13781 else
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13784 do
13785   IFS=$as_save_IFS
13786   test -z "$as_dir" && as_dir=.
13787   for ac_exec_ext in '' $ac_executable_extensions; do
13788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13789     ac_cv_prog_XML2CONFIG="$ac_prog"
13790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13791     break 2
13792   fi
13793 done
13794 done
13795 IFS=$as_save_IFS
13796
13797 fi
13798 fi
13799 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13800 if test -n "$XML2CONFIG"; then
13801   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13802 echo "${ECHO_T}$XML2CONFIG" >&6; }
13803 else
13804   { echo "$as_me:$LINENO: result: no" >&5
13805 echo "${ECHO_T}no" >&6; }
13806 fi
13807
13808
13809   test -n "$XML2CONFIG" && break
13810 done
13811
13812
13813 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13814 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13815 if test "x$XML2CONFIG" = "x"; then
13816  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13817 echo "${ECHO_T}xml2-config not found" >&6; }
13818 else
13819  LIBXML2_INC=`$XML2CONFIG --cflags`
13820  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13821 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13822  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13823 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13824 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13825   echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827   ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lxml2  $LIBS"
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835
13836 /* Override any GCC internal prototype to avoid an error.
13837    Use char because int might match the return type of a GCC
13838    builtin and then its argument prototype would still apply.  */
13839 #ifdef __cplusplus
13840 extern "C"
13841 #endif
13842 char xmlReadFile ();
13843 int
13844 main ()
13845 {
13846 return xmlReadFile ();
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (ac_try="$ac_link"
13853 case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_link") 2>conftest.er1
13859   ac_status=$?
13860   grep -v '^ *+' conftest.er1 >conftest.err
13861   rm -f conftest.er1
13862   cat conftest.err >&5
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } &&
13865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13866   { (case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_try") 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; } &&
13875          { ac_try='test -s conftest$ac_exeext'
13876   { (case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881   (eval "$ac_try") 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885   ac_cv_lib_xml2_xmlReadFile=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890         ac_cv_lib_xml2_xmlReadFile=no
13891 fi
13892
13893 rm -f core conftest.err conftest.$ac_objext \
13894       conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13896 fi
13897 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13898 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13899 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13900
13901 cat >>confdefs.h <<\_ACEOF
13902 #define CLANG_HAVE_LIBXML 1
13903 _ACEOF
13904
13905                                 LIBXML2_LIBS="-lxml2"
13906 fi
13907
13908 fi
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918 ac_header_dirent=no
13919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13920   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13921 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13922 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932 #include <sys/types.h>
13933 #include <$ac_hdr>
13934
13935 int
13936 main ()
13937 {
13938 if ((DIR *) 0)
13939 return 0;
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (ac_try="$ac_compile"
13946 case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_compile") 2>conftest.er1
13952   ac_status=$?
13953   grep -v '^ *+' conftest.er1 >conftest.err
13954   rm -f conftest.er1
13955   cat conftest.err >&5
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } &&
13958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959   { (case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_try") 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; } &&
13968          { ac_try='test -s conftest.$ac_objext'
13969   { (case "(($ac_try" in
13970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971   *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974   (eval "$ac_try") 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   eval "$as_ac_Header=yes"
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983         eval "$as_ac_Header=no"
13984 fi
13985
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 fi
13988 ac_res=`eval echo '${'$as_ac_Header'}'`
13989                { echo "$as_me:$LINENO: result: $ac_res" >&5
13990 echo "${ECHO_T}$ac_res" >&6; }
13991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13992   cat >>confdefs.h <<_ACEOF
13993 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13994 _ACEOF
13995
13996 ac_header_dirent=$ac_hdr; break
13997 fi
13998
13999 done
14000 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14001 if test $ac_header_dirent = dirent.h; then
14002   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14004 if test "${ac_cv_search_opendir+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007   ac_func_search_save_LIBS=$LIBS
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014
14015 /* Override any GCC internal prototype to avoid an error.
14016    Use char because int might match the return type of a GCC
14017    builtin and then its argument prototype would still apply.  */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char opendir ();
14022 int
14023 main ()
14024 {
14025 return opendir ();
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 for ac_lib in '' dir; do
14031   if test -z "$ac_lib"; then
14032     ac_res="none required"
14033   else
14034     ac_res=-l$ac_lib
14035     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14036   fi
14037   rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (ac_try="$ac_link"
14039 case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_link") 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052   { (case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_try") 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; } &&
14061          { ac_try='test -s conftest$ac_exeext'
14062   { (case "(($ac_try" in
14063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064   *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067   (eval "$ac_try") 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_cv_search_opendir=$ac_res
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076
14077 fi
14078
14079 rm -f core conftest.err conftest.$ac_objext \
14080       conftest$ac_exeext
14081   if test "${ac_cv_search_opendir+set}" = set; then
14082   break
14083 fi
14084 done
14085 if test "${ac_cv_search_opendir+set}" = set; then
14086   :
14087 else
14088   ac_cv_search_opendir=no
14089 fi
14090 rm conftest.$ac_ext
14091 LIBS=$ac_func_search_save_LIBS
14092 fi
14093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14095 ac_res=$ac_cv_search_opendir
14096 if test "$ac_res" != no; then
14097   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14098
14099 fi
14100
14101 else
14102   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14104 if test "${ac_cv_search_opendir+set}" = set; then
14105   echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107   ac_func_search_save_LIBS=$LIBS
14108 cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114
14115 /* Override any GCC internal prototype to avoid an error.
14116    Use char because int might match the return type of a GCC
14117    builtin and then its argument prototype would still apply.  */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 char opendir ();
14122 int
14123 main ()
14124 {
14125 return opendir ();
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 for ac_lib in '' x; do
14131   if test -z "$ac_lib"; then
14132     ac_res="none required"
14133   else
14134     ac_res=-l$ac_lib
14135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14136   fi
14137   rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_link") 2>conftest.er1
14145   ac_status=$?
14146   grep -v '^ *+' conftest.er1 >conftest.err
14147   rm -f conftest.er1
14148   cat conftest.err >&5
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14152   { (case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_try") 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; } &&
14161          { ac_try='test -s conftest$ac_exeext'
14162   { (case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167   (eval "$ac_try") 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_cv_search_opendir=$ac_res
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176
14177 fi
14178
14179 rm -f core conftest.err conftest.$ac_objext \
14180       conftest$ac_exeext
14181   if test "${ac_cv_search_opendir+set}" = set; then
14182   break
14183 fi
14184 done
14185 if test "${ac_cv_search_opendir+set}" = set; then
14186   :
14187 else
14188   ac_cv_search_opendir=no
14189 fi
14190 rm conftest.$ac_ext
14191 LIBS=$ac_func_search_save_LIBS
14192 fi
14193 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14194 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14195 ac_res=$ac_cv_search_opendir
14196 if test "$ac_res" != no; then
14197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14198
14199 fi
14200
14201 fi
14202
14203 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14204 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14205 if test "${ac_cv_header_mmap_anon+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208    ac_ext=c
14209 ac_cpp='$CPP $CPPFLAGS'
14210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14213
14214   cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h.  */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h.  */
14220 #include <sys/mman.h>
14221 #include <unistd.h>
14222 #include <fcntl.h>
14223 int
14224 main ()
14225 {
14226 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14227   ;
14228   return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (ac_try="$ac_compile"
14233 case "(($ac_try" in
14234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235   *) ac_try_echo=$ac_try;;
14236 esac
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238   (eval "$ac_compile") 2>conftest.er1
14239   ac_status=$?
14240   grep -v '^ *+' conftest.er1 >conftest.err
14241   rm -f conftest.er1
14242   cat conftest.err >&5
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14246   { (case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_try") 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (case "(($ac_try" in
14257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258   *) ac_try_echo=$ac_try;;
14259 esac
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261   (eval "$ac_try") 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265   ac_cv_header_mmap_anon=yes
14266 else
14267   echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270         ac_cv_header_mmap_anon=no
14271 fi
14272
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274   ac_ext=c
14275 ac_cpp='$CPP $CPPFLAGS'
14276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14279
14280
14281 fi
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14283 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14284 if test "$ac_cv_header_mmap_anon" = yes; then
14285
14286 cat >>confdefs.h <<\_ACEOF
14287 #define HAVE_MMAP_ANONYMOUS 1
14288 _ACEOF
14289
14290 fi
14291
14292 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14293 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14294 if test "${ac_cv_header_stat_broken+set}" = set; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 #include <sys/types.h>
14304 #include <sys/stat.h>
14305
14306 #if defined S_ISBLK && defined S_IFDIR
14307 # if S_ISBLK (S_IFDIR)
14308 You lose.
14309 # endif
14310 #endif
14311
14312 #if defined S_ISBLK && defined S_IFCHR
14313 # if S_ISBLK (S_IFCHR)
14314 You lose.
14315 # endif
14316 #endif
14317
14318 #if defined S_ISLNK && defined S_IFREG
14319 # if S_ISLNK (S_IFREG)
14320 You lose.
14321 # endif
14322 #endif
14323
14324 #if defined S_ISSOCK && defined S_IFREG
14325 # if S_ISSOCK (S_IFREG)
14326 You lose.
14327 # endif
14328 #endif
14329
14330 _ACEOF
14331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14332   $EGREP "You lose" >/dev/null 2>&1; then
14333   ac_cv_header_stat_broken=yes
14334 else
14335   ac_cv_header_stat_broken=no
14336 fi
14337 rm -f conftest*
14338
14339 fi
14340 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14341 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14342 if test $ac_cv_header_stat_broken = yes; then
14343
14344 cat >>confdefs.h <<\_ACEOF
14345 #define STAT_MACROS_BROKEN 1
14346 _ACEOF
14347
14348 fi
14349
14350 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14351 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14352 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14353   echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355   cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361 #include <sys/types.h>
14362 #include <sys/wait.h>
14363 #ifndef WEXITSTATUS
14364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14365 #endif
14366 #ifndef WIFEXITED
14367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14368 #endif
14369
14370 int
14371 main ()
14372 {
14373   int s;
14374   wait (&s);
14375   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14376   ;
14377   return 0;
14378 }
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (ac_try="$ac_compile"
14382 case "(($ac_try" in
14383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384   *) ac_try_echo=$ac_try;;
14385 esac
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387   (eval "$ac_compile") 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; } &&
14404          { ac_try='test -s conftest.$ac_objext'
14405   { (case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_try") 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }; then
14414   ac_cv_header_sys_wait_h=yes
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419         ac_cv_header_sys_wait_h=no
14420 fi
14421
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 fi
14424 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14425 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14426 if test $ac_cv_header_sys_wait_h = yes; then
14427
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_SYS_WAIT_H 1
14430 _ACEOF
14431
14432 fi
14433
14434 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14435 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14436 if test "${ac_cv_header_time+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 #include <sys/types.h>
14446 #include <sys/time.h>
14447 #include <time.h>
14448
14449 int
14450 main ()
14451 {
14452 if ((struct tm *) 0)
14453 return 0;
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (ac_try="$ac_compile"
14460 case "(($ac_try" in
14461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462   *) ac_try_echo=$ac_try;;
14463 esac
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465   (eval "$ac_compile") 2>conftest.er1
14466   ac_status=$?
14467   grep -v '^ *+' conftest.er1 >conftest.err
14468   rm -f conftest.er1
14469   cat conftest.err >&5
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14473   { (case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_try") 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; } &&
14482          { ac_try='test -s conftest.$ac_objext'
14483   { (case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488   (eval "$ac_try") 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   ac_cv_header_time=yes
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497         ac_cv_header_time=no
14498 fi
14499
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 fi
14502 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14503 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14504 if test $ac_cv_header_time = yes; then
14505
14506 cat >>confdefs.h <<\_ACEOF
14507 #define TIME_WITH_SYS_TIME 1
14508 _ACEOF
14509
14510 fi
14511
14512
14513 ac_ext=cpp
14514 ac_cpp='$CXXCPP $CPPFLAGS'
14515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14518
14519 ac_ext=cpp
14520 ac_cpp='$CXXCPP $CPPFLAGS'
14521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14524 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14525 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14526 if test -z "$CXXCPP"; then
14527   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530       # Double quotes because CXXCPP needs to be expanded
14531     for CXXCPP in "$CXX -E" "/lib/cpp"
14532     do
14533       ac_preproc_ok=false
14534 for ac_cxx_preproc_warn_flag in '' yes
14535 do
14536   # Use a header file that comes with gcc, so configuring glibc
14537   # with a fresh cross-compiler works.
14538   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14539   # <limits.h> exists even on freestanding compilers.
14540   # On the NeXT, cc -E runs the code through the compiler's parser,
14541   # not just through cpp. "Syntax error" is here to catch this case.
14542   cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548 #ifdef __STDC__
14549 # include <limits.h>
14550 #else
14551 # include <assert.h>
14552 #endif
14553                      Syntax error
14554 _ACEOF
14555 if { (ac_try="$ac_cpp conftest.$ac_ext"
14556 case "(($ac_try" in
14557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558   *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } >/dev/null; then
14568   if test -s conftest.err; then
14569     ac_cpp_err=$ac_cxx_preproc_warn_flag
14570     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14571   else
14572     ac_cpp_err=
14573   fi
14574 else
14575   ac_cpp_err=yes
14576 fi
14577 if test -z "$ac_cpp_err"; then
14578   :
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583   # Broken: fails on valid input.
14584 continue
14585 fi
14586
14587 rm -f conftest.err conftest.$ac_ext
14588
14589   # OK, works on sane cases.  Now check whether nonexistent headers
14590   # can be detected and how.
14591   cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h.  */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h.  */
14597 #include <ac_nonexistent.h>
14598 _ACEOF
14599 if { (ac_try="$ac_cpp conftest.$ac_ext"
14600 case "(($ac_try" in
14601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602   *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } >/dev/null; then
14612   if test -s conftest.err; then
14613     ac_cpp_err=$ac_cxx_preproc_warn_flag
14614     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14615   else
14616     ac_cpp_err=
14617   fi
14618 else
14619   ac_cpp_err=yes
14620 fi
14621 if test -z "$ac_cpp_err"; then
14622   # Broken: success on invalid input.
14623 continue
14624 else
14625   echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628   # Passes both tests.
14629 ac_preproc_ok=:
14630 break
14631 fi
14632
14633 rm -f conftest.err conftest.$ac_ext
14634
14635 done
14636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14637 rm -f conftest.err conftest.$ac_ext
14638 if $ac_preproc_ok; then
14639   break
14640 fi
14641
14642     done
14643     ac_cv_prog_CXXCPP=$CXXCPP
14644
14645 fi
14646   CXXCPP=$ac_cv_prog_CXXCPP
14647 else
14648   ac_cv_prog_CXXCPP=$CXXCPP
14649 fi
14650 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14651 echo "${ECHO_T}$CXXCPP" >&6; }
14652 ac_preproc_ok=false
14653 for ac_cxx_preproc_warn_flag in '' yes
14654 do
14655   # Use a header file that comes with gcc, so configuring glibc
14656   # with a fresh cross-compiler works.
14657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658   # <limits.h> exists even on freestanding compilers.
14659   # On the NeXT, cc -E runs the code through the compiler's parser,
14660   # not just through cpp. "Syntax error" is here to catch this case.
14661   cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 #ifdef __STDC__
14668 # include <limits.h>
14669 #else
14670 # include <assert.h>
14671 #endif
14672                      Syntax error
14673 _ACEOF
14674 if { (ac_try="$ac_cpp conftest.$ac_ext"
14675 case "(($ac_try" in
14676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677   *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14681   ac_status=$?
14682   grep -v '^ *+' conftest.er1 >conftest.err
14683   rm -f conftest.er1
14684   cat conftest.err >&5
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } >/dev/null; then
14687   if test -s conftest.err; then
14688     ac_cpp_err=$ac_cxx_preproc_warn_flag
14689     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14690   else
14691     ac_cpp_err=
14692   fi
14693 else
14694   ac_cpp_err=yes
14695 fi
14696 if test -z "$ac_cpp_err"; then
14697   :
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702   # Broken: fails on valid input.
14703 continue
14704 fi
14705
14706 rm -f conftest.err conftest.$ac_ext
14707
14708   # OK, works on sane cases.  Now check whether nonexistent headers
14709   # can be detected and how.
14710   cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716 #include <ac_nonexistent.h>
14717 _ACEOF
14718 if { (ac_try="$ac_cpp conftest.$ac_ext"
14719 case "(($ac_try" in
14720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721   *) ac_try_echo=$ac_try;;
14722 esac
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14725   ac_status=$?
14726   grep -v '^ *+' conftest.er1 >conftest.err
14727   rm -f conftest.er1
14728   cat conftest.err >&5
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); } >/dev/null; then
14731   if test -s conftest.err; then
14732     ac_cpp_err=$ac_cxx_preproc_warn_flag
14733     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14734   else
14735     ac_cpp_err=
14736   fi
14737 else
14738   ac_cpp_err=yes
14739 fi
14740 if test -z "$ac_cpp_err"; then
14741   # Broken: success on invalid input.
14742 continue
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747   # Passes both tests.
14748 ac_preproc_ok=:
14749 break
14750 fi
14751
14752 rm -f conftest.err conftest.$ac_ext
14753
14754 done
14755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14756 rm -f conftest.err conftest.$ac_ext
14757 if $ac_preproc_ok; then
14758   :
14759 else
14760   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14761 See \`config.log' for more details." >&5
14762 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14763 See \`config.log' for more details." >&2;}
14764    { (exit 1); exit 1; }; }
14765 fi
14766
14767 ac_ext=cpp
14768 ac_cpp='$CXXCPP $CPPFLAGS'
14769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14772
14773
14774
14775 for ac_header in cxxabi.h
14776 do
14777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 fi
14784 ac_res=`eval echo '${'$as_ac_Header'}'`
14785                { echo "$as_me:$LINENO: result: $ac_res" >&5
14786 echo "${ECHO_T}$ac_res" >&6; }
14787 else
14788   # Is the header compilable?
14789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 $ac_includes_default
14798 #include <$ac_header>
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_compile") 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } &&
14814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14815   { (case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_try") 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_try") 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   ac_header_compiler=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839         ac_header_compiler=no
14840 fi
14841
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14844 echo "${ECHO_T}$ac_header_compiler" >&6; }
14845
14846 # Is the header present?
14847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14849 cat >conftest.$ac_ext <<_ACEOF
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855 #include <$ac_header>
14856 _ACEOF
14857 if { (ac_try="$ac_cpp conftest.$ac_ext"
14858 case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14864   ac_status=$?
14865   grep -v '^ *+' conftest.er1 >conftest.err
14866   rm -f conftest.er1
14867   cat conftest.err >&5
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); } >/dev/null; then
14870   if test -s conftest.err; then
14871     ac_cpp_err=$ac_cxx_preproc_warn_flag
14872     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14873   else
14874     ac_cpp_err=
14875   fi
14876 else
14877   ac_cpp_err=yes
14878 fi
14879 if test -z "$ac_cpp_err"; then
14880   ac_header_preproc=yes
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885   ac_header_preproc=no
14886 fi
14887
14888 rm -f conftest.err conftest.$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14890 echo "${ECHO_T}$ac_header_preproc" >&6; }
14891
14892 # So?  What about this header?
14893 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14894   yes:no: )
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14899     ac_header_preproc=yes
14900     ;;
14901   no:yes:* )
14902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14914     ( cat <<\_ASBOX
14915 ## ------------------------------------ ##
14916 ## Report this to http://llvm.org/bugs/ ##
14917 ## ------------------------------------ ##
14918 _ASBOX
14919      ) | sed "s/^/$as_me: WARNING:     /" >&2
14920     ;;
14921 esac
14922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14925   echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927   eval "$as_ac_Header=\$ac_header_preproc"
14928 fi
14929 ac_res=`eval echo '${'$as_ac_Header'}'`
14930                { echo "$as_me:$LINENO: result: $ac_res" >&5
14931 echo "${ECHO_T}$ac_res" >&6; }
14932
14933 fi
14934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14935   cat >>confdefs.h <<_ACEOF
14936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14937 _ACEOF
14938
14939 fi
14940
14941 done
14942
14943 ac_ext=c
14944 ac_cpp='$CPP $CPPFLAGS'
14945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14948
14949
14950
14951
14952
14953
14954 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14955 do
14956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 fi
14963 ac_res=`eval echo '${'$as_ac_Header'}'`
14964                { echo "$as_me:$LINENO: result: $ac_res" >&5
14965 echo "${ECHO_T}$ac_res" >&6; }
14966 else
14967   # Is the header compilable?
14968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976 $ac_includes_default
14977 #include <$ac_header>
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (ac_try="$ac_compile"
14981 case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_compile") 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14994   { (case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_try") 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; } &&
15003          { ac_try='test -s conftest.$ac_objext'
15004   { (case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_try") 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; }; then
15013   ac_header_compiler=yes
15014 else
15015   echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15017
15018         ac_header_compiler=no
15019 fi
15020
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15023 echo "${ECHO_T}$ac_header_compiler" >&6; }
15024
15025 # Is the header present?
15026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034 #include <$ac_header>
15035 _ACEOF
15036 if { (ac_try="$ac_cpp conftest.$ac_ext"
15037 case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } >/dev/null; then
15049   if test -s conftest.err; then
15050     ac_cpp_err=$ac_c_preproc_warn_flag
15051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15052   else
15053     ac_cpp_err=
15054   fi
15055 else
15056   ac_cpp_err=yes
15057 fi
15058 if test -z "$ac_cpp_err"; then
15059   ac_header_preproc=yes
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064   ac_header_preproc=no
15065 fi
15066
15067 rm -f conftest.err conftest.$ac_ext
15068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069 echo "${ECHO_T}$ac_header_preproc" >&6; }
15070
15071 # So?  What about this header?
15072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15073   yes:no: )
15074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15078     ac_header_preproc=yes
15079     ;;
15080   no:yes:* )
15081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15093     ( cat <<\_ASBOX
15094 ## ------------------------------------ ##
15095 ## Report this to http://llvm.org/bugs/ ##
15096 ## ------------------------------------ ##
15097 _ASBOX
15098      ) | sed "s/^/$as_me: WARNING:     /" >&2
15099     ;;
15100 esac
15101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15104   echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106   eval "$as_ac_Header=\$ac_header_preproc"
15107 fi
15108 ac_res=`eval echo '${'$as_ac_Header'}'`
15109                { echo "$as_me:$LINENO: result: $ac_res" >&5
15110 echo "${ECHO_T}$ac_res" >&6; }
15111
15112 fi
15113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15114   cat >>confdefs.h <<_ACEOF
15115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15116 _ACEOF
15117
15118 fi
15119
15120 done
15121
15122
15123
15124
15125
15126
15127
15128 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15129 do
15130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 fi
15137 ac_res=`eval echo '${'$as_ac_Header'}'`
15138                { echo "$as_me:$LINENO: result: $ac_res" >&5
15139 echo "${ECHO_T}$ac_res" >&6; }
15140 else
15141   # Is the header compilable?
15142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 #include <$ac_header>
15152 _ACEOF
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_compile") 2>conftest.er1
15161   ac_status=$?
15162   grep -v '^ *+' conftest.er1 >conftest.err
15163   rm -f conftest.er1
15164   cat conftest.err >&5
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); } &&
15167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168   { (case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_try") 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; } &&
15177          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15187   ac_header_compiler=yes
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192         ac_header_compiler=no
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 echo "${ECHO_T}$ac_header_compiler" >&6; }
15198
15199 # Is the header present?
15200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208 #include <$ac_header>
15209 _ACEOF
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } >/dev/null; then
15223   if test -s conftest.err; then
15224     ac_cpp_err=$ac_c_preproc_warn_flag
15225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15226   else
15227     ac_cpp_err=
15228   fi
15229 else
15230   ac_cpp_err=yes
15231 fi
15232 if test -z "$ac_cpp_err"; then
15233   ac_header_preproc=yes
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238   ac_header_preproc=no
15239 fi
15240
15241 rm -f conftest.err conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15243 echo "${ECHO_T}$ac_header_preproc" >&6; }
15244
15245 # So?  What about this header?
15246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15247   yes:no: )
15248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15252     ac_header_preproc=yes
15253     ;;
15254   no:yes:* )
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15267     ( cat <<\_ASBOX
15268 ## ------------------------------------ ##
15269 ## Report this to http://llvm.org/bugs/ ##
15270 ## ------------------------------------ ##
15271 _ASBOX
15272      ) | sed "s/^/$as_me: WARNING:     /" >&2
15273     ;;
15274 esac
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280   eval "$as_ac_Header=\$ac_header_preproc"
15281 fi
15282 ac_res=`eval echo '${'$as_ac_Header'}'`
15283                { echo "$as_me:$LINENO: result: $ac_res" >&5
15284 echo "${ECHO_T}$ac_res" >&6; }
15285
15286 fi
15287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15288   cat >>confdefs.h <<_ACEOF
15289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15290 _ACEOF
15291
15292 fi
15293
15294 done
15295
15296
15297 for ac_header in utime.h
15298 do
15299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 fi
15306 ac_res=`eval echo '${'$as_ac_Header'}'`
15307                { echo "$as_me:$LINENO: result: $ac_res" >&5
15308 echo "${ECHO_T}$ac_res" >&6; }
15309 else
15310   # Is the header compilable?
15311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15313 cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319 $ac_includes_default
15320 #include <$ac_header>
15321 _ACEOF
15322 rm -f conftest.$ac_objext
15323 if { (ac_try="$ac_compile"
15324 case "(($ac_try" in
15325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326   *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329   (eval "$ac_compile") 2>conftest.er1
15330   ac_status=$?
15331   grep -v '^ *+' conftest.er1 >conftest.err
15332   rm -f conftest.er1
15333   cat conftest.err >&5
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15337   { (case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_try") 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); }; } &&
15346          { ac_try='test -s conftest.$ac_objext'
15347   { (case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_try") 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; }; then
15356   ac_header_compiler=yes
15357 else
15358   echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15360
15361         ac_header_compiler=no
15362 fi
15363
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15366 echo "${ECHO_T}$ac_header_compiler" >&6; }
15367
15368 # Is the header present?
15369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 #include <$ac_header>
15378 _ACEOF
15379 if { (ac_try="$ac_cpp conftest.$ac_ext"
15380 case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15386   ac_status=$?
15387   grep -v '^ *+' conftest.er1 >conftest.err
15388   rm -f conftest.er1
15389   cat conftest.err >&5
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } >/dev/null; then
15392   if test -s conftest.err; then
15393     ac_cpp_err=$ac_c_preproc_warn_flag
15394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15395   else
15396     ac_cpp_err=
15397   fi
15398 else
15399   ac_cpp_err=yes
15400 fi
15401 if test -z "$ac_cpp_err"; then
15402   ac_header_preproc=yes
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407   ac_header_preproc=no
15408 fi
15409
15410 rm -f conftest.err conftest.$ac_ext
15411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15412 echo "${ECHO_T}$ac_header_preproc" >&6; }
15413
15414 # So?  What about this header?
15415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15416   yes:no: )
15417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15421     ac_header_preproc=yes
15422     ;;
15423   no:yes:* )
15424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15436     ( cat <<\_ASBOX
15437 ## ------------------------------------ ##
15438 ## Report this to http://llvm.org/bugs/ ##
15439 ## ------------------------------------ ##
15440 _ASBOX
15441      ) | sed "s/^/$as_me: WARNING:     /" >&2
15442     ;;
15443 esac
15444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449   eval "$as_ac_Header=\$ac_header_preproc"
15450 fi
15451 ac_res=`eval echo '${'$as_ac_Header'}'`
15452                { echo "$as_me:$LINENO: result: $ac_res" >&5
15453 echo "${ECHO_T}$ac_res" >&6; }
15454
15455 fi
15456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457   cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15459 _ACEOF
15460
15461 fi
15462
15463 done
15464
15465
15466
15467
15468
15469
15470 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15471 do
15472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15477   echo $ECHO_N "(cached) $ECHO_C" >&6
15478 fi
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480                { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15482 else
15483   # Is the header compilable?
15484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 $ac_includes_default
15493 #include <$ac_header>
15494 _ACEOF
15495 rm -f conftest.$ac_objext
15496 if { (ac_try="$ac_compile"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_compile") 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } &&
15509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15510   { (case "(($ac_try" in
15511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512   *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515   (eval "$ac_try") 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; } &&
15519          { ac_try='test -s conftest.$ac_objext'
15520   { (case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_try") 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; }; then
15529   ac_header_compiler=yes
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534         ac_header_compiler=no
15535 fi
15536
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15539 echo "${ECHO_T}$ac_header_compiler" >&6; }
15540
15541 # Is the header present?
15542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15544 cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 #include <$ac_header>
15551 _ACEOF
15552 if { (ac_try="$ac_cpp conftest.$ac_ext"
15553 case "(($ac_try" in
15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555   *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } >/dev/null; then
15565   if test -s conftest.err; then
15566     ac_cpp_err=$ac_c_preproc_warn_flag
15567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15568   else
15569     ac_cpp_err=
15570   fi
15571 else
15572   ac_cpp_err=yes
15573 fi
15574 if test -z "$ac_cpp_err"; then
15575   ac_header_preproc=yes
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580   ac_header_preproc=no
15581 fi
15582
15583 rm -f conftest.err conftest.$ac_ext
15584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15585 echo "${ECHO_T}$ac_header_preproc" >&6; }
15586
15587 # So?  What about this header?
15588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15589   yes:no: )
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15594     ac_header_preproc=yes
15595     ;;
15596   no:yes:* )
15597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15609     ( cat <<\_ASBOX
15610 ## ------------------------------------ ##
15611 ## Report this to http://llvm.org/bugs/ ##
15612 ## ------------------------------------ ##
15613 _ASBOX
15614      ) | sed "s/^/$as_me: WARNING:     /" >&2
15615     ;;
15616 esac
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622   eval "$as_ac_Header=\$ac_header_preproc"
15623 fi
15624 ac_res=`eval echo '${'$as_ac_Header'}'`
15625                { echo "$as_me:$LINENO: result: $ac_res" >&5
15626 echo "${ECHO_T}$ac_res" >&6; }
15627
15628 fi
15629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15630   cat >>confdefs.h <<_ACEOF
15631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15632 _ACEOF
15633
15634 fi
15635
15636 done
15637
15638
15639
15640
15641 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15642 do
15643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648   echo $ECHO_N "(cached) $ECHO_C" >&6
15649 fi
15650 ac_res=`eval echo '${'$as_ac_Header'}'`
15651                { echo "$as_me:$LINENO: result: $ac_res" >&5
15652 echo "${ECHO_T}$ac_res" >&6; }
15653 else
15654   # Is the header compilable?
15655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h.  */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h.  */
15663 $ac_includes_default
15664 #include <$ac_header>
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_compile") 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; } &&
15690          { ac_try='test -s conftest.$ac_objext'
15691   { (case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_try") 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   ac_header_compiler=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_header_compiler=no
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710 echo "${ECHO_T}$ac_header_compiler" >&6; }
15711
15712 # Is the header present?
15713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721 #include <$ac_header>
15722 _ACEOF
15723 if { (ac_try="$ac_cpp conftest.$ac_ext"
15724 case "(($ac_try" in
15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726   *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } >/dev/null; then
15736   if test -s conftest.err; then
15737     ac_cpp_err=$ac_c_preproc_warn_flag
15738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15739   else
15740     ac_cpp_err=
15741   fi
15742 else
15743   ac_cpp_err=yes
15744 fi
15745 if test -z "$ac_cpp_err"; then
15746   ac_header_preproc=yes
15747 else
15748   echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751   ac_header_preproc=no
15752 fi
15753
15754 rm -f conftest.err conftest.$ac_ext
15755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756 echo "${ECHO_T}$ac_header_preproc" >&6; }
15757
15758 # So?  What about this header?
15759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15760   yes:no: )
15761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15765     ac_header_preproc=yes
15766     ;;
15767   no:yes:* )
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15780     ( cat <<\_ASBOX
15781 ## ------------------------------------ ##
15782 ## Report this to http://llvm.org/bugs/ ##
15783 ## ------------------------------------ ##
15784 _ASBOX
15785      ) | sed "s/^/$as_me: WARNING:     /" >&2
15786     ;;
15787 esac
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791   echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793   eval "$as_ac_Header=\$ac_header_preproc"
15794 fi
15795 ac_res=`eval echo '${'$as_ac_Header'}'`
15796                { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15798
15799 fi
15800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15801   cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15803 _ACEOF
15804
15805 fi
15806
15807 done
15808
15809
15810 for ac_header in valgrind/valgrind.h
15811 do
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817   echo $ECHO_N "(cached) $ECHO_C" >&6
15818 fi
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820                { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15822 else
15823   # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h.  */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h.  */
15832 $ac_includes_default
15833 #include <$ac_header>
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839   *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842   (eval "$ac_compile") 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850   { (case "(($ac_try" in
15851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852   *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855   (eval "$ac_try") 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_try") 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869   ac_header_compiler=yes
15870 else
15871   echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874         ac_header_compiler=no
15875 fi
15876
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6; }
15880
15881 # Is the header present?
15882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890 #include <$ac_header>
15891 _ACEOF
15892 if { (ac_try="$ac_cpp conftest.$ac_ext"
15893 case "(($ac_try" in
15894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895   *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } >/dev/null; then
15905   if test -s conftest.err; then
15906     ac_cpp_err=$ac_c_preproc_warn_flag
15907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15908   else
15909     ac_cpp_err=
15910   fi
15911 else
15912   ac_cpp_err=yes
15913 fi
15914 if test -z "$ac_cpp_err"; then
15915   ac_header_preproc=yes
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920   ac_header_preproc=no
15921 fi
15922
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15926
15927 # So?  What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929   yes:no: )
15930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934     ac_header_preproc=yes
15935     ;;
15936   no:yes:* )
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949     ( cat <<\_ASBOX
15950 ## ------------------------------------ ##
15951 ## Report this to http://llvm.org/bugs/ ##
15952 ## ------------------------------------ ##
15953 _ASBOX
15954      ) | sed "s/^/$as_me: WARNING:     /" >&2
15955     ;;
15956 esac
15957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960   echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962   eval "$as_ac_Header=\$ac_header_preproc"
15963 fi
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965                { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15967
15968 fi
15969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970   cat >>confdefs.h <<_ACEOF
15971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15972 _ACEOF
15973
15974 fi
15975
15976 done
15977
15978
15979 for ac_header in fenv.h
15980 do
15981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 fi
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989                { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991 else
15992   # Is the header compilable?
15993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 $ac_includes_default
16002 #include <$ac_header>
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (ac_try="$ac_compile"
16006 case "(($ac_try" in
16007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008   *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011   (eval "$ac_compile") 2>conftest.er1
16012   ac_status=$?
16013   grep -v '^ *+' conftest.er1 >conftest.err
16014   rm -f conftest.er1
16015   cat conftest.err >&5
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); } &&
16018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019   { (case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_try") 2>&5
16025   ac_status=$?
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); }; } &&
16028          { ac_try='test -s conftest.$ac_objext'
16029   { (case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_try") 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   ac_header_compiler=yes
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043         ac_header_compiler=no
16044 fi
16045
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16048 echo "${ECHO_T}$ac_header_compiler" >&6; }
16049
16050 # Is the header present?
16051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 #include <$ac_header>
16060 _ACEOF
16061 if { (ac_try="$ac_cpp conftest.$ac_ext"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } >/dev/null; then
16074   if test -s conftest.err; then
16075     ac_cpp_err=$ac_c_preproc_warn_flag
16076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16077   else
16078     ac_cpp_err=
16079   fi
16080 else
16081   ac_cpp_err=yes
16082 fi
16083 if test -z "$ac_cpp_err"; then
16084   ac_header_preproc=yes
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089   ac_header_preproc=no
16090 fi
16091
16092 rm -f conftest.err conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094 echo "${ECHO_T}$ac_header_preproc" >&6; }
16095
16096 # So?  What about this header?
16097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16098   yes:no: )
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16103     ac_header_preproc=yes
16104     ;;
16105   no:yes:* )
16106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16118     ( cat <<\_ASBOX
16119 ## ------------------------------------ ##
16120 ## Report this to http://llvm.org/bugs/ ##
16121 ## ------------------------------------ ##
16122 _ASBOX
16123      ) | sed "s/^/$as_me: WARNING:     /" >&2
16124     ;;
16125 esac
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129   echo $ECHO_N "(cached) $ECHO_C" >&6
16130 else
16131   eval "$as_ac_Header=\$ac_header_preproc"
16132 fi
16133 ac_res=`eval echo '${'$as_ac_Header'}'`
16134                { echo "$as_me:$LINENO: result: $ac_res" >&5
16135 echo "${ECHO_T}$ac_res" >&6; }
16136
16137 fi
16138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16139   cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16141 _ACEOF
16142
16143 fi
16144
16145 done
16146
16147 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16148 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16149 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16150   echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152   cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158 #include <fenv.h>
16159
16160 int
16161 main ()
16162 {
16163 #ifndef FE_ALL_EXCEPT
16164   char *p = (char *) FE_ALL_EXCEPT;
16165   return !p;
16166 #endif
16167
16168   ;
16169   return 0;
16170 }
16171 _ACEOF
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_compile") 2>conftest.er1
16180   ac_status=$?
16181   grep -v '^ *+' conftest.er1 >conftest.err
16182   rm -f conftest.er1
16183   cat conftest.err >&5
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); } &&
16186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187   { (case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_try") 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; } &&
16196          { ac_try='test -s conftest.$ac_objext'
16197   { (case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_try") 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; }; then
16206   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16207 else
16208   echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211         ac_cv_have_decl_FE_ALL_EXCEPT=no
16212 fi
16213
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16217 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16218 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16219
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_DECL_FE_ALL_EXCEPT 1
16222 _ACEOF
16223
16224
16225 else
16226   cat >>confdefs.h <<_ACEOF
16227 #define HAVE_DECL_FE_ALL_EXCEPT 0
16228 _ACEOF
16229
16230
16231 fi
16232 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16233 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16234 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 #include <fenv.h>
16244
16245 int
16246 main ()
16247 {
16248 #ifndef FE_INEXACT
16249   char *p = (char *) FE_INEXACT;
16250   return !p;
16251 #endif
16252
16253   ;
16254   return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext
16258 if { (ac_try="$ac_compile"
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_compile") 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); } &&
16271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16272   { (case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_try") 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; } &&
16281          { ac_try='test -s conftest.$ac_objext'
16282   { (case "(($ac_try" in
16283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284   *) ac_try_echo=$ac_try;;
16285 esac
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287   (eval "$ac_try") 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291   ac_cv_have_decl_FE_INEXACT=yes
16292 else
16293   echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296         ac_cv_have_decl_FE_INEXACT=no
16297 fi
16298
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16302 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16303 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16304
16305 cat >>confdefs.h <<_ACEOF
16306 #define HAVE_DECL_FE_INEXACT 1
16307 _ACEOF
16308
16309
16310 else
16311   cat >>confdefs.h <<_ACEOF
16312 #define HAVE_DECL_FE_INEXACT 0
16313 _ACEOF
16314
16315
16316 fi
16317
16318
16319 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16320
16321 for ac_header in pthread.h
16322 do
16323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
16334   # Is the header compilable?
16335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343 $ac_includes_default
16344 #include <$ac_header>
16345 _ACEOF
16346 rm -f conftest.$ac_objext
16347 if { (ac_try="$ac_compile"
16348 case "(($ac_try" in
16349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350   *) ac_try_echo=$ac_try;;
16351 esac
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353   (eval "$ac_compile") 2>conftest.er1
16354   ac_status=$?
16355   grep -v '^ *+' conftest.er1 >conftest.err
16356   rm -f conftest.er1
16357   cat conftest.err >&5
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); } &&
16360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16361   { (case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366   (eval "$ac_try") 2>&5
16367   ac_status=$?
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); }; } &&
16370          { ac_try='test -s conftest.$ac_objext'
16371   { (case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376   (eval "$ac_try") 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; }; then
16380   ac_header_compiler=yes
16381 else
16382   echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385         ac_header_compiler=no
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16390 echo "${ECHO_T}$ac_header_compiler" >&6; }
16391
16392 # Is the header present?
16393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 #include <$ac_header>
16402 _ACEOF
16403 if { (ac_try="$ac_cpp conftest.$ac_ext"
16404 case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16410   ac_status=$?
16411   grep -v '^ *+' conftest.er1 >conftest.err
16412   rm -f conftest.er1
16413   cat conftest.err >&5
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } >/dev/null; then
16416   if test -s conftest.err; then
16417     ac_cpp_err=$ac_c_preproc_warn_flag
16418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16419   else
16420     ac_cpp_err=
16421   fi
16422 else
16423   ac_cpp_err=yes
16424 fi
16425 if test -z "$ac_cpp_err"; then
16426   ac_header_preproc=yes
16427 else
16428   echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16430
16431   ac_header_preproc=no
16432 fi
16433
16434 rm -f conftest.err conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16436 echo "${ECHO_T}$ac_header_preproc" >&6; }
16437
16438 # So?  What about this header?
16439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16440   yes:no: )
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16445     ac_header_preproc=yes
16446     ;;
16447   no:yes:* )
16448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16460     ( cat <<\_ASBOX
16461 ## ------------------------------------ ##
16462 ## Report this to http://llvm.org/bugs/ ##
16463 ## ------------------------------------ ##
16464 _ASBOX
16465      ) | sed "s/^/$as_me: WARNING:     /" >&2
16466     ;;
16467 esac
16468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   eval "$as_ac_Header=\$ac_header_preproc"
16474 fi
16475 ac_res=`eval echo '${'$as_ac_Header'}'`
16476                { echo "$as_me:$LINENO: result: $ac_res" >&5
16477 echo "${ECHO_T}$ac_res" >&6; }
16478
16479 fi
16480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481   cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16483 _ACEOF
16484  HAVE_PTHREAD=1
16485
16486 else
16487   HAVE_PTHREAD=0
16488
16489 fi
16490
16491 done
16492
16493 else
16494   HAVE_PTHREAD=0
16495
16496 fi
16497 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16498
16499 for ac_header in zlib.h
16500 do
16501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 fi
16508 ac_res=`eval echo '${'$as_ac_Header'}'`
16509                { echo "$as_me:$LINENO: result: $ac_res" >&5
16510 echo "${ECHO_T}$ac_res" >&6; }
16511 else
16512   # Is the header compilable?
16513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 $ac_includes_default
16522 #include <$ac_header>
16523 _ACEOF
16524 rm -f conftest.$ac_objext
16525 if { (ac_try="$ac_compile"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_compile") 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } &&
16538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16539   { (case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_try") 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); }; } &&
16548          { ac_try='test -s conftest.$ac_objext'
16549   { (case "(($ac_try" in
16550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551   *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554   (eval "$ac_try") 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; }; then
16558   ac_header_compiler=yes
16559 else
16560   echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16562
16563         ac_header_compiler=no
16564 fi
16565
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16568 echo "${ECHO_T}$ac_header_compiler" >&6; }
16569
16570 # Is the header present?
16571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16573 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h.  */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h.  */
16579 #include <$ac_header>
16580 _ACEOF
16581 if { (ac_try="$ac_cpp conftest.$ac_ext"
16582 case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } >/dev/null; then
16594   if test -s conftest.err; then
16595     ac_cpp_err=$ac_c_preproc_warn_flag
16596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16597   else
16598     ac_cpp_err=
16599   fi
16600 else
16601   ac_cpp_err=yes
16602 fi
16603 if test -z "$ac_cpp_err"; then
16604   ac_header_preproc=yes
16605 else
16606   echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609   ac_header_preproc=no
16610 fi
16611
16612 rm -f conftest.err conftest.$ac_ext
16613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6; }
16615
16616 # So?  What about this header?
16617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16618   yes:no: )
16619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16623     ac_header_preproc=yes
16624     ;;
16625   no:yes:* )
16626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16638     ( cat <<\_ASBOX
16639 ## ------------------------------------ ##
16640 ## Report this to http://llvm.org/bugs/ ##
16641 ## ------------------------------------ ##
16642 _ASBOX
16643      ) | sed "s/^/$as_me: WARNING:     /" >&2
16644     ;;
16645 esac
16646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   eval "$as_ac_Header=\$ac_header_preproc"
16652 fi
16653 ac_res=`eval echo '${'$as_ac_Header'}'`
16654                { echo "$as_me:$LINENO: result: $ac_res" >&5
16655 echo "${ECHO_T}$ac_res" >&6; }
16656
16657 fi
16658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659   cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16661 _ACEOF
16662  HAVE_LIBZ=1
16663
16664 else
16665   HAVE_LIBZ=0
16666
16667 fi
16668
16669 done
16670
16671 else
16672   HAVE_LIBZ=0
16673
16674 fi
16675
16676 if test "$llvm_cv_enable_libffi" = "yes" ; then
16677
16678
16679 for ac_header in ffi.h ffi/ffi.h
16680 do
16681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 fi
16688 ac_res=`eval echo '${'$as_ac_Header'}'`
16689                { echo "$as_me:$LINENO: result: $ac_res" >&5
16690 echo "${ECHO_T}$ac_res" >&6; }
16691 else
16692   # Is the header compilable?
16693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16695 cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h.  */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h.  */
16701 $ac_includes_default
16702 #include <$ac_header>
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (ac_try="$ac_compile"
16706 case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_compile") 2>conftest.er1
16712   ac_status=$?
16713   grep -v '^ *+' conftest.er1 >conftest.err
16714   rm -f conftest.er1
16715   cat conftest.err >&5
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } &&
16718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16719   { (case "(($ac_try" in
16720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721   *) ac_try_echo=$ac_try;;
16722 esac
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724   (eval "$ac_try") 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }; } &&
16728          { ac_try='test -s conftest.$ac_objext'
16729   { (case "(($ac_try" in
16730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731   *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734   (eval "$ac_try") 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; }; then
16738   ac_header_compiler=yes
16739 else
16740   echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743         ac_header_compiler=no
16744 fi
16745
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16748 echo "${ECHO_T}$ac_header_compiler" >&6; }
16749
16750 # Is the header present?
16751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16753 cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 #include <$ac_header>
16760 _ACEOF
16761 if { (ac_try="$ac_cpp conftest.$ac_ext"
16762 case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16768   ac_status=$?
16769   grep -v '^ *+' conftest.er1 >conftest.err
16770   rm -f conftest.er1
16771   cat conftest.err >&5
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); } >/dev/null; then
16774   if test -s conftest.err; then
16775     ac_cpp_err=$ac_c_preproc_warn_flag
16776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16777   else
16778     ac_cpp_err=
16779   fi
16780 else
16781   ac_cpp_err=yes
16782 fi
16783 if test -z "$ac_cpp_err"; then
16784   ac_header_preproc=yes
16785 else
16786   echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789   ac_header_preproc=no
16790 fi
16791
16792 rm -f conftest.err conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 echo "${ECHO_T}$ac_header_preproc" >&6; }
16795
16796 # So?  What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16798   yes:no: )
16799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16803     ac_header_preproc=yes
16804     ;;
16805   no:yes:* )
16806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16818     ( cat <<\_ASBOX
16819 ## ------------------------------------ ##
16820 ## Report this to http://llvm.org/bugs/ ##
16821 ## ------------------------------------ ##
16822 _ASBOX
16823      ) | sed "s/^/$as_me: WARNING:     /" >&2
16824     ;;
16825 esac
16826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   eval "$as_ac_Header=\$ac_header_preproc"
16832 fi
16833 ac_res=`eval echo '${'$as_ac_Header'}'`
16834                { echo "$as_me:$LINENO: result: $ac_res" >&5
16835 echo "${ECHO_T}$ac_res" >&6; }
16836
16837 fi
16838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16839   cat >>confdefs.h <<_ACEOF
16840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16841 _ACEOF
16842
16843 fi
16844
16845 done
16846
16847 fi
16848
16849
16850 for ac_header in CrashReporterClient.h
16851 do
16852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 fi
16859 ac_res=`eval echo '${'$as_ac_Header'}'`
16860                { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16862 else
16863   # Is the header compilable?
16864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872 $ac_includes_default
16873 #include <$ac_header>
16874 _ACEOF
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_compile") 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890   { (case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_try") 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; } &&
16899          { ac_try='test -s conftest.$ac_objext'
16900   { (case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_try") 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; }; then
16909   ac_header_compiler=yes
16910 else
16911   echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914         ac_header_compiler=no
16915 fi
16916
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6; }
16920
16921 # Is the header present?
16922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930 #include <$ac_header>
16931 _ACEOF
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } >/dev/null; then
16945   if test -s conftest.err; then
16946     ac_cpp_err=$ac_c_preproc_warn_flag
16947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16948   else
16949     ac_cpp_err=
16950   fi
16951 else
16952   ac_cpp_err=yes
16953 fi
16954 if test -z "$ac_cpp_err"; then
16955   ac_header_preproc=yes
16956 else
16957   echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16959
16960   ac_header_preproc=no
16961 fi
16962
16963 rm -f conftest.err conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16965 echo "${ECHO_T}$ac_header_preproc" >&6; }
16966
16967 # So?  What about this header?
16968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16969   yes:no: )
16970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16974     ac_header_preproc=yes
16975     ;;
16976   no:yes:* )
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16989     ( cat <<\_ASBOX
16990 ## ------------------------------------ ##
16991 ## Report this to http://llvm.org/bugs/ ##
16992 ## ------------------------------------ ##
16993 _ASBOX
16994      ) | sed "s/^/$as_me: WARNING:     /" >&2
16995     ;;
16996 esac
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   eval "$as_ac_Header=\$ac_header_preproc"
17003 fi
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005                { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17007
17008 fi
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010   cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 _ACEOF
17013
17014 fi
17015
17016 done
17017
17018
17019 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17020 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17021 cat >conftest.$ac_ext <<_ACEOF
17022
17023   /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028
17029     extern const char *__crashreporter_info__;
17030     int main() {
17031       __crashreporter_info__ = "test";
17032       return 0;
17033     }
17034
17035
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041   *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044   (eval "$ac_link") 2>conftest.er1
17045   ac_status=$?
17046   grep -v '^ *+' conftest.er1 >conftest.err
17047   rm -f conftest.er1
17048   cat conftest.err >&5
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); } &&
17051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052   { (case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_try") 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; } &&
17061          { ac_try='test -s conftest$ac_exeext'
17062   { (case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_try") 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071
17072   { echo "$as_me:$LINENO: result: yes" >&5
17073 echo "${ECHO_T}yes" >&6; }
17074
17075 cat >>confdefs.h <<\_ACEOF
17076 #define HAVE_CRASHREPORTER_INFO 1
17077 _ACEOF
17078
17079
17080 else
17081   echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084
17085   { echo "$as_me:$LINENO: result: no" >&5
17086 echo "${ECHO_T}no" >&6; }
17087
17088 cat >>confdefs.h <<\_ACEOF
17089 #define HAVE_CRASHREPORTER_INFO 0
17090 _ACEOF
17091
17092
17093 fi
17094
17095 rm -f core conftest.err conftest.$ac_objext \
17096       conftest$ac_exeext conftest.$ac_ext
17097
17098
17099
17100   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17101 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17102 if test "${ac_cv_huge_val_sanity+set}" = set; then
17103   echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105
17106     ac_ext=cpp
17107 ac_cpp='$CXXCPP $CPPFLAGS'
17108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17111
17112     ac_save_CXXFLAGS=$CXXFLAGS
17113     CXXFLAGS="$CXXFLAGS -pedantic"
17114     if test "$cross_compiling" = yes; then
17115   ac_cv_huge_val_sanity=yes
17116 else
17117   cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123 #include <math.h>
17124 int
17125 main ()
17126 {
17127 double x = HUGE_VAL; return x != x;
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136   *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139   (eval "$ac_link") 2>&5
17140   ac_status=$?
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17143   { (case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_try") 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; }; then
17152   ac_cv_huge_val_sanity=yes
17153 else
17154   echo "$as_me: program exited with status $ac_status" >&5
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 ( exit $ac_status )
17159 ac_cv_huge_val_sanity=no
17160 fi
17161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17162 fi
17163
17164
17165     CXXFLAGS=$ac_save_CXXFLAGS
17166     ac_ext=c
17167 ac_cpp='$CPP $CPPFLAGS'
17168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17171
17172
17173 fi
17174 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17175 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17176   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17177
17178
17179 { echo "$as_me:$LINENO: checking for pid_t" >&5
17180 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17181 if test "${ac_cv_type_pid_t+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190 $ac_includes_default
17191 typedef pid_t ac__type_new_;
17192 int
17193 main ()
17194 {
17195 if ((ac__type_new_ *) 0)
17196   return 0;
17197 if (sizeof (ac__type_new_))
17198   return 0;
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_compile") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218   { (case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_try") 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; } &&
17227          { ac_try='test -s conftest.$ac_objext'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   ac_cv_type_pid_t=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         ac_cv_type_pid_t=no
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 fi
17247 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17249 if test $ac_cv_type_pid_t = yes; then
17250   :
17251 else
17252
17253 cat >>confdefs.h <<_ACEOF
17254 #define pid_t int
17255 _ACEOF
17256
17257 fi
17258
17259 { echo "$as_me:$LINENO: checking for size_t" >&5
17260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17261 if test "${ac_cv_type_size_t+set}" = set; then
17262   echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264   cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270 $ac_includes_default
17271 typedef size_t ac__type_new_;
17272 int
17273 main ()
17274 {
17275 if ((ac__type_new_ *) 0)
17276   return 0;
17277 if (sizeof (ac__type_new_))
17278   return 0;
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext
17284 if { (ac_try="$ac_compile"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_compile") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } &&
17297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17298   { (case "(($ac_try" in
17299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300   *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303   (eval "$ac_try") 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; } &&
17307          { ac_try='test -s conftest.$ac_objext'
17308   { (case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_try") 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317   ac_cv_type_size_t=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         ac_cv_type_size_t=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 fi
17327 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17328 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17329 if test $ac_cv_type_size_t = yes; then
17330   :
17331 else
17332
17333 cat >>confdefs.h <<_ACEOF
17334 #define size_t unsigned int
17335 _ACEOF
17336
17337 fi
17338
17339
17340 cat >>confdefs.h <<_ACEOF
17341 #define RETSIGTYPE void
17342 _ACEOF
17343
17344 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17345 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17346 if test "${ac_cv_struct_tm+set}" = set; then
17347   echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349   cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h.  */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h.  */
17355 #include <sys/types.h>
17356 #include <time.h>
17357
17358 int
17359 main ()
17360 {
17361 struct tm *tp; tp->tm_sec;
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext
17367 if { (ac_try="$ac_compile"
17368 case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_compile") 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } &&
17380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381   { (case "(($ac_try" in
17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383   *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386   (eval "$ac_try") 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest.$ac_objext'
17391   { (case "(($ac_try" in
17392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393   *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396   (eval "$ac_try") 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400   ac_cv_struct_tm=time.h
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405         ac_cv_struct_tm=sys/time.h
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409 fi
17410 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17411 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17412 if test $ac_cv_struct_tm = sys/time.h; then
17413
17414 cat >>confdefs.h <<\_ACEOF
17415 #define TM_IN_SYS_TIME 1
17416 _ACEOF
17417
17418 fi
17419
17420 { echo "$as_me:$LINENO: checking for int64_t" >&5
17421 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17422 if test "${ac_cv_type_int64_t+set}" = set; then
17423   echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425   cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431 $ac_includes_default
17432 typedef int64_t ac__type_new_;
17433 int
17434 main ()
17435 {
17436 if ((ac__type_new_ *) 0)
17437   return 0;
17438 if (sizeof (ac__type_new_))
17439   return 0;
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext
17445 if { (ac_try="$ac_compile"
17446 case "(($ac_try" in
17447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448   *) ac_try_echo=$ac_try;;
17449 esac
17450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451   (eval "$ac_compile") 2>conftest.er1
17452   ac_status=$?
17453   grep -v '^ *+' conftest.er1 >conftest.err
17454   rm -f conftest.er1
17455   cat conftest.err >&5
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } &&
17458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459   { (case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_try") 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; } &&
17468          { ac_try='test -s conftest.$ac_objext'
17469   { (case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_try") 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; }; then
17478   ac_cv_type_int64_t=yes
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483         ac_cv_type_int64_t=no
17484 fi
17485
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487 fi
17488 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17489 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17490 if test $ac_cv_type_int64_t = yes; then
17491
17492 cat >>confdefs.h <<_ACEOF
17493 #define HAVE_INT64_T 1
17494 _ACEOF
17495
17496
17497 else
17498   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17499 echo "$as_me: error: Type int64_t required but not found" >&2;}
17500    { (exit 1); exit 1; }; }
17501 fi
17502
17503 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17504 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17505 if test "${ac_cv_type_uint64_t+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 $ac_includes_default
17515 typedef uint64_t ac__type_new_;
17516 int
17517 main ()
17518 {
17519 if ((ac__type_new_ *) 0)
17520   return 0;
17521 if (sizeof (ac__type_new_))
17522   return 0;
17523   ;
17524   return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext
17528 if { (ac_try="$ac_compile"
17529 case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534   (eval "$ac_compile") 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542   { (case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_try") 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; } &&
17551          { ac_try='test -s conftest.$ac_objext'
17552   { (case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_try") 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; }; then
17561   ac_cv_type_uint64_t=yes
17562 else
17563   echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566         ac_cv_type_uint64_t=no
17567 fi
17568
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570 fi
17571 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17572 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17573 if test $ac_cv_type_uint64_t = yes; then
17574
17575 cat >>confdefs.h <<_ACEOF
17576 #define HAVE_UINT64_T 1
17577 _ACEOF
17578
17579
17580 else
17581   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17582 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17583 if test "${ac_cv_type_u_int64_t+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592 $ac_includes_default
17593 typedef u_int64_t ac__type_new_;
17594 int
17595 main ()
17596 {
17597 if ((ac__type_new_ *) 0)
17598   return 0;
17599 if (sizeof (ac__type_new_))
17600   return 0;
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_compile") 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } &&
17619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620   { (case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625   (eval "$ac_try") 2>&5
17626   ac_status=$?
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); }; } &&
17629          { ac_try='test -s conftest.$ac_objext'
17630   { (case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635   (eval "$ac_try") 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_type_u_int64_t=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644         ac_cv_type_u_int64_t=no
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 fi
17649 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17650 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17651 if test $ac_cv_type_u_int64_t = yes; then
17652
17653 cat >>confdefs.h <<_ACEOF
17654 #define HAVE_U_INT64_T 1
17655 _ACEOF
17656
17657
17658 else
17659   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17660 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17661    { (exit 1); exit 1; }; }
17662 fi
17663
17664 fi
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17676 do
17677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17691 #define $ac_func innocuous_$ac_func
17692
17693 /* System header to define __stub macros and hopefully few prototypes,
17694     which can conflict with char $ac_func (); below.
17695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696     <limits.h> exists even on freestanding compilers.  */
17697
17698 #ifdef __STDC__
17699 # include <limits.h>
17700 #else
17701 # include <assert.h>
17702 #endif
17703
17704 #undef $ac_func
17705
17706 /* Override any GCC internal prototype to avoid an error.
17707    Use char because int might match the return type of a GCC
17708    builtin and then its argument prototype would still apply.  */
17709 #ifdef __cplusplus
17710 extern "C"
17711 #endif
17712 char $ac_func ();
17713 /* The GNU C library defines this for functions which it implements
17714     to always fail with ENOSYS.  Some functions are actually named
17715     something starting with __ and the normal name is an alias.  */
17716 #if defined __stub_$ac_func || defined __stub___$ac_func
17717 choke me
17718 #endif
17719
17720 int
17721 main ()
17722 {
17723 return $ac_func ();
17724   ;
17725   return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (ac_try="$ac_link"
17730 case "(($ac_try" in
17731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732   *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735   (eval "$ac_link") 2>conftest.er1
17736   ac_status=$?
17737   grep -v '^ *+' conftest.er1 >conftest.err
17738   rm -f conftest.er1
17739   cat conftest.err >&5
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); } &&
17742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; } &&
17752          { ac_try='test -s conftest$ac_exeext'
17753   { (case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758   (eval "$ac_try") 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; }; then
17762   eval "$as_ac_var=yes"
17763 else
17764   echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767         eval "$as_ac_var=no"
17768 fi
17769
17770 rm -f core conftest.err conftest.$ac_objext \
17771       conftest$ac_exeext conftest.$ac_ext
17772 fi
17773 ac_res=`eval echo '${'$as_ac_var'}'`
17774                { echo "$as_me:$LINENO: result: $ac_res" >&5
17775 echo "${ECHO_T}$ac_res" >&6; }
17776 if test `eval echo '${'$as_ac_var'}'` = yes; then
17777   cat >>confdefs.h <<_ACEOF
17778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17779 _ACEOF
17780
17781 fi
17782 done
17783
17784
17785
17786
17787
17788 for ac_func in powf fmodf strtof round
17789 do
17790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17794   echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796   cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17804 #define $ac_func innocuous_$ac_func
17805
17806 /* System header to define __stub macros and hopefully few prototypes,
17807     which can conflict with char $ac_func (); below.
17808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17809     <limits.h> exists even on freestanding compilers.  */
17810
17811 #ifdef __STDC__
17812 # include <limits.h>
17813 #else
17814 # include <assert.h>
17815 #endif
17816
17817 #undef $ac_func
17818
17819 /* Override any GCC internal prototype to avoid an error.
17820    Use char because int might match the return type of a GCC
17821    builtin and then its argument prototype would still apply.  */
17822 #ifdef __cplusplus
17823 extern "C"
17824 #endif
17825 char $ac_func ();
17826 /* The GNU C library defines this for functions which it implements
17827     to always fail with ENOSYS.  Some functions are actually named
17828     something starting with __ and the normal name is an alias.  */
17829 #if defined __stub_$ac_func || defined __stub___$ac_func
17830 choke me
17831 #endif
17832
17833 int
17834 main ()
17835 {
17836 return $ac_func ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_link") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; } &&
17865          { ac_try='test -s conftest$ac_exeext'
17866   { (case "(($ac_try" in
17867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868   *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871   (eval "$ac_try") 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   eval "$as_ac_var=yes"
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880         eval "$as_ac_var=no"
17881 fi
17882
17883 rm -f core conftest.err conftest.$ac_objext \
17884       conftest$ac_exeext conftest.$ac_ext
17885 fi
17886 ac_res=`eval echo '${'$as_ac_var'}'`
17887                { echo "$as_me:$LINENO: result: $ac_res" >&5
17888 echo "${ECHO_T}$ac_res" >&6; }
17889 if test `eval echo '${'$as_ac_var'}'` = yes; then
17890   cat >>confdefs.h <<_ACEOF
17891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17892 _ACEOF
17893
17894 fi
17895 done
17896
17897
17898
17899
17900
17901
17902 for ac_func in log log2 log10 exp exp2
17903 do
17904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17918 #define $ac_func innocuous_$ac_func
17919
17920 /* System header to define __stub macros and hopefully few prototypes,
17921     which can conflict with char $ac_func (); below.
17922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923     <limits.h> exists even on freestanding compilers.  */
17924
17925 #ifdef __STDC__
17926 # include <limits.h>
17927 #else
17928 # include <assert.h>
17929 #endif
17930
17931 #undef $ac_func
17932
17933 /* Override any GCC internal prototype to avoid an error.
17934    Use char because int might match the return type of a GCC
17935    builtin and then its argument prototype would still apply.  */
17936 #ifdef __cplusplus
17937 extern "C"
17938 #endif
17939 char $ac_func ();
17940 /* The GNU C library defines this for functions which it implements
17941     to always fail with ENOSYS.  Some functions are actually named
17942     something starting with __ and the normal name is an alias.  */
17943 #if defined __stub_$ac_func || defined __stub___$ac_func
17944 choke me
17945 #endif
17946
17947 int
17948 main ()
17949 {
17950 return $ac_func ();
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_link") 2>conftest.er1
17963   ac_status=$?
17964   grep -v '^ *+' conftest.er1 >conftest.err
17965   rm -f conftest.er1
17966   cat conftest.err >&5
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); } &&
17969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970   { (case "(($ac_try" in
17971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972   *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975   (eval "$ac_try") 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; } &&
17979          { ac_try='test -s conftest$ac_exeext'
17980   { (case "(($ac_try" in
17981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982   *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985   (eval "$ac_try") 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); }; }; then
17989   eval "$as_ac_var=yes"
17990 else
17991   echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17993
17994         eval "$as_ac_var=no"
17995 fi
17996
17997 rm -f core conftest.err conftest.$ac_objext \
17998       conftest$ac_exeext conftest.$ac_ext
17999 fi
18000 ac_res=`eval echo '${'$as_ac_var'}'`
18001                { echo "$as_me:$LINENO: result: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18003 if test `eval echo '${'$as_ac_var'}'` = yes; then
18004   cat >>confdefs.h <<_ACEOF
18005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18006 _ACEOF
18007
18008 fi
18009 done
18010
18011
18012
18013
18014
18015
18016 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18017 do
18018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022   echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024   cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18032 #define $ac_func innocuous_$ac_func
18033
18034 /* System header to define __stub macros and hopefully few prototypes,
18035     which can conflict with char $ac_func (); below.
18036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037     <limits.h> exists even on freestanding compilers.  */
18038
18039 #ifdef __STDC__
18040 # include <limits.h>
18041 #else
18042 # include <assert.h>
18043 #endif
18044
18045 #undef $ac_func
18046
18047 /* Override any GCC internal prototype to avoid an error.
18048    Use char because int might match the return type of a GCC
18049    builtin and then its argument prototype would still apply.  */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char $ac_func ();
18054 /* The GNU C library defines this for functions which it implements
18055     to always fail with ENOSYS.  Some functions are actually named
18056     something starting with __ and the normal name is an alias.  */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18058 choke me
18059 #endif
18060
18061 int
18062 main ()
18063 {
18064 return $ac_func ();
18065   ;
18066   return 0;
18067 }
18068 _ACEOF
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_link") 2>conftest.er1
18077   ac_status=$?
18078   grep -v '^ *+' conftest.er1 >conftest.err
18079   rm -f conftest.er1
18080   cat conftest.err >&5
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } &&
18083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084   { (case "(($ac_try" in
18085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086   *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089   (eval "$ac_try") 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); }; } &&
18093          { ac_try='test -s conftest$ac_exeext'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; }; then
18103   eval "$as_ac_var=yes"
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108         eval "$as_ac_var=no"
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext \
18112       conftest$ac_exeext conftest.$ac_ext
18113 fi
18114 ac_res=`eval echo '${'$as_ac_var'}'`
18115                { echo "$as_me:$LINENO: result: $ac_res" >&5
18116 echo "${ECHO_T}$ac_res" >&6; }
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118   cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 _ACEOF
18121
18122 fi
18123 done
18124
18125
18126
18127
18128 for ac_func in isatty mkdtemp mkstemp
18129 do
18130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18134   echo $ECHO_N "(cached) $ECHO_C" >&6
18135 else
18136   cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18144 #define $ac_func innocuous_$ac_func
18145
18146 /* System header to define __stub macros and hopefully few prototypes,
18147     which can conflict with char $ac_func (); below.
18148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18149     <limits.h> exists even on freestanding compilers.  */
18150
18151 #ifdef __STDC__
18152 # include <limits.h>
18153 #else
18154 # include <assert.h>
18155 #endif
18156
18157 #undef $ac_func
18158
18159 /* Override any GCC internal prototype to avoid an error.
18160    Use char because int might match the return type of a GCC
18161    builtin and then its argument prototype would still apply.  */
18162 #ifdef __cplusplus
18163 extern "C"
18164 #endif
18165 char $ac_func ();
18166 /* The GNU C library defines this for functions which it implements
18167     to always fail with ENOSYS.  Some functions are actually named
18168     something starting with __ and the normal name is an alias.  */
18169 #if defined __stub_$ac_func || defined __stub___$ac_func
18170 choke me
18171 #endif
18172
18173 int
18174 main ()
18175 {
18176 return $ac_func ();
18177   ;
18178   return 0;
18179 }
18180 _ACEOF
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188   (eval "$ac_link") 2>conftest.er1
18189   ac_status=$?
18190   grep -v '^ *+' conftest.er1 >conftest.err
18191   rm -f conftest.er1
18192   cat conftest.err >&5
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } &&
18195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18196   { (case "(($ac_try" in
18197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198   *) ac_try_echo=$ac_try;;
18199 esac
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201   (eval "$ac_try") 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }; } &&
18205          { ac_try='test -s conftest$ac_exeext'
18206   { (case "(($ac_try" in
18207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208   *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211   (eval "$ac_try") 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); }; }; then
18215   eval "$as_ac_var=yes"
18216 else
18217   echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220         eval "$as_ac_var=no"
18221 fi
18222
18223 rm -f core conftest.err conftest.$ac_objext \
18224       conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 ac_res=`eval echo '${'$as_ac_var'}'`
18227                { echo "$as_me:$LINENO: result: $ac_res" >&5
18228 echo "${ECHO_T}$ac_res" >&6; }
18229 if test `eval echo '${'$as_ac_var'}'` = yes; then
18230   cat >>confdefs.h <<_ACEOF
18231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18232 _ACEOF
18233
18234 fi
18235 done
18236
18237
18238
18239
18240
18241
18242
18243 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18244 do
18245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h.  */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h.  */
18257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18259 #define $ac_func innocuous_$ac_func
18260
18261 /* System header to define __stub macros and hopefully few prototypes,
18262     which can conflict with char $ac_func (); below.
18263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264     <limits.h> exists even on freestanding compilers.  */
18265
18266 #ifdef __STDC__
18267 # include <limits.h>
18268 #else
18269 # include <assert.h>
18270 #endif
18271
18272 #undef $ac_func
18273
18274 /* Override any GCC internal prototype to avoid an error.
18275    Use char because int might match the return type of a GCC
18276    builtin and then its argument prototype would still apply.  */
18277 #ifdef __cplusplus
18278 extern "C"
18279 #endif
18280 char $ac_func ();
18281 /* The GNU C library defines this for functions which it implements
18282     to always fail with ENOSYS.  Some functions are actually named
18283     something starting with __ and the normal name is an alias.  */
18284 #if defined __stub_$ac_func || defined __stub___$ac_func
18285 choke me
18286 #endif
18287
18288 int
18289 main ()
18290 {
18291 return $ac_func ();
18292   ;
18293   return 0;
18294 }
18295 _ACEOF
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300   *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303   (eval "$ac_link") 2>conftest.er1
18304   ac_status=$?
18305   grep -v '^ *+' conftest.er1 >conftest.err
18306   rm -f conftest.er1
18307   cat conftest.err >&5
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); } &&
18310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18311   { (case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316   (eval "$ac_try") 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); }; } &&
18320          { ac_try='test -s conftest$ac_exeext'
18321   { (case "(($ac_try" in
18322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323   *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326   (eval "$ac_try") 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; }; then
18330   eval "$as_ac_var=yes"
18331 else
18332   echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335         eval "$as_ac_var=no"
18336 fi
18337
18338 rm -f core conftest.err conftest.$ac_objext \
18339       conftest$ac_exeext conftest.$ac_ext
18340 fi
18341 ac_res=`eval echo '${'$as_ac_var'}'`
18342                { echo "$as_me:$LINENO: result: $ac_res" >&5
18343 echo "${ECHO_T}$ac_res" >&6; }
18344 if test `eval echo '${'$as_ac_var'}'` = yes; then
18345   cat >>confdefs.h <<_ACEOF
18346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18347 _ACEOF
18348
18349 fi
18350 done
18351
18352
18353
18354
18355
18356 for ac_func in strerror strerror_r setenv arc4random
18357 do
18358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18362   echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364   cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18372 #define $ac_func innocuous_$ac_func
18373
18374 /* System header to define __stub macros and hopefully few prototypes,
18375     which can conflict with char $ac_func (); below.
18376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18377     <limits.h> exists even on freestanding compilers.  */
18378
18379 #ifdef __STDC__
18380 # include <limits.h>
18381 #else
18382 # include <assert.h>
18383 #endif
18384
18385 #undef $ac_func
18386
18387 /* Override any GCC internal prototype to avoid an error.
18388    Use char because int might match the return type of a GCC
18389    builtin and then its argument prototype would still apply.  */
18390 #ifdef __cplusplus
18391 extern "C"
18392 #endif
18393 char $ac_func ();
18394 /* The GNU C library defines this for functions which it implements
18395     to always fail with ENOSYS.  Some functions are actually named
18396     something starting with __ and the normal name is an alias.  */
18397 #if defined __stub_$ac_func || defined __stub___$ac_func
18398 choke me
18399 #endif
18400
18401 int
18402 main ()
18403 {
18404 return $ac_func ();
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (ac_try="$ac_link"
18411 case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416   (eval "$ac_link") 2>conftest.er1
18417   ac_status=$?
18418   grep -v '^ *+' conftest.er1 >conftest.err
18419   rm -f conftest.er1
18420   cat conftest.err >&5
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } &&
18423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18424   { (case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_try") 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest$ac_exeext'
18434   { (case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439   (eval "$ac_try") 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   eval "$as_ac_var=yes"
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448         eval "$as_ac_var=no"
18449 fi
18450
18451 rm -f core conftest.err conftest.$ac_objext \
18452       conftest$ac_exeext conftest.$ac_ext
18453 fi
18454 ac_res=`eval echo '${'$as_ac_var'}'`
18455                { echo "$as_me:$LINENO: result: $ac_res" >&5
18456 echo "${ECHO_T}$ac_res" >&6; }
18457 if test `eval echo '${'$as_ac_var'}'` = yes; then
18458   cat >>confdefs.h <<_ACEOF
18459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18460 _ACEOF
18461
18462 fi
18463 done
18464
18465
18466
18467
18468
18469 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18470 do
18471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477   cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h.  */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h.  */
18483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18485 #define $ac_func innocuous_$ac_func
18486
18487 /* System header to define __stub macros and hopefully few prototypes,
18488     which can conflict with char $ac_func (); below.
18489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18490     <limits.h> exists even on freestanding compilers.  */
18491
18492 #ifdef __STDC__
18493 # include <limits.h>
18494 #else
18495 # include <assert.h>
18496 #endif
18497
18498 #undef $ac_func
18499
18500 /* Override any GCC internal prototype to avoid an error.
18501    Use char because int might match the return type of a GCC
18502    builtin and then its argument prototype would still apply.  */
18503 #ifdef __cplusplus
18504 extern "C"
18505 #endif
18506 char $ac_func ();
18507 /* The GNU C library defines this for functions which it implements
18508     to always fail with ENOSYS.  Some functions are actually named
18509     something starting with __ and the normal name is an alias.  */
18510 #if defined __stub_$ac_func || defined __stub___$ac_func
18511 choke me
18512 #endif
18513
18514 int
18515 main ()
18516 {
18517 return $ac_func ();
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_link") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; } &&
18546          { ac_try='test -s conftest$ac_exeext'
18547   { (case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_try") 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   eval "$as_ac_var=yes"
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561         eval "$as_ac_var=no"
18562 fi
18563
18564 rm -f core conftest.err conftest.$ac_objext \
18565       conftest$ac_exeext conftest.$ac_ext
18566 fi
18567 ac_res=`eval echo '${'$as_ac_var'}'`
18568                { echo "$as_me:$LINENO: result: $ac_res" >&5
18569 echo "${ECHO_T}$ac_res" >&6; }
18570 if test `eval echo '${'$as_ac_var'}'` = yes; then
18571   cat >>confdefs.h <<_ACEOF
18572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18573 _ACEOF
18574
18575 fi
18576 done
18577
18578
18579
18580
18581
18582
18583 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18584 do
18585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18599 #define $ac_func innocuous_$ac_func
18600
18601 /* System header to define __stub macros and hopefully few prototypes,
18602     which can conflict with char $ac_func (); below.
18603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604     <limits.h> exists even on freestanding compilers.  */
18605
18606 #ifdef __STDC__
18607 # include <limits.h>
18608 #else
18609 # include <assert.h>
18610 #endif
18611
18612 #undef $ac_func
18613
18614 /* Override any GCC internal prototype to avoid an error.
18615    Use char because int might match the return type of a GCC
18616    builtin and then its argument prototype would still apply.  */
18617 #ifdef __cplusplus
18618 extern "C"
18619 #endif
18620 char $ac_func ();
18621 /* The GNU C library defines this for functions which it implements
18622     to always fail with ENOSYS.  Some functions are actually named
18623     something starting with __ and the normal name is an alias.  */
18624 #if defined __stub_$ac_func || defined __stub___$ac_func
18625 choke me
18626 #endif
18627
18628 int
18629 main ()
18630 {
18631 return $ac_func ();
18632   ;
18633   return 0;
18634 }
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (ac_try="$ac_link"
18638 case "(($ac_try" in
18639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640   *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643   (eval "$ac_link") 2>conftest.er1
18644   ac_status=$?
18645   grep -v '^ *+' conftest.er1 >conftest.err
18646   rm -f conftest.er1
18647   cat conftest.err >&5
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); } &&
18650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651   { (case "(($ac_try" in
18652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653   *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656   (eval "$ac_try") 2>&5
18657   ac_status=$?
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); }; } &&
18660          { ac_try='test -s conftest$ac_exeext'
18661   { (case "(($ac_try" in
18662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663   *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666   (eval "$ac_try") 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; }; then
18670   eval "$as_ac_var=yes"
18671 else
18672   echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675         eval "$as_ac_var=no"
18676 fi
18677
18678 rm -f core conftest.err conftest.$ac_objext \
18679       conftest$ac_exeext conftest.$ac_ext
18680 fi
18681 ac_res=`eval echo '${'$as_ac_var'}'`
18682                { echo "$as_me:$LINENO: result: $ac_res" >&5
18683 echo "${ECHO_T}$ac_res" >&6; }
18684 if test `eval echo '${'$as_ac_var'}'` = yes; then
18685   cat >>confdefs.h <<_ACEOF
18686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18687 _ACEOF
18688
18689 fi
18690 done
18691
18692
18693
18694 for ac_func in futimes futimens
18695 do
18696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702   cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h.  */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h.  */
18708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18710 #define $ac_func innocuous_$ac_func
18711
18712 /* System header to define __stub macros and hopefully few prototypes,
18713     which can conflict with char $ac_func (); below.
18714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18715     <limits.h> exists even on freestanding compilers.  */
18716
18717 #ifdef __STDC__
18718 # include <limits.h>
18719 #else
18720 # include <assert.h>
18721 #endif
18722
18723 #undef $ac_func
18724
18725 /* Override any GCC internal prototype to avoid an error.
18726    Use char because int might match the return type of a GCC
18727    builtin and then its argument prototype would still apply.  */
18728 #ifdef __cplusplus
18729 extern "C"
18730 #endif
18731 char $ac_func ();
18732 /* The GNU C library defines this for functions which it implements
18733     to always fail with ENOSYS.  Some functions are actually named
18734     something starting with __ and the normal name is an alias.  */
18735 #if defined __stub_$ac_func || defined __stub___$ac_func
18736 choke me
18737 #endif
18738
18739 int
18740 main ()
18741 {
18742 return $ac_func ();
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (ac_try="$ac_link"
18749 case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754   (eval "$ac_link") 2>conftest.er1
18755   ac_status=$?
18756   grep -v '^ *+' conftest.er1 >conftest.err
18757   rm -f conftest.er1
18758   cat conftest.err >&5
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } &&
18761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762   { (case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_try") 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest$ac_exeext'
18772   { (case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_try") 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; }; then
18781   eval "$as_ac_var=yes"
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786         eval "$as_ac_var=no"
18787 fi
18788
18789 rm -f core conftest.err conftest.$ac_objext \
18790       conftest$ac_exeext conftest.$ac_ext
18791 fi
18792 ac_res=`eval echo '${'$as_ac_var'}'`
18793                { echo "$as_me:$LINENO: result: $ac_res" >&5
18794 echo "${ECHO_T}$ac_res" >&6; }
18795 if test `eval echo '${'$as_ac_var'}'` = yes; then
18796   cat >>confdefs.h <<_ACEOF
18797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18798 _ACEOF
18799
18800 fi
18801 done
18802
18803 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18804 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18805 if test "${llvm_cv_c_printf_a+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   ac_ext=c
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18813
18814  if test "$cross_compiling" = yes; then
18815   llvmac_cv_c_printf_a=no
18816 else
18817   cat >conftest.$ac_ext <<_ACEOF
18818
18819   /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824
18825 #include <stdio.h>
18826 #include <stdlib.h>
18827
18828 int
18829 main ()
18830 {
18831
18832 volatile double A, B;
18833 char Buffer[100];
18834 A = 1;
18835 A /= 10.0;
18836 sprintf(Buffer, "%a", A);
18837 B = atof(Buffer);
18838 if (A != B)
18839   return (1);
18840 if (A != 0x1.999999999999ap-4)
18841   return (1);
18842 return (0);
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_link") 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18858   { (case "(($ac_try" in
18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860   *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863   (eval "$ac_try") 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; }; then
18867   llvm_cv_c_printf_a=yes
18868 else
18869   echo "$as_me: program exited with status $ac_status" >&5
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ( exit $ac_status )
18874 llvmac_cv_c_printf_a=no
18875 fi
18876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18877 fi
18878
18879
18880  ac_ext=c
18881 ac_cpp='$CPP $CPPFLAGS'
18882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18885
18886 fi
18887 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18888 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18889  if test "$llvm_cv_c_printf_a" = "yes"; then
18890
18891 cat >>confdefs.h <<\_ACEOF
18892 #define HAVE_PRINTF_A 1
18893 _ACEOF
18894
18895  fi
18896
18897
18898
18899   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18900 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18901 if test "${ac_cv_func_rand48+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904
18905     ac_ext=cpp
18906 ac_cpp='$CXXCPP $CPPFLAGS'
18907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910
18911     cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 #include <stdlib.h>
18918 int
18919 main ()
18920 {
18921 srand48(0);lrand48();drand48();
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext
18927 if { (ac_try="$ac_compile"
18928 case "(($ac_try" in
18929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930   *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933   (eval "$ac_compile") 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } &&
18940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18941   { (case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_try") 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; } &&
18950          { ac_try='test -s conftest.$ac_objext'
18951   { (case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_try") 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_cv_func_rand48=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965         ac_cv_func_rand48=no
18966 fi
18967
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969     ac_ext=c
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974
18975
18976 fi
18977 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18978 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18979
18980 if test "$ac_cv_func_rand48" = "yes" ; then
18981
18982 cat >>confdefs.h <<\_ACEOF
18983 #define HAVE_RAND48 1
18984 _ACEOF
18985
18986 fi
18987
18988
18989 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18990 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18991 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000 $ac_includes_default
19001 int
19002 main ()
19003 {
19004 #ifndef strerror_s
19005   char *p = (char *) strerror_s;
19006   return !p;
19007 #endif
19008
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_compile") 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19037          { ac_try='test -s conftest.$ac_objext'
19038   { (case "(($ac_try" in
19039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040   *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043   (eval "$ac_try") 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; }; then
19047   ac_cv_have_decl_strerror_s=yes
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052         ac_cv_have_decl_strerror_s=no
19053 fi
19054
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 fi
19057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19058 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19059 if test $ac_cv_have_decl_strerror_s = yes; then
19060
19061 cat >>confdefs.h <<_ACEOF
19062 #define HAVE_DECL_STRERROR_S 1
19063 _ACEOF
19064
19065
19066 else
19067   cat >>confdefs.h <<_ACEOF
19068 #define HAVE_DECL_STRERROR_S 0
19069 _ACEOF
19070
19071
19072 fi
19073
19074
19075
19076 if test "$llvm_cv_os_type" = "MingW" ; then
19077   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19078 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19079 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   ac_check_lib_save_LIBS=$LIBS
19083 LIBS="-lgcc  $LIBS"
19084 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h.  */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h.  */
19090
19091 /* Override any GCC internal prototype to avoid an error.
19092    Use char because int might match the return type of a GCC
19093    builtin and then its argument prototype would still apply.  */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char _alloca ();
19098 int
19099 main ()
19100 {
19101 return _alloca ();
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113   (eval "$ac_link") 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } &&
19120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19121   { (case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_try") 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; } &&
19130          { ac_try='test -s conftest$ac_exeext'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_lib_gcc__alloca=yes
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145         ac_cv_lib_gcc__alloca=no
19146 fi
19147
19148 rm -f core conftest.err conftest.$ac_objext \
19149       conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19151 fi
19152 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19153 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19154 if test $ac_cv_lib_gcc__alloca = yes; then
19155
19156 cat >>confdefs.h <<\_ACEOF
19157 #define HAVE__ALLOCA 1
19158 _ACEOF
19159
19160 fi
19161
19162   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19163 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19164 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167   ac_check_lib_save_LIBS=$LIBS
19168 LIBS="-lgcc  $LIBS"
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175
19176 /* Override any GCC internal prototype to avoid an error.
19177    Use char because int might match the return type of a GCC
19178    builtin and then its argument prototype would still apply.  */
19179 #ifdef __cplusplus
19180 extern "C"
19181 #endif
19182 char __alloca ();
19183 int
19184 main ()
19185 {
19186 return __alloca ();
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (ac_try="$ac_link"
19193 case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_link") 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } &&
19205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19206   { (case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_try") 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest$ac_exeext'
19216   { (case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_try") 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; }; then
19225   ac_cv_lib_gcc___alloca=yes
19226 else
19227   echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230         ac_cv_lib_gcc___alloca=no
19231 fi
19232
19233 rm -f core conftest.err conftest.$ac_objext \
19234       conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19236 fi
19237 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19238 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19239 if test $ac_cv_lib_gcc___alloca = yes; then
19240
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE___ALLOCA 1
19243 _ACEOF
19244
19245 fi
19246
19247   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19248 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19249 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   ac_check_lib_save_LIBS=$LIBS
19253 LIBS="-lgcc  $LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h.  */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h.  */
19260
19261 /* Override any GCC internal prototype to avoid an error.
19262    Use char because int might match the return type of a GCC
19263    builtin and then its argument prototype would still apply.  */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char __chkstk ();
19268 int
19269 main ()
19270 {
19271 return __chkstk ();
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_link") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291   { (case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296   (eval "$ac_try") 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; } &&
19300          { ac_try='test -s conftest$ac_exeext'
19301   { (case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_try") 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_cv_lib_gcc___chkstk=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315         ac_cv_lib_gcc___chkstk=no
19316 fi
19317
19318 rm -f core conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19321 fi
19322 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19323 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19324 if test $ac_cv_lib_gcc___chkstk = yes; then
19325
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE___CHKSTK 1
19328 _ACEOF
19329
19330 fi
19331
19332   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19333 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lgcc  $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347    Use char because int might match the return type of a GCC
19348    builtin and then its argument prototype would still apply.  */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char ___chkstk ();
19353 int
19354 main ()
19355 {
19356 return ___chkstk ();
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368   (eval "$ac_link") 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } &&
19375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19376   { (case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_try") 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; } &&
19385          { ac_try='test -s conftest$ac_exeext'
19386   { (case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_try") 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395   ac_cv_lib_gcc____chkstk=yes
19396 else
19397   echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400         ac_cv_lib_gcc____chkstk=no
19401 fi
19402
19403 rm -f core conftest.err conftest.$ac_objext \
19404       conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19406 fi
19407 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19408 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19409 if test $ac_cv_lib_gcc____chkstk = yes; then
19410
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE____CHKSTK 1
19413 _ACEOF
19414
19415 fi
19416
19417
19418   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19419 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___ashldi3+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 __ashldi3 ();
19439 int
19440 main ()
19441 {
19442 return __ashldi3 ();
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___ashldi3=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_lib_gcc___ashldi3=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___ashldi3" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19495 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___ASHLDI3 1
19499 _ACEOF
19500
19501 fi
19502
19503   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19504 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19505 if test "${ac_cv_lib_gcc___ashrdi3+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 __ashrdi3 ();
19524 int
19525 main ()
19526 {
19527 return __ashrdi3 ();
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___ashrdi3=yes
19567 else
19568   echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571         ac_cv_lib_gcc___ashrdi3=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___ashrdi3" >&5
19579 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19580 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE___ASHRDI3 1
19584 _ACEOF
19585
19586 fi
19587
19588   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19589 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19590 if test "${ac_cv_lib_gcc___divdi3+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 __divdi3 ();
19609 int
19610 main ()
19611 {
19612 return __divdi3 ();
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___divdi3=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656         ac_cv_lib_gcc___divdi3=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___divdi3" >&5
19664 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19665 if test $ac_cv_lib_gcc___divdi3 = yes; then
19666
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE___DIVDI3 1
19669 _ACEOF
19670
19671 fi
19672
19673   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19674 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19675 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lgcc  $LIBS"
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686
19687 /* Override any GCC internal prototype to avoid an error.
19688    Use char because int might match the return type of a GCC
19689    builtin and then its argument prototype would still apply.  */
19690 #ifdef __cplusplus
19691 extern "C"
19692 #endif
19693 char __fixdfdi ();
19694 int
19695 main ()
19696 {
19697 return __fixdfdi ();
19698   ;
19699   return 0;
19700 }
19701 _ACEOF
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_link") 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717   { (case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_try") 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_try") 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   ac_cv_lib_gcc___fixdfdi=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_cv_lib_gcc___fixdfdi=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext \
19745       conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19747 fi
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19750 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19751
19752 cat >>confdefs.h <<\_ACEOF
19753 #define HAVE___FIXDFDI 1
19754 _ACEOF
19755
19756 fi
19757
19758   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19759 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19760 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   ac_check_lib_save_LIBS=$LIBS
19764 LIBS="-lgcc  $LIBS"
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h.  */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h.  */
19771
19772 /* Override any GCC internal prototype to avoid an error.
19773    Use char because int might match the return type of a GCC
19774    builtin and then its argument prototype would still apply.  */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char __fixsfdi ();
19779 int
19780 main ()
19781 {
19782 return __fixsfdi ();
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791   *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794   (eval "$ac_link") 2>conftest.er1
19795   ac_status=$?
19796   grep -v '^ *+' conftest.er1 >conftest.err
19797   rm -f conftest.er1
19798   cat conftest.err >&5
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } &&
19801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19802   { (case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_try") 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; } &&
19811          { ac_try='test -s conftest$ac_exeext'
19812   { (case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_try") 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_cv_lib_gcc___fixsfdi=yes
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826         ac_cv_lib_gcc___fixsfdi=no
19827 fi
19828
19829 rm -f core conftest.err conftest.$ac_objext \
19830       conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19832 fi
19833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19834 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19835 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE___FIXSFDI 1
19839 _ACEOF
19840
19841 fi
19842
19843   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19844 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19845 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19846   echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848   ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lgcc  $LIBS"
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856
19857 /* Override any GCC internal prototype to avoid an error.
19858    Use char because int might match the return type of a GCC
19859    builtin and then its argument prototype would still apply.  */
19860 #ifdef __cplusplus
19861 extern "C"
19862 #endif
19863 char __floatdidf ();
19864 int
19865 main ()
19866 {
19867 return __floatdidf ();
19868   ;
19869   return 0;
19870 }
19871 _ACEOF
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876   *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879   (eval "$ac_link") 2>conftest.er1
19880   ac_status=$?
19881   grep -v '^ *+' conftest.er1 >conftest.err
19882   rm -f conftest.er1
19883   cat conftest.err >&5
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); } &&
19886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887   { (case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_try") 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; } &&
19896          { ac_try='test -s conftest$ac_exeext'
19897   { (case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_try") 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; }; then
19906   ac_cv_lib_gcc___floatdidf=yes
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911         ac_cv_lib_gcc___floatdidf=no
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext \
19915       conftest$ac_exeext conftest.$ac_ext
19916 LIBS=$ac_check_lib_save_LIBS
19917 fi
19918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19919 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19920 if test $ac_cv_lib_gcc___floatdidf = yes; then
19921
19922 cat >>confdefs.h <<\_ACEOF
19923 #define HAVE___FLOATDIDF 1
19924 _ACEOF
19925
19926 fi
19927
19928   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19929 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19930 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19931   echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933   ac_check_lib_save_LIBS=$LIBS
19934 LIBS="-lgcc  $LIBS"
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941
19942 /* Override any GCC internal prototype to avoid an error.
19943    Use char because int might match the return type of a GCC
19944    builtin and then its argument prototype would still apply.  */
19945 #ifdef __cplusplus
19946 extern "C"
19947 #endif
19948 char __lshrdi3 ();
19949 int
19950 main ()
19951 {
19952 return __lshrdi3 ();
19953   ;
19954   return 0;
19955 }
19956 _ACEOF
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_link") 2>conftest.er1
19965   ac_status=$?
19966   grep -v '^ *+' conftest.er1 >conftest.err
19967   rm -f conftest.er1
19968   cat conftest.err >&5
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } &&
19971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19972   { (case "(($ac_try" in
19973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974   *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977   (eval "$ac_try") 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }; } &&
19981          { ac_try='test -s conftest$ac_exeext'
19982   { (case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_try") 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; }; then
19991   ac_cv_lib_gcc___lshrdi3=yes
19992 else
19993   echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996         ac_cv_lib_gcc___lshrdi3=no
19997 fi
19998
19999 rm -f core conftest.err conftest.$ac_objext \
20000       conftest$ac_exeext conftest.$ac_ext
20001 LIBS=$ac_check_lib_save_LIBS
20002 fi
20003 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20004 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20005 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20006
20007 cat >>confdefs.h <<\_ACEOF
20008 #define HAVE___LSHRDI3 1
20009 _ACEOF
20010
20011 fi
20012
20013   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20014 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20015 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   ac_check_lib_save_LIBS=$LIBS
20019 LIBS="-lgcc  $LIBS"
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026
20027 /* Override any GCC internal prototype to avoid an error.
20028    Use char because int might match the return type of a GCC
20029    builtin and then its argument prototype would still apply.  */
20030 #ifdef __cplusplus
20031 extern "C"
20032 #endif
20033 char __moddi3 ();
20034 int
20035 main ()
20036 {
20037 return __moddi3 ();
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (ac_try="$ac_link"
20044 case "(($ac_try" in
20045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046   *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049   (eval "$ac_link") 2>conftest.er1
20050   ac_status=$?
20051   grep -v '^ *+' conftest.er1 >conftest.err
20052   rm -f conftest.er1
20053   cat conftest.err >&5
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); } &&
20056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20057   { (case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_try") 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; } &&
20066          { ac_try='test -s conftest$ac_exeext'
20067   { (case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_try") 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; }; then
20076   ac_cv_lib_gcc___moddi3=yes
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081         ac_cv_lib_gcc___moddi3=no
20082 fi
20083
20084 rm -f core conftest.err conftest.$ac_objext \
20085       conftest$ac_exeext conftest.$ac_ext
20086 LIBS=$ac_check_lib_save_LIBS
20087 fi
20088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20089 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20090 if test $ac_cv_lib_gcc___moddi3 = yes; then
20091
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE___MODDI3 1
20094 _ACEOF
20095
20096 fi
20097
20098   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20099 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lgcc  $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111
20112 /* Override any GCC internal prototype to avoid an error.
20113    Use char because int might match the return type of a GCC
20114    builtin and then its argument prototype would still apply.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char __udivdi3 ();
20119 int
20120 main ()
20121 {
20122 return __udivdi3 ();
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131   *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134   (eval "$ac_link") 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142   { (case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_try") 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; } &&
20151          { ac_try='test -s conftest$ac_exeext'
20152   { (case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_try") 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   ac_cv_lib_gcc___udivdi3=yes
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166         ac_cv_lib_gcc___udivdi3=no
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext \
20170       conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20172 fi
20173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20174 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20175 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20176
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE___UDIVDI3 1
20179 _ACEOF
20180
20181 fi
20182
20183   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20184 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20185 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lgcc  $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196
20197 /* Override any GCC internal prototype to avoid an error.
20198    Use char because int might match the return type of a GCC
20199    builtin and then its argument prototype would still apply.  */
20200 #ifdef __cplusplus
20201 extern "C"
20202 #endif
20203 char __umoddi3 ();
20204 int
20205 main ()
20206 {
20207 return __umoddi3 ();
20208   ;
20209   return 0;
20210 }
20211 _ACEOF
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216   *) ac_try_echo=$ac_try;;
20217 esac
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219   (eval "$ac_link") 2>conftest.er1
20220   ac_status=$?
20221   grep -v '^ *+' conftest.er1 >conftest.err
20222   rm -f conftest.er1
20223   cat conftest.err >&5
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); } &&
20226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227   { (case "(($ac_try" in
20228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229   *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232   (eval "$ac_try") 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; } &&
20236          { ac_try='test -s conftest$ac_exeext'
20237   { (case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_try") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_lib_gcc___umoddi3=yes
20247 else
20248   echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251         ac_cv_lib_gcc___umoddi3=no
20252 fi
20253
20254 rm -f core conftest.err conftest.$ac_objext \
20255       conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20257 fi
20258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20259 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20260 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20261
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE___UMODDI3 1
20264 _ACEOF
20265
20266 fi
20267
20268
20269   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20270 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20271 if test "${ac_cv_lib_gcc___main+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 __main ();
20290 int
20291 main ()
20292 {
20293 return __main ();
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___main=yes
20333 else
20334   echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337         ac_cv_lib_gcc___main=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___main" >&5
20345 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20346 if test $ac_cv_lib_gcc___main = yes; then
20347
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE___MAIN 1
20350 _ACEOF
20351
20352 fi
20353
20354   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20355 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20356 if test "${ac_cv_lib_gcc___cmpdi2+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 __cmpdi2 ();
20375 int
20376 main ()
20377 {
20378 return __cmpdi2 ();
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___cmpdi2=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422         ac_cv_lib_gcc___cmpdi2=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___cmpdi2" >&5
20430 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20431 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20432
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE___CMPDI2 1
20435 _ACEOF
20436
20437 fi
20438
20439 fi
20440
20441 if test "$llvm_cv_os_type" = "MingW" ; then
20442   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20443 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20444   cat >conftest.$ac_ext <<_ACEOF
20445
20446   /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452     #include <windows.h>
20453     #include <imagehlp.h>
20454     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20455     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20456
20457
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_compile") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } &&
20473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474   { (case "(($ac_try" in
20475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476   *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479   (eval "$ac_try") 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest.$ac_objext'
20484   { (case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_try") 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; }; then
20493
20494   { echo "$as_me:$LINENO: result: yes" >&5
20495 echo "${ECHO_T}yes" >&6; }
20496   llvm_cv_win32_elmcb_pcstr="PCSTR"
20497
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502
20503   { echo "$as_me:$LINENO: result: no" >&5
20504 echo "${ECHO_T}no" >&6; }
20505   llvm_cv_win32_elmcb_pcstr="PSTR"
20506
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20513 _ACEOF
20514
20515 fi
20516
20517
20518
20519   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20520 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20521 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524
20525     ac_ext=cpp
20526 ac_cpp='$CXXCPP $CPPFLAGS'
20527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20530
20531     cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 #include <math.h>
20538 int
20539 main ()
20540 {
20541 float f; isnan(f);
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (ac_try="$ac_compile"
20548 case "(($ac_try" in
20549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550   *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553   (eval "$ac_compile") 2>conftest.er1
20554   ac_status=$?
20555   grep -v '^ *+' conftest.er1 >conftest.err
20556   rm -f conftest.er1
20557   cat conftest.err >&5
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } &&
20560          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20561   { (case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_try") 2>&5
20567   ac_status=$?
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); }; } &&
20570          { ac_try='test -s conftest.$ac_objext'
20571   { (case "(($ac_try" in
20572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573   *) ac_try_echo=$ac_try;;
20574 esac
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576   (eval "$ac_try") 2>&5
20577   ac_status=$?
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); }; }; then
20580   ac_cv_func_isnan_in_math_h=yes
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585         ac_cv_func_isnan_in_math_h=no
20586 fi
20587
20588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20589     ac_ext=c
20590 ac_cpp='$CPP $CPPFLAGS'
20591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20594
20595
20596 fi
20597 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20598 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20599
20600
20601 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20602
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE_ISNAN_IN_MATH_H 1
20605 _ACEOF
20606
20607 fi
20608
20609
20610   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20611 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20612 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20613   echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615
20616     ac_ext=cpp
20617 ac_cpp='$CXXCPP $CPPFLAGS'
20618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20621
20622     cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #include <cmath>
20629 int
20630 main ()
20631 {
20632 float f; isnan(f);
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_compile") 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } &&
20651          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20652   { (case "(($ac_try" in
20653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654   *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657   (eval "$ac_try") 2>&5
20658   ac_status=$?
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); }; } &&
20661          { ac_try='test -s conftest.$ac_objext'
20662   { (case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_try") 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; }; then
20671   ac_cv_func_isnan_in_cmath=yes
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676         ac_cv_func_isnan_in_cmath=no
20677 fi
20678
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680     ac_ext=c
20681 ac_cpp='$CPP $CPPFLAGS'
20682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20685
20686
20687 fi
20688 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20689 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20690
20691 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20692
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_ISNAN_IN_CMATH 1
20695 _ACEOF
20696
20697 fi
20698
20699
20700   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20701 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20702 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20703   echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705
20706     ac_ext=cpp
20707 ac_cpp='$CXXCPP $CPPFLAGS'
20708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20711
20712     cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718 #include <cmath>
20719 int
20720 main ()
20721 {
20722 float f; std::isnan(f);
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext
20728 if { (ac_try="$ac_compile"
20729 case "(($ac_try" in
20730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731   *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734   (eval "$ac_compile") 2>conftest.er1
20735   ac_status=$?
20736   grep -v '^ *+' conftest.er1 >conftest.err
20737   rm -f conftest.er1
20738   cat conftest.err >&5
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } &&
20741          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20742   { (case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_try") 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; } &&
20751          { ac_try='test -s conftest.$ac_objext'
20752   { (case "(($ac_try" in
20753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754   *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757   (eval "$ac_try") 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_cv_func_std_isnan_in_cmath=yes
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766         ac_cv_func_std_isnan_in_cmath=no
20767 fi
20768
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770     ac_ext=c
20771 ac_cpp='$CPP $CPPFLAGS'
20772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20775
20776
20777 fi
20778 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20779 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20780
20781 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20782
20783 cat >>confdefs.h <<\_ACEOF
20784 #define HAVE_STD_ISNAN_IN_CMATH 1
20785 _ACEOF
20786
20787 fi
20788
20789
20790
20791
20792   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20793 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20794 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797
20798     ac_ext=cpp
20799 ac_cpp='$CXXCPP $CPPFLAGS'
20800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20803
20804     cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 #include <math.h>
20811 int
20812 main ()
20813 {
20814 float f; isinf(f);
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_compile") 2>conftest.er1
20827   ac_status=$?
20828   grep -v '^ *+' conftest.er1 >conftest.err
20829   rm -f conftest.er1
20830   cat conftest.err >&5
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } &&
20833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20834   { (case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_try") 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; } &&
20843          { ac_try='test -s conftest.$ac_objext'
20844   { (case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_try") 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   ac_cv_func_isinf_in_math_h=yes
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858         ac_cv_func_isinf_in_math_h=no
20859 fi
20860
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862     ac_ext=c
20863 ac_cpp='$CPP $CPPFLAGS'
20864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20867
20868
20869 fi
20870 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20871 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20872
20873 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20874
20875 cat >>confdefs.h <<\_ACEOF
20876 #define HAVE_ISINF_IN_MATH_H 1
20877 _ACEOF
20878
20879 fi
20880
20881
20882   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20883 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20884 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20885   echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887
20888     ac_ext=cpp
20889 ac_cpp='$CXXCPP $CPPFLAGS'
20890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20893
20894     cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 #include <cmath>
20901 int
20902 main ()
20903 {
20904 float f; isinf(f);
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913   *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916   (eval "$ac_compile") 2>conftest.er1
20917   ac_status=$?
20918   grep -v '^ *+' conftest.er1 >conftest.err
20919   rm -f conftest.er1
20920   cat conftest.err >&5
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); } &&
20923          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20924   { (case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929   (eval "$ac_try") 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; } &&
20933          { ac_try='test -s conftest.$ac_objext'
20934   { (case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_try") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; }; then
20943   ac_cv_func_isinf_in_cmath=yes
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948         ac_cv_func_isinf_in_cmath=no
20949 fi
20950
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952     ac_ext=c
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957
20958
20959 fi
20960 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20961 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20962
20963 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20964
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_ISINF_IN_CMATH 1
20967 _ACEOF
20968
20969 fi
20970
20971
20972   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20973 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20974 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977
20978     ac_ext=cpp
20979 ac_cpp='$CXXCPP $CPPFLAGS'
20980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20983
20984     cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990 #include <cmath>
20991 int
20992 main ()
20993 {
20994 float f; std::isinf(f);
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_compile") 2>conftest.er1
21007   ac_status=$?
21008   grep -v '^ *+' conftest.er1 >conftest.err
21009   rm -f conftest.er1
21010   cat conftest.err >&5
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); } &&
21013          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21014   { (case "(($ac_try" in
21015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016   *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019   (eval "$ac_try") 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; } &&
21023          { ac_try='test -s conftest.$ac_objext'
21024   { (case "(($ac_try" in
21025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026   *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029   (eval "$ac_try") 2>&5
21030   ac_status=$?
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); }; }; then
21033   ac_cv_func_std_isinf_in_cmath=yes
21034 else
21035   echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038         ac_cv_func_std_isinf_in_cmath=no
21039 fi
21040
21041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21042     ac_ext=c
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047
21048
21049 fi
21050 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21051 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21052
21053 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21054
21055 cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_STD_ISINF_IN_CMATH 1
21057 _ACEOF
21058
21059 fi
21060
21061
21062   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067
21068     ac_ext=cpp
21069 ac_cpp='$CXXCPP $CPPFLAGS'
21070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21073
21074     cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 #include <ieeefp.h>
21081 int
21082 main ()
21083 {
21084 float f; finite(f);
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_compile") 2>conftest.er1
21097   ac_status=$?
21098   grep -v '^ *+' conftest.er1 >conftest.err
21099   rm -f conftest.er1
21100   cat conftest.err >&5
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } &&
21103          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21104   { (case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_try") 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; } &&
21113          { ac_try='test -s conftest.$ac_objext'
21114   { (case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_try") 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_func_finite_in_ieeefp_h=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128         ac_cv_func_finite_in_ieeefp_h=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132     ac_ext=c
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138
21139 fi
21140 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21141 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21142
21143 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21144
21145 cat >>confdefs.h <<\_ACEOF
21146 #define HAVE_FINITE_IN_IEEEFP_H 1
21147 _ACEOF
21148
21149 fi
21150
21151
21152
21153 if test "$llvm_cv_platform_type" = "Unix" ; then
21154
21155
21156 for ac_header in stdlib.h unistd.h
21157 do
21158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 fi
21165 ac_res=`eval echo '${'$as_ac_Header'}'`
21166                { echo "$as_me:$LINENO: result: $ac_res" >&5
21167 echo "${ECHO_T}$ac_res" >&6; }
21168 else
21169   # Is the header compilable?
21170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 $ac_includes_default
21179 #include <$ac_header>
21180 _ACEOF
21181 rm -f conftest.$ac_objext
21182 if { (ac_try="$ac_compile"
21183 case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_compile") 2>conftest.er1
21189   ac_status=$?
21190   grep -v '^ *+' conftest.er1 >conftest.err
21191   rm -f conftest.er1
21192   cat conftest.err >&5
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); } &&
21195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21196   { (case "(($ac_try" in
21197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198   *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201   (eval "$ac_try") 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); }; } &&
21205          { ac_try='test -s conftest.$ac_objext'
21206   { (case "(($ac_try" in
21207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208   *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211   (eval "$ac_try") 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; }; then
21215   ac_header_compiler=yes
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220         ac_header_compiler=no
21221 fi
21222
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21225 echo "${ECHO_T}$ac_header_compiler" >&6; }
21226
21227 # Is the header present?
21228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h.  */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h.  */
21236 #include <$ac_header>
21237 _ACEOF
21238 if { (ac_try="$ac_cpp conftest.$ac_ext"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } >/dev/null; then
21251   if test -s conftest.err; then
21252     ac_cpp_err=$ac_c_preproc_warn_flag
21253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21254   else
21255     ac_cpp_err=
21256   fi
21257 else
21258   ac_cpp_err=yes
21259 fi
21260 if test -z "$ac_cpp_err"; then
21261   ac_header_preproc=yes
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266   ac_header_preproc=no
21267 fi
21268
21269 rm -f conftest.err conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21271 echo "${ECHO_T}$ac_header_preproc" >&6; }
21272
21273 # So?  What about this header?
21274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21275   yes:no: )
21276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21280     ac_header_preproc=yes
21281     ;;
21282   no:yes:* )
21283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21295     ( cat <<\_ASBOX
21296 ## ------------------------------------ ##
21297 ## Report this to http://llvm.org/bugs/ ##
21298 ## ------------------------------------ ##
21299 _ASBOX
21300      ) | sed "s/^/$as_me: WARNING:     /" >&2
21301     ;;
21302 esac
21303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   eval "$as_ac_Header=\$ac_header_preproc"
21309 fi
21310 ac_res=`eval echo '${'$as_ac_Header'}'`
21311                { echo "$as_me:$LINENO: result: $ac_res" >&5
21312 echo "${ECHO_T}$ac_res" >&6; }
21313
21314 fi
21315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21316   cat >>confdefs.h <<_ACEOF
21317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21318 _ACEOF
21319
21320 fi
21321
21322 done
21323
21324
21325 for ac_func in getpagesize
21326 do
21327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21341 #define $ac_func innocuous_$ac_func
21342
21343 /* System header to define __stub macros and hopefully few prototypes,
21344     which can conflict with char $ac_func (); below.
21345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346     <limits.h> exists even on freestanding compilers.  */
21347
21348 #ifdef __STDC__
21349 # include <limits.h>
21350 #else
21351 # include <assert.h>
21352 #endif
21353
21354 #undef $ac_func
21355
21356 /* Override any GCC internal prototype to avoid an error.
21357    Use char because int might match the return type of a GCC
21358    builtin and then its argument prototype would still apply.  */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char $ac_func ();
21363 /* The GNU C library defines this for functions which it implements
21364     to always fail with ENOSYS.  Some functions are actually named
21365     something starting with __ and the normal name is an alias.  */
21366 #if defined __stub_$ac_func || defined __stub___$ac_func
21367 choke me
21368 #endif
21369
21370 int
21371 main ()
21372 {
21373 return $ac_func ();
21374   ;
21375   return 0;
21376 }
21377 _ACEOF
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382   *) ac_try_echo=$ac_try;;
21383 esac
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385   (eval "$ac_link") 2>conftest.er1
21386   ac_status=$?
21387   grep -v '^ *+' conftest.er1 >conftest.err
21388   rm -f conftest.er1
21389   cat conftest.err >&5
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); } &&
21392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21393   { (case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_try") 2>&5
21399   ac_status=$?
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); }; } &&
21402          { ac_try='test -s conftest$ac_exeext'
21403   { (case "(($ac_try" in
21404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405   *) ac_try_echo=$ac_try;;
21406 esac
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408   (eval "$ac_try") 2>&5
21409   ac_status=$?
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); }; }; then
21412   eval "$as_ac_var=yes"
21413 else
21414   echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417         eval "$as_ac_var=no"
21418 fi
21419
21420 rm -f core conftest.err conftest.$ac_objext \
21421       conftest$ac_exeext conftest.$ac_ext
21422 fi
21423 ac_res=`eval echo '${'$as_ac_var'}'`
21424                { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21426 if test `eval echo '${'$as_ac_var'}'` = yes; then
21427   cat >>confdefs.h <<_ACEOF
21428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21429 _ACEOF
21430
21431 fi
21432 done
21433
21434 { echo "$as_me:$LINENO: checking for working mmap" >&5
21435 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21437   echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439   if test "$cross_compiling" = yes; then
21440   ac_cv_func_mmap_fixed_mapped=no
21441 else
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 $ac_includes_default
21449 /* malloc might have been renamed as rpl_malloc. */
21450 #undef malloc
21451
21452 /* Thanks to Mike Haertel and Jim Avera for this test.
21453    Here is a matrix of mmap possibilities:
21454         mmap private not fixed
21455         mmap private fixed at somewhere currently unmapped
21456         mmap private fixed at somewhere already mapped
21457         mmap shared not fixed
21458         mmap shared fixed at somewhere currently unmapped
21459         mmap shared fixed at somewhere already mapped
21460    For private mappings, we should verify that changes cannot be read()
21461    back from the file, nor mmap's back from the file at a different
21462    address.  (There have been systems where private was not correctly
21463    implemented like the infamous i386 svr4.0, and systems where the
21464    VM page cache was not coherent with the file system buffer cache
21465    like early versions of FreeBSD and possibly contemporary NetBSD.)
21466    For shared mappings, we should conversely verify that changes get
21467    propagated back to all the places they're supposed to be.
21468
21469    Grep wants private fixed already mapped.
21470    The main things grep needs to know about mmap are:
21471    * does it exist and is it safe to write into the mmap'd area
21472    * how to use it (BSD variants)  */
21473
21474 #include <fcntl.h>
21475 #include <sys/mman.h>
21476
21477 #if !STDC_HEADERS && !HAVE_STDLIB_H
21478 char *malloc ();
21479 #endif
21480
21481 /* This mess was copied from the GNU getpagesize.h.  */
21482 #if !HAVE_GETPAGESIZE
21483 /* Assume that all systems that can run configure have sys/param.h.  */
21484 # if !HAVE_SYS_PARAM_H
21485 #  define HAVE_SYS_PARAM_H 1
21486 # endif
21487
21488 # ifdef _SC_PAGESIZE
21489 #  define getpagesize() sysconf(_SC_PAGESIZE)
21490 # else /* no _SC_PAGESIZE */
21491 #  if HAVE_SYS_PARAM_H
21492 #   include <sys/param.h>
21493 #   ifdef EXEC_PAGESIZE
21494 #    define getpagesize() EXEC_PAGESIZE
21495 #   else /* no EXEC_PAGESIZE */
21496 #    ifdef NBPG
21497 #     define getpagesize() NBPG * CLSIZE
21498 #     ifndef CLSIZE
21499 #      define CLSIZE 1
21500 #     endif /* no CLSIZE */
21501 #    else /* no NBPG */
21502 #     ifdef NBPC
21503 #      define getpagesize() NBPC
21504 #     else /* no NBPC */
21505 #      ifdef PAGESIZE
21506 #       define getpagesize() PAGESIZE
21507 #      endif /* PAGESIZE */
21508 #     endif /* no NBPC */
21509 #    endif /* no NBPG */
21510 #   endif /* no EXEC_PAGESIZE */
21511 #  else /* no HAVE_SYS_PARAM_H */
21512 #   define getpagesize() 8192   /* punt totally */
21513 #  endif /* no HAVE_SYS_PARAM_H */
21514 # endif /* no _SC_PAGESIZE */
21515
21516 #endif /* no HAVE_GETPAGESIZE */
21517
21518 int
21519 main ()
21520 {
21521   char *data, *data2, *data3;
21522   int i, pagesize;
21523   int fd;
21524
21525   pagesize = getpagesize ();
21526
21527   /* First, make a file with some known garbage in it. */
21528   data = (char *) malloc (pagesize);
21529   if (!data)
21530     return 1;
21531   for (i = 0; i < pagesize; ++i)
21532     *(data + i) = rand ();
21533   umask (0);
21534   fd = creat ("conftest.mmap", 0600);
21535   if (fd < 0)
21536     return 1;
21537   if (write (fd, data, pagesize) != pagesize)
21538     return 1;
21539   close (fd);
21540
21541   /* Next, try to mmap the file at a fixed address which already has
21542      something else allocated at it.  If we can, also make sure that
21543      we see the same garbage.  */
21544   fd = open ("conftest.mmap", O_RDWR);
21545   if (fd < 0)
21546     return 1;
21547   data2 = (char *) malloc (2 * pagesize);
21548   if (!data2)
21549     return 1;
21550   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21551   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21552                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21553     return 1;
21554   for (i = 0; i < pagesize; ++i)
21555     if (*(data + i) != *(data2 + i))
21556       return 1;
21557
21558   /* Finally, make sure that changes to the mapped area do not
21559      percolate back to the file as seen by read().  (This is a bug on
21560      some variants of i386 svr4.0.)  */
21561   for (i = 0; i < pagesize; ++i)
21562     *(data2 + i) = *(data2 + i) + 1;
21563   data3 = (char *) malloc (pagesize);
21564   if (!data3)
21565     return 1;
21566   if (read (fd, data3, pagesize) != pagesize)
21567     return 1;
21568   for (i = 0; i < pagesize; ++i)
21569     if (*(data + i) != *(data3 + i))
21570       return 1;
21571   close (fd);
21572   return 0;
21573 }
21574 _ACEOF
21575 rm -f conftest$ac_exeext
21576 if { (ac_try="$ac_link"
21577 case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_link") 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21586   { (case "(($ac_try" in
21587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588   *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591   (eval "$ac_try") 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; }; then
21595   ac_cv_func_mmap_fixed_mapped=yes
21596 else
21597   echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ( exit $ac_status )
21602 ac_cv_func_mmap_fixed_mapped=no
21603 fi
21604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605 fi
21606
21607
21608 fi
21609 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21610 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21611 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21612
21613 cat >>confdefs.h <<\_ACEOF
21614 #define HAVE_MMAP 1
21615 _ACEOF
21616
21617 fi
21618 rm -f conftest.mmap
21619
21620   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21621 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21622 if test "${ac_cv_func_mmap_file+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625    ac_ext=c
21626 ac_cpp='$CPP $CPPFLAGS'
21627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21630
21631   if test "$cross_compiling" = yes; then
21632   ac_cv_func_mmap_file=no
21633 else
21634   cat >conftest.$ac_ext <<_ACEOF
21635
21636     /* confdefs.h.  */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h.  */
21641
21642 #include <sys/types.h>
21643 #include <sys/mman.h>
21644 #include <fcntl.h>
21645
21646 int
21647 main ()
21648 {
21649
21650   int fd;
21651   fd = creat ("foo",0777);
21652   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21653   unlink ("foo");
21654   return (fd != (int) MAP_FAILED);
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_link") 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670   { (case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675   (eval "$ac_try") 2>&5
21676   ac_status=$?
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); }; }; then
21679   ac_cv_func_mmap_file=yes
21680 else
21681   echo "$as_me: program exited with status $ac_status" >&5
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ( exit $ac_status )
21686 ac_cv_func_mmap_file=no
21687 fi
21688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 fi
21690
21691
21692   ac_ext=c
21693 ac_cpp='$CPP $CPPFLAGS'
21694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21697
21698
21699 fi
21700 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21701 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21702 if test "$ac_cv_func_mmap_file" = yes; then
21703
21704 cat >>confdefs.h <<\_ACEOF
21705 #define HAVE_MMAP_FILE
21706 _ACEOF
21707
21708    MMAP_FILE=yes
21709
21710 fi
21711
21712   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21713 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21714 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21715   echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717   if test "$llvm_cv_os_type" = "Interix" ; then
21718    ac_cv_need_dev_zero_for_mmap=yes
21719  else
21720    ac_cv_need_dev_zero_for_mmap=no
21721  fi
21722
21723 fi
21724 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21725 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21726 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21727
21728 cat >>confdefs.h <<\_ACEOF
21729 #define NEED_DEV_ZERO_FOR_MMAP 1
21730 _ACEOF
21731
21732 fi
21733
21734   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21735   then
21736     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21737 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21738   fi
21739   if test "$ac_cv_func_mmap_file" = "no"
21740   then
21741     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21742 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21743   fi
21744 fi
21745
21746 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21747 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21748 ac_ext=cpp
21749 ac_cpp='$CXXCPP $CPPFLAGS'
21750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21753
21754 cat >conftest.$ac_ext <<_ACEOF
21755
21756   /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762     int main() {
21763       volatile unsigned long val = 1;
21764       __sync_synchronize();
21765       __sync_val_compare_and_swap(&val, 1, 0);
21766       __sync_add_and_fetch(&val, 1);
21767       __sync_sub_and_fetch(&val, 1);
21768       return 0;
21769     }
21770
21771
21772 _ACEOF
21773 rm -f conftest.$ac_objext conftest$ac_exeext
21774 if { (ac_try="$ac_link"
21775 case "(($ac_try" in
21776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777   *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780   (eval "$ac_link") 2>conftest.er1
21781   ac_status=$?
21782   grep -v '^ *+' conftest.er1 >conftest.err
21783   rm -f conftest.er1
21784   cat conftest.err >&5
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } &&
21787          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21788   { (case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793   (eval "$ac_try") 2>&5
21794   ac_status=$?
21795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796   (exit $ac_status); }; } &&
21797          { ac_try='test -s conftest$ac_exeext'
21798   { (case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_try") 2>&5
21804   ac_status=$?
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); }; }; then
21807
21808   { echo "$as_me:$LINENO: result: yes" >&5
21809 echo "${ECHO_T}yes" >&6; }
21810
21811 cat >>confdefs.h <<\_ACEOF
21812 #define LLVM_HAS_ATOMICS 1
21813 _ACEOF
21814
21815
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820
21821   { echo "$as_me:$LINENO: result: no" >&5
21822 echo "${ECHO_T}no" >&6; }
21823
21824 cat >>confdefs.h <<\_ACEOF
21825 #define LLVM_HAS_ATOMICS 0
21826 _ACEOF
21827
21828   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21829 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21830
21831 fi
21832
21833 rm -f core conftest.err conftest.$ac_objext \
21834       conftest$ac_exeext conftest.$ac_ext
21835 ac_ext=c
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840
21841
21842
21843 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21844   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21845 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21846 if test "${llvm_cv_linux_mixed+set}" = set; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849    ac_ext=c
21850 ac_cpp='$CPP $CPPFLAGS'
21851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21854
21855   cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h.  */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h.  */
21861 #ifndef __x86_64__
21862        error: Not x86-64 even if uname says so!
21863       #endif
21864
21865 int
21866 main ()
21867 {
21868
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877   *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880   (eval "$ac_compile") 2>conftest.er1
21881   ac_status=$?
21882   grep -v '^ *+' conftest.er1 >conftest.err
21883   rm -f conftest.er1
21884   cat conftest.err >&5
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } &&
21887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21888   { (case "(($ac_try" in
21889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890   *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893   (eval "$ac_try") 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; } &&
21897          { ac_try='test -s conftest.$ac_objext'
21898   { (case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_try") 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; }; then
21907   llvm_cv_linux_mixed=no
21908 else
21909   echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21911
21912         llvm_cv_linux_mixed=yes
21913 fi
21914
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916   ac_ext=c
21917 ac_cpp='$CPP $CPPFLAGS'
21918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21921
21922
21923 fi
21924 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21925 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21926
21927   if test "$llvm_cv_linux_mixed" = "yes"; then
21928     llvm_cv_target_arch="x86"
21929     ARCH="x86"
21930   fi
21931 fi
21932
21933
21934 for ac_func in __dso_handle
21935 do
21936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21940   echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942   cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h.  */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h.  */
21948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21950 #define $ac_func innocuous_$ac_func
21951
21952 /* System header to define __stub macros and hopefully few prototypes,
21953     which can conflict with char $ac_func (); below.
21954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21955     <limits.h> exists even on freestanding compilers.  */
21956
21957 #ifdef __STDC__
21958 # include <limits.h>
21959 #else
21960 # include <assert.h>
21961 #endif
21962
21963 #undef $ac_func
21964
21965 /* Override any GCC internal prototype to avoid an error.
21966    Use char because int might match the return type of a GCC
21967    builtin and then its argument prototype would still apply.  */
21968 #ifdef __cplusplus
21969 extern "C"
21970 #endif
21971 char $ac_func ();
21972 /* The GNU C library defines this for functions which it implements
21973     to always fail with ENOSYS.  Some functions are actually named
21974     something starting with __ and the normal name is an alias.  */
21975 #if defined __stub_$ac_func || defined __stub___$ac_func
21976 choke me
21977 #endif
21978
21979 int
21980 main ()
21981 {
21982 return $ac_func ();
21983   ;
21984   return 0;
21985 }
21986 _ACEOF
21987 rm -f conftest.$ac_objext conftest$ac_exeext
21988 if { (ac_try="$ac_link"
21989 case "(($ac_try" in
21990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991   *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994   (eval "$ac_link") 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } &&
22001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22002   { (case "(($ac_try" in
22003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004   *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007   (eval "$ac_try") 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; } &&
22011          { ac_try='test -s conftest$ac_exeext'
22012   { (case "(($ac_try" in
22013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014   *) ac_try_echo=$ac_try;;
22015 esac
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017   (eval "$ac_try") 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; }; then
22021   eval "$as_ac_var=yes"
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026         eval "$as_ac_var=no"
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext \
22030       conftest$ac_exeext conftest.$ac_ext
22031 fi
22032 ac_res=`eval echo '${'$as_ac_var'}'`
22033                { echo "$as_me:$LINENO: result: $ac_res" >&5
22034 echo "${ECHO_T}$ac_res" >&6; }
22035 if test `eval echo '${'$as_ac_var'}'` = yes; then
22036   cat >>confdefs.h <<_ACEOF
22037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22038 _ACEOF
22039
22040 fi
22041 done
22042
22043
22044 SHLIBEXT=$libltdl_cv_shlibext
22045
22046
22047 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22048
22049
22050 if test "${prefix}" = "NONE" ; then
22051   prefix="/usr/local"
22052 fi
22053 eval LLVM_PREFIX="${prefix}";
22054 eval LLVM_BINDIR="${prefix}/bin";
22055 eval LLVM_DATADIR="${prefix}/share/llvm";
22056 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22057 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22058 eval LLVM_INCLUDEDIR="${prefix}/include";
22059 eval LLVM_INFODIR="${prefix}/info";
22060 eval LLVM_MANDIR="${prefix}/man";
22061 LLVM_CONFIGTIME=`date`
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22073   LLVM_CONFIGTIME="(timestamp not enabled)"
22074 fi
22075
22076
22077 cat >>confdefs.h <<_ACEOF
22078 #define LLVM_PREFIX "$LLVM_PREFIX"
22079 _ACEOF
22080
22081
22082 cat >>confdefs.h <<_ACEOF
22083 #define LLVM_BINDIR "$LLVM_BINDIR"
22084 _ACEOF
22085
22086
22087 cat >>confdefs.h <<_ACEOF
22088 #define LLVM_DATADIR "$LLVM_DATADIR"
22089 _ACEOF
22090
22091
22092 cat >>confdefs.h <<_ACEOF
22093 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22094 _ACEOF
22095
22096
22097 cat >>confdefs.h <<_ACEOF
22098 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22099 _ACEOF
22100
22101
22102 cat >>confdefs.h <<_ACEOF
22103 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22104 _ACEOF
22105
22106
22107 cat >>confdefs.h <<_ACEOF
22108 #define LLVM_INFODIR "$LLVM_INFODIR"
22109 _ACEOF
22110
22111
22112 cat >>confdefs.h <<_ACEOF
22113 #define LLVM_MANDIR "$LLVM_MANDIR"
22114 _ACEOF
22115
22116
22117 cat >>confdefs.h <<_ACEOF
22118 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22119 _ACEOF
22120
22121
22122 cat >>confdefs.h <<_ACEOF
22123 #define LLVM_HOST_TRIPLE "$host"
22124 _ACEOF
22125
22126
22127 cat >>confdefs.h <<_ACEOF
22128 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22129 _ACEOF
22130
22131
22132 if test "$BINDINGS_TO_BUILD" = auto ; then
22133   BINDINGS_TO_BUILD=""
22134   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22135     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22136   fi
22137 fi
22138 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22139
22140
22141 ALL_BINDINGS=ocaml
22142
22143
22144 binding_prereqs_failed=0
22145 for a_binding in $BINDINGS_TO_BUILD ; do
22146   case "$a_binding" in
22147   ocaml)
22148     if test "x$OCAMLC" = x ; then
22149       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22151       binding_prereqs_failed=1
22152     fi
22153     if test "x$OCAMLDEP" = x ; then
22154       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22155 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22156       binding_prereqs_failed=1
22157     fi
22158     if test "x$OCAMLOPT" = x ; then
22159       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22160 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22161           fi
22162     if test "x$with_ocaml_libdir" != xauto ; then
22163       OCAML_LIBDIR=$with_ocaml_libdir
22164
22165     else
22166       ocaml_stdlib="`"$OCAMLC" -where`"
22167       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22168       then
22169         # ocaml stdlib is beneath our prefix; use stdlib
22170         OCAML_LIBDIR=$ocaml_stdlib
22171
22172       else
22173         # ocaml stdlib is outside our prefix; use libdir/ocaml
22174         OCAML_LIBDIR=${prefix}/lib/ocaml
22175
22176       fi
22177     fi
22178     ;;
22179   esac
22180 done
22181 if test "$binding_prereqs_failed" = 1 ; then
22182   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22183 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22184    { (exit 1); exit 1; }; }
22185 fi
22186
22187 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22188 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22189 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192    ac_ext=cpp
22193 ac_cpp='$CXXCPP $CPPFLAGS'
22194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22197
22198   oldcxxflags="$CXXFLAGS"
22199   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22200   cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22207 int
22208 main ()
22209 {
22210 X<int>().f();
22211   ;
22212   return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222   (eval "$ac_compile") 2>conftest.er1
22223   ac_status=$?
22224   grep -v '^ *+' conftest.er1 >conftest.err
22225   rm -f conftest.er1
22226   cat conftest.err >&5
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); } &&
22229          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22230   { (case "(($ac_try" in
22231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232   *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235   (eval "$ac_try") 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; } &&
22239          { ac_try='test -s conftest.$ac_objext'
22240   { (case "(($ac_try" in
22241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242   *) ac_try_echo=$ac_try;;
22243 esac
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245   (eval "$ac_try") 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); }; }; then
22249   llvm_cv_cxx_visibility_inlines_hidden=yes
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254         llvm_cv_cxx_visibility_inlines_hidden=no
22255 fi
22256
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258   CXXFLAGS="$oldcxxflags"
22259   ac_ext=c
22260 ac_cpp='$CPP $CPPFLAGS'
22261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22264
22265
22266 fi
22267 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22268 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22269 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22270   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22271
22272 else
22273   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22274
22275 fi
22276
22277
22278 if test "$llvm_cv_link_use_r" = "yes" ; then
22279   RPATH="-Wl,-R"
22280 else
22281   RPATH="-Wl,-rpath"
22282 fi
22283
22284
22285 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22286   RDYNAMIC="-rdynamic"
22287 else
22288   RDYNAMIC=""
22289 fi
22290
22291
22292
22293 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22294
22295
22296
22297
22298
22299
22300 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22301
22302 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22303
22304 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22305
22306 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22307
22308 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22309
22310
22311 ac_config_files="$ac_config_files Makefile.config"
22312
22313
22314 ac_config_files="$ac_config_files llvm.spec"
22315
22316
22317 ac_config_files="$ac_config_files docs/doxygen.cfg"
22318
22319
22320 if test "${clang_src_root}" = ""; then
22321   clang_src_root="$srcdir/tools/clang"
22322 fi
22323 if test -f ${clang_src_root}/README.txt; then
22324     configh="include/clang/Config/config.h"
22325   doxy="docs/doxygen.cfg"
22326   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22327
22328   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22329
22330 fi
22331
22332 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22333
22334
22335 test "x$program_prefix" = "xNONE" && program_prefix=""
22336
22337
22338
22339 ac_config_commands="$ac_config_commands setup"
22340
22341 ac_config_commands="$ac_config_commands Makefile"
22342
22343
22344 ac_config_commands="$ac_config_commands Makefile.common"
22345
22346
22347 ac_config_commands="$ac_config_commands examples/Makefile"
22348
22349
22350 ac_config_commands="$ac_config_commands lib/Makefile"
22351
22352
22353 ac_config_commands="$ac_config_commands test/Makefile"
22354
22355
22356 ac_config_commands="$ac_config_commands test/Makefile.tests"
22357
22358
22359 ac_config_commands="$ac_config_commands unittests/Makefile"
22360
22361
22362 ac_config_commands="$ac_config_commands tools/Makefile"
22363
22364
22365 ac_config_commands="$ac_config_commands utils/Makefile"
22366
22367
22368 ac_config_commands="$ac_config_commands projects/Makefile"
22369
22370
22371 ac_config_commands="$ac_config_commands bindings/Makefile"
22372
22373
22374 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22375
22376
22377
22378 cat >confcache <<\_ACEOF
22379 # This file is a shell script that caches the results of configure
22380 # tests run on this system so they can be shared between configure
22381 # scripts and configure runs, see configure's option --config-cache.
22382 # It is not useful on other systems.  If it contains results you don't
22383 # want to keep, you may remove or edit it.
22384 #
22385 # config.status only pays attention to the cache file if you give it
22386 # the --recheck option to rerun configure.
22387 #
22388 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22390 # following values.
22391
22392 _ACEOF
22393
22394 # The following way of writing the cache mishandles newlines in values,
22395 # but we know of no workaround that is simple, portable, and efficient.
22396 # So, we kill variables containing newlines.
22397 # Ultrix sh set writes to stderr and can't be redirected directly,
22398 # and sets the high bit in the cache file unless we assign to the vars.
22399 (
22400   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22401     eval ac_val=\$$ac_var
22402     case $ac_val in #(
22403     *${as_nl}*)
22404       case $ac_var in #(
22405       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22406 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22407       esac
22408       case $ac_var in #(
22409       _ | IFS | as_nl) ;; #(
22410       *) $as_unset $ac_var ;;
22411       esac ;;
22412     esac
22413   done
22414
22415   (set) 2>&1 |
22416     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22417     *${as_nl}ac_space=\ *)
22418       # `set' does not quote correctly, so add quotes (double-quote
22419       # substitution turns \\\\ into \\, and sed turns \\ into \).
22420       sed -n \
22421         "s/'/'\\\\''/g;
22422           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22423       ;; #(
22424     *)
22425       # `set' quotes correctly as required by POSIX, so do not add quotes.
22426       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22427       ;;
22428     esac |
22429     sort
22430 ) |
22431   sed '
22432      /^ac_cv_env_/b end
22433      t clear
22434      :clear
22435      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22436      t end
22437      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22438      :end' >>confcache
22439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22440   if test -w "$cache_file"; then
22441     test "x$cache_file" != "x/dev/null" &&
22442       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22443 echo "$as_me: updating cache $cache_file" >&6;}
22444     cat confcache >$cache_file
22445   else
22446     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22447 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22448   fi
22449 fi
22450 rm -f confcache
22451
22452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22453 # Let make expand exec_prefix.
22454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22455
22456 DEFS=-DHAVE_CONFIG_H
22457
22458 ac_libobjs=
22459 ac_ltlibobjs=
22460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22461   # 1. Remove the extension, and $U if already installed.
22462   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22463   ac_i=`echo "$ac_i" | sed "$ac_script"`
22464   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22465   #    will be set to the directory where LIBOBJS objects are built.
22466   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22467   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22468 done
22469 LIBOBJS=$ac_libobjs
22470
22471 LTLIBOBJS=$ac_ltlibobjs
22472
22473
22474 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22475   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22476 Usually this means the macro was only invoked conditionally." >&5
22477 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22478 Usually this means the macro was only invoked conditionally." >&2;}
22479    { (exit 1); exit 1; }; }
22480 fi
22481 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22482   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&5
22484 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22485 Usually this means the macro was only invoked conditionally." >&2;}
22486    { (exit 1); exit 1; }; }
22487 fi
22488
22489 : ${CONFIG_STATUS=./config.status}
22490 ac_clean_files_save=$ac_clean_files
22491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22494 cat >$CONFIG_STATUS <<_ACEOF
22495 #! $SHELL
22496 # Generated by $as_me.
22497 # Run this file to recreate the current configuration.
22498 # Compiler output produced by configure, useful for debugging
22499 # configure, is in config.log if it exists.
22500
22501 debug=false
22502 ac_cs_recheck=false
22503 ac_cs_silent=false
22504 SHELL=\${CONFIG_SHELL-$SHELL}
22505 _ACEOF
22506
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 ## --------------------- ##
22509 ## M4sh Initialization.  ##
22510 ## --------------------- ##
22511
22512 # Be Bourne compatible
22513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22514   emulate sh
22515   NULLCMD=:
22516   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22517   # is contrary to our usage.  Disable this feature.
22518   alias -g '${1+"$@"}'='"$@"'
22519   setopt NO_GLOB_SUBST
22520 else
22521   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22522 fi
22523 BIN_SH=xpg4; export BIN_SH # for Tru64
22524 DUALCASE=1; export DUALCASE # for MKS sh
22525
22526
22527 # PATH needs CR
22528 # Avoid depending upon Character Ranges.
22529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22532 as_cr_digits='0123456789'
22533 as_cr_alnum=$as_cr_Letters$as_cr_digits
22534
22535 # The user is always right.
22536 if test "${PATH_SEPARATOR+set}" != set; then
22537   echo "#! /bin/sh" >conf$$.sh
22538   echo  "exit 0"   >>conf$$.sh
22539   chmod +x conf$$.sh
22540   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22541     PATH_SEPARATOR=';'
22542   else
22543     PATH_SEPARATOR=:
22544   fi
22545   rm -f conf$$.sh
22546 fi
22547
22548 # Support unset when possible.
22549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22550   as_unset=unset
22551 else
22552   as_unset=false
22553 fi
22554
22555
22556 # IFS
22557 # We need space, tab and new line, in precisely that order.  Quoting is
22558 # there to prevent editors from complaining about space-tab.
22559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22560 # splitting by setting IFS to empty value.)
22561 as_nl='
22562 '
22563 IFS=" ""        $as_nl"
22564
22565 # Find who we are.  Look in the path if we contain no directory separator.
22566 case $0 in
22567   *[\\/]* ) as_myself=$0 ;;
22568   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22569 for as_dir in $PATH
22570 do
22571   IFS=$as_save_IFS
22572   test -z "$as_dir" && as_dir=.
22573   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22574 done
22575 IFS=$as_save_IFS
22576
22577      ;;
22578 esac
22579 # We did not find ourselves, most probably we were run as `sh COMMAND'
22580 # in which case we are not to be found in the path.
22581 if test "x$as_myself" = x; then
22582   as_myself=$0
22583 fi
22584 if test ! -f "$as_myself"; then
22585   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22586   { (exit 1); exit 1; }
22587 fi
22588
22589 # Work around bugs in pre-3.0 UWIN ksh.
22590 for as_var in ENV MAIL MAILPATH
22591 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22592 done
22593 PS1='$ '
22594 PS2='> '
22595 PS4='+ '
22596
22597 # NLS nuisances.
22598 for as_var in \
22599   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22600   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22601   LC_TELEPHONE LC_TIME
22602 do
22603   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22604     eval $as_var=C; export $as_var
22605   else
22606     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22607   fi
22608 done
22609
22610 # Required to use basename.
22611 if expr a : '\(a\)' >/dev/null 2>&1 &&
22612    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22613   as_expr=expr
22614 else
22615   as_expr=false
22616 fi
22617
22618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22619   as_basename=basename
22620 else
22621   as_basename=false
22622 fi
22623
22624
22625 # Name of the executable.
22626 as_me=`$as_basename -- "$0" ||
22627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22628          X"$0" : 'X\(//\)$' \| \
22629          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22630 echo X/"$0" |
22631     sed '/^.*\/\([^/][^/]*\)\/*$/{
22632             s//\1/
22633             q
22634           }
22635           /^X\/\(\/\/\)$/{
22636             s//\1/
22637             q
22638           }
22639           /^X\/\(\/\).*/{
22640             s//\1/
22641             q
22642           }
22643           s/.*/./; q'`
22644
22645 # CDPATH.
22646 $as_unset CDPATH
22647
22648
22649
22650   as_lineno_1=$LINENO
22651   as_lineno_2=$LINENO
22652   test "x$as_lineno_1" != "x$as_lineno_2" &&
22653   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22654
22655   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22656   # uniformly replaced by the line number.  The first 'sed' inserts a
22657   # line-number line after each line using $LINENO; the second 'sed'
22658   # does the real work.  The second script uses 'N' to pair each
22659   # line-number line with the line containing $LINENO, and appends
22660   # trailing '-' during substitution so that $LINENO is not a special
22661   # case at line end.
22662   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22663   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22664   # E. McMahon (1931-1989) for sed's syntax.  :-)
22665   sed -n '
22666     p
22667     /[$]LINENO/=
22668   ' <$as_myself |
22669     sed '
22670       s/[$]LINENO.*/&-/
22671       t lineno
22672       b
22673       :lineno
22674       N
22675       :loop
22676       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22677       t loop
22678       s/-\n.*//
22679     ' >$as_me.lineno &&
22680   chmod +x "$as_me.lineno" ||
22681     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22682    { (exit 1); exit 1; }; }
22683
22684   # Don't try to exec as it changes $[0], causing all sort of problems
22685   # (the dirname of $[0] is not the place where we might find the
22686   # original and so on.  Autoconf is especially sensitive to this).
22687   . "./$as_me.lineno"
22688   # Exit status is that of the last command.
22689   exit
22690 }
22691
22692
22693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22694   as_dirname=dirname
22695 else
22696   as_dirname=false
22697 fi
22698
22699 ECHO_C= ECHO_N= ECHO_T=
22700 case `echo -n x` in
22701 -n*)
22702   case `echo 'x\c'` in
22703   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22704   *)   ECHO_C='\c';;
22705   esac;;
22706 *)
22707   ECHO_N='-n';;
22708 esac
22709
22710 if expr a : '\(a\)' >/dev/null 2>&1 &&
22711    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22712   as_expr=expr
22713 else
22714   as_expr=false
22715 fi
22716
22717 rm -f conf$$ conf$$.exe conf$$.file
22718 if test -d conf$$.dir; then
22719   rm -f conf$$.dir/conf$$.file
22720 else
22721   rm -f conf$$.dir
22722   mkdir conf$$.dir
22723 fi
22724 echo >conf$$.file
22725 if ln -s conf$$.file conf$$ 2>/dev/null; then
22726   as_ln_s='ln -s'
22727   # ... but there are two gotchas:
22728   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22729   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22730   # In both cases, we have to default to `cp -p'.
22731   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22732     as_ln_s='cp -p'
22733 elif ln conf$$.file conf$$ 2>/dev/null; then
22734   as_ln_s=ln
22735 else
22736   as_ln_s='cp -p'
22737 fi
22738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22739 rmdir conf$$.dir 2>/dev/null
22740
22741 if mkdir -p . 2>/dev/null; then
22742   as_mkdir_p=:
22743 else
22744   test -d ./-p && rmdir ./-p
22745   as_mkdir_p=false
22746 fi
22747
22748 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22749 # systems may use methods other than mode bits to determine executability.
22750 cat >conf$$.file <<_ASEOF
22751 #! /bin/sh
22752 exit 0
22753 _ASEOF
22754 chmod +x conf$$.file
22755 if test -x conf$$.file >/dev/null 2>&1; then
22756   as_executable_p="test -x"
22757 else
22758   as_executable_p=:
22759 fi
22760 rm -f conf$$.file
22761
22762 # Sed expression to map a string onto a valid CPP name.
22763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22764
22765 # Sed expression to map a string onto a valid variable name.
22766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22767
22768
22769 exec 6>&1
22770
22771 # Save the log message, to keep $[0] and so on meaningful, and to
22772 # report actual input values of CONFIG_FILES etc. instead of their
22773 # values after options handling.
22774 ac_log="
22775 This file was extended by LLVM $as_me 3.5svn, which was
22776 generated by GNU Autoconf 2.60.  Invocation command line was
22777
22778   CONFIG_FILES    = $CONFIG_FILES
22779   CONFIG_HEADERS  = $CONFIG_HEADERS
22780   CONFIG_LINKS    = $CONFIG_LINKS
22781   CONFIG_COMMANDS = $CONFIG_COMMANDS
22782   $ $0 $@
22783
22784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22785 "
22786
22787 _ACEOF
22788
22789 cat >>$CONFIG_STATUS <<_ACEOF
22790 # Files that config.status was made for.
22791 config_files="$ac_config_files"
22792 config_headers="$ac_config_headers"
22793 config_commands="$ac_config_commands"
22794
22795 _ACEOF
22796
22797 cat >>$CONFIG_STATUS <<\_ACEOF
22798 ac_cs_usage="\
22799 \`$as_me' instantiates files from templates according to the
22800 current configuration.
22801
22802 Usage: $0 [OPTIONS] [FILE]...
22803
22804   -h, --help       print this help, then exit
22805   -V, --version    print version number, then exit
22806   -q, --quiet      do not print progress messages
22807   -d, --debug      don't remove temporary files
22808       --recheck    update $as_me by reconfiguring in the same conditions
22809   --file=FILE[:TEMPLATE]
22810                    instantiate the configuration file FILE
22811   --header=FILE[:TEMPLATE]
22812                    instantiate the configuration header FILE
22813
22814 Configuration files:
22815 $config_files
22816
22817 Configuration headers:
22818 $config_headers
22819
22820 Configuration commands:
22821 $config_commands
22822
22823 Report bugs to <bug-autoconf@gnu.org>."
22824
22825 _ACEOF
22826 cat >>$CONFIG_STATUS <<_ACEOF
22827 ac_cs_version="\\
22828 LLVM config.status 3.5svn
22829 configured by $0, generated by GNU Autoconf 2.60,
22830   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22831
22832 Copyright (C) 2006 Free Software Foundation, Inc.
22833 This config.status script is free software; the Free Software Foundation
22834 gives unlimited permission to copy, distribute and modify it."
22835
22836 ac_pwd='$ac_pwd'
22837 srcdir='$srcdir'
22838 INSTALL='$INSTALL'
22839 _ACEOF
22840
22841 cat >>$CONFIG_STATUS <<\_ACEOF
22842 # If no file are specified by the user, then we need to provide default
22843 # value.  By we need to know if files were specified by the user.
22844 ac_need_defaults=:
22845 while test $# != 0
22846 do
22847   case $1 in
22848   --*=*)
22849     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22850     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22851     ac_shift=:
22852     ;;
22853   *)
22854     ac_option=$1
22855     ac_optarg=$2
22856     ac_shift=shift
22857     ;;
22858   esac
22859
22860   case $ac_option in
22861   # Handling of the options.
22862   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22863     ac_cs_recheck=: ;;
22864   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22865     echo "$ac_cs_version"; exit ;;
22866   --debug | --debu | --deb | --de | --d | -d )
22867     debug=: ;;
22868   --file | --fil | --fi | --f )
22869     $ac_shift
22870     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22871     ac_need_defaults=false;;
22872   --header | --heade | --head | --hea )
22873     $ac_shift
22874     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22875     ac_need_defaults=false;;
22876   --he | --h)
22877     # Conflict between --help and --header
22878     { echo "$as_me: error: ambiguous option: $1
22879 Try \`$0 --help' for more information." >&2
22880    { (exit 1); exit 1; }; };;
22881   --help | --hel | -h )
22882     echo "$ac_cs_usage"; exit ;;
22883   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22884   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22885     ac_cs_silent=: ;;
22886
22887   # This is an error.
22888   -*) { echo "$as_me: error: unrecognized option: $1
22889 Try \`$0 --help' for more information." >&2
22890    { (exit 1); exit 1; }; } ;;
22891
22892   *) ac_config_targets="$ac_config_targets $1"
22893      ac_need_defaults=false ;;
22894
22895   esac
22896   shift
22897 done
22898
22899 ac_configure_extra_args=
22900
22901 if $ac_cs_silent; then
22902   exec 6>/dev/null
22903   ac_configure_extra_args="$ac_configure_extra_args --silent"
22904 fi
22905
22906 _ACEOF
22907 cat >>$CONFIG_STATUS <<_ACEOF
22908 if \$ac_cs_recheck; then
22909   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22910   CONFIG_SHELL=$SHELL
22911   export CONFIG_SHELL
22912   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22913 fi
22914
22915 _ACEOF
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 exec 5>>config.log
22918 {
22919   echo
22920   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22921 ## Running $as_me. ##
22922 _ASBOX
22923   echo "$ac_log"
22924 } >&5
22925
22926 _ACEOF
22927 cat >>$CONFIG_STATUS <<_ACEOF
22928 #
22929 # INIT-COMMANDS
22930 #
22931 llvm_src="${srcdir}"
22932
22933 _ACEOF
22934
22935 cat >>$CONFIG_STATUS <<\_ACEOF
22936
22937 # Handling of arguments.
22938 for ac_config_target in $ac_config_targets
22939 do
22940   case $ac_config_target in
22941     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22942     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22943     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22944     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22945     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22946     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22947     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22948     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22949     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22950     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22951     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22952     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22953     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22954     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22955     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22956     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22957     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22958     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22959     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22960     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22961     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22962     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22963     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22964     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22965     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22966     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22967
22968   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22970    { (exit 1); exit 1; }; };;
22971   esac
22972 done
22973
22974
22975 # If the user did not use the arguments to specify the items to instantiate,
22976 # then the envvar interface is used.  Set only those that are not.
22977 # We use the long form for the default assignment because of an extremely
22978 # bizarre bug on SunOS 4.1.3.
22979 if $ac_need_defaults; then
22980   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22981   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22982   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22983 fi
22984
22985 # Have a temporary directory for convenience.  Make it in the build tree
22986 # simply because there is no reason against having it here, and in addition,
22987 # creating and moving files from /tmp can sometimes cause problems.
22988 # Hook for its removal unless debugging.
22989 # Note that there is a small window in which the directory will not be cleaned:
22990 # after its creation but before its name has been assigned to `$tmp'.
22991 $debug ||
22992 {
22993   tmp=
22994   trap 'exit_status=$?
22995   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22996 ' 0
22997   trap '{ (exit 1); exit 1; }' 1 2 13 15
22998 }
22999 # Create a (secure) tmp directory for tmp files.
23000
23001 {
23002   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23003   test -n "$tmp" && test -d "$tmp"
23004 }  ||
23005 {
23006   tmp=./conf$$-$RANDOM
23007   (umask 077 && mkdir "$tmp")
23008 } ||
23009 {
23010    echo "$me: cannot create a temporary directory in ." >&2
23011    { (exit 1); exit 1; }
23012 }
23013
23014 #
23015 # Set up the sed scripts for CONFIG_FILES section.
23016 #
23017
23018 # No need to generate the scripts if there are no CONFIG_FILES.
23019 # This happens for instance when ./config.status config.h
23020 if test -n "$CONFIG_FILES"; then
23021
23022 _ACEOF
23023
23024
23025
23026 ac_delim='%!_!# '
23027 for ac_last_try in false false false false false :; do
23028   cat >conf$$subs.sed <<_ACEOF
23029 SHELL!$SHELL$ac_delim
23030 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23031 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23032 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23033 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23034 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23035 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23036 exec_prefix!$exec_prefix$ac_delim
23037 prefix!$prefix$ac_delim
23038 program_transform_name!$program_transform_name$ac_delim
23039 bindir!$bindir$ac_delim
23040 sbindir!$sbindir$ac_delim
23041 libexecdir!$libexecdir$ac_delim
23042 datarootdir!$datarootdir$ac_delim
23043 datadir!$datadir$ac_delim
23044 sysconfdir!$sysconfdir$ac_delim
23045 sharedstatedir!$sharedstatedir$ac_delim
23046 localstatedir!$localstatedir$ac_delim
23047 includedir!$includedir$ac_delim
23048 oldincludedir!$oldincludedir$ac_delim
23049 docdir!$docdir$ac_delim
23050 infodir!$infodir$ac_delim
23051 htmldir!$htmldir$ac_delim
23052 dvidir!$dvidir$ac_delim
23053 pdfdir!$pdfdir$ac_delim
23054 psdir!$psdir$ac_delim
23055 libdir!$libdir$ac_delim
23056 localedir!$localedir$ac_delim
23057 mandir!$mandir$ac_delim
23058 DEFS!$DEFS$ac_delim
23059 ECHO_C!$ECHO_C$ac_delim
23060 ECHO_N!$ECHO_N$ac_delim
23061 ECHO_T!$ECHO_T$ac_delim
23062 LIBS!$LIBS$ac_delim
23063 build_alias!$build_alias$ac_delim
23064 host_alias!$host_alias$ac_delim
23065 target_alias!$target_alias$ac_delim
23066 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23067 CC!$CC$ac_delim
23068 CFLAGS!$CFLAGS$ac_delim
23069 LDFLAGS!$LDFLAGS$ac_delim
23070 CPPFLAGS!$CPPFLAGS$ac_delim
23071 ac_ct_CC!$ac_ct_CC$ac_delim
23072 EXEEXT!$EXEEXT$ac_delim
23073 OBJEXT!$OBJEXT$ac_delim
23074 CXX!$CXX$ac_delim
23075 CXXFLAGS!$CXXFLAGS$ac_delim
23076 ac_ct_CXX!$ac_ct_CXX$ac_delim
23077 CPP!$CPP$ac_delim
23078 subdirs!$subdirs$ac_delim
23079 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23080 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23081 build!$build$ac_delim
23082 build_cpu!$build_cpu$ac_delim
23083 build_vendor!$build_vendor$ac_delim
23084 build_os!$build_os$ac_delim
23085 host!$host$ac_delim
23086 host_cpu!$host_cpu$ac_delim
23087 host_vendor!$host_vendor$ac_delim
23088 host_os!$host_os$ac_delim
23089 target!$target$ac_delim
23090 target_cpu!$target_cpu$ac_delim
23091 target_vendor!$target_vendor$ac_delim
23092 target_os!$target_os$ac_delim
23093 OS!$OS$ac_delim
23094 HOST_OS!$HOST_OS$ac_delim
23095 TARGET_OS!$TARGET_OS$ac_delim
23096 LINKALL!$LINKALL$ac_delim
23097 NOLINKALL!$NOLINKALL$ac_delim
23098 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23099 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23100 ARCH!$ARCH$ac_delim
23101 HOST_ARCH!$HOST_ARCH$ac_delim
23102 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23103 BUILD_CC!$BUILD_CC$ac_delim
23104 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23105 BUILD_CXX!$BUILD_CXX$ac_delim
23106 CVSBUILD!$CVSBUILD$ac_delim
23107 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23108 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23109 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23110 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23111 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23112 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23113 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23114 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23115 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23116 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23117 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23118 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23119 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23120 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23121 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23122 JIT!$JIT$ac_delim
23123 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23124 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23125 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23126 _ACEOF
23127
23128   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23129     break
23130   elif $ac_last_try; then
23131     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23133    { (exit 1); exit 1; }; }
23134   else
23135     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23136   fi
23137 done
23138
23139 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23140 if test -n "$ac_eof"; then
23141   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23142   ac_eof=`expr $ac_eof + 1`
23143 fi
23144
23145 cat >>$CONFIG_STATUS <<_ACEOF
23146 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23148 _ACEOF
23149 sed '
23150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23151 s/^/s,@/; s/!/@,|#_!!_#|/
23152 :n
23153 t n
23154 s/'"$ac_delim"'$/,g/; t
23155 s/$/\\/; p
23156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23157 ' >>$CONFIG_STATUS <conf$$subs.sed
23158 rm -f conf$$subs.sed
23159 cat >>$CONFIG_STATUS <<_ACEOF
23160 CEOF$ac_eof
23161 _ACEOF
23162
23163
23164 ac_delim='%!_!# '
23165 for ac_last_try in false false false false false :; do
23166   cat >conf$$subs.sed <<_ACEOF
23167 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23168 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23169 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23170 ENABLE_PIC!$ENABLE_PIC$ac_delim
23171 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23172 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23173 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23174 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23175 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23176 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23177 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23178 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23179 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23180 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23181 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23182 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23183 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23184 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23185 NM!$NM$ac_delim
23186 ifGNUmake!$ifGNUmake$ac_delim
23187 LN_S!$LN_S$ac_delim
23188 CMP!$CMP$ac_delim
23189 CP!$CP$ac_delim
23190 DATE!$DATE$ac_delim
23191 FIND!$FIND$ac_delim
23192 GREP!$GREP$ac_delim
23193 MKDIR!$MKDIR$ac_delim
23194 MV!$MV$ac_delim
23195 RANLIB!$RANLIB$ac_delim
23196 AR!$AR$ac_delim
23197 RM!$RM$ac_delim
23198 SED!$SED$ac_delim
23199 TAR!$TAR$ac_delim
23200 BINPWD!$BINPWD$ac_delim
23201 GRAPHVIZ!$GRAPHVIZ$ac_delim
23202 DOT!$DOT$ac_delim
23203 FDP!$FDP$ac_delim
23204 NEATO!$NEATO$ac_delim
23205 TWOPI!$TWOPI$ac_delim
23206 CIRCO!$CIRCO$ac_delim
23207 GV!$GV$ac_delim
23208 DOTTY!$DOTTY$ac_delim
23209 XDOT!$XDOT$ac_delim
23210 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23211 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23212 INSTALL_DATA!$INSTALL_DATA$ac_delim
23213 BZIP2!$BZIP2$ac_delim
23214 CAT!$CAT$ac_delim
23215 DOXYGEN!$DOXYGEN$ac_delim
23216 GROFF!$GROFF$ac_delim
23217 GZIPBIN!$GZIPBIN$ac_delim
23218 PDFROFF!$PDFROFF$ac_delim
23219 ZIP!$ZIP$ac_delim
23220 OCAMLC!$OCAMLC$ac_delim
23221 OCAMLOPT!$OCAMLOPT$ac_delim
23222 OCAMLDEP!$OCAMLDEP$ac_delim
23223 OCAMLDOC!$OCAMLDOC$ac_delim
23224 GAS!$GAS$ac_delim
23225 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23226 EGREP!$EGREP$ac_delim
23227 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23228 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23229 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23230 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23231 LIBADD_DL!$LIBADD_DL$ac_delim
23232 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23233 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23234 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23235 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23236 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23237 PYTHON!$PYTHON$ac_delim
23238 USE_UDIS86!$USE_UDIS86$ac_delim
23239 USE_OPROFILE!$USE_OPROFILE$ac_delim
23240 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23241 XML2CONFIG!$XML2CONFIG$ac_delim
23242 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23243 LIBXML2_INC!$LIBXML2_INC$ac_delim
23244 CXXCPP!$CXXCPP$ac_delim
23245 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23246 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23247 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23248 MMAP_FILE!$MMAP_FILE$ac_delim
23249 SHLIBEXT!$SHLIBEXT$ac_delim
23250 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23251 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23252 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23253 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23254 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23255 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23256 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23257 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23258 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23259 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23260 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23261 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23262 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23263 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23264 _ACEOF
23265
23266   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23267     break
23268   elif $ac_last_try; then
23269     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23270 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23271    { (exit 1); exit 1; }; }
23272   else
23273     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23274   fi
23275 done
23276
23277 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23278 if test -n "$ac_eof"; then
23279   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23280   ac_eof=`expr $ac_eof + 1`
23281 fi
23282
23283 cat >>$CONFIG_STATUS <<_ACEOF
23284 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23286 _ACEOF
23287 sed '
23288 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23289 s/^/s,@/; s/!/@,|#_!!_#|/
23290 :n
23291 t n
23292 s/'"$ac_delim"'$/,g/; t
23293 s/$/\\/; p
23294 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23295 ' >>$CONFIG_STATUS <conf$$subs.sed
23296 rm -f conf$$subs.sed
23297 cat >>$CONFIG_STATUS <<_ACEOF
23298 CEOF$ac_eof
23299 _ACEOF
23300
23301
23302 ac_delim='%!_!# '
23303 for ac_last_try in false false false false false :; do
23304   cat >conf$$subs.sed <<_ACEOF
23305 RPATH!$RPATH$ac_delim
23306 RDYNAMIC!$RDYNAMIC$ac_delim
23307 program_prefix!$program_prefix$ac_delim
23308 LIBOBJS!$LIBOBJS$ac_delim
23309 LTLIBOBJS!$LTLIBOBJS$ac_delim
23310 _ACEOF
23311
23312   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23313     break
23314   elif $ac_last_try; then
23315     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23316 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23317    { (exit 1); exit 1; }; }
23318   else
23319     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23320   fi
23321 done
23322
23323 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23324 if test -n "$ac_eof"; then
23325   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23326   ac_eof=`expr $ac_eof + 1`
23327 fi
23328
23329 cat >>$CONFIG_STATUS <<_ACEOF
23330 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23332 _ACEOF
23333 sed '
23334 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23335 s/^/s,@/; s/!/@,|#_!!_#|/
23336 :n
23337 t n
23338 s/'"$ac_delim"'$/,g/; t
23339 s/$/\\/; p
23340 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23341 ' >>$CONFIG_STATUS <conf$$subs.sed
23342 rm -f conf$$subs.sed
23343 cat >>$CONFIG_STATUS <<_ACEOF
23344 :end
23345 s/|#_!!_#|//g
23346 CEOF$ac_eof
23347 _ACEOF
23348
23349
23350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23352 # trailing colons and then remove the whole line if VPATH becomes empty
23353 # (actually we leave an empty line to preserve line numbers).
23354 if test "x$srcdir" = x.; then
23355   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23356 s/:*\$(srcdir):*/:/
23357 s/:*\${srcdir}:*/:/
23358 s/:*@srcdir@:*/:/
23359 s/^\([^=]*=[     ]*\):*/\1/
23360 s/:*$//
23361 s/^[^=]*=[       ]*$//
23362 }'
23363 fi
23364
23365 cat >>$CONFIG_STATUS <<\_ACEOF
23366 fi # test -n "$CONFIG_FILES"
23367
23368
23369 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23370 do
23371   case $ac_tag in
23372   :[FHLC]) ac_mode=$ac_tag; continue;;
23373   esac
23374   case $ac_mode$ac_tag in
23375   :[FHL]*:*);;
23376   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23377 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23378    { (exit 1); exit 1; }; };;
23379   :[FH]-) ac_tag=-:-;;
23380   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23381   esac
23382   ac_save_IFS=$IFS
23383   IFS=:
23384   set x $ac_tag
23385   IFS=$ac_save_IFS
23386   shift
23387   ac_file=$1
23388   shift
23389
23390   case $ac_mode in
23391   :L) ac_source=$1;;
23392   :[FH])
23393     ac_file_inputs=
23394     for ac_f
23395     do
23396       case $ac_f in
23397       -) ac_f="$tmp/stdin";;
23398       *) # Look for the file first in the build tree, then in the source tree
23399          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23400          # because $ac_f cannot contain `:'.
23401          test -f "$ac_f" ||
23402            case $ac_f in
23403            [\\/$]*) false;;
23404            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23405            esac ||
23406            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23407 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23408    { (exit 1); exit 1; }; };;
23409       esac
23410       ac_file_inputs="$ac_file_inputs $ac_f"
23411     done
23412
23413     # Let's still pretend it is `configure' which instantiates (i.e., don't
23414     # use $as_me), people would be surprised to read:
23415     #    /* config.h.  Generated by config.status.  */
23416     configure_input="Generated from "`IFS=:
23417           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23418     if test x"$ac_file" != x-; then
23419       configure_input="$ac_file.  $configure_input"
23420       { echo "$as_me:$LINENO: creating $ac_file" >&5
23421 echo "$as_me: creating $ac_file" >&6;}
23422     fi
23423
23424     case $ac_tag in
23425     *:-:* | *:-) cat >"$tmp/stdin";;
23426     esac
23427     ;;
23428   esac
23429
23430   ac_dir=`$as_dirname -- "$ac_file" ||
23431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23432          X"$ac_file" : 'X\(//\)[^/]' \| \
23433          X"$ac_file" : 'X\(//\)$' \| \
23434          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23435 echo X"$ac_file" |
23436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23437             s//\1/
23438             q
23439           }
23440           /^X\(\/\/\)[^/].*/{
23441             s//\1/
23442             q
23443           }
23444           /^X\(\/\/\)$/{
23445             s//\1/
23446             q
23447           }
23448           /^X\(\/\).*/{
23449             s//\1/
23450             q
23451           }
23452           s/.*/./; q'`
23453   { as_dir="$ac_dir"
23454   case $as_dir in #(
23455   -*) as_dir=./$as_dir;;
23456   esac
23457   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23458     as_dirs=
23459     while :; do
23460       case $as_dir in #(
23461       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23462       *) as_qdir=$as_dir;;
23463       esac
23464       as_dirs="'$as_qdir' $as_dirs"
23465       as_dir=`$as_dirname -- "$as_dir" ||
23466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23467          X"$as_dir" : 'X\(//\)[^/]' \| \
23468          X"$as_dir" : 'X\(//\)$' \| \
23469          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23470 echo X"$as_dir" |
23471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23472             s//\1/
23473             q
23474           }
23475           /^X\(\/\/\)[^/].*/{
23476             s//\1/
23477             q
23478           }
23479           /^X\(\/\/\)$/{
23480             s//\1/
23481             q
23482           }
23483           /^X\(\/\).*/{
23484             s//\1/
23485             q
23486           }
23487           s/.*/./; q'`
23488       test -d "$as_dir" && break
23489     done
23490     test -z "$as_dirs" || eval "mkdir $as_dirs"
23491   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23492 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23493    { (exit 1); exit 1; }; }; }
23494   ac_builddir=.
23495
23496 case "$ac_dir" in
23497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23498 *)
23499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23500   # A ".." for each directory in $ac_dir_suffix.
23501   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23502   case $ac_top_builddir_sub in
23503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23505   esac ;;
23506 esac
23507 ac_abs_top_builddir=$ac_pwd
23508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23509 # for backward compatibility:
23510 ac_top_builddir=$ac_top_build_prefix
23511
23512 case $srcdir in
23513   .)  # We are building in place.
23514     ac_srcdir=.
23515     ac_top_srcdir=$ac_top_builddir_sub
23516     ac_abs_top_srcdir=$ac_pwd ;;
23517   [\\/]* | ?:[\\/]* )  # Absolute name.
23518     ac_srcdir=$srcdir$ac_dir_suffix;
23519     ac_top_srcdir=$srcdir
23520     ac_abs_top_srcdir=$srcdir ;;
23521   *) # Relative name.
23522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23523     ac_top_srcdir=$ac_top_build_prefix$srcdir
23524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23525 esac
23526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23527
23528
23529   case $ac_mode in
23530   :F)
23531   #
23532   # CONFIG_FILE
23533   #
23534
23535   case $INSTALL in
23536   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23537   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23538   esac
23539 _ACEOF
23540
23541 cat >>$CONFIG_STATUS <<\_ACEOF
23542 # If the template does not know about datarootdir, expand it.
23543 # FIXME: This hack should be removed a few years after 2.60.
23544 ac_datarootdir_hack=; ac_datarootdir_seen=
23545
23546 case `sed -n '/datarootdir/ {
23547   p
23548   q
23549 }
23550 /@datadir@/p
23551 /@docdir@/p
23552 /@infodir@/p
23553 /@localedir@/p
23554 /@mandir@/p
23555 ' $ac_file_inputs` in
23556 *datarootdir*) ac_datarootdir_seen=yes;;
23557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23558   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23559 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23560 _ACEOF
23561 cat >>$CONFIG_STATUS <<_ACEOF
23562   ac_datarootdir_hack='
23563   s&@datadir@&$datadir&g
23564   s&@docdir@&$docdir&g
23565   s&@infodir@&$infodir&g
23566   s&@localedir@&$localedir&g
23567   s&@mandir@&$mandir&g
23568     s&\\\${datarootdir}&$datarootdir&g' ;;
23569 esac
23570 _ACEOF
23571
23572 # Neutralize VPATH when `$srcdir' = `.'.
23573 # Shell code in configure.ac might set extrasub.
23574 # FIXME: do we really want to maintain this feature?
23575 cat >>$CONFIG_STATUS <<_ACEOF
23576   sed "$ac_vpsub
23577 $extrasub
23578 _ACEOF
23579 cat >>$CONFIG_STATUS <<\_ACEOF
23580 :t
23581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23582 s&@configure_input@&$configure_input&;t t
23583 s&@top_builddir@&$ac_top_builddir_sub&;t t
23584 s&@srcdir@&$ac_srcdir&;t t
23585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23586 s&@top_srcdir@&$ac_top_srcdir&;t t
23587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23588 s&@builddir@&$ac_builddir&;t t
23589 s&@abs_builddir@&$ac_abs_builddir&;t t
23590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23591 s&@INSTALL@&$ac_INSTALL&;t t
23592 $ac_datarootdir_hack
23593 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23594
23595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23596   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23597   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23598   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23599 which seems to be undefined.  Please make sure it is defined." >&5
23600 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23601 which seems to be undefined.  Please make sure it is defined." >&2;}
23602
23603   rm -f "$tmp/stdin"
23604   case $ac_file in
23605   -) cat "$tmp/out"; rm -f "$tmp/out";;
23606   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23607   esac
23608  ;;
23609   :H)
23610   #
23611   # CONFIG_HEADER
23612   #
23613 _ACEOF
23614
23615 # Transform confdefs.h into a sed script `conftest.defines', that
23616 # substitutes the proper values into config.h.in to produce config.h.
23617 rm -f conftest.defines conftest.tail
23618 # First, append a space to every undef/define line, to ease matching.
23619 echo 's/$/ /' >conftest.defines
23620 # Then, protect against being on the right side of a sed subst, or in
23621 # an unquoted here document, in config.status.  If some macros were
23622 # called several times there might be several #defines for the same
23623 # symbol, which is useless.  But do not sort them, since the last
23624 # AC_DEFINE must be honored.
23625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23626 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23627 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23628 # PARAMS is the parameter list in the macro definition--in most cases, it's
23629 # just an empty string.
23630 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23631 ac_dB='\\)[      (].*,\\1define\\2'
23632 ac_dC=' '
23633 ac_dD=' ,'
23634
23635 uniq confdefs.h |
23636   sed -n '
23637         t rset
23638         :rset
23639         s/^[     ]*#[    ]*define[       ][      ]*//
23640         t ok
23641         d
23642         :ok
23643         s/[\\&,]/\\&/g
23644         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23645         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23646   ' >>conftest.defines
23647
23648 # Remove the space that was appended to ease matching.
23649 # Then replace #undef with comments.  This is necessary, for
23650 # example, in the case of _POSIX_SOURCE, which is predefined and required
23651 # on some systems where configure will not decide to define it.
23652 # (The regexp can be short, since the line contains either #define or #undef.)
23653 echo 's/ $//
23654 s,^[     #]*u.*,/* & */,' >>conftest.defines
23655
23656 # Break up conftest.defines:
23657 ac_max_sed_lines=50
23658
23659 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23660 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23661 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23662 # et cetera.
23663 ac_in='$ac_file_inputs'
23664 ac_out='"$tmp/out1"'
23665 ac_nxt='"$tmp/out2"'
23666
23667 while :
23668 do
23669   # Write a here document:
23670     cat >>$CONFIG_STATUS <<_ACEOF
23671     # First, check the format of the line:
23672     cat >"\$tmp/defines.sed" <<\\CEOF
23673 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23674 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23675 b
23676 :def
23677 _ACEOF
23678   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23679   echo 'CEOF
23680     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23681   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23682   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23683   grep . conftest.tail >/dev/null || break
23684   rm -f conftest.defines
23685   mv conftest.tail conftest.defines
23686 done
23687 rm -f conftest.defines conftest.tail
23688
23689 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23690 cat >>$CONFIG_STATUS <<\_ACEOF
23691   if test x"$ac_file" != x-; then
23692     echo "/* $configure_input  */" >"$tmp/config.h"
23693     cat "$ac_result" >>"$tmp/config.h"
23694     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23695       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23696 echo "$as_me: $ac_file is unchanged" >&6;}
23697     else
23698       rm -f $ac_file
23699       mv "$tmp/config.h" $ac_file
23700     fi
23701   else
23702     echo "/* $configure_input  */"
23703     cat "$ac_result"
23704   fi
23705   rm -f "$tmp/out12"
23706  ;;
23707
23708   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23709 echo "$as_me: executing $ac_file commands" >&6;}
23710  ;;
23711   esac
23712
23713
23714   case $ac_file$ac_mode in
23715     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23716    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23717     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23718    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23719     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23720    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23721     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23722    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23723     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23724    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23725     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23726    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23727     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23728    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23729     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23730    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23731     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23732    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23733     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23734    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23735     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23736    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23737     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23738    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23739
23740   esac
23741 done # for ac_tag
23742
23743
23744 { (exit 0); exit 0; }
23745 _ACEOF
23746 chmod +x $CONFIG_STATUS
23747 ac_clean_files=$ac_clean_files_save
23748
23749
23750 # configure is writing to config.log, and then calls config.status.
23751 # config.status does its own redirection, appending to config.log.
23752 # Unfortunately, on DOS this fails, as config.log is still kept open
23753 # by configure, so config.status won't be able to write to it; its
23754 # output is simply discarded.  So we exec the FD to /dev/null,
23755 # effectively closing config.log, so it can be properly (re)opened and
23756 # appended to by config.status.  When coming back to configure, we
23757 # need to make the FD available again.
23758 if test "$no_create" != yes; then
23759   ac_cs_success=:
23760   ac_config_status_args=
23761   test "$silent" = yes &&
23762     ac_config_status_args="$ac_config_status_args --quiet"
23763   exec 5>/dev/null
23764   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23765   exec 5>>config.log
23766   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23767   # would make configure fail if this is the last instruction.
23768   $ac_cs_success || { (exit 1); exit 1; }
23769 fi
23770
23771 #
23772 # CONFIG_SUBDIRS section.
23773 #
23774 if test "$no_recursion" != yes; then
23775
23776   # Remove --cache-file and --srcdir arguments so they do not pile up.
23777   ac_sub_configure_args=
23778   ac_prev=
23779   eval "set x $ac_configure_args"
23780   shift
23781   for ac_arg
23782   do
23783     if test -n "$ac_prev"; then
23784       ac_prev=
23785       continue
23786     fi
23787     case $ac_arg in
23788     -cache-file | --cache-file | --cache-fil | --cache-fi \
23789     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23790       ac_prev=cache_file ;;
23791     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23792     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23793     | --c=*)
23794       ;;
23795     --config-cache | -C)
23796       ;;
23797     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23798       ac_prev=srcdir ;;
23799     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23800       ;;
23801     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23802       ac_prev=prefix ;;
23803     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23804       ;;
23805     *)
23806       case $ac_arg in
23807       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23808       esac
23809       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23810     esac
23811   done
23812
23813   # Always prepend --prefix to ensure using the same prefix
23814   # in subdir configurations.
23815   ac_arg="--prefix=$prefix"
23816   case $ac_arg in
23817   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23818   esac
23819   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23820
23821   ac_popdir=`pwd`
23822   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23823
23824     # Do not complain, so a configure script can configure whichever
23825     # parts of a large source tree are present.
23826     test -d "$srcdir/$ac_dir" || continue
23827
23828     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23829     echo "$as_me:$LINENO: $ac_msg" >&5
23830     echo "$ac_msg" >&6
23831     { as_dir="$ac_dir"
23832   case $as_dir in #(
23833   -*) as_dir=./$as_dir;;
23834   esac
23835   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23836     as_dirs=
23837     while :; do
23838       case $as_dir in #(
23839       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23840       *) as_qdir=$as_dir;;
23841       esac
23842       as_dirs="'$as_qdir' $as_dirs"
23843       as_dir=`$as_dirname -- "$as_dir" ||
23844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23845          X"$as_dir" : 'X\(//\)[^/]' \| \
23846          X"$as_dir" : 'X\(//\)$' \| \
23847          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23848 echo X"$as_dir" |
23849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23850             s//\1/
23851             q
23852           }
23853           /^X\(\/\/\)[^/].*/{
23854             s//\1/
23855             q
23856           }
23857           /^X\(\/\/\)$/{
23858             s//\1/
23859             q
23860           }
23861           /^X\(\/\).*/{
23862             s//\1/
23863             q
23864           }
23865           s/.*/./; q'`
23866       test -d "$as_dir" && break
23867     done
23868     test -z "$as_dirs" || eval "mkdir $as_dirs"
23869   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23870 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23871    { (exit 1); exit 1; }; }; }
23872     ac_builddir=.
23873
23874 case "$ac_dir" in
23875 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23876 *)
23877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23878   # A ".." for each directory in $ac_dir_suffix.
23879   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23880   case $ac_top_builddir_sub in
23881   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23882   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23883   esac ;;
23884 esac
23885 ac_abs_top_builddir=$ac_pwd
23886 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23887 # for backward compatibility:
23888 ac_top_builddir=$ac_top_build_prefix
23889
23890 case $srcdir in
23891   .)  # We are building in place.
23892     ac_srcdir=.
23893     ac_top_srcdir=$ac_top_builddir_sub
23894     ac_abs_top_srcdir=$ac_pwd ;;
23895   [\\/]* | ?:[\\/]* )  # Absolute name.
23896     ac_srcdir=$srcdir$ac_dir_suffix;
23897     ac_top_srcdir=$srcdir
23898     ac_abs_top_srcdir=$srcdir ;;
23899   *) # Relative name.
23900     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23901     ac_top_srcdir=$ac_top_build_prefix$srcdir
23902     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23903 esac
23904 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23905
23906
23907     cd "$ac_dir"
23908
23909     # Check for guested configure; otherwise get Cygnus style configure.
23910     if test -f "$ac_srcdir/configure.gnu"; then
23911       ac_sub_configure=$ac_srcdir/configure.gnu
23912     elif test -f "$ac_srcdir/configure"; then
23913       ac_sub_configure=$ac_srcdir/configure
23914     elif test -f "$ac_srcdir/configure.in"; then
23915       # This should be Cygnus configure.
23916       ac_sub_configure=$ac_aux_dir/configure
23917     else
23918       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23919 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23920       ac_sub_configure=
23921     fi
23922
23923     # The recursion is here.
23924     if test -n "$ac_sub_configure"; then
23925       # Make the cache file name correct relative to the subdirectory.
23926       case $cache_file in
23927       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23928       *) # Relative name.
23929         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23930       esac
23931
23932       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23933 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23934       # The eval makes quoting arguments work.
23935       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23936            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23937         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23938 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23939    { (exit 1); exit 1; }; }
23940     fi
23941
23942     cd "$ac_popdir"
23943   done
23944 fi
23945