Fix slightly too aggressive conact_vector optimization.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package| sed 's/-/_/g'`
1157     eval with_$ac_package=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1411   --enable-clang-static-analyzer
1412                           Enable building of clang Static Analyzer (default is
1413                           YES)
1414   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415   --enable-optimized      Compile with optimizations enabled (default is NO)
1416   --enable-profiling      Compile with profiling enabled (default is NO)
1417   --enable-assertions     Compile with assertion checks enabled (default is
1418                           YES)
1419   --enable-werror         Compile with -Werror enabled (default is NO)
1420   --enable-expensive-checks
1421                           Compile with expensive debug checks enabled (default
1422                           is NO)
1423   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1424                           NO)
1425   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1426                           optimization is on and YES if it's off)
1427   --enable-keep-symbols   Do not strip installed executables)
1428   --enable-jit            Enable Just In Time Compiling (default is YES)
1429   --enable-docs           Build documents (default is YES)
1430   --enable-doxygen        Build doxygen documentation (default is NO)
1431   --enable-threads        Use threads if available (default is YES)
1432   --enable-pthreads       Use pthreads if available (default is YES)
1433   --enable-zlib           Use zlib for compression/decompression if available
1434                           (default is YES)
1435   --enable-pic            Build LLVM with Position Independent Code (default
1436                           is YES)
1437   --enable-shared         Build a shared library and link tools against it
1438                           (default is NO)
1439   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1440                           Win32 DLL (default is NO)
1441   --enable-timestamps     Enable embedding timestamp information in build
1442                           (default is YES)
1443   --enable-backtraces     Enable embedding backtraces on crash (default is
1444                           YES)
1445   --enable-targets        Build specific host targets: all or
1446                           target1,target2,... Valid targets are: host, x86,
1447                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448                           xcore, msp430, nvptx, and cpp (default=all)
1449   --enable-experimental-targets
1450                           Build experimental host targets: disable or
1451                           target1,target2,... (default=disable)
1452   --enable-bindings       Build specific language bindings:
1453                           all,auto,none,{binding-name} (default=auto)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.3svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.3svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
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 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 3
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 ${CFLAGS=}
1991 ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang llvm-gcc gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang llvm-gcc gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ llvm-g++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ llvm-g++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { 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
3566 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;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580
3581
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583   subdirs="$subdirs projects/llvm-gcc"
3584
3585 fi
3586
3587 if test -d ${srcdir}/projects/test-suite ; then
3588   subdirs="$subdirs projects/test-suite"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593   subdirs="$subdirs projects/llvm-test"
3594
3595 fi
3596
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598   subdirs="$subdirs projects/poolalloc"
3599
3600 fi
3601
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603   subdirs="$subdirs projects/llvm-poolalloc"
3604
3605 fi
3606
3607 for i in `ls ${srcdir}/projects`
3608 do
3609   if test -d ${srcdir}/projects/${i} ; then
3610     case ${i} in
3611       sample)       subdirs="$subdirs projects/sample"
3612     ;;
3613       privbracket)  subdirs="$subdirs projects/privbracket"
3614  ;;
3615       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3616  ;;
3617       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3618 ;;
3619       llvm-java)    subdirs="$subdirs projects/llvm-java"
3620  ;;
3621       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3622    ;;
3623       safecode)     subdirs="$subdirs projects/safecode"
3624  ;;
3625       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3626  ;;
3627       compiler-rt)       ;;
3628       llvm-gcc)       ;;
3629       test-suite)     ;;
3630       llvm-test)      ;;
3631       poolalloc)      ;;
3632       llvm-poolalloc) ;;
3633       *)
3634         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3636         ;;
3637     esac
3638   fi
3639 done
3640
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643   enableval=$enable_polly;
3644 else
3645   enableval=default
3646 fi
3647
3648 case "$enableval" in
3649   yes) ENABLE_POLLY=1
3650  ;;
3651   no)  ENABLE_POLLY=0
3652  ;;
3653   default) ENABLE_POLLY=1
3654  ;;
3655   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657    { (exit 1); exit 1; }; } ;;
3658 esac
3659
3660
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3662   LLVM_HAS_POLLY=1
3663
3664   subdirs="$subdirs tools/polly"
3665
3666 fi
3667
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673    { (exit 1); exit 1; }; }
3674
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686    { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690    { (exit 1); exit 1; }; }
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3696 *-*-*) ;;
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699    { (exit 1); exit 1; }; };;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test "x$host_alias" = x; then
3721   ac_cv_host=$ac_cv_build
3722 else
3723   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726    { (exit 1); exit 1; }; }
3727 fi
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3732 case $ac_cv_host in
3733 *-*-*) ;;
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736    { (exit 1); exit 1; }; };;
3737 esac
3738 host=$ac_cv_host
3739 ac_save_IFS=$IFS; IFS='-'
3740 set x $ac_cv_host
3741 shift
3742 host_cpu=$1
3743 host_vendor=$2
3744 shift; shift
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3747 host_os=$*
3748 IFS=$ac_save_IFS
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test "x$target_alias" = x; then
3758   ac_cv_target=$ac_cv_host
3759 else
3760   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3770 *-*-*) ;;
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773    { (exit 1); exit 1; }; };;
3774 esac
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3777 set x $ac_cv_target
3778 shift
3779 target_cpu=$1
3780 target_vendor=$2
3781 shift; shift
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3784 target_os=$*
3785 IFS=$ac_save_IFS
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3787
3788
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792   test "$program_prefix$program_suffix$program_transform_name" = \
3793     NONENONEs,x,x, &&
3794   program_prefix=${target_alias}-
3795
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $host in
3802   *-*-aix*)
3803     llvm_cv_link_all_option="-Wl,--whole-archive"
3804     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805     llvm_cv_os_type="AIX"
3806     llvm_cv_platform_type="Unix" ;;
3807   *-*-irix*)
3808     llvm_cv_link_all_option="-Wl,--whole-archive"
3809     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810     llvm_cv_os_type="IRIX"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-cygwin*)
3813     llvm_cv_link_all_option="-Wl,--whole-archive"
3814     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815     llvm_cv_os_type="Cygwin"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-darwin*)
3818     llvm_cv_link_all_option="-Wl,-all_load"
3819     llvm_cv_no_link_all_option="-Wl,-noall_load"
3820     llvm_cv_os_type="Darwin"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-minix*)
3823     llvm_cv_link_all_option="-Wl,-all_load"
3824     llvm_cv_no_link_all_option="-Wl,-noall_load"
3825     llvm_cv_os_type="Minix"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-freebsd* | *-*-kfreebsd-gnu)
3828     llvm_cv_link_all_option="-Wl,--whole-archive"
3829     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830     llvm_cv_os_type="FreeBSD"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-openbsd*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="OpenBSD"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-netbsd*)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="NetBSD"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-dragonfly*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="DragonFly"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-hpux*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="HP-UX"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-interix*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="Interix"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-linux*)
3858     llvm_cv_link_all_option="-Wl,--whole-archive"
3859     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860     llvm_cv_os_type="Linux"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-gnu*)
3863     llvm_cv_link_all_option="-Wl,--whole-archive"
3864     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865     llvm_cv_os_type="GNU"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-solaris*)
3868     llvm_cv_link_all_option="-Wl,-z,allextract"
3869     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870     llvm_cv_os_type="SunOS"
3871     llvm_cv_platform_type="Unix" ;;
3872   *-*-auroraux*)
3873     llvm_cv_link_all_option="-Wl,-z,allextract"
3874     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875     llvm_cv_os_type="AuroraUX"
3876     llvm_cv_platform_type="Unix" ;;
3877   *-*-win32*)
3878     llvm_cv_link_all_option="-Wl,--whole-archive"
3879     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880     llvm_cv_os_type="Win32"
3881     llvm_cv_platform_type="Win32" ;;
3882   *-*-mingw*)
3883     llvm_cv_link_all_option="-Wl,--whole-archive"
3884     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885     llvm_cv_os_type="MingW"
3886     llvm_cv_platform_type="Win32" ;;
3887   *-*-haiku*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Haiku"
3891     llvm_cv_platform_type="Unix" ;;
3892   *-unknown-eabi*)
3893     llvm_cv_link_all_option="-Wl,--whole-archive"
3894     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895     llvm_cv_os_type="Freestanding"
3896     llvm_cv_platform_type="Unix" ;;
3897   *-unknown-elf*)
3898     llvm_cv_link_all_option="-Wl,--whole-archive"
3899     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900     llvm_cv_os_type="Freestanding"
3901     llvm_cv_platform_type="Unix" ;;
3902   *)
3903     llvm_cv_link_all_option=""
3904     llvm_cv_no_link_all_option=""
3905     llvm_cv_os_type="Unknown"
3906     llvm_cv_platform_type="Unknown" ;;
3907 esac
3908 fi
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3911
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $target in
3918   *-*-aix*)
3919     llvm_cv_target_os_type="AIX" ;;
3920   *-*-irix*)
3921     llvm_cv_target_os_type="IRIX" ;;
3922   *-*-cygwin*)
3923     llvm_cv_target_os_type="Cygwin" ;;
3924   *-*-darwin*)
3925     llvm_cv_target_os_type="Darwin" ;;
3926   *-*-minix*)
3927     llvm_cv_target_os_type="Minix" ;;
3928   *-*-freebsd* | *-*-kfreebsd-gnu)
3929     llvm_cv_target_os_type="FreeBSD" ;;
3930   *-*-openbsd*)
3931     llvm_cv_target_os_type="OpenBSD" ;;
3932   *-*-netbsd*)
3933     llvm_cv_target_os_type="NetBSD" ;;
3934   *-*-dragonfly*)
3935     llvm_cv_target_os_type="DragonFly" ;;
3936   *-*-hpux*)
3937     llvm_cv_target_os_type="HP-UX" ;;
3938   *-*-interix*)
3939     llvm_cv_target_os_type="Interix" ;;
3940   *-*-linux*)
3941     llvm_cv_target_os_type="Linux" ;;
3942   *-*-gnu*)
3943     llvm_cv_target_os_type="GNU" ;;
3944   *-*-solaris*)
3945     llvm_cv_target_os_type="SunOS" ;;
3946   *-*-auroraux*)
3947     llvm_cv_target_os_type="AuroraUX" ;;
3948   *-*-win32*)
3949     llvm_cv_target_os_type="Win32" ;;
3950   *-*-mingw*)
3951     llvm_cv_target_os_type="MingW" ;;
3952   *-*-haiku*)
3953     llvm_cv_target_os_type="Haiku" ;;
3954   *-*-rtems*)
3955     llvm_cv_target_os_type="RTEMS" ;;
3956   *-*-nacl*)
3957     llvm_cv_target_os_type="NativeClient" ;;
3958   *-unknown-eabi*)
3959     llvm_cv_target_os_type="Freestanding" ;;
3960   *)
3961     llvm_cv_target_os_type="Unknown" ;;
3962 esac
3963 fi
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3966
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970    { (exit 1); exit 1; }; }
3971 fi
3972
3973 OS=$llvm_cv_os_type
3974
3975 HOST_OS=$llvm_cv_os_type
3976
3977 TARGET_OS=$llvm_cv_target_os_type
3978
3979
3980 LINKALL=$llvm_cv_link_all_option
3981
3982 NOLINKALL=$llvm_cv_no_link_all_option
3983
3984
3985 case $llvm_cv_platform_type in
3986   Unix)
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3990 _ACEOF
3991
3992     LLVM_ON_UNIX=1
3993
3994     LLVM_ON_WIN32=0
3995
3996     ;;
3997   Win32)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=0
4004
4005     LLVM_ON_WIN32=1
4006
4007     ;;
4008 esac
4009
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   case $target in
4016   i?86-*)                 llvm_cv_target_arch="x86" ;;
4017   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4018   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4019   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4020   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4021   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4022   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4023   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4024   xcore-*)                llvm_cv_target_arch="XCore" ;;
4025   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4026   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4027   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4028   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4029   *)                      llvm_cv_target_arch="Unknown" ;;
4030 esac
4031 fi
4032 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4033 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4034
4035 if test "$llvm_cv_target_arch" = "Unknown" ; then
4036   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4037 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4038 fi
4039
4040 case "$llvm_cv_target_arch" in
4041     x86)     LLVM_NATIVE_ARCH="X86" ;;
4042     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4043     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4044 esac
4045
4046 ARCH=$llvm_cv_target_arch
4047
4048
4049 case $host in
4050   i?86-*)                 host_arch="x86" ;;
4051   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4052   sparc*-*)               host_arch="Sparc" ;;
4053   powerpc*-*)             host_arch="PowerPC" ;;
4054   arm*-*)                 host_arch="ARM" ;;
4055   aarch64*-*)             host_arch="AArch64" ;;
4056   mips-* | mips64-*)      host_arch="Mips" ;;
4057   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4058   xcore-*)                host_arch="XCore" ;;
4059   msp430-*)               host_arch="MSP430" ;;
4060   hexagon-*)              host_arch="Hexagon" ;;
4061   mblaze-*)               host_arch="MBlaze" ;;
4062   *)                      host_arch="Unknown" ;;
4063 esac
4064
4065 if test "$host_arch" = "Unknown" ; then
4066   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4067 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4068 fi
4069
4070 HOST_ARCH=$host_arch
4071
4072
4073
4074
4075 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4076 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4077 if test "${ac_cv_path_GREP+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   # Extract the first word of "grep ggrep" to use in msg output
4081 if test -z "$GREP"; then
4082 set dummy grep ggrep; ac_prog_name=$2
4083 if test "${ac_cv_path_GREP+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   ac_path_GREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093   for ac_prog in grep ggrep; do
4094   for ac_exec_ext in '' $ac_executable_extensions; do
4095     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4097     # Check for GNU ac_path_GREP and select it if it is found.
4098   # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4100 *GNU*)
4101   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102 *)
4103   ac_count=0
4104   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4105   while :
4106   do
4107     cat "conftest.in" "conftest.in" >"conftest.tmp"
4108     mv "conftest.tmp" "conftest.in"
4109     cp "conftest.in" "conftest.nl"
4110     echo 'GREP' >> "conftest.nl"
4111     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113     ac_count=`expr $ac_count + 1`
4114     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115       # Best one so far, save it but keep looking for a better one
4116       ac_cv_path_GREP="$ac_path_GREP"
4117       ac_path_GREP_max=$ac_count
4118     fi
4119     # 10*(2^10) chars as input seems more than enough
4120     test $ac_count -gt 10 && break
4121   done
4122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125
4126     $ac_path_GREP_found && break 3
4127   done
4128 done
4129
4130 done
4131 IFS=$as_save_IFS
4132
4133
4134 fi
4135
4136 GREP="$ac_cv_path_GREP"
4137 if test -z "$GREP"; then
4138   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140    { (exit 1); exit 1; }; }
4141 fi
4142
4143 else
4144   ac_cv_path_GREP=$GREP
4145 fi
4146
4147
4148 fi
4149 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4150 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4151  GREP="$ac_cv_path_GREP"
4152
4153
4154 { echo "$as_me:$LINENO: checking for egrep" >&5
4155 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4156 if test "${ac_cv_path_EGREP+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160    then ac_cv_path_EGREP="$GREP -E"
4161    else
4162      # Extract the first word of "egrep" to use in msg output
4163 if test -z "$EGREP"; then
4164 set dummy egrep; ac_prog_name=$2
4165 if test "${ac_cv_path_EGREP+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   ac_path_EGREP_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_prog in egrep; do
4176   for ac_exec_ext in '' $ac_executable_extensions; do
4177     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4179     # Check for GNU ac_path_EGREP and select it if it is found.
4180   # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4182 *GNU*)
4183   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184 *)
4185   ac_count=0
4186   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4187   while :
4188   do
4189     cat "conftest.in" "conftest.in" >"conftest.tmp"
4190     mv "conftest.tmp" "conftest.in"
4191     cp "conftest.in" "conftest.nl"
4192     echo 'EGREP' >> "conftest.nl"
4193     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195     ac_count=`expr $ac_count + 1`
4196     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197       # Best one so far, save it but keep looking for a better one
4198       ac_cv_path_EGREP="$ac_path_EGREP"
4199       ac_path_EGREP_max=$ac_count
4200     fi
4201     # 10*(2^10) chars as input seems more than enough
4202     test $ac_count -gt 10 && break
4203   done
4204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207
4208     $ac_path_EGREP_found && break 3
4209   done
4210 done
4211
4212 done
4213 IFS=$as_save_IFS
4214
4215
4216 fi
4217
4218 EGREP="$ac_cv_path_EGREP"
4219 if test -z "$EGREP"; then
4220   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4221 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4222    { (exit 1); exit 1; }; }
4223 fi
4224
4225 else
4226   ac_cv_path_EGREP=$EGREP
4227 fi
4228
4229
4230    fi
4231 fi
4232 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4233 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4234  EGREP="$ac_cv_path_EGREP"
4235
4236
4237 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4239 if test "${ac_cv_header_stdc+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h.  */
4248 #include <stdlib.h>
4249 #include <stdarg.h>
4250 #include <string.h>
4251 #include <float.h>
4252
4253 int
4254 main ()
4255 {
4256
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4263 case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_compile") 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; } &&
4285          { ac_try='test -s conftest.$ac_objext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   ac_cv_header_stdc=yes
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300         ac_cv_header_stdc=no
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305 if test $ac_cv_header_stdc = yes; then
4306   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 #include <string.h>
4314
4315 _ACEOF
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317   $EGREP "memchr" >/dev/null 2>&1; then
4318   :
4319 else
4320   ac_cv_header_stdc=no
4321 fi
4322 rm -f conftest*
4323
4324 fi
4325
4326 if test $ac_cv_header_stdc = yes; then
4327   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4328   cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334 #include <stdlib.h>
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338   $EGREP "free" >/dev/null 2>&1; then
4339   :
4340 else
4341   ac_cv_header_stdc=no
4342 fi
4343 rm -f conftest*
4344
4345 fi
4346
4347 if test $ac_cv_header_stdc = yes; then
4348   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349   if test "$cross_compiling" = yes; then
4350   :
4351 else
4352   cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 #include <ctype.h>
4359 #include <stdlib.h>
4360 #if ((' ' & 0x0FF) == 0x020)
4361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4363 #else
4364 # define ISLOWER(c) \
4365                    (('a' <= (c) && (c) <= 'i') \
4366                      || ('j' <= (c) && (c) <= 'r') \
4367                      || ('s' <= (c) && (c) <= 'z'))
4368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4369 #endif
4370
4371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4372 int
4373 main ()
4374 {
4375   int i;
4376   for (i = 0; i < 256; i++)
4377     if (XOR (islower (i), ISLOWER (i))
4378         || toupper (i) != TOUPPER (i))
4379       return 2;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_link") 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394   { (case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_try") 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; }; then
4403   :
4404 else
4405   echo "$as_me: program exited with status $ac_status" >&5
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ( exit $ac_status )
4410 ac_cv_header_stdc=no
4411 fi
4412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4413 fi
4414
4415
4416 fi
4417 fi
4418 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4419 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4420 if test $ac_cv_header_stdc = yes; then
4421
4422 cat >>confdefs.h <<\_ACEOF
4423 #define STDC_HEADERS 1
4424 _ACEOF
4425
4426 fi
4427
4428 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4439                   inttypes.h stdint.h unistd.h
4440 do
4441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 $ac_includes_default
4454
4455 #include <$ac_header>
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464   (eval "$ac_compile") 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } &&
4471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472   { (case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_try") 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; } &&
4481          { ac_try='test -s conftest.$ac_objext'
4482   { (case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487   (eval "$ac_try") 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; }; then
4491   eval "$as_ac_Header=yes"
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496         eval "$as_ac_Header=no"
4497 fi
4498
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 ac_res=`eval echo '${'$as_ac_Header'}'`
4502                { echo "$as_me:$LINENO: result: $ac_res" >&5
4503 echo "${ECHO_T}$ac_res" >&6; }
4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4505   cat >>confdefs.h <<_ACEOF
4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 _ACEOF
4508
4509 fi
4510
4511 done
4512
4513
4514 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4515 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4516 if test "${ac_cv_c_bigendian+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   # See if sys/param.h defines the BYTE_ORDER macro.
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #include <sys/types.h>
4527 #include <sys/param.h>
4528
4529 int
4530 main ()
4531 {
4532 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4533  bogus endian macros
4534 #endif
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555   { (case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_try") 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; } &&
4564          { ac_try='test -s conftest.$ac_objext'
4565   { (case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570   (eval "$ac_try") 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; }; then
4574   # It does; now see whether it defined to BIG_ENDIAN or not.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 #include <sys/types.h>
4582 #include <sys/param.h>
4583
4584 int
4585 main ()
4586 {
4587 #if BYTE_ORDER != BIG_ENDIAN
4588  not big endian
4589 #endif
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_compile") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } &&
4609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610   { (case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615   (eval "$ac_try") 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; } &&
4619          { ac_try='test -s conftest.$ac_objext'
4620   { (case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625   (eval "$ac_try") 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; }; then
4629   ac_cv_c_bigendian=yes
4630 else
4631   echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634         ac_cv_c_bigendian=no
4635 fi
4636
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642         # It does not; compile a test program.
4643 if test "$cross_compiling" = yes; then
4644   # try to guess the endianness by grepping values into an object file
4645   ac_cv_c_bigendian=unknown
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4653 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4654 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4655 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4656 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4657 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4658 int
4659 main ()
4660 {
4661  _ascii (); _ebcdic ();
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (ac_try="$ac_compile"
4668 case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673   (eval "$ac_compile") 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4681   { (case "(($ac_try" in
4682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683   *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686   (eval "$ac_try") 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (case "(($ac_try" in
4692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693   *) ac_try_echo=$ac_try;;
4694 esac
4695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696   (eval "$ac_try") 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4701   ac_cv_c_bigendian=yes
4702 fi
4703 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4704   if test "$ac_cv_c_bigendian" = unknown; then
4705     ac_cv_c_bigendian=no
4706   else
4707     # finding both strings is unlikely to happen, but who knows?
4708     ac_cv_c_bigendian=unknown
4709   fi
4710 fi
4711 else
4712   echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715
4716 fi
4717
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 else
4720   cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 $ac_includes_default
4727 int
4728 main ()
4729 {
4730
4731   /* Are we little or big endian?  From Harbison&Steele.  */
4732   union
4733   {
4734     long int l;
4735     char c[sizeof (long int)];
4736   } u;
4737   u.l = 1;
4738   return u.c[sizeof (long int) - 1] == 1;
4739
4740   ;
4741   return 0;
4742 }
4743 _ACEOF
4744 rm -f conftest$ac_exeext
4745 if { (ac_try="$ac_link"
4746 case "(($ac_try" in
4747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748   *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751   (eval "$ac_link") 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755   { (case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760   (eval "$ac_try") 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764   ac_cv_c_bigendian=no
4765 else
4766   echo "$as_me: program exited with status $ac_status" >&5
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 ( exit $ac_status )
4771 ac_cv_c_bigendian=yes
4772 fi
4773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4774 fi
4775
4776
4777 fi
4778
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4782 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4783 case $ac_cv_c_bigendian in
4784   yes)
4785     ENDIAN=big
4786  ;;
4787   no)
4788     ENDIAN=little
4789  ;;
4790   *)
4791     { { echo "$as_me:$LINENO: error: unknown endianness
4792 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4793 echo "$as_me: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4795    { (exit 1); exit 1; }; } ;;
4796 esac
4797
4798
4799 if test "$cross_compiling" = yes; then
4800   LLVM_CROSS_COMPILING=1
4801
4802
4803 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4804 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4805 if test "${ac_cv_build_exeext+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4809   ac_cv_build_exeext=.exe
4810 else
4811   ac_build_prefix=${build_alias}-
4812
4813   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}gcc; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test -n "$BUILD_CC"; then
4821   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 BUILD_CC=$ac_cv_prog_BUILD_CC
4841 if test -n "$BUILD_CC"; then
4842   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4843 echo "${ECHO_T}$BUILD_CC" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850   if test -z "$BUILD_CC"; then
4851      # Extract the first word of "gcc", so it can be a program name with args.
4852 set dummy gcc; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$BUILD_CC"; then
4859   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_BUILD_CC="gcc"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 BUILD_CC=$ac_cv_prog_BUILD_CC
4879 if test -n "$BUILD_CC"; then
4880   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4881 echo "${ECHO_T}$BUILD_CC" >&6; }
4882 else
4883   { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888      if test -z "$BUILD_CC"; then
4889        # Extract the first word of "cc", so it can be a program name with args.
4890 set dummy cc; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$BUILD_CC"; then
4897   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4898 else
4899   ac_prog_rejected=no
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4908        ac_prog_rejected=yes
4909        continue
4910      fi
4911     ac_cv_prog_BUILD_CC="cc"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 if test $ac_prog_rejected = yes; then
4920   # We found a bogon in the path, so make sure we never use it.
4921   set dummy $ac_cv_prog_BUILD_CC
4922   shift
4923   if test $# != 0; then
4924     # We chose a different compiler from the bogus one.
4925     # However, it has the same basename, so the bogon will be chosen
4926     # first if we set BUILD_CC to just the basename; use the full file name.
4927     shift
4928     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4929   fi
4930 fi
4931 fi
4932 fi
4933 BUILD_CC=$ac_cv_prog_BUILD_CC
4934 if test -n "$BUILD_CC"; then
4935   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4936 echo "${ECHO_T}$BUILD_CC" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943      fi
4944   fi
4945   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4946 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4947    { (exit 1); exit 1; }; }
4948   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4949   rm -f conftest*
4950   echo 'int main () { return 0; }' > conftest.$ac_ext
4951   ac_cv_build_exeext=
4952   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4953   (eval $ac_build_link) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); }; then
4957     for file in conftest.*; do
4958       case $file in
4959       *.c | *.o | *.obj | *.dSYM) ;;
4960       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4961       esac
4962     done
4963   else
4964     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4965 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4966    { (exit 1); exit 1; }; }
4967   fi
4968   rm -f conftest*
4969   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4970 fi
4971 fi
4972
4973 BUILD_EXEEXT=""
4974 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4975 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4976 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4977 ac_build_exeext=$BUILD_EXEEXT
4978
4979   ac_build_prefix=${build_alias}-
4980   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4981 set dummy ${ac_build_prefix}g++; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   if test -n "$BUILD_CXX"; then
4988   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995   for ac_exec_ext in '' $ac_executable_extensions; do
4996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4997     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002 done
5003 IFS=$as_save_IFS
5004
5005 fi
5006 fi
5007 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5008 if test -n "$BUILD_CXX"; then
5009   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5010 echo "${ECHO_T}$BUILD_CXX" >&6; }
5011 else
5012   { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5014 fi
5015
5016
5017   if test -z "$BUILD_CXX"; then
5018      # Extract the first word of "g++", so it can be a program name with args.
5019 set dummy g++; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   if test -n "$BUILD_CXX"; then
5026   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033   for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_prog_BUILD_CXX="g++"
5036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5046 if test -n "$BUILD_CXX"; then
5047   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5048 echo "${ECHO_T}$BUILD_CXX" >&6; }
5049 else
5050   { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5052 fi
5053
5054
5055      if test -z "$BUILD_CXX"; then
5056        # Extract the first word of "c++", so it can be a program name with args.
5057 set dummy c++; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$BUILD_CXX"; then
5064   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5065 else
5066   ac_prog_rejected=no
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072   for ac_exec_ext in '' $ac_executable_extensions; do
5073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5074     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5075        ac_prog_rejected=yes
5076        continue
5077      fi
5078     ac_cv_prog_BUILD_CXX="c++"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 if test $ac_prog_rejected = yes; then
5087   # We found a bogon in the path, so make sure we never use it.
5088   set dummy $ac_cv_prog_BUILD_CXX
5089   shift
5090   if test $# != 0; then
5091     # We chose a different compiler from the bogus one.
5092     # However, it has the same basename, so the bogon will be chosen
5093     # first if we set BUILD_CXX to just the basename; use the full file name.
5094     shift
5095     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5096   fi
5097 fi
5098 fi
5099 fi
5100 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5101 if test -n "$BUILD_CXX"; then
5102   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5103 echo "${ECHO_T}$BUILD_CXX" >&6; }
5104 else
5105   { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5107 fi
5108
5109
5110      fi
5111   fi
5112 else
5113   LLVM_CROSS_COMPILING=0
5114
5115 fi
5116
5117 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5118   cvsbuild="yes"
5119   optimize="no"
5120   CVSBUILD=CVSBUILD=1
5121
5122 else
5123   cvsbuild="no"
5124   optimize="yes"
5125 fi
5126
5127
5128 # Check whether --enable-libcpp was given.
5129 if test "${enable_libcpp+set}" = set; then
5130   enableval=$enable_libcpp;
5131 else
5132   enableval=default
5133 fi
5134
5135 case "$enableval" in
5136   yes) ENABLE_LIBCPP=1
5137  ;;
5138   no)  ENABLE_LIBCPP=0
5139  ;;
5140   default) ENABLE_LIBCPP=0
5141 ;;
5142   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5144    { (exit 1); exit 1; }; } ;;
5145 esac
5146
5147 # Check whether --enable-cxx11 was given.
5148 if test "${enable_cxx11+set}" = set; then
5149   enableval=$enable_cxx11;
5150 else
5151   enableval=default
5152 fi
5153
5154 case "$enableval" in
5155   yes) ENABLE_CXX11=1
5156  ;;
5157   no)  ENABLE_CXX11=0
5158  ;;
5159   default) ENABLE_CXX11=0
5160 ;;
5161   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5163    { (exit 1); exit 1; }; } ;;
5164 esac
5165
5166 clang_arcmt="yes"
5167 # Check whether --enable-clang-arcmt was given.
5168 if test "${enable_clang_arcmt+set}" = set; then
5169   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5170 else
5171   enableval="yes"
5172 fi
5173
5174 case "$enableval" in
5175   yes) ENABLE_CLANG_ARCMT=1
5176  ;;
5177   no)  ENABLE_CLANG_ARCMT=0
5178  ;;
5179   default) ENABLE_CLANG_ARCMT=1
5180 ;;
5181   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5183    { (exit 1); exit 1; }; } ;;
5184 esac
5185
5186 clang_static_analyzer="yes"
5187 # Check whether --enable-clang-static-analyzer was given.
5188 if test "${enable_clang_static_analyzer+set}" = set; then
5189   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5190 else
5191   enableval="yes"
5192 fi
5193
5194 case "$enableval" in
5195   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5196  ;;
5197   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5198  ;;
5199   default) ENABLE_CLANG_STATIC_ANALYZER=1
5200 ;;
5201   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5203    { (exit 1); exit 1; }; } ;;
5204 esac
5205
5206 # Check whether --enable-clang-rewriter was given.
5207 if test "${enable_clang_rewriter+set}" = set; then
5208   enableval=$enable_clang_rewriter;
5209 else
5210   enableval="yes"
5211 fi
5212
5213 case "$enableval" in
5214   yes) ENABLE_CLANG_REWRITER=1
5215  ;;
5216   no)
5217     if test ${clang_arcmt} != "no" ; then
5218       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5219 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5220    { (exit 1); exit 1; }; }
5221     fi
5222     if test ${clang_static_analyzer} != "no" ; then
5223       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5224 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5225    { (exit 1); exit 1; }; }
5226     fi
5227     ENABLE_CLANG_REWRITER=0
5228
5229     ;;
5230   default) ENABLE_CLANG_REWRITER=1
5231 ;;
5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5234    { (exit 1); exit 1; }; } ;;
5235 esac
5236
5237 # Check whether --enable-optimized was given.
5238 if test "${enable_optimized+set}" = set; then
5239   enableval=$enable_optimized;
5240 else
5241   enableval=$optimize
5242 fi
5243
5244 if test ${enableval} = "no" ; then
5245   ENABLE_OPTIMIZED=
5246
5247 else
5248   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5249
5250 fi
5251
5252 # Check whether --enable-profiling was given.
5253 if test "${enable_profiling+set}" = set; then
5254   enableval=$enable_profiling;
5255 else
5256   enableval="no"
5257 fi
5258
5259 if test ${enableval} = "no" ; then
5260   ENABLE_PROFILING=
5261
5262 else
5263   ENABLE_PROFILING=ENABLE_PROFILING=1
5264
5265 fi
5266
5267 # Check whether --enable-assertions was given.
5268 if test "${enable_assertions+set}" = set; then
5269   enableval=$enable_assertions;
5270 else
5271   enableval="yes"
5272 fi
5273
5274 if test ${enableval} = "yes" ; then
5275   DISABLE_ASSERTIONS=
5276
5277 else
5278   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5279
5280 fi
5281
5282 # Check whether --enable-werror was given.
5283 if test "${enable_werror+set}" = set; then
5284   enableval=$enable_werror;
5285 else
5286   enableval="no"
5287 fi
5288
5289 case "$enableval" in
5290   yes) ENABLE_WERROR=1
5291  ;;
5292   no)  ENABLE_WERROR=0
5293  ;;
5294   default) ENABLE_WERROR=0
5295 ;;
5296   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5298    { (exit 1); exit 1; }; } ;;
5299 esac
5300
5301 # Check whether --enable-expensive-checks was given.
5302 if test "${enable_expensive_checks+set}" = set; then
5303   enableval=$enable_expensive_checks;
5304 else
5305   enableval="no"
5306 fi
5307
5308 if test ${enableval} = "yes" ; then
5309   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5310
5311   EXPENSIVE_CHECKS=yes
5312
5313 else
5314   ENABLE_EXPENSIVE_CHECKS=
5315
5316   EXPENSIVE_CHECKS=no
5317
5318 fi
5319
5320 # Check whether --enable-debug-runtime was given.
5321 if test "${enable_debug_runtime+set}" = set; then
5322   enableval=$enable_debug_runtime;
5323 else
5324   enableval=no
5325 fi
5326
5327 if test ${enableval} = "no" ; then
5328   DEBUG_RUNTIME=
5329
5330 else
5331   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5332
5333 fi
5334
5335 # Check whether --enable-debug-symbols was given.
5336 if test "${enable_debug_symbols+set}" = set; then
5337   enableval=$enable_debug_symbols;
5338 else
5339   enableval=no
5340 fi
5341
5342 if test ${enableval} = "no" ; then
5343   DEBUG_SYMBOLS=
5344
5345 else
5346   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5347
5348 fi
5349
5350 # Check whether --enable-keep-symbols was given.
5351 if test "${enable_keep_symbols+set}" = set; then
5352   enableval=$enable_keep_symbols;
5353 else
5354   enableval=no
5355 fi
5356
5357 if test ${enableval} = "no" ; then
5358   KEEP_SYMBOLS=
5359
5360 else
5361   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5362
5363 fi
5364
5365 # Check whether --enable-jit was given.
5366 if test "${enable_jit+set}" = set; then
5367   enableval=$enable_jit;
5368 else
5369   enableval=default
5370 fi
5371
5372 if test ${enableval} = "no"
5373 then
5374   JIT=
5375
5376 else
5377   case "$llvm_cv_target_arch" in
5378     x86)         TARGET_HAS_JIT=1
5379  ;;
5380     Sparc)       TARGET_HAS_JIT=0
5381  ;;
5382     PowerPC)     TARGET_HAS_JIT=1
5383  ;;
5384     x86_64)      TARGET_HAS_JIT=1
5385  ;;
5386     ARM)         TARGET_HAS_JIT=1
5387  ;;
5388     AArch64)     TARGET_HAS_JIT=0
5389  ;;
5390     Mips)        TARGET_HAS_JIT=1
5391  ;;
5392     XCore)       TARGET_HAS_JIT=0
5393  ;;
5394     MSP430)      TARGET_HAS_JIT=0
5395  ;;
5396     Hexagon)     TARGET_HAS_JIT=0
5397  ;;
5398     MBlaze)      TARGET_HAS_JIT=0
5399  ;;
5400     NVPTX)       TARGET_HAS_JIT=0
5401  ;;
5402     *)           TARGET_HAS_JIT=0
5403  ;;
5404   esac
5405 fi
5406
5407 # Check whether --enable-docs was given.
5408 if test "${enable_docs+set}" = set; then
5409   enableval=$enable_docs;
5410 else
5411   enableval=default
5412 fi
5413
5414 case "$enableval" in
5415   yes) ENABLE_DOCS=1
5416  ;;
5417   no)  ENABLE_DOCS=0
5418  ;;
5419   default) ENABLE_DOCS=1
5420  ;;
5421   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5422 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5423    { (exit 1); exit 1; }; } ;;
5424 esac
5425
5426 # Check whether --enable-doxygen was given.
5427 if test "${enable_doxygen+set}" = set; then
5428   enableval=$enable_doxygen;
5429 else
5430   enableval=default
5431 fi
5432
5433 case "$enableval" in
5434   yes) ENABLE_DOXYGEN=1
5435  ;;
5436   no)  ENABLE_DOXYGEN=0
5437  ;;
5438   default) ENABLE_DOXYGEN=0
5439  ;;
5440   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5441 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5442    { (exit 1); exit 1; }; } ;;
5443 esac
5444
5445 # Check whether --enable-threads was given.
5446 if test "${enable_threads+set}" = set; then
5447   enableval=$enable_threads;
5448 else
5449   enableval=default
5450 fi
5451
5452 case "$enableval" in
5453   yes) LLVM_ENABLE_THREADS=1
5454  ;;
5455   no)  LLVM_ENABLE_THREADS=0
5456  ;;
5457   default) LLVM_ENABLE_THREADS=1
5458  ;;
5459   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5460 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5461    { (exit 1); exit 1; }; } ;;
5462 esac
5463
5464 cat >>confdefs.h <<_ACEOF
5465 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5466 _ACEOF
5467
5468
5469 # Check whether --enable-pthreads was given.
5470 if test "${enable_pthreads+set}" = set; then
5471   enableval=$enable_pthreads;
5472 else
5473   enableval=default
5474 fi
5475
5476 case "$enableval" in
5477   yes) ENABLE_PTHREADS=1
5478  ;;
5479   no)  ENABLE_PTHREADS=0
5480  ;;
5481   default) ENABLE_PTHREADS=1
5482  ;;
5483   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5484 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5485    { (exit 1); exit 1; }; } ;;
5486 esac
5487
5488 # Check whether --enable-zlib was given.
5489 if test "${enable_zlib+set}" = set; then
5490   enableval=$enable_zlib;
5491 else
5492   enableval=default
5493 fi
5494
5495 case "$enableval" in
5496   yes) LLVM_ENABLE_ZLIB=1
5497  ;;
5498   no)  LLVM_ENABLE_ZLIB=0
5499  ;;
5500   default) LLVM_ENABLE_ZLIB=1
5501  ;;
5502   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5503 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5504    { (exit 1); exit 1; }; } ;;
5505 esac
5506
5507 cat >>confdefs.h <<_ACEOF
5508 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5509 _ACEOF
5510
5511
5512 # Check whether --enable-pic was given.
5513 if test "${enable_pic+set}" = set; then
5514   enableval=$enable_pic;
5515 else
5516   enableval=default
5517 fi
5518
5519 case "$enableval" in
5520   yes) ENABLE_PIC=1
5521  ;;
5522   no)  ENABLE_PIC=0
5523  ;;
5524   default) ENABLE_PIC=1
5525  ;;
5526   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5527 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5528    { (exit 1); exit 1; }; } ;;
5529 esac
5530
5531 cat >>confdefs.h <<_ACEOF
5532 #define ENABLE_PIC $ENABLE_PIC
5533 _ACEOF
5534
5535
5536 # Check whether --enable-shared was given.
5537 if test "${enable_shared+set}" = set; then
5538   enableval=$enable_shared;
5539 else
5540   enableval=default
5541 fi
5542
5543 case "$enableval" in
5544   yes) ENABLE_SHARED=1
5545  ;;
5546   no)  ENABLE_SHARED=0
5547  ;;
5548   default) ENABLE_SHARED=0
5549  ;;
5550   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5551 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5552    { (exit 1); exit 1; }; } ;;
5553 esac
5554
5555 # Check whether --enable-embed-stdcxx was given.
5556 if test "${enable_embed_stdcxx+set}" = set; then
5557   enableval=$enable_embed_stdcxx;
5558 else
5559   enableval=default
5560 fi
5561
5562 case "$enableval" in
5563   yes) ENABLE_EMBED_STDCXX=1
5564  ;;
5565   no)  ENABLE_EMBED_STDCXX=0
5566  ;;
5567   default) ENABLE_EMBED_STDCXX=0
5568  ;;
5569   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5570 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5571    { (exit 1); exit 1; }; } ;;
5572 esac
5573
5574 # Check whether --enable-timestamps was given.
5575 if test "${enable_timestamps+set}" = set; then
5576   enableval=$enable_timestamps;
5577 else
5578   enableval=default
5579 fi
5580
5581 case "$enableval" in
5582   yes) ENABLE_TIMESTAMPS=1
5583  ;;
5584   no)  ENABLE_TIMESTAMPS=0
5585  ;;
5586   default) ENABLE_TIMESTAMPS=1
5587  ;;
5588   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5589 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5590    { (exit 1); exit 1; }; } ;;
5591 esac
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5595 _ACEOF
5596
5597
5598
5599 # Check whether --enable-backtraces was given.
5600 if test "${enable_backtraces+set}" = set; then
5601   enableval=$enable_backtraces;
5602 else
5603   enableval=default
5604 fi
5605
5606 case "$enableval" in
5607   yes) ENABLE_BACKTRACES=1
5608  ;;
5609   no)  ENABLE_BACKTRACES=0
5610  ;;
5611   default) ENABLE_BACKTRACES=1
5612  ;;
5613   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5615    { (exit 1); exit 1; }; } ;;
5616 esac
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5620 _ACEOF
5621
5622
5623 TARGETS_TO_BUILD=""
5624 # Check whether --enable-targets was given.
5625 if test "${enable_targets+set}" = set; then
5626   enableval=$enable_targets;
5627 else
5628   enableval=all
5629 fi
5630
5631 if test "$enableval" = host-only ; then
5632   enableval=host
5633 fi
5634 case "$enableval" in
5635   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5636   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5637       case "$a_target" in
5638         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5639         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5641         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5642         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5643         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5644         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5645         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5646         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5647         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5648         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5649         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5650         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5651         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5652         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5653         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5654         host) case "$llvm_cv_target_arch" in
5655             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5656             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5657             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5658             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5659             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5660             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5661             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5663             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5664             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5665             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5668 echo "$as_me: error: Can not set target to build" >&2;}
5669    { (exit 1); exit 1; }; } ;;
5670           esac ;;
5671         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5672 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5673    { (exit 1); exit 1; }; } ;;
5674       esac
5675   done
5676   ;;
5677 esac
5678
5679 # Check whether --enable-experimental-targets was given.
5680 if test "${enable_experimental_targets+set}" = set; then
5681   enableval=$enable_experimental_targets;
5682 else
5683   enableval=disable
5684 fi
5685
5686
5687 if test ${enableval} != "disable"
5688 then
5689   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5690 fi
5691
5692 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5693
5694
5695 for a_target in $TARGETS_TO_BUILD; do
5696   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5697
5698 cat >>confdefs.h <<_ACEOF
5699 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5700 _ACEOF
5701
5702     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5703     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5704     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5705     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5706     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5707       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5708     fi
5709     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5710       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5711     fi
5712
5713 cat >>confdefs.h <<_ACEOF
5714 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5715 _ACEOF
5716
5717
5718 cat >>confdefs.h <<_ACEOF
5719 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5720 _ACEOF
5721
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5725 _ACEOF
5726
5727
5728 cat >>confdefs.h <<_ACEOF
5729 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5730 _ACEOF
5731
5732     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5736 _ACEOF
5737
5738     fi
5739     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5743 _ACEOF
5744
5745     fi
5746   fi
5747 done
5748
5749 LLVM_ENUM_TARGETS=""
5750 LLVM_ENUM_ASM_PRINTERS=""
5751 LLVM_ENUM_ASM_PARSERS=""
5752 LLVM_ENUM_DISASSEMBLERS=""
5753 for target_to_build in $TARGETS_TO_BUILD; do
5754   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5755   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5756     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5757   fi
5758   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5759     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5760   fi
5761   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5762     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5763   fi
5764 done
5765
5766
5767
5768
5769
5770
5771 # Check whether --with-optimize-option was given.
5772 if test "${with_optimize_option+set}" = set; then
5773   withval=$with_optimize_option;
5774 else
5775   withval=default
5776 fi
5777
5778 { echo "$as_me:$LINENO: checking optimization flags" >&5
5779 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5780 case "$withval" in
5781   default)
5782     case "$llvm_cv_os_type" in
5783     FreeBSD) optimize_option=-O2 ;;
5784     MingW) optimize_option=-O2 ;;
5785     *)     optimize_option=-O3 ;;
5786     esac ;;
5787   *) optimize_option="$withval" ;;
5788 esac
5789 OPTIMIZE_OPTION=$optimize_option
5790
5791 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5792 echo "${ECHO_T}$optimize_option" >&6; }
5793
5794
5795 # Check whether --with-extra-options was given.
5796 if test "${with_extra_options+set}" = set; then
5797   withval=$with_extra_options;
5798 else
5799   withval=default
5800 fi
5801
5802 case "$withval" in
5803   default) EXTRA_OPTIONS= ;;
5804   *) EXTRA_OPTIONS=$withval ;;
5805 esac
5806 EXTRA_OPTIONS=$EXTRA_OPTIONS
5807
5808
5809
5810 # Check whether --with-extra-ld-options was given.
5811 if test "${with_extra_ld_options+set}" = set; then
5812   withval=$with_extra_ld_options;
5813 else
5814   withval=default
5815 fi
5816
5817 case "$withval" in
5818   default) EXTRA_LD_OPTIONS= ;;
5819   *) EXTRA_LD_OPTIONS=$withval ;;
5820 esac
5821 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5822
5823
5824 # Check whether --enable-bindings was given.
5825 if test "${enable_bindings+set}" = set; then
5826   enableval=$enable_bindings;
5827 else
5828   enableval=default
5829 fi
5830
5831 BINDINGS_TO_BUILD=""
5832 case "$enableval" in
5833   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5834   all ) BINDINGS_TO_BUILD="ocaml" ;;
5835   none | no) BINDINGS_TO_BUILD="" ;;
5836   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5837       case "$a_binding" in
5838         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5839         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5840 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5841    { (exit 1); exit 1; }; } ;;
5842       esac
5843   done
5844   ;;
5845 esac
5846
5847
5848 # Check whether --with-ocaml-libdir was given.
5849 if test "${with_ocaml_libdir+set}" = set; then
5850   withval=$with_ocaml_libdir;
5851 else
5852   withval=auto
5853 fi
5854
5855 case "$withval" in
5856   auto) with_ocaml_libdir="$withval" ;;
5857   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5858   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5859 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5860    { (exit 1); exit 1; }; } ;;
5861 esac
5862
5863
5864 # Check whether --with-clang-srcdir was given.
5865 if test "${with_clang_srcdir+set}" = set; then
5866   withval=$with_clang_srcdir;
5867 else
5868   withval="-"
5869 fi
5870
5871 case "$withval" in
5872   -) clang_src_root="" ;;
5873   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5874   *) clang_src_root="$ac_pwd/$withval" ;;
5875 esac
5876 CLANG_SRC_ROOT=$clang_src_root
5877
5878
5879
5880 # Check whether --with-clang-resource-dir was given.
5881 if test "${with_clang_resource_dir+set}" = set; then
5882   withval=$with_clang_resource_dir;
5883 else
5884   withval=""
5885 fi
5886
5887
5888 cat >>confdefs.h <<_ACEOF
5889 #define CLANG_RESOURCE_DIR "$withval"
5890 _ACEOF
5891
5892
5893
5894 # Check whether --with-c-include-dirs was given.
5895 if test "${with_c_include_dirs+set}" = set; then
5896   withval=$with_c_include_dirs;
5897 else
5898   withval=""
5899 fi
5900
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define C_INCLUDE_DIRS "$withval"
5904 _ACEOF
5905
5906
5907 # Clang normally uses the system c++ headers and libraries. With this option,
5908 # clang will use the ones provided by a gcc installation instead. This option should
5909 # be passed the same value that was used with --prefix when configuring gcc.
5910
5911 # Check whether --with-gcc-toolchain was given.
5912 if test "${with_gcc_toolchain+set}" = set; then
5913   withval=$with_gcc_toolchain;
5914 else
5915   withval=""
5916 fi
5917
5918
5919 cat >>confdefs.h <<_ACEOF
5920 #define GCC_INSTALL_PREFIX "$withval"
5921 _ACEOF
5922
5923
5924
5925 # Check whether --with-default-sysroot was given.
5926 if test "${with_default_sysroot+set}" = set; then
5927   withval=$with_default_sysroot;
5928 else
5929   withval=""
5930 fi
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define DEFAULT_SYSROOT "$withval"
5935 _ACEOF
5936
5937
5938
5939 # Check whether --with-binutils-include was given.
5940 if test "${with_binutils_include+set}" = set; then
5941   withval=$with_binutils_include;
5942 else
5943   withval=default
5944 fi
5945
5946 case "$withval" in
5947   default) WITH_BINUTILS_INCDIR=default ;;
5948   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5949   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5950 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5951    { (exit 1); exit 1; }; } ;;
5952 esac
5953 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5954   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5955
5956   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5957      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5958      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5959 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5960    { (exit 1); exit 1; }; };
5961   fi
5962 fi
5963
5964
5965 # Check whether --with-bug-report-url was given.
5966 if test "${with_bug_report_url+set}" = set; then
5967   withval=$with_bug_report_url;
5968 else
5969   withval="http://llvm.org/bugs/"
5970 fi
5971
5972
5973 cat >>confdefs.h <<_ACEOF
5974 #define BUG_REPORT_URL "$withval"
5975 _ACEOF
5976
5977
5978 # Check whether --enable-libffi was given.
5979 if test "${enable_libffi+set}" = set; then
5980   enableval=$enable_libffi; case "$enableval" in
5981     yes) llvm_cv_enable_libffi="yes" ;;
5982     no)  llvm_cv_enable_libffi="no"  ;;
5983     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5984 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5985    { (exit 1); exit 1; }; } ;;
5986   esac
5987 else
5988   llvm_cv_enable_libffi=no
5989 fi
5990
5991
5992
5993 # Check whether --with-internal-prefix was given.
5994 if test "${with_internal_prefix+set}" = set; then
5995   withval=$with_internal_prefix;
5996 else
5997   withval=""
5998 fi
5999
6000 INTERNAL_PREFIX=$withval
6001
6002
6003
6004 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6005 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6006 if test "${lt_cv_path_NM+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   if test -n "$NM"; then
6010   # Let the user override the test.
6011   lt_cv_path_NM="$NM"
6012 else
6013   lt_nm_to_check="${ac_tool_prefix}nm"
6014   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6015     lt_nm_to_check="$lt_nm_to_check nm"
6016   fi
6017   for lt_tmp_nm in $lt_nm_to_check; do
6018     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6020       IFS="$lt_save_ifs"
6021       test -z "$ac_dir" && ac_dir=.
6022       tmp_nm="$ac_dir/$lt_tmp_nm"
6023       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6024         # Check to see if the nm accepts a BSD-compat flag.
6025         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6026         #   nm: unknown option "B" ignored
6027         # Tru64's nm complains that /dev/null is an invalid object file
6028         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6029         */dev/null* | *'Invalid file or object type'*)
6030           lt_cv_path_NM="$tmp_nm -B"
6031           break
6032           ;;
6033         *)
6034           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6035           */dev/null*)
6036             lt_cv_path_NM="$tmp_nm -p"
6037             break
6038             ;;
6039           *)
6040             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6041             continue # so that we can try to find one that supports BSD flags
6042             ;;
6043           esac
6044           ;;
6045         esac
6046       fi
6047     done
6048     IFS="$lt_save_ifs"
6049   done
6050   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6051 fi
6052 fi
6053 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6054 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6055 NM="$lt_cv_path_NM"
6056
6057
6058
6059 { echo "$as_me:$LINENO: checking for GNU make" >&5
6060 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061 if test "${llvm_cv_gnu_make_command+set}" = set; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   llvm_cv_gnu_make_command=''
6065  for a in "$MAKE" make gmake gnumake ; do
6066   if test -z "$a" ; then continue ; fi ;
6067   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6068   then
6069    llvm_cv_gnu_make_command=$a ;
6070    break;
6071   fi
6072  done
6073 fi
6074 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6076  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6077    ifGNUmake='' ;
6078  else
6079    ifGNUmake='#' ;
6080    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081 echo "${ECHO_T}\"Not found\"" >&6; };
6082  fi
6083
6084
6085 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6087 LN_S=$as_ln_s
6088 if test "$LN_S" = "ln -s"; then
6089   { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6091 else
6092   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093 echo "${ECHO_T}no, using $LN_S" >&6; }
6094 fi
6095
6096 # Extract the first word of "cmp", so it can be a program name with args.
6097 set dummy cmp; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_path_CMP+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   case $CMP in
6104   [\\/]* | ?:[\\/]*)
6105   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6106   ;;
6107   *)
6108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113   for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6124   ;;
6125 esac
6126 fi
6127 CMP=$ac_cv_path_CMP
6128 if test -n "$CMP"; then
6129   { echo "$as_me:$LINENO: result: $CMP" >&5
6130 echo "${ECHO_T}$CMP" >&6; }
6131 else
6132   { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6134 fi
6135
6136
6137 # Extract the first word of "cp", so it can be a program name with args.
6138 set dummy cp; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_path_CP+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   case $CP in
6145   [\\/]* | ?:[\\/]*)
6146   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6147   ;;
6148   *)
6149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154   for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6165   ;;
6166 esac
6167 fi
6168 CP=$ac_cv_path_CP
6169 if test -n "$CP"; then
6170   { echo "$as_me:$LINENO: result: $CP" >&5
6171 echo "${ECHO_T}$CP" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177
6178 # Extract the first word of "date", so it can be a program name with args.
6179 set dummy date; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_DATE+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   case $DATE in
6186   [\\/]* | ?:[\\/]*)
6187   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6188   ;;
6189   *)
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6206   ;;
6207 esac
6208 fi
6209 DATE=$ac_cv_path_DATE
6210 if test -n "$DATE"; then
6211   { echo "$as_me:$LINENO: result: $DATE" >&5
6212 echo "${ECHO_T}$DATE" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219 # Extract the first word of "find", so it can be a program name with args.
6220 set dummy find; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_FIND+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   case $FIND in
6227   [\\/]* | ?:[\\/]*)
6228   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6229   ;;
6230   *)
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6247   ;;
6248 esac
6249 fi
6250 FIND=$ac_cv_path_FIND
6251 if test -n "$FIND"; then
6252   { echo "$as_me:$LINENO: result: $FIND" >&5
6253 echo "${ECHO_T}$FIND" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259
6260 # Extract the first word of "grep", so it can be a program name with args.
6261 set dummy grep; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_GREP+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   case $GREP in
6268   [\\/]* | ?:[\\/]*)
6269   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6270   ;;
6271   *)
6272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277   for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6288   ;;
6289 esac
6290 fi
6291 GREP=$ac_cv_path_GREP
6292 if test -n "$GREP"; then
6293   { echo "$as_me:$LINENO: result: $GREP" >&5
6294 echo "${ECHO_T}$GREP" >&6; }
6295 else
6296   { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301 # Extract the first word of "mkdir", so it can be a program name with args.
6302 set dummy mkdir; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_MKDIR+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   case $MKDIR in
6309   [\\/]* | ?:[\\/]*)
6310   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6311   ;;
6312   *)
6313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6329   ;;
6330 esac
6331 fi
6332 MKDIR=$ac_cv_path_MKDIR
6333 if test -n "$MKDIR"; then
6334   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6335 echo "${ECHO_T}$MKDIR" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6339 fi
6340
6341
6342 # Extract the first word of "mv", so it can be a program name with args.
6343 set dummy mv; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_MV+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   case $MV in
6350   [\\/]* | ?:[\\/]*)
6351   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6352   ;;
6353   *)
6354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6370   ;;
6371 esac
6372 fi
6373 MV=$ac_cv_path_MV
6374 if test -n "$MV"; then
6375   { echo "$as_me:$LINENO: result: $MV" >&5
6376 echo "${ECHO_T}$MV" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 fi
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_RANLIB+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   if test -n "$RANLIB"; then
6392   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 RANLIB=$ac_cv_prog_RANLIB
6412 if test -n "$RANLIB"; then
6413   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6414 echo "${ECHO_T}$RANLIB" >&6; }
6415 else
6416   { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 fi
6419
6420
6421 fi
6422 if test -z "$ac_cv_prog_RANLIB"; then
6423   ac_ct_RANLIB=$RANLIB
6424   # Extract the first word of "ranlib", so it can be a program name with args.
6425 set dummy ranlib; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   if test -n "$ac_ct_RANLIB"; then
6432   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_prog_ac_ct_RANLIB="ranlib"
6442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6452 if test -n "$ac_ct_RANLIB"; then
6453   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6454 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6455 else
6456   { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6458 fi
6459
6460   if test "x$ac_ct_RANLIB" = x; then
6461     RANLIB=":"
6462   else
6463     case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet.  If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&5
6468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6469 whose name does not start with the host triplet.  If you think this
6470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473     RANLIB=$ac_ct_RANLIB
6474   fi
6475 else
6476   RANLIB="$ac_cv_prog_RANLIB"
6477 fi
6478
6479 if test -n "$ac_tool_prefix"; then
6480   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}ar; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_AR+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   if test -n "$AR"; then
6488   ac_cv_prog_AR="$AR" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_AR="${ac_tool_prefix}ar"
6498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 AR=$ac_cv_prog_AR
6508 if test -n "$AR"; then
6509   { echo "$as_me:$LINENO: result: $AR" >&5
6510 echo "${ECHO_T}$AR" >&6; }
6511 else
6512   { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6514 fi
6515
6516
6517 fi
6518 if test -z "$ac_cv_prog_AR"; then
6519   ac_ct_AR=$AR
6520   # Extract the first word of "ar", so it can be a program name with args.
6521 set dummy ar; ac_word=$2
6522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   if test -n "$ac_ct_AR"; then
6528   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_prog_ac_ct_AR="ar"
6538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6548 if test -n "$ac_ct_AR"; then
6549   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6550 echo "${ECHO_T}$ac_ct_AR" >&6; }
6551 else
6552   { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6554 fi
6555
6556   if test "x$ac_ct_AR" = x; then
6557     AR="false"
6558   else
6559     case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet.  If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&5
6564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6565 whose name does not start with the host triplet.  If you think this
6566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569     AR=$ac_ct_AR
6570   fi
6571 else
6572   AR="$ac_cv_prog_AR"
6573 fi
6574
6575 # Extract the first word of "rm", so it can be a program name with args.
6576 set dummy rm; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_path_RM+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   case $RM in
6583   [\\/]* | ?:[\\/]*)
6584   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6585   ;;
6586   *)
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592   for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6603   ;;
6604 esac
6605 fi
6606 RM=$ac_cv_path_RM
6607 if test -n "$RM"; then
6608   { echo "$as_me:$LINENO: result: $RM" >&5
6609 echo "${ECHO_T}$RM" >&6; }
6610 else
6611   { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6613 fi
6614
6615
6616 # Extract the first word of "sed", so it can be a program name with args.
6617 set dummy sed; 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_SED+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   case $SED in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
6644   ;;
6645 esac
6646 fi
6647 SED=$ac_cv_path_SED
6648 if test -n "$SED"; then
6649   { echo "$as_me:$LINENO: result: $SED" >&5
6650 echo "${ECHO_T}$SED" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 # Extract the first word of "tar", so it can be a program name with args.
6658 set dummy tar; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_TAR+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   case $TAR in
6665   [\\/]* | ?:[\\/]*)
6666   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6667   ;;
6668   *)
6669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674   for ac_exec_ext in '' $ac_executable_extensions; do
6675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681 done
6682 IFS=$as_save_IFS
6683
6684   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6685   ;;
6686 esac
6687 fi
6688 TAR=$ac_cv_path_TAR
6689 if test -n "$TAR"; then
6690   { echo "$as_me:$LINENO: result: $TAR" >&5
6691 echo "${ECHO_T}$TAR" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698 # Extract the first word of "pwd", so it can be a program name with args.
6699 set dummy pwd; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_BINPWD+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   case $BINPWD in
6706   [\\/]* | ?:[\\/]*)
6707   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6708   ;;
6709   *)
6710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6726   ;;
6727 esac
6728 fi
6729 BINPWD=$ac_cv_path_BINPWD
6730 if test -n "$BINPWD"; then
6731   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6732 echo "${ECHO_T}$BINPWD" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738
6739
6740 # Extract the first word of "Graphviz", so it can be a program name with args.
6741 set dummy Graphviz; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $GRAPHVIZ in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6768   ;;
6769 esac
6770 fi
6771 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6772 if test -n "$GRAPHVIZ"; then
6773   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6774 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_GRAPHVIZ 1
6785 _ACEOF
6786
6787     if test "$llvm_cv_os_type" = "MingW" ; then
6788     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789   fi
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6793 _ACEOF
6794
6795 fi
6796 # Extract the first word of "dot", so it can be a program name with args.
6797 set dummy dot; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_DOT+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   case $DOT in
6804   [\\/]* | ?:[\\/]*)
6805   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6806   ;;
6807   *)
6808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813   for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6824   ;;
6825 esac
6826 fi
6827 DOT=$ac_cv_path_DOT
6828 if test -n "$DOT"; then
6829   { echo "$as_me:$LINENO: result: $DOT" >&5
6830 echo "${ECHO_T}$DOT" >&6; }
6831 else
6832   { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6835
6836
6837 if test "$DOT" != "echo dot" ; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_DOT 1
6841 _ACEOF
6842
6843     if test "$llvm_cv_os_type" = "MingW" ; then
6844     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6845   fi
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6849 _ACEOF
6850
6851 fi
6852 # Extract the first word of "fdp", so it can be a program name with args.
6853 set dummy fdp; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_path_FDP+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   case $FDP in
6860   [\\/]* | ?:[\\/]*)
6861   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6862   ;;
6863   *)
6864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6880   ;;
6881 esac
6882 fi
6883 FDP=$ac_cv_path_FDP
6884 if test -n "$FDP"; then
6885   { echo "$as_me:$LINENO: result: $FDP" >&5
6886 echo "${ECHO_T}$FDP" >&6; }
6887 else
6888   { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6890 fi
6891
6892
6893 if test "$FDP" != "echo fdp" ; then
6894
6895 cat >>confdefs.h <<\_ACEOF
6896 #define HAVE_FDP 1
6897 _ACEOF
6898
6899     if test "$llvm_cv_os_type" = "MingW" ; then
6900     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6901   fi
6902
6903 cat >>confdefs.h <<_ACEOF
6904 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6905 _ACEOF
6906
6907 fi
6908 # Extract the first word of "neato", so it can be a program name with args.
6909 set dummy neato; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_path_NEATO+set}" = set; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   case $NEATO in
6916   [\\/]* | ?:[\\/]*)
6917   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6918   ;;
6919   *)
6920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925   for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6936   ;;
6937 esac
6938 fi
6939 NEATO=$ac_cv_path_NEATO
6940 if test -n "$NEATO"; then
6941   { echo "$as_me:$LINENO: result: $NEATO" >&5
6942 echo "${ECHO_T}$NEATO" >&6; }
6943 else
6944   { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6946 fi
6947
6948
6949 if test "$NEATO" != "echo neato" ; then
6950
6951 cat >>confdefs.h <<\_ACEOF
6952 #define HAVE_NEATO 1
6953 _ACEOF
6954
6955     if test "$llvm_cv_os_type" = "MingW" ; then
6956     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6957   fi
6958
6959 cat >>confdefs.h <<_ACEOF
6960 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6961 _ACEOF
6962
6963 fi
6964 # Extract the first word of "twopi", so it can be a program name with args.
6965 set dummy twopi; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_TWOPI+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   case $TWOPI in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981   for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6992   ;;
6993 esac
6994 fi
6995 TWOPI=$ac_cv_path_TWOPI
6996 if test -n "$TWOPI"; then
6997   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6998 echo "${ECHO_T}$TWOPI" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004
7005 if test "$TWOPI" != "echo twopi" ; then
7006
7007 cat >>confdefs.h <<\_ACEOF
7008 #define HAVE_TWOPI 1
7009 _ACEOF
7010
7011     if test "$llvm_cv_os_type" = "MingW" ; then
7012     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7013   fi
7014
7015 cat >>confdefs.h <<_ACEOF
7016 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7017 _ACEOF
7018
7019 fi
7020 # Extract the first word of "circo", so it can be a program name with args.
7021 set dummy circo; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_path_CIRCO+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   case $CIRCO in
7028   [\\/]* | ?:[\\/]*)
7029   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7030   ;;
7031   *)
7032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7039     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7048   ;;
7049 esac
7050 fi
7051 CIRCO=$ac_cv_path_CIRCO
7052 if test -n "$CIRCO"; then
7053   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7054 echo "${ECHO_T}$CIRCO" >&6; }
7055 else
7056   { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7058 fi
7059
7060
7061 if test "$CIRCO" != "echo circo" ; then
7062
7063 cat >>confdefs.h <<\_ACEOF
7064 #define HAVE_CIRCO 1
7065 _ACEOF
7066
7067     if test "$llvm_cv_os_type" = "MingW" ; then
7068     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7069   fi
7070
7071 cat >>confdefs.h <<_ACEOF
7072 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7073 _ACEOF
7074
7075 fi
7076 for ac_prog in gv gsview32
7077 do
7078   # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_GV+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $GV in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   ;;
7106 esac
7107 fi
7108 GV=$ac_cv_path_GV
7109 if test -n "$GV"; then
7110   { echo "$as_me:$LINENO: result: $GV" >&5
7111 echo "${ECHO_T}$GV" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118   test -n "$GV" && break
7119 done
7120 test -n "$GV" || GV="echo gv"
7121
7122 if test "$GV" != "echo gv" ; then
7123
7124 cat >>confdefs.h <<\_ACEOF
7125 #define HAVE_GV 1
7126 _ACEOF
7127
7128     if test "$llvm_cv_os_type" = "MingW" ; then
7129     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7130   fi
7131
7132 cat >>confdefs.h <<_ACEOF
7133 #define LLVM_PATH_GV "$GV${EXEEXT}"
7134 _ACEOF
7135
7136 fi
7137 # Extract the first word of "dotty", so it can be a program name with args.
7138 set dummy dotty; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_DOTTY+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   case $DOTTY in
7145   [\\/]* | ?:[\\/]*)
7146   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7147   ;;
7148   *)
7149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154   for ac_exec_ext in '' $ac_executable_extensions; do
7155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7165   ;;
7166 esac
7167 fi
7168 DOTTY=$ac_cv_path_DOTTY
7169 if test -n "$DOTTY"; then
7170   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7171 echo "${ECHO_T}$DOTTY" >&6; }
7172 else
7173   { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7175 fi
7176
7177
7178 if test "$DOTTY" != "echo dotty" ; then
7179
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_DOTTY 1
7182 _ACEOF
7183
7184     if test "$llvm_cv_os_type" = "MingW" ; then
7185     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7186   fi
7187
7188 cat >>confdefs.h <<_ACEOF
7189 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7190 _ACEOF
7191
7192 fi
7193 # Extract the first word of "xdot.py", so it can be a program name with args.
7194 set dummy xdot.py; ac_word=$2
7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   case $XDOT_PY in
7201   [\\/]* | ?:[\\/]*)
7202   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7203   ;;
7204   *)
7205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210   for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7221   ;;
7222 esac
7223 fi
7224 XDOT_PY=$ac_cv_path_XDOT_PY
7225 if test -n "$XDOT_PY"; then
7226   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7227 echo "${ECHO_T}$XDOT_PY" >&6; }
7228 else
7229   { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7231 fi
7232
7233
7234 if test "$XDOT_PY" != "echo xdot.py" ; then
7235
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_XDOT_PY 1
7238 _ACEOF
7239
7240     if test "$llvm_cv_os_type" = "MingW" ; then
7241     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7242   fi
7243
7244 cat >>confdefs.h <<_ACEOF
7245 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7246 _ACEOF
7247
7248 fi
7249
7250 # Find a good install program.  We prefer a C program (faster),
7251 # so one script is as good as another.  But avoid the broken or
7252 # incompatible versions:
7253 # SysV /etc/install, /usr/sbin/install
7254 # SunOS /usr/etc/install
7255 # IRIX /sbin/install
7256 # AIX /bin/install
7257 # AmigaOS /C/install, which installs bootblocks on floppy discs
7258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7261 # OS/2's system install, which has a completely different semantic
7262 # ./install, which can be erroneously created by make from ./install.sh.
7263 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7265 if test -z "$INSTALL"; then
7266 if test "${ac_cv_path_install+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   # Account for people who put trailing slashes in PATH elements.
7275 case $as_dir/ in
7276   ./ | .// | /cC/* | \
7277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7279   /usr/ucb/* ) ;;
7280   *)
7281     # OSF1 and SCO ODT 3.0 have their own names for install.
7282     # Don't use installbsd from OSF since it installs stuff as root
7283     # by default.
7284     for ac_prog in ginstall scoinst install; do
7285       for ac_exec_ext in '' $ac_executable_extensions; do
7286         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7287           if test $ac_prog = install &&
7288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7289             # AIX install.  It has an incompatible calling convention.
7290             :
7291           elif test $ac_prog = install &&
7292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7293             # program-specific install script used by HP pwplus--don't use.
7294             :
7295           else
7296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7297             break 3
7298           fi
7299         fi
7300       done
7301     done
7302     ;;
7303 esac
7304 done
7305 IFS=$as_save_IFS
7306
7307
7308 fi
7309   if test "${ac_cv_path_install+set}" = set; then
7310     INSTALL=$ac_cv_path_install
7311   else
7312     # As a last resort, use the slow shell script.  Don't cache a
7313     # value for INSTALL within a source directory, because that will
7314     # break other packages using the cache if that directory is
7315     # removed, or if the value is a relative name.
7316     INSTALL=$ac_install_sh
7317   fi
7318 fi
7319 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7320 echo "${ECHO_T}$INSTALL" >&6; }
7321
7322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7323 # It thinks the first close brace ends the variable substitution.
7324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7325
7326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7327
7328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7329
7330 case "$INSTALL" in
7331  [\\/$]* | ?:[\\/]* ) ;;
7332  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7333 esac
7334
7335 # Extract the first word of "bzip2", so it can be a program name with args.
7336 set dummy bzip2; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_BZIP2+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   case $BZIP2 in
7343   [\\/]* | ?:[\\/]*)
7344   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7345   ;;
7346   *)
7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_exec_ext in '' $ac_executable_extensions; do
7353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362   ;;
7363 esac
7364 fi
7365 BZIP2=$ac_cv_path_BZIP2
7366 if test -n "$BZIP2"; then
7367   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7368 echo "${ECHO_T}$BZIP2" >&6; }
7369 else
7370   { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7372 fi
7373
7374
7375 # Extract the first word of "cat", so it can be a program name with args.
7376 set dummy cat; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_CAT+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   case $CAT in
7383   [\\/]* | ?:[\\/]*)
7384   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7385   ;;
7386   *)
7387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402   ;;
7403 esac
7404 fi
7405 CAT=$ac_cv_path_CAT
7406 if test -n "$CAT"; then
7407   { echo "$as_me:$LINENO: result: $CAT" >&5
7408 echo "${ECHO_T}$CAT" >&6; }
7409 else
7410   { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7413
7414
7415 # Extract the first word of "doxygen", so it can be a program name with args.
7416 set dummy doxygen; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   case $DOXYGEN in
7423   [\\/]* | ?:[\\/]*)
7424   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7425   ;;
7426   *)
7427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442   ;;
7443 esac
7444 fi
7445 DOXYGEN=$ac_cv_path_DOXYGEN
7446 if test -n "$DOXYGEN"; then
7447   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7448 echo "${ECHO_T}$DOXYGEN" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7453
7454
7455 # Extract the first word of "groff", so it can be a program name with args.
7456 set dummy groff; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_GROFF+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   case $GROFF in
7463   [\\/]* | ?:[\\/]*)
7464   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7465   ;;
7466   *)
7467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482   ;;
7483 esac
7484 fi
7485 GROFF=$ac_cv_path_GROFF
7486 if test -n "$GROFF"; then
7487   { echo "$as_me:$LINENO: result: $GROFF" >&5
7488 echo "${ECHO_T}$GROFF" >&6; }
7489 else
7490   { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7492 fi
7493
7494
7495 # Extract the first word of "gzip", so it can be a program name with args.
7496 set dummy gzip; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $GZIPBIN in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 GZIPBIN=$ac_cv_path_GZIPBIN
7526 if test -n "$GZIPBIN"; then
7527   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7528 echo "${ECHO_T}$GZIPBIN" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535 # Extract the first word of "pdfroff", so it can be a program name with args.
7536 set dummy pdfroff; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_PDFROFF+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   case $PDFROFF in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562   ;;
7563 esac
7564 fi
7565 PDFROFF=$ac_cv_path_PDFROFF
7566 if test -n "$PDFROFF"; then
7567   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7568 echo "${ECHO_T}$PDFROFF" >&6; }
7569 else
7570   { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7572 fi
7573
7574
7575 # Extract the first word of "zip", so it can be a program name with args.
7576 set dummy zip; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_ZIP+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   case $ZIP in
7583   [\\/]* | ?:[\\/]*)
7584   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7585   ;;
7586   *)
7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592   for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602   ;;
7603 esac
7604 fi
7605 ZIP=$ac_cv_path_ZIP
7606 if test -n "$ZIP"; then
7607   { echo "$as_me:$LINENO: result: $ZIP" >&5
7608 echo "${ECHO_T}$ZIP" >&6; }
7609 else
7610   { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7612 fi
7613
7614
7615 for ac_prog in ocamlc
7616 do
7617   # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_OCAMLC+set}" = set; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624   case $OCAMLC in
7625   [\\/]* | ?:[\\/]*)
7626   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7627   ;;
7628   *)
7629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632   IFS=$as_save_IFS
7633   test -z "$as_dir" && as_dir=.
7634   for ac_exec_ext in '' $ac_executable_extensions; do
7635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638     break 2
7639   fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644   ;;
7645 esac
7646 fi
7647 OCAMLC=$ac_cv_path_OCAMLC
7648 if test -n "$OCAMLC"; then
7649   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7650 echo "${ECHO_T}$OCAMLC" >&6; }
7651 else
7652   { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7654 fi
7655
7656
7657   test -n "$OCAMLC" && break
7658 done
7659
7660 for ac_prog in ocamlopt
7661 do
7662   # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   case $OCAMLOPT in
7670   [\\/]* | ?:[\\/]*)
7671   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7672   ;;
7673   *)
7674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679   for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689   ;;
7690 esac
7691 fi
7692 OCAMLOPT=$ac_cv_path_OCAMLOPT
7693 if test -n "$OCAMLOPT"; then
7694   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7695 echo "${ECHO_T}$OCAMLOPT" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702   test -n "$OCAMLOPT" && break
7703 done
7704
7705 for ac_prog in ocamldep
7706 do
7707   # Extract the first word of "$ac_prog", so it can be a program name with args.
7708 set dummy $ac_prog; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   case $OCAMLDEP in
7715   [\\/]* | ?:[\\/]*)
7716   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7717   ;;
7718   *)
7719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724   for ac_exec_ext in '' $ac_executable_extensions; do
7725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7726     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734   ;;
7735 esac
7736 fi
7737 OCAMLDEP=$ac_cv_path_OCAMLDEP
7738 if test -n "$OCAMLDEP"; then
7739   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7740 echo "${ECHO_T}$OCAMLDEP" >&6; }
7741 else
7742   { echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6; }
7744 fi
7745
7746
7747   test -n "$OCAMLDEP" && break
7748 done
7749
7750 for ac_prog in ocamldoc
7751 do
7752   # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   case $OCAMLDOC in
7760   [\\/]* | ?:[\\/]*)
7761   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7762   ;;
7763   *)
7764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769   for ac_exec_ext in '' $ac_executable_extensions; do
7770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7771     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779   ;;
7780 esac
7781 fi
7782 OCAMLDOC=$ac_cv_path_OCAMLDOC
7783 if test -n "$OCAMLDOC"; then
7784   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7785 echo "${ECHO_T}$OCAMLDOC" >&6; }
7786 else
7787   { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7789 fi
7790
7791
7792   test -n "$OCAMLDOC" && break
7793 done
7794
7795 for ac_prog in gas as
7796 do
7797   # Extract the first word of "$ac_prog", so it can be a program name with args.
7798 set dummy $ac_prog; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_path_GAS+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   case $GAS in
7805   [\\/]* | ?:[\\/]*)
7806   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7807   ;;
7808   *)
7809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814   for ac_exec_ext in '' $ac_executable_extensions; do
7815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7816     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824   ;;
7825 esac
7826 fi
7827 GAS=$ac_cv_path_GAS
7828 if test -n "$GAS"; then
7829   { echo "$as_me:$LINENO: result: $GAS" >&5
7830 echo "${ECHO_T}$GAS" >&6; }
7831 else
7832   { echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6; }
7834 fi
7835
7836
7837   test -n "$GAS" && break
7838 done
7839
7840
7841 { echo "$as_me:$LINENO: checking for linker version" >&5
7842 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7843 if test "${llvm_cv_link_version+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846
7847    version_string="$(ld -v 2>&1 | head -1)"
7848
7849    # Check for ld64.
7850    if (echo "$version_string" | grep -q "ld64"); then
7851      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7852    else
7853      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7854    fi
7855
7856 fi
7857 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7858 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7859
7860 cat >>confdefs.h <<_ACEOF
7861 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7862 _ACEOF
7863
7864
7865
7866 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7867 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7868 if test "${llvm_cv_link_use_r+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871    ac_ext=c
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877   oldcflags="$CFLAGS"
7878   CFLAGS="$CFLAGS -Wl,-R."
7879   cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 int
7887 main ()
7888 {
7889
7890   ;
7891   return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7896 case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901   (eval "$ac_link") 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7909   { (case "(($ac_try" in
7910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911   *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914   (eval "$ac_try") 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; } &&
7918          { ac_try='test -s conftest$ac_exeext'
7919   { (case "(($ac_try" in
7920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921   *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924   (eval "$ac_try") 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; }; then
7928   llvm_cv_link_use_r=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933         llvm_cv_link_use_r=no
7934 fi
7935
7936 rm -f core conftest.err conftest.$ac_objext \
7937       conftest$ac_exeext conftest.$ac_ext
7938   CFLAGS="$oldcflags"
7939   ac_ext=c
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945
7946 fi
7947 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7948 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7949 if test "$llvm_cv_link_use_r" = yes ; then
7950
7951 cat >>confdefs.h <<\_ACEOF
7952 #define HAVE_LINK_R 1
7953 _ACEOF
7954
7955   fi
7956
7957
7958 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7959 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7960 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963    ac_ext=c
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968
7969   oldcflags="$CFLAGS"
7970   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7971   cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977
7978 int
7979 main ()
7980 {
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_link") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } &&
8000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001   { (case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_try") 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; } &&
8010          { ac_try='test -s conftest$ac_exeext'
8011   { (case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016   (eval "$ac_try") 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   llvm_cv_link_use_export_dynamic=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         llvm_cv_link_use_export_dynamic=no
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext \
8029       conftest$ac_exeext conftest.$ac_ext
8030   CFLAGS="$oldcflags"
8031   ac_ext=c
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037
8038 fi
8039 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8040 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8041 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8042
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_LINK_EXPORT_DYNAMIC 1
8045 _ACEOF
8046
8047   fi
8048
8049
8050 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8051 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8052 if test "${llvm_cv_link_use_version_script+set}" = set; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055    ac_ext=c
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061   oldcflags="$CFLAGS"
8062
8063   # The following code is from the autoconf manual,
8064   # "11.13: Limitations of Usual Tools".
8065   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8066   # Use mktemp if possible; otherwise fall back on mkdir,
8067   # with $RANDOM to make collisions less likely.
8068   : ${TMPDIR=/tmp}
8069   {
8070     tmp=`
8071       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8072     ` &&
8073     test -n "$tmp" && test -d "$tmp"
8074   } || {
8075     tmp=$TMPDIR/foo$$-$RANDOM
8076     (umask 077 && mkdir "$tmp")
8077   } || exit $?
8078
8079   echo "{" > "$tmp/export.map"
8080   echo "  global: main;" >> "$tmp/export.map"
8081   echo "  local: *;" >> "$tmp/export.map"
8082   echo "};" >> "$tmp/export.map"
8083
8084   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091
8092 int
8093 main ()
8094 {
8095
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (ac_try="$ac_link"
8102 case "(($ac_try" in
8103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104   *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107   (eval "$ac_link") 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115   { (case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120   (eval "$ac_try") 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; } &&
8124          { ac_try='test -s conftest$ac_exeext'
8125   { (case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_try") 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   llvm_cv_link_use_version_script=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139         llvm_cv_link_use_version_script=no
8140 fi
8141
8142 rm -f core conftest.err conftest.$ac_objext \
8143       conftest$ac_exeext conftest.$ac_ext
8144   rm "$tmp/export.map"
8145   rmdir "$tmp"
8146   CFLAGS="$oldcflags"
8147   ac_ext=c
8148 ac_cpp='$CPP $CPPFLAGS'
8149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
8153
8154 fi
8155 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8156 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8157 if test "$llvm_cv_link_use_version_script" = yes ; then
8158   HAVE_LINK_VERSION_SCRIPT=1
8159
8160   fi
8161
8162
8163
8164
8165 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8166 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8167 if test "${ac_cv_c_const+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176
8177 int
8178 main ()
8179 {
8180 /* FIXME: Include the comments suggested by Paul. */
8181 #ifndef __cplusplus
8182   /* Ultrix mips cc rejects this.  */
8183   typedef int charset[2];
8184   const charset x;
8185   /* SunOS 4.1.1 cc rejects this.  */
8186   char const *const *ccp;
8187   char **p;
8188   /* NEC SVR4.0.2 mips cc rejects this.  */
8189   struct point {int x, y;};
8190   static struct point const zero = {0,0};
8191   /* AIX XL C 1.02.0.0 rejects this.
8192      It does not let you subtract one const X* pointer from another in
8193      an arm of an if-expression whose if-part is not a constant
8194      expression */
8195   const char *g = "string";
8196   ccp = &g + (g ? g-g : 0);
8197   /* HPUX 7.0 cc rejects these. */
8198   ++ccp;
8199   p = (char**) ccp;
8200   ccp = (char const *const *) p;
8201   { /* SCO 3.2v4 cc rejects this.  */
8202     char *t;
8203     char const *s = 0 ? (char *) 0 : (char const *) 0;
8204
8205     *t++ = 0;
8206     if (s) return 0;
8207   }
8208   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8209     int x[] = {25, 17};
8210     const int *foo = &x[0];
8211     ++foo;
8212   }
8213   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8214     typedef const int *iptr;
8215     iptr p = 0;
8216     ++p;
8217   }
8218   { /* AIX XL C 1.02.0.0 rejects this saying
8219        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8220     struct s { int j; const int *ap[3]; };
8221     struct s *b; b->j = 5;
8222   }
8223   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8224     const int foo = 10;
8225     if (!foo) return 0;
8226   }
8227   return !x[0] && !zero.x;
8228 #endif
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238   *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241   (eval "$ac_compile") 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } &&
8248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249   { (case "(($ac_try" in
8250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251   *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254   (eval "$ac_try") 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; } &&
8258          { ac_try='test -s conftest.$ac_objext'
8259   { (case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_try") 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   ac_cv_c_const=yes
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273         ac_cv_c_const=no
8274 fi
8275
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 fi
8278 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8279 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8280 if test $ac_cv_c_const = no; then
8281
8282 cat >>confdefs.h <<\_ACEOF
8283 #define const
8284 _ACEOF
8285
8286 fi
8287
8288
8289
8290
8291
8292
8293 ac_header_dirent=no
8294 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8295   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8296 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8297 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307 #include <sys/types.h>
8308 #include <$ac_hdr>
8309
8310 int
8311 main ()
8312 {
8313 if ((DIR *) 0)
8314 return 0;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323   *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326   (eval "$ac_compile") 2>conftest.er1
8327   ac_status=$?
8328   grep -v '^ *+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } &&
8333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334   { (case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_try") 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; } &&
8343          { ac_try='test -s conftest.$ac_objext'
8344   { (case "(($ac_try" in
8345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346   *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349   (eval "$ac_try") 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; }; then
8353   eval "$as_ac_Header=yes"
8354 else
8355   echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358         eval "$as_ac_Header=no"
8359 fi
8360
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 fi
8363 ac_res=`eval echo '${'$as_ac_Header'}'`
8364                { echo "$as_me:$LINENO: result: $ac_res" >&5
8365 echo "${ECHO_T}$ac_res" >&6; }
8366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8367   cat >>confdefs.h <<_ACEOF
8368 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8369 _ACEOF
8370
8371 ac_header_dirent=$ac_hdr; break
8372 fi
8373
8374 done
8375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8376 if test $ac_header_dirent = dirent.h; then
8377   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8379 if test "${ac_cv_search_opendir+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   ac_func_search_save_LIBS=$LIBS
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389
8390 /* Override any GCC internal prototype to avoid an error.
8391    Use char because int might match the return type of a GCC
8392    builtin and then its argument prototype would still apply.  */
8393 #ifdef __cplusplus
8394 extern "C"
8395 #endif
8396 char opendir ();
8397 int
8398 main ()
8399 {
8400 return opendir ();
8401   ;
8402   return 0;
8403 }
8404 _ACEOF
8405 for ac_lib in '' dir; do
8406   if test -z "$ac_lib"; then
8407     ac_res="none required"
8408   else
8409     ac_res=-l$ac_lib
8410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8411   fi
8412   rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (ac_try="$ac_link"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_link") 2>conftest.er1
8420   ac_status=$?
8421   grep -v '^ *+' conftest.er1 >conftest.err
8422   rm -f conftest.er1
8423   cat conftest.err >&5
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); } &&
8426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8427   { (case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432   (eval "$ac_try") 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; } &&
8436          { ac_try='test -s conftest$ac_exeext'
8437   { (case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442   (eval "$ac_try") 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_search_opendir=$ac_res
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451
8452 fi
8453
8454 rm -f core conftest.err conftest.$ac_objext \
8455       conftest$ac_exeext
8456   if test "${ac_cv_search_opendir+set}" = set; then
8457   break
8458 fi
8459 done
8460 if test "${ac_cv_search_opendir+set}" = set; then
8461   :
8462 else
8463   ac_cv_search_opendir=no
8464 fi
8465 rm conftest.$ac_ext
8466 LIBS=$ac_func_search_save_LIBS
8467 fi
8468 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8469 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8470 ac_res=$ac_cv_search_opendir
8471 if test "$ac_res" != no; then
8472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8473
8474 fi
8475
8476 else
8477   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8479 if test "${ac_cv_search_opendir+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   ac_func_search_save_LIBS=$LIBS
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489
8490 /* Override any GCC internal prototype to avoid an error.
8491    Use char because int might match the return type of a GCC
8492    builtin and then its argument prototype would still apply.  */
8493 #ifdef __cplusplus
8494 extern "C"
8495 #endif
8496 char opendir ();
8497 int
8498 main ()
8499 {
8500 return opendir ();
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 for ac_lib in '' x; do
8506   if test -z "$ac_lib"; then
8507     ac_res="none required"
8508   else
8509     ac_res=-l$ac_lib
8510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8511   fi
8512   rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8514 case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519   (eval "$ac_link") 2>conftest.er1
8520   ac_status=$?
8521   grep -v '^ *+' conftest.er1 >conftest.err
8522   rm -f conftest.er1
8523   cat conftest.err >&5
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527   { (case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_try") 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; } &&
8536          { ac_try='test -s conftest$ac_exeext'
8537   { (case "(($ac_try" in
8538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539   *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542   (eval "$ac_try") 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   ac_cv_search_opendir=$ac_res
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551
8552 fi
8553
8554 rm -f core conftest.err conftest.$ac_objext \
8555       conftest$ac_exeext
8556   if test "${ac_cv_search_opendir+set}" = set; then
8557   break
8558 fi
8559 done
8560 if test "${ac_cv_search_opendir+set}" = set; then
8561   :
8562 else
8563   ac_cv_search_opendir=no
8564 fi
8565 rm conftest.$ac_ext
8566 LIBS=$ac_func_search_save_LIBS
8567 fi
8568 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8569 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8570 ac_res=$ac_cv_search_opendir
8571 if test "$ac_res" != no; then
8572   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8573
8574 fi
8575
8576 fi
8577
8578
8579 for ac_header in dlfcn.h
8580 do
8581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 fi
8588 ac_res=`eval echo '${'$as_ac_Header'}'`
8589                { echo "$as_me:$LINENO: result: $ac_res" >&5
8590 echo "${ECHO_T}$ac_res" >&6; }
8591 else
8592   # Is the header compilable?
8593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601 $ac_includes_default
8602 #include <$ac_header>
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608   *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611   (eval "$ac_compile") 2>conftest.er1
8612   ac_status=$?
8613   grep -v '^ *+' conftest.er1 >conftest.err
8614   rm -f conftest.er1
8615   cat conftest.err >&5
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } &&
8618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619   { (case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624   (eval "$ac_try") 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest.$ac_objext'
8629   { (case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_try") 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; }; then
8638   ac_header_compiler=yes
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643         ac_header_compiler=no
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8648 echo "${ECHO_T}$ac_header_compiler" >&6; }
8649
8650 # Is the header present?
8651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659 #include <$ac_header>
8660 _ACEOF
8661 if { (ac_try="$ac_cpp conftest.$ac_ext"
8662 case "(($ac_try" in
8663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664   *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } >/dev/null; then
8674   if test -s conftest.err; then
8675     ac_cpp_err=$ac_c_preproc_warn_flag
8676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8677   else
8678     ac_cpp_err=
8679   fi
8680 else
8681   ac_cpp_err=yes
8682 fi
8683 if test -z "$ac_cpp_err"; then
8684   ac_header_preproc=yes
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689   ac_header_preproc=no
8690 fi
8691
8692 rm -f conftest.err conftest.$ac_ext
8693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8694 echo "${ECHO_T}$ac_header_preproc" >&6; }
8695
8696 # So?  What about this header?
8697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8698   yes:no: )
8699     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8703     ac_header_preproc=yes
8704     ;;
8705   no:yes:* )
8706     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8709 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8710     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8712     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8713 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8716     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8718     ( cat <<\_ASBOX
8719 ## ------------------------------------ ##
8720 ## Report this to http://llvm.org/bugs/ ##
8721 ## ------------------------------------ ##
8722 _ASBOX
8723      ) | sed "s/^/$as_me: WARNING:     /" >&2
8724     ;;
8725 esac
8726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   eval "$as_ac_Header=\$ac_header_preproc"
8732 fi
8733 ac_res=`eval echo '${'$as_ac_Header'}'`
8734                { echo "$as_me:$LINENO: result: $ac_res" >&5
8735 echo "${ECHO_T}$ac_res" >&6; }
8736
8737 fi
8738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8739   cat >>confdefs.h <<_ACEOF
8740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8741 _ACEOF
8742
8743 fi
8744
8745 done
8746
8747 # Check whether --enable-ltdl-install was given.
8748 if test "${enable_ltdl_install+set}" = set; then
8749   enableval=$enable_ltdl_install;
8750 fi
8751
8752
8753
8754
8755 if test x"${enable_ltdl_install-no}" != xno; then
8756   INSTALL_LTDL_TRUE=
8757   INSTALL_LTDL_FALSE='#'
8758 else
8759   INSTALL_LTDL_TRUE='#'
8760   INSTALL_LTDL_FALSE=
8761 fi
8762
8763
8764
8765 if test x"${enable_ltdl_convenience-no}" != xno; then
8766   CONVENIENCE_LTDL_TRUE=
8767   CONVENIENCE_LTDL_FALSE='#'
8768 else
8769   CONVENIENCE_LTDL_TRUE='#'
8770   CONVENIENCE_LTDL_FALSE=
8771 fi
8772
8773
8774 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8775 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8776 library_names_spec=
8777 libname_spec='lib$name'
8778 soname_spec=
8779 shrext_cmds=".so"
8780 postinstall_cmds=
8781 postuninstall_cmds=
8782 finish_cmds=
8783 finish_eval=
8784 shlibpath_var=
8785 shlibpath_overrides_runpath=unknown
8786 version_type=none
8787 dynamic_linker="$host_os ld.so"
8788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8789 if test "$GCC" = yes; then
8790   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8791   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8792     # if the path contains ";" then we assume it to be the separator
8793     # otherwise default to the standard path separator (i.e. ":") - it is
8794     # assumed that no part of a normal pathname contains ";" but that should
8795     # okay in the real world where ";" in dirpaths is itself problematic.
8796     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8797   else
8798     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8799   fi
8800 else
8801   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8802 fi
8803 need_lib_prefix=unknown
8804 hardcode_into_libs=no
8805
8806 # when you set need_version to no, make sure it does not cause -set_version
8807 # flags to be left without arguments
8808 need_version=unknown
8809
8810 case $host_os in
8811 aix3*)
8812   version_type=linux
8813   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8814   shlibpath_var=LIBPATH
8815
8816   # AIX 3 has no versioning support, so we append a major version to the name.
8817   soname_spec='${libname}${release}${shared_ext}$major'
8818   ;;
8819
8820 aix4* | aix5*)
8821   version_type=linux
8822   need_lib_prefix=no
8823   need_version=no
8824   hardcode_into_libs=yes
8825   if test "$host_cpu" = ia64; then
8826     # AIX 5 supports IA64
8827     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8828     shlibpath_var=LD_LIBRARY_PATH
8829   else
8830     # With GCC up to 2.95.x, collect2 would create an import file
8831     # for dependence libraries.  The import file would start with
8832     # the line `#! .'.  This would cause the generated library to
8833     # depend on `.', always an invalid library.  This was fixed in
8834     # development snapshots of GCC prior to 3.0.
8835     case $host_os in
8836       aix4 | aix4.[01] | aix4.[01].*)
8837       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8838            echo ' yes '
8839            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8840         :
8841       else
8842         can_build_shared=no
8843       fi
8844       ;;
8845     esac
8846     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8847     # soname into executable. Probably we can add versioning support to
8848     # collect2, so additional links can be useful in future.
8849     if test "$aix_use_runtimelinking" = yes; then
8850       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8851       # instead of lib<name>.a to let people know that these are not
8852       # typical AIX shared libraries.
8853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854     else
8855       # We preserve .a as extension for shared libraries through AIX4.2
8856       # and later when we are not doing run time linking.
8857       library_names_spec='${libname}${release}.a $libname.a'
8858       soname_spec='${libname}${release}${shared_ext}$major'
8859     fi
8860     shlibpath_var=LIBPATH
8861   fi
8862   ;;
8863
8864 amigaos*)
8865   library_names_spec='$libname.ixlibrary $libname.a'
8866   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8867   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'
8868   ;;
8869
8870 beos*)
8871   library_names_spec='${libname}${shared_ext}'
8872   dynamic_linker="$host_os ld.so"
8873   shlibpath_var=LIBRARY_PATH
8874   ;;
8875
8876 bsdi[45]*)
8877   version_type=linux
8878   need_version=no
8879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880   soname_spec='${libname}${release}${shared_ext}$major'
8881   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8882   shlibpath_var=LD_LIBRARY_PATH
8883   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8884   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8885   # the default ld.so.conf also contains /usr/contrib/lib and
8886   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8887   # libtool to hard-code these into programs
8888   ;;
8889
8890 cygwin* | mingw* | pw32*)
8891   version_type=windows
8892   shrext_cmds=".dll"
8893   need_version=no
8894   need_lib_prefix=no
8895
8896   case $GCC,$host_os in
8897   yes,cygwin* | yes,mingw* | yes,pw32*)
8898     library_names_spec='$libname.dll.a'
8899     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8900     postinstall_cmds='base_file=`basename \${file}`~
8901       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8902       dldir=$destdir/`dirname \$dlpath`~
8903       test -d \$dldir || mkdir -p \$dldir~
8904       $install_prog $dir/$dlname \$dldir/$dlname~
8905       chmod a+x \$dldir/$dlname'
8906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8907       dlpath=$dir/\$dldll~
8908        $rm \$dlpath'
8909     shlibpath_overrides_runpath=yes
8910
8911     case $host_os in
8912     cygwin*)
8913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8915       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8916       ;;
8917     mingw*)
8918       # MinGW DLLs use traditional 'lib' prefix
8919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8920       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8921       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8922         # It is most probably a Windows format PATH printed by
8923         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8924         # path with ; separators, and with drive letters. We can handle the
8925         # drive letters (cygwin fileutils understands them), so leave them,
8926         # especially as we might pass files found there to a mingw objdump,
8927         # which wouldn't understand a cygwinified path. Ahh.
8928         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8929       else
8930         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8931       fi
8932       ;;
8933     pw32*)
8934       # pw32 DLLs use 'pw' prefix rather than 'lib'
8935       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8936       ;;
8937     esac
8938     ;;
8939
8940   *)
8941     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8942     ;;
8943   esac
8944   dynamic_linker='Win32 ld.exe'
8945   # FIXME: first we should search . and the directory the executable is in
8946   shlibpath_var=PATH
8947   ;;
8948
8949 darwin* | rhapsody*)
8950   dynamic_linker="$host_os dyld"
8951   version_type=darwin
8952   need_lib_prefix=no
8953   need_version=no
8954   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8955   soname_spec='${libname}${release}${major}$shared_ext'
8956   shlibpath_overrides_runpath=yes
8957   shlibpath_var=DYLD_LIBRARY_PATH
8958   shrext_cmds='.dylib'
8959   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8960   if test "$GCC" = yes; then
8961     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"`
8962   else
8963     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8964   fi
8965   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8966   ;;
8967
8968 dgux*)
8969   version_type=linux
8970   need_lib_prefix=no
8971   need_version=no
8972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8973   soname_spec='${libname}${release}${shared_ext}$major'
8974   shlibpath_var=LD_LIBRARY_PATH
8975   ;;
8976
8977 freebsd1.*)
8978   dynamic_linker=no
8979   ;;
8980
8981 kfreebsd*-gnu)
8982   version_type=linux
8983   need_lib_prefix=no
8984   need_version=no
8985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986   soname_spec='${libname}${release}${shared_ext}$major'
8987   shlibpath_var=LD_LIBRARY_PATH
8988   shlibpath_overrides_runpath=no
8989   hardcode_into_libs=yes
8990   dynamic_linker='GNU ld.so'
8991   ;;
8992
8993 freebsd* | dragonfly*)
8994   # DragonFly does not have aout.  When/if they implement a new
8995   # versioning mechanism, adjust this.
8996   if test -x /usr/bin/objformat; then
8997     objformat=`/usr/bin/objformat`
8998   else
8999     case $host_os in
9000     freebsd[123].*) objformat=aout ;;
9001     *) objformat=elf ;;
9002     esac
9003   fi
9004   version_type=freebsd-$objformat
9005   case $version_type in
9006     freebsd-elf*)
9007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9008       need_version=no
9009       need_lib_prefix=no
9010       ;;
9011     freebsd-*)
9012       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9013       need_version=yes
9014       ;;
9015   esac
9016   shlibpath_var=LD_LIBRARY_PATH
9017   case $host_os in
9018   freebsd2.*)
9019     shlibpath_overrides_runpath=yes
9020     ;;
9021   freebsd3.[01]* | freebsdelf3.[01]*)
9022     shlibpath_overrides_runpath=yes
9023     hardcode_into_libs=yes
9024     ;;
9025   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9026   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9027     shlibpath_overrides_runpath=no
9028     hardcode_into_libs=yes
9029     ;;
9030   freebsd*) # from 4.6 on
9031     shlibpath_overrides_runpath=yes
9032     hardcode_into_libs=yes
9033     ;;
9034   esac
9035   ;;
9036
9037 gnu*)
9038   version_type=linux
9039   need_lib_prefix=no
9040   need_version=no
9041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9042   soname_spec='${libname}${release}${shared_ext}$major'
9043   shlibpath_var=LD_LIBRARY_PATH
9044   hardcode_into_libs=yes
9045   ;;
9046
9047 hpux9* | hpux10* | hpux11*)
9048   # Give a soname corresponding to the major version so that dld.sl refuses to
9049   # link against other versions.
9050   version_type=sunos
9051   need_lib_prefix=no
9052   need_version=no
9053   case $host_cpu in
9054   ia64*)
9055     shrext_cmds='.so'
9056     hardcode_into_libs=yes
9057     dynamic_linker="$host_os dld.so"
9058     shlibpath_var=LD_LIBRARY_PATH
9059     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061     soname_spec='${libname}${release}${shared_ext}$major'
9062     if test "X$HPUX_IA64_MODE" = X32; then
9063       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9064     else
9065       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9066     fi
9067     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9068     ;;
9069    hppa*64*)
9070      shrext_cmds='.sl'
9071      hardcode_into_libs=yes
9072      dynamic_linker="$host_os dld.sl"
9073      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9074      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076      soname_spec='${libname}${release}${shared_ext}$major'
9077      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9078      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079      ;;
9080    *)
9081     shrext_cmds='.sl'
9082     dynamic_linker="$host_os dld.sl"
9083     shlibpath_var=SHLIB_PATH
9084     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086     soname_spec='${libname}${release}${shared_ext}$major'
9087     ;;
9088   esac
9089   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9090   postinstall_cmds='chmod 555 $lib'
9091   ;;
9092
9093 interix3*)
9094   version_type=linux
9095   need_lib_prefix=no
9096   need_version=no
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   shlibpath_overrides_runpath=no
9102   hardcode_into_libs=yes
9103   ;;
9104
9105 irix5* | irix6* | nonstopux*)
9106   case $host_os in
9107     nonstopux*) version_type=nonstopux ;;
9108     *)
9109         if test "$lt_cv_prog_gnu_ld" = yes; then
9110                 version_type=linux
9111         else
9112                 version_type=irix
9113         fi ;;
9114   esac
9115   need_lib_prefix=no
9116   need_version=no
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9119   case $host_os in
9120   irix5* | nonstopux*)
9121     libsuff= shlibsuff=
9122     ;;
9123   *)
9124     case $LD in # libtool.m4 will add one of these switches to LD
9125     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9126       libsuff= shlibsuff= libmagic=32-bit;;
9127     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9128       libsuff=32 shlibsuff=N32 libmagic=N32;;
9129     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9130       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9131     *) libsuff= shlibsuff= libmagic=never-match;;
9132     esac
9133     ;;
9134   esac
9135   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9136   shlibpath_overrides_runpath=no
9137   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9138   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9139   hardcode_into_libs=yes
9140   ;;
9141
9142 # No shared lib support for Linux oldld, aout, or coff.
9143 linux*oldld* | linux*aout* | linux*coff*)
9144   dynamic_linker=no
9145   ;;
9146
9147 # This must be Linux ELF.
9148 linux*)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9155   shlibpath_var=LD_LIBRARY_PATH
9156   shlibpath_overrides_runpath=no
9157   # This implies no fast_install, which is unacceptable.
9158   # Some rework will be needed to allow for fast_install
9159   # before this can be enabled.
9160   hardcode_into_libs=yes
9161
9162   # Append ld.so.conf contents to the search path
9163   if test -f /etc/ld.so.conf; then
9164     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' ' '`
9165     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9166   fi
9167
9168   # We used to test for /lib/ld.so.1 and disable shared libraries on
9169   # powerpc, because MkLinux only supported shared libraries with the
9170   # GNU dynamic linker.  Since this was broken with cross compilers,
9171   # most powerpc-linux boxes support dynamic linking these days and
9172   # people can always --disable-shared, the test was removed, and we
9173   # assume the GNU/Linux dynamic linker is in use.
9174   dynamic_linker='GNU/Linux ld.so'
9175   ;;
9176
9177 knetbsd*-gnu)
9178   version_type=linux
9179   need_lib_prefix=no
9180   need_version=no
9181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182   soname_spec='${libname}${release}${shared_ext}$major'
9183   shlibpath_var=LD_LIBRARY_PATH
9184   shlibpath_overrides_runpath=no
9185   hardcode_into_libs=yes
9186   dynamic_linker='GNU ld.so'
9187   ;;
9188
9189 netbsd*)
9190   version_type=sunos
9191   need_lib_prefix=no
9192   need_version=no
9193   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9195     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9196     dynamic_linker='NetBSD (a.out) ld.so'
9197   else
9198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9199     soname_spec='${libname}${release}${shared_ext}$major'
9200     dynamic_linker='NetBSD ld.elf_so'
9201   fi
9202   shlibpath_var=LD_LIBRARY_PATH
9203   shlibpath_overrides_runpath=yes
9204   hardcode_into_libs=yes
9205   ;;
9206
9207 newsos6)
9208   version_type=linux
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   shlibpath_overrides_runpath=yes
9212   ;;
9213
9214 nto-qnx*)
9215   version_type=linux
9216   need_lib_prefix=no
9217   need_version=no
9218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   shlibpath_var=LD_LIBRARY_PATH
9221   shlibpath_overrides_runpath=yes
9222   ;;
9223
9224 openbsd* | bitrig*)
9225   version_type=sunos
9226   sys_lib_dlsearch_path_spec="/usr/lib"
9227   need_lib_prefix=no
9228   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9229   case $host_os in
9230     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9231     *)                         need_version=no  ;;
9232   esac
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9235   shlibpath_var=LD_LIBRARY_PATH
9236   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9237     case $host_os in
9238       openbsd2.[89] | openbsd2.[89].*)
9239         shlibpath_overrides_runpath=no
9240         ;;
9241       *)
9242         shlibpath_overrides_runpath=yes
9243         ;;
9244       esac
9245   else
9246     shlibpath_overrides_runpath=yes
9247   fi
9248   ;;
9249
9250 os2*)
9251   libname_spec='$name'
9252   shrext_cmds=".dll"
9253   need_lib_prefix=no
9254   library_names_spec='$libname${shared_ext} $libname.a'
9255   dynamic_linker='OS/2 ld.exe'
9256   shlibpath_var=LIBPATH
9257   ;;
9258
9259 osf3* | osf4* | osf5*)
9260   version_type=osf
9261   need_lib_prefix=no
9262   need_version=no
9263   soname_spec='${libname}${release}${shared_ext}$major'
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265   shlibpath_var=LD_LIBRARY_PATH
9266   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9267   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9268   ;;
9269
9270 solaris*)
9271   version_type=linux
9272   need_lib_prefix=no
9273   need_version=no
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   shlibpath_overrides_runpath=yes
9278   hardcode_into_libs=yes
9279   # ldd complains unless libraries are executable
9280   postinstall_cmds='chmod +x $lib'
9281   ;;
9282
9283 sunos4*)
9284   version_type=sunos
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=yes
9289   if test "$with_gnu_ld" = yes; then
9290     need_lib_prefix=no
9291   fi
9292   need_version=yes
9293   ;;
9294
9295 sysv4 | sysv4.3*)
9296   version_type=linux
9297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298   soname_spec='${libname}${release}${shared_ext}$major'
9299   shlibpath_var=LD_LIBRARY_PATH
9300   case $host_vendor in
9301     sni)
9302       shlibpath_overrides_runpath=no
9303       need_lib_prefix=no
9304       export_dynamic_flag_spec='${wl}-Blargedynsym'
9305       runpath_var=LD_RUN_PATH
9306       ;;
9307     siemens)
9308       need_lib_prefix=no
9309       ;;
9310     motorola)
9311       need_lib_prefix=no
9312       need_version=no
9313       shlibpath_overrides_runpath=no
9314       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9315       ;;
9316   esac
9317   ;;
9318
9319 sysv4*MP*)
9320   if test -d /usr/nec ;then
9321     version_type=linux
9322     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9323     soname_spec='$libname${shared_ext}.$major'
9324     shlibpath_var=LD_LIBRARY_PATH
9325   fi
9326   ;;
9327
9328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9329   version_type=freebsd-elf
9330   need_lib_prefix=no
9331   need_version=no
9332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9333   soname_spec='${libname}${release}${shared_ext}$major'
9334   shlibpath_var=LD_LIBRARY_PATH
9335   hardcode_into_libs=yes
9336   if test "$with_gnu_ld" = yes; then
9337     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9338     shlibpath_overrides_runpath=no
9339   else
9340     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9341     shlibpath_overrides_runpath=yes
9342     case $host_os in
9343       sco3.2v5*)
9344         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345         ;;
9346     esac
9347   fi
9348   sys_lib_dlsearch_path_spec='/usr/lib'
9349   ;;
9350
9351 uts4*)
9352   version_type=linux
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354   soname_spec='${libname}${release}${shared_ext}$major'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   ;;
9357
9358 *)
9359   dynamic_linker=no
9360   ;;
9361 esac
9362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9363 echo "${ECHO_T}$dynamic_linker" >&6; }
9364 test "$dynamic_linker" = no && can_build_shared=no
9365
9366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9367 if test "$GCC" = yes; then
9368   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369 fi
9370
9371
9372 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9373 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9374 if test "${libltdl_cv_shlibext+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377
9378 module=yes
9379 eval libltdl_cv_shlibext=$shrext_cmds
9380
9381 fi
9382 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9383 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9384 if test -n "$libltdl_cv_shlibext"; then
9385
9386 cat >>confdefs.h <<_ACEOF
9387 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9388 _ACEOF
9389
9390 fi
9391
9392
9393 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9394 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9395 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398   libltdl_cv_shlibpath_var="$shlibpath_var"
9399 fi
9400 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9401 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9402 if test -n "$libltdl_cv_shlibpath_var"; then
9403
9404 cat >>confdefs.h <<_ACEOF
9405 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9406 _ACEOF
9407
9408 fi
9409
9410
9411 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9412 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9413 if test "${libltdl_cv_sys_search_path+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9417 fi
9418 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9419 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9420 if test -n "$libltdl_cv_sys_search_path"; then
9421   sys_search_path=
9422   for dir in $libltdl_cv_sys_search_path; do
9423     if test -z "$sys_search_path"; then
9424       sys_search_path="$dir"
9425     else
9426       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9427     fi
9428   done
9429
9430 cat >>confdefs.h <<_ACEOF
9431 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9432 _ACEOF
9433
9434 fi
9435
9436 { echo "$as_me:$LINENO: checking for objdir" >&5
9437 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9438 if test "${libltdl_cv_objdir+set}" = set; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441   libltdl_cv_objdir="$objdir"
9442   if test -n "$objdir"; then
9443     :
9444   else
9445     rm -f .libs 2>/dev/null
9446     mkdir .libs 2>/dev/null
9447     if test -d .libs; then
9448       libltdl_cv_objdir=.libs
9449     else
9450       # MS-DOS does not allow filenames that begin with a dot.
9451       libltdl_cv_objdir=_libs
9452     fi
9453   rmdir .libs 2>/dev/null
9454   fi
9455
9456 fi
9457 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9458 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9459
9460 cat >>confdefs.h <<_ACEOF
9461 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9462 _ACEOF
9463
9464
9465
9466
9467
9468
9469 # Check for command to grab the raw symbol name followed by C symbol from nm.
9470 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475
9476 # These are sane defaults that work on at least a few old systems.
9477 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9478
9479 # Character class describing NM global symbol codes.
9480 symcode='[BCDEGRST]'
9481
9482 # Regexp to match symbols that can be accessed directly from C.
9483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9484
9485 # Transform an extracted symbol line into a proper C declaration
9486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9487
9488 # Transform an extracted symbol line into symbol name and symbol address
9489 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'"
9490
9491 # Define system-specific variables.
9492 case $host_os in
9493 aix*)
9494   symcode='[BCDT]'
9495   ;;
9496 cygwin* | mingw* | pw32*)
9497   symcode='[ABCDGISTW]'
9498   ;;
9499 hpux*) # Its linker distinguishes data from code symbols
9500   if test "$host_cpu" = ia64; then
9501     symcode='[ABCDEGRST]'
9502   fi
9503   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9504   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'"
9505   ;;
9506 linux*)
9507   if test "$host_cpu" = ia64; then
9508     symcode='[ABCDGIRSTW]'
9509     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9510     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'"
9511   fi
9512   ;;
9513 irix* | nonstopux*)
9514   symcode='[BCDEGRST]'
9515   ;;
9516 osf*)
9517   symcode='[BCDEGQRST]'
9518   ;;
9519 solaris*)
9520   symcode='[BDRT]'
9521   ;;
9522 sco3.2v5*)
9523   symcode='[DT]'
9524   ;;
9525 sysv4.2uw2*)
9526   symcode='[DT]'
9527   ;;
9528 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9529   symcode='[ABDT]'
9530   ;;
9531 sysv4)
9532   symcode='[DFNSTU]'
9533   ;;
9534 esac
9535
9536 # Handle CRLF in mingw tool chain
9537 opt_cr=
9538 case $build_os in
9539 mingw*)
9540   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9541   ;;
9542 esac
9543
9544 # If we're using GNU nm, then use its standard symbol codes.
9545 case `$NM -V 2>&1` in
9546 *GNU* | *'with BFD'*)
9547   symcode='[ABCDGIRSTW]' ;;
9548 esac
9549
9550 # Try without a prefix undercore, then with it.
9551 for ac_symprfx in "" "_"; do
9552
9553   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9554   symxfrm="\\1 $ac_symprfx\\2 \\2"
9555
9556   # Write the raw and C identifiers.
9557   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9558
9559   # Check to see that the pipe works correctly.
9560   pipe_works=no
9561
9562   rm -f conftest*
9563   cat > conftest.$ac_ext <<EOF
9564 #ifdef __cplusplus
9565 extern "C" {
9566 #endif
9567 char nm_test_var;
9568 void nm_test_func(){}
9569 #ifdef __cplusplus
9570 }
9571 #endif
9572 int main(){nm_test_var='a';nm_test_func();return(0);}
9573 EOF
9574
9575   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9576   (eval $ac_compile) 2>&5
9577   ac_status=$?
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); }; then
9580     # Now try to grab the symbols.
9581     nlist=conftest.nm
9582     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9583   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } && test -s "$nlist"; then
9587       # Try sorting and uniquifying the output.
9588       if sort "$nlist" | uniq > "$nlist"T; then
9589         mv -f "$nlist"T "$nlist"
9590       else
9591         rm -f "$nlist"T
9592       fi
9593
9594       # Make sure that we snagged all the symbols we need.
9595       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9596         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9597           cat <<EOF > conftest.$ac_ext
9598 #ifdef __cplusplus
9599 extern "C" {
9600 #endif
9601
9602 EOF
9603           # Now generate the symbol file.
9604           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9605
9606           cat <<EOF >> conftest.$ac_ext
9607 #if defined (__STDC__) && __STDC__
9608 # define lt_ptr_t void *
9609 #else
9610 # define lt_ptr_t char *
9611 # define const
9612 #endif
9613
9614 /* The mapping between symbol names and symbols. */
9615 const struct {
9616   const char *name;
9617   lt_ptr_t address;
9618 }
9619 lt_preloaded_symbols[] =
9620 {
9621 EOF
9622           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9623           cat <<\EOF >> conftest.$ac_ext
9624   {0, (lt_ptr_t) 0}
9625 };
9626
9627 #ifdef __cplusplus
9628 }
9629 #endif
9630 EOF
9631           # Now try linking the two files.
9632           mv conftest.$ac_objext conftstm.$ac_objext
9633           lt_save_LIBS="$LIBS"
9634           lt_save_CFLAGS="$CFLAGS"
9635           LIBS="conftstm.$ac_objext"
9636           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9637           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638   (eval $ac_link) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9642             pipe_works=yes
9643           fi
9644           LIBS="$lt_save_LIBS"
9645           CFLAGS="$lt_save_CFLAGS"
9646         else
9647           echo "cannot find nm_test_func in $nlist" >&5
9648         fi
9649       else
9650         echo "cannot find nm_test_var in $nlist" >&5
9651       fi
9652     else
9653       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9654     fi
9655   else
9656     echo "$progname: failed program was:" >&5
9657     cat conftest.$ac_ext >&5
9658   fi
9659   rm -f conftest* conftst*
9660
9661   # Do not use the global_symbol_pipe unless it works.
9662   if test "$pipe_works" = yes; then
9663     break
9664   else
9665     lt_cv_sys_global_symbol_pipe=
9666   fi
9667 done
9668
9669 fi
9670
9671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9672   lt_cv_sys_global_symbol_to_cdecl=
9673 fi
9674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9675   { echo "$as_me:$LINENO: result: failed" >&5
9676 echo "${ECHO_T}failed" >&6; }
9677 else
9678   { echo "$as_me:$LINENO: result: ok" >&5
9679 echo "${ECHO_T}ok" >&6; }
9680 fi
9681
9682
9683 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9684 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9685 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9689     libltdl_cv_preloaded_symbols=yes
9690   else
9691     libltdl_cv_preloaded_symbols=no
9692   fi
9693
9694 fi
9695 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9696 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9697 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9698
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_PRELOADED_SYMBOLS 1
9701 _ACEOF
9702
9703 fi
9704
9705 LIBADD_DL=
9706
9707 ac_ext=c
9708 ac_cpp='$CPP $CPPFLAGS'
9709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9712
9713
9714 { echo "$as_me:$LINENO: checking for shl_load" >&5
9715 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9716 if test "${ac_cv_func_shl_load+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9727 #define shl_load innocuous_shl_load
9728
9729 /* System header to define __stub macros and hopefully few prototypes,
9730     which can conflict with char shl_load (); below.
9731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9732     <limits.h> exists even on freestanding compilers.  */
9733
9734 #ifdef __STDC__
9735 # include <limits.h>
9736 #else
9737 # include <assert.h>
9738 #endif
9739
9740 #undef shl_load
9741
9742 /* Override any GCC internal prototype to avoid an error.
9743    Use char because int might match the return type of a GCC
9744    builtin and then its argument prototype would still apply.  */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 char shl_load ();
9749 /* The GNU C library defines this for functions which it implements
9750     to always fail with ENOSYS.  Some functions are actually named
9751     something starting with __ and the normal name is an alias.  */
9752 #if defined __stub_shl_load || defined __stub___shl_load
9753 choke me
9754 #endif
9755
9756 int
9757 main ()
9758 {
9759 return shl_load ();
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9766 case "(($ac_try" in
9767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768   *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771   (eval "$ac_link") 2>conftest.er1
9772   ac_status=$?
9773   grep -v '^ *+' conftest.er1 >conftest.err
9774   rm -f conftest.er1
9775   cat conftest.err >&5
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } &&
9778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779   { (case "(($ac_try" in
9780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781   *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784   (eval "$ac_try") 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   ac_cv_func_shl_load=yes
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803         ac_cv_func_shl_load=no
9804 fi
9805
9806 rm -f core conftest.err conftest.$ac_objext \
9807       conftest$ac_exeext conftest.$ac_ext
9808 fi
9809 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9811 if test $ac_cv_func_shl_load = yes; then
9812
9813 cat >>confdefs.h <<\_ACEOF
9814 #define HAVE_SHL_LOAD 1
9815 _ACEOF
9816
9817 else
9818   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9819 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9820 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   ac_check_lib_save_LIBS=$LIBS
9824 LIBS="-ldld  $LIBS"
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831
9832 /* Override any GCC internal prototype to avoid an error.
9833    Use char because int might match the return type of a GCC
9834    builtin and then its argument prototype would still apply.  */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 char shl_load ();
9839 int
9840 main ()
9841 {
9842 return shl_load ();
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851   *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854   (eval "$ac_link") 2>conftest.er1
9855   ac_status=$?
9856   grep -v '^ *+' conftest.er1 >conftest.err
9857   rm -f conftest.er1
9858   cat conftest.err >&5
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862   { (case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_try") 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; } &&
9871          { ac_try='test -s conftest$ac_exeext'
9872   { (case "(($ac_try" in
9873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874   *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877   (eval "$ac_try") 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_lib_dld_shl_load=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886         ac_cv_lib_dld_shl_load=no
9887 fi
9888
9889 rm -f core conftest.err conftest.$ac_objext \
9890       conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9892 fi
9893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9894 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9895 if test $ac_cv_lib_dld_shl_load = yes; then
9896
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_SHL_LOAD 1
9899 _ACEOF
9900
9901         LIBADD_DL="$LIBADD_DL -ldld"
9902 else
9903   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9904 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-ldl  $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 /* Override any GCC internal prototype to avoid an error.
9918    Use char because int might match the return type of a GCC
9919    builtin and then its argument prototype would still apply.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dlopen ();
9924 int
9925 main ()
9926 {
9927 return dlopen ();
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_link") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947   { (case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_try") 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_try") 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966   ac_cv_lib_dl_dlopen=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         ac_cv_lib_dl_dlopen=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext \
9975       conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9980 if test $ac_cv_lib_dl_dlopen = yes; then
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LIBDL 1
9984 _ACEOF
9985
9986                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9987 else
9988   cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994 #if HAVE_DLFCN_H
9995 #  include <dlfcn.h>
9996 #endif
9997
9998 int
9999 main ()
10000 {
10001 dlopen(0, 0);
10002   ;
10003   return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010   *) ac_try_echo=$ac_try;;
10011 esac
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013   (eval "$ac_link") 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10021   { (case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_try") 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (case "(($ac_try" in
10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033   *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036   (eval "$ac_try") 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_LIBDL 1
10043 _ACEOF
10044  libltdl_cv_func_dlopen="yes"
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10050 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10051 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10052   echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054   ac_check_lib_save_LIBS=$LIBS
10055 LIBS="-lsvld  $LIBS"
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h.  */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h.  */
10062
10063 /* Override any GCC internal prototype to avoid an error.
10064    Use char because int might match the return type of a GCC
10065    builtin and then its argument prototype would still apply.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char dlopen ();
10070 int
10071 main ()
10072 {
10073 return dlopen ();
10074   ;
10075   return 0;
10076 }
10077 _ACEOF
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (ac_try="$ac_link"
10080 case "(($ac_try" in
10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082   *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085   (eval "$ac_link") 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093   { (case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_try") 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; } &&
10102          { ac_try='test -s conftest$ac_exeext'
10103   { (case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108   (eval "$ac_try") 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_cv_lib_svld_dlopen=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117         ac_cv_lib_svld_dlopen=no
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext \
10121       conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10126 if test $ac_cv_lib_svld_dlopen = yes; then
10127
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_LIBDL 1
10130 _ACEOF
10131
10132                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10133 else
10134   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10135 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10136 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-ldld  $LIBS"
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147
10148 /* Override any GCC internal prototype to avoid an error.
10149    Use char because int might match the return type of a GCC
10150    builtin and then its argument prototype would still apply.  */
10151 #ifdef __cplusplus
10152 extern "C"
10153 #endif
10154 char dld_link ();
10155 int
10156 main ()
10157 {
10158 return dld_link ();
10159   ;
10160   return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_link") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178   { (case "(($ac_try" in
10179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180   *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183   (eval "$ac_try") 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; } &&
10187          { ac_try='test -s conftest$ac_exeext'
10188   { (case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_try") 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   ac_cv_lib_dld_dld_link=yes
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202         ac_cv_lib_dld_dld_link=no
10203 fi
10204
10205 rm -f core conftest.err conftest.$ac_objext \
10206       conftest$ac_exeext conftest.$ac_ext
10207 LIBS=$ac_check_lib_save_LIBS
10208 fi
10209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10211 if test $ac_cv_lib_dld_dld_link = yes; then
10212
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_DLD 1
10215 _ACEOF
10216
10217                 LIBADD_DL="$LIBADD_DL -ldld"
10218 else
10219   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10220 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10221 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10232 #define _dyld_func_lookup innocuous__dyld_func_lookup
10233
10234 /* System header to define __stub macros and hopefully few prototypes,
10235     which can conflict with char _dyld_func_lookup (); below.
10236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237     <limits.h> exists even on freestanding compilers.  */
10238
10239 #ifdef __STDC__
10240 # include <limits.h>
10241 #else
10242 # include <assert.h>
10243 #endif
10244
10245 #undef _dyld_func_lookup
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char _dyld_func_lookup ();
10254 /* The GNU C library defines this for functions which it implements
10255     to always fail with ENOSYS.  Some functions are actually named
10256     something starting with __ and the normal name is an alias.  */
10257 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10258 choke me
10259 #endif
10260
10261 int
10262 main ()
10263 {
10264 return _dyld_func_lookup ();
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276   (eval "$ac_link") 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284   { (case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289   (eval "$ac_try") 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest$ac_exeext'
10294   { (case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_try") 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_func__dyld_func_lookup=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308         ac_cv_func__dyld_func_lookup=no
10309 fi
10310
10311 rm -f core conftest.err conftest.$ac_objext \
10312       conftest$ac_exeext conftest.$ac_ext
10313 fi
10314 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10315 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10316 if test $ac_cv_func__dyld_func_lookup = yes; then
10317
10318 cat >>confdefs.h <<\_ACEOF
10319 #define HAVE_DYLD 1
10320 _ACEOF
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330
10331 fi
10332
10333 rm -f core conftest.err conftest.$ac_objext \
10334       conftest$ac_exeext conftest.$ac_ext
10335
10336 fi
10337
10338
10339 fi
10340
10341
10342 fi
10343
10344
10345 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10346 then
10347   lt_save_LIBS="$LIBS"
10348   LIBS="$LIBS $LIBADD_DL"
10349
10350 for ac_func in dlerror
10351 do
10352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h.  */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h.  */
10364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10366 #define $ac_func innocuous_$ac_func
10367
10368 /* System header to define __stub macros and hopefully few prototypes,
10369     which can conflict with char $ac_func (); below.
10370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371     <limits.h> exists even on freestanding compilers.  */
10372
10373 #ifdef __STDC__
10374 # include <limits.h>
10375 #else
10376 # include <assert.h>
10377 #endif
10378
10379 #undef $ac_func
10380
10381 /* Override any GCC internal prototype to avoid an error.
10382    Use char because int might match the return type of a GCC
10383    builtin and then its argument prototype would still apply.  */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char $ac_func ();
10388 /* The GNU C library defines this for functions which it implements
10389     to always fail with ENOSYS.  Some functions are actually named
10390     something starting with __ and the normal name is an alias.  */
10391 #if defined __stub_$ac_func || defined __stub___$ac_func
10392 choke me
10393 #endif
10394
10395 int
10396 main ()
10397 {
10398 return $ac_func ();
10399   ;
10400   return 0;
10401 }
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (ac_try="$ac_link"
10405 case "(($ac_try" in
10406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407   *) ac_try_echo=$ac_try;;
10408 esac
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410   (eval "$ac_link") 2>conftest.er1
10411   ac_status=$?
10412   grep -v '^ *+' conftest.er1 >conftest.err
10413   rm -f conftest.er1
10414   cat conftest.err >&5
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } &&
10417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10418   { (case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423   (eval "$ac_try") 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (case "(($ac_try" in
10429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430   *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433   (eval "$ac_try") 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; }; then
10437   eval "$as_ac_var=yes"
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442         eval "$as_ac_var=no"
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext \
10446       conftest$ac_exeext conftest.$ac_ext
10447 fi
10448 ac_res=`eval echo '${'$as_ac_var'}'`
10449                { echo "$as_me:$LINENO: result: $ac_res" >&5
10450 echo "${ECHO_T}$ac_res" >&6; }
10451 if test `eval echo '${'$as_ac_var'}'` = yes; then
10452   cat >>confdefs.h <<_ACEOF
10453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 _ACEOF
10455
10456 fi
10457 done
10458
10459   LIBS="$lt_save_LIBS"
10460 fi
10461 ac_ext=c
10462 ac_cpp='$CPP $CPPFLAGS'
10463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467
10468
10469 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10470 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10471 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   ac_cv_sys_symbol_underscore=no
10475   cat > conftest.$ac_ext <<EOF
10476 void nm_test_func(){}
10477 int main(){nm_test_func;return 0;}
10478 EOF
10479   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480   (eval $ac_compile) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; then
10484     # Now try to grab the symbols.
10485     ac_nlist=conftest.nm
10486     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10487   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } && test -s "$ac_nlist"; then
10491       # See whether the symbols have a leading underscore.
10492       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10493         ac_cv_sys_symbol_underscore=yes
10494       else
10495         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10496           :
10497         else
10498           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10499         fi
10500       fi
10501     else
10502       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10503     fi
10504   else
10505     echo "configure: failed program was:" >&5
10506     cat conftest.c >&5
10507   fi
10508   rm -rf conftest*
10509
10510 fi
10511 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10512 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10513
10514
10515 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10516   if test x"$libltdl_cv_func_dlopen" = xyes ||
10517      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10518         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10519 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10520 if test "${libltdl_cv_need_uscore+set}" = set; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   libltdl_cv_need_uscore=unknown
10524           save_LIBS="$LIBS"
10525           LIBS="$LIBS $LIBADD_DL"
10526           if test "$cross_compiling" = yes; then :
10527   libltdl_cv_need_uscore=cross
10528 else
10529   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10530   lt_status=$lt_dlunknown
10531   cat > conftest.$ac_ext <<EOF
10532 #line 10532 "configure"
10533 #include "confdefs.h"
10534
10535 #if HAVE_DLFCN_H
10536 #include <dlfcn.h>
10537 #endif
10538
10539 #include <stdio.h>
10540
10541 #ifdef RTLD_GLOBAL
10542 #  define LT_DLGLOBAL           RTLD_GLOBAL
10543 #else
10544 #  ifdef DL_GLOBAL
10545 #    define LT_DLGLOBAL         DL_GLOBAL
10546 #  else
10547 #    define LT_DLGLOBAL         0
10548 #  endif
10549 #endif
10550
10551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10552    find out it does not work in some platform. */
10553 #ifndef LT_DLLAZY_OR_NOW
10554 #  ifdef RTLD_LAZY
10555 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10556 #  else
10557 #    ifdef DL_LAZY
10558 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10559 #    else
10560 #      ifdef RTLD_NOW
10561 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10562 #      else
10563 #        ifdef DL_NOW
10564 #          define LT_DLLAZY_OR_NOW      DL_NOW
10565 #        else
10566 #          define LT_DLLAZY_OR_NOW      0
10567 #        endif
10568 #      endif
10569 #    endif
10570 #  endif
10571 #endif
10572
10573 #ifdef __cplusplus
10574 extern "C" void exit (int);
10575 #endif
10576
10577 void fnord() { int i=42;}
10578 int main ()
10579 {
10580   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10581   int status = $lt_dlunknown;
10582
10583   if (self)
10584     {
10585       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10586       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10587       /* dlclose (self); */
10588     }
10589   else
10590     puts (dlerror ());
10591
10592     exit (status);
10593 }
10594 EOF
10595   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10600     (./conftest; exit; ) >&5 2>/dev/null
10601     lt_status=$?
10602     case x$lt_status in
10603       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10604       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10605       x$lt_dlunknown|x*)  ;;
10606     esac
10607   else :
10608     # compilation failed
10609
10610   fi
10611 fi
10612 rm -fr conftest*
10613
10614           LIBS="$save_LIBS"
10615
10616 fi
10617 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10618 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10619   fi
10620 fi
10621
10622 if test x"$libltdl_cv_need_uscore" = xyes; then
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define NEED_USCORE 1
10626 _ACEOF
10627
10628 fi
10629
10630
10631 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10632 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10633 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   # PORTME does your system automatically load deplibs for dlopen?
10637   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10638   # For now, we just catch OSes we know something about -- in the
10639   # future, we'll try test this programmatically.
10640   libltdl_cv_sys_dlopen_deplibs=unknown
10641   case "$host_os" in
10642   aix3*|aix4.1.*|aix4.2.*)
10643     # Unknown whether this is true for these versions of AIX, but
10644     # we want this `case' here to explicitly catch those versions.
10645     libltdl_cv_sys_dlopen_deplibs=unknown
10646     ;;
10647   aix[45]*)
10648     libltdl_cv_sys_dlopen_deplibs=yes
10649     ;;
10650   darwin*)
10651     # Assuming the user has installed a libdl from somewhere, this is true
10652     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10653     libltdl_cv_sys_dlopen_deplibs=yes
10654     ;;
10655   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10656     # GNU and its variants, using gnu ld.so (Glibc)
10657     libltdl_cv_sys_dlopen_deplibs=yes
10658     ;;
10659   hpux10*|hpux11*)
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   interix*)
10663     libltdl_cv_sys_dlopen_deplibs=yes
10664     ;;
10665   irix[12345]*|irix6.[01]*)
10666     # Catch all versions of IRIX before 6.2, and indicate that we don't
10667     # know how it worked for any of those versions.
10668     libltdl_cv_sys_dlopen_deplibs=unknown
10669     ;;
10670   irix*)
10671     # The case above catches anything before 6.2, and it's known that
10672     # at 6.2 and later dlopen does load deplibs.
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   netbsd*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   openbsd*)
10679     libltdl_cv_sys_dlopen_deplibs=yes
10680     ;;
10681   osf[1234]*)
10682     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10683     # it did *not* use an RPATH in a shared library to find objects the
10684     # library depends on, so we explicitly say `no'.
10685     libltdl_cv_sys_dlopen_deplibs=no
10686     ;;
10687   osf5.0|osf5.0a|osf5.1)
10688     # dlopen *does* load deplibs and with the right loader patch applied
10689     # it even uses RPATH in a shared library to search for shared objects
10690     # that the library depends on, but there's no easy way to know if that
10691     # patch is installed.  Since this is the case, all we can really
10692     # say is unknown -- it depends on the patch being installed.  If
10693     # it is, this changes to `yes'.  Without it, it would be `no'.
10694     libltdl_cv_sys_dlopen_deplibs=unknown
10695     ;;
10696   osf*)
10697     # the two cases above should catch all versions of osf <= 5.1.  Read
10698     # the comments above for what we know about them.
10699     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10700     # is used to find them so we can finally say `yes'.
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   solaris*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10707     libltdl_cv_sys_dlopen_deplibs=yes
10708     ;;
10709   esac
10710
10711 fi
10712 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10713 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10714 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define LTDL_DLOPEN_DEPLIBS 1
10718 _ACEOF
10719
10720 fi
10721
10722
10723 for ac_header in argz.h
10724 do
10725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 fi
10732 ac_res=`eval echo '${'$as_ac_Header'}'`
10733                { echo "$as_me:$LINENO: result: $ac_res" >&5
10734 echo "${ECHO_T}$ac_res" >&6; }
10735 else
10736   # Is the header compilable?
10737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h.  */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h.  */
10745 $ac_includes_default
10746 #include <$ac_header>
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (ac_try="$ac_compile"
10750 case "(($ac_try" in
10751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752   *) ac_try_echo=$ac_try;;
10753 esac
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755   (eval "$ac_compile") 2>conftest.er1
10756   ac_status=$?
10757   grep -v '^ *+' conftest.er1 >conftest.err
10758   rm -f conftest.er1
10759   cat conftest.err >&5
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763   { (case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_try") 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; } &&
10772          { ac_try='test -s conftest.$ac_objext'
10773   { (case "(($ac_try" in
10774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775   *) ac_try_echo=$ac_try;;
10776 esac
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778   (eval "$ac_try") 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; }; then
10782   ac_header_compiler=yes
10783 else
10784   echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787         ac_header_compiler=no
10788 fi
10789
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10792 echo "${ECHO_T}$ac_header_compiler" >&6; }
10793
10794 # Is the header present?
10795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803 #include <$ac_header>
10804 _ACEOF
10805 if { (ac_try="$ac_cpp conftest.$ac_ext"
10806 case "(($ac_try" in
10807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808   *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10812   ac_status=$?
10813   grep -v '^ *+' conftest.er1 >conftest.err
10814   rm -f conftest.er1
10815   cat conftest.err >&5
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } >/dev/null; then
10818   if test -s conftest.err; then
10819     ac_cpp_err=$ac_c_preproc_warn_flag
10820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10821   else
10822     ac_cpp_err=
10823   fi
10824 else
10825   ac_cpp_err=yes
10826 fi
10827 if test -z "$ac_cpp_err"; then
10828   ac_header_preproc=yes
10829 else
10830   echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833   ac_header_preproc=no
10834 fi
10835
10836 rm -f conftest.err conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10838 echo "${ECHO_T}$ac_header_preproc" >&6; }
10839
10840 # So?  What about this header?
10841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10842   yes:no: )
10843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10847     ac_header_preproc=yes
10848     ;;
10849   no:yes:* )
10850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10862     ( cat <<\_ASBOX
10863 ## ------------------------------------ ##
10864 ## Report this to http://llvm.org/bugs/ ##
10865 ## ------------------------------------ ##
10866 _ASBOX
10867      ) | sed "s/^/$as_me: WARNING:     /" >&2
10868     ;;
10869 esac
10870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   eval "$as_ac_Header=\$ac_header_preproc"
10876 fi
10877 ac_res=`eval echo '${'$as_ac_Header'}'`
10878                { echo "$as_me:$LINENO: result: $ac_res" >&5
10879 echo "${ECHO_T}$ac_res" >&6; }
10880
10881 fi
10882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883   cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10885 _ACEOF
10886
10887 fi
10888
10889 done
10890
10891
10892 { echo "$as_me:$LINENO: checking for error_t" >&5
10893 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10894 if test "${ac_cv_type_error_t+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903 #if HAVE_ARGZ_H
10904 #  include <argz.h>
10905 #endif
10906
10907 typedef error_t ac__type_new_;
10908 int
10909 main ()
10910 {
10911 if ((ac__type_new_ *) 0)
10912   return 0;
10913 if (sizeof (ac__type_new_))
10914   return 0;
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext
10920 if { (ac_try="$ac_compile"
10921 case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_compile") 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } &&
10933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934   { (case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_try") 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; } &&
10943          { ac_try='test -s conftest.$ac_objext'
10944   { (case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; }; then
10953   ac_cv_type_error_t=yes
10954 else
10955   echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958         ac_cv_type_error_t=no
10959 fi
10960
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 fi
10963 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10964 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10965 if test $ac_cv_type_error_t = yes; then
10966
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_ERROR_T 1
10969 _ACEOF
10970
10971
10972 else
10973
10974 cat >>confdefs.h <<\_ACEOF
10975 #define error_t int
10976 _ACEOF
10977
10978 fi
10979
10980
10981
10982
10983
10984
10985
10986 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10987 do
10988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11002 #define $ac_func innocuous_$ac_func
11003
11004 /* System header to define __stub macros and hopefully few prototypes,
11005     which can conflict with char $ac_func (); below.
11006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007     <limits.h> exists even on freestanding compilers.  */
11008
11009 #ifdef __STDC__
11010 # include <limits.h>
11011 #else
11012 # include <assert.h>
11013 #endif
11014
11015 #undef $ac_func
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018    Use char because int might match the return type of a GCC
11019    builtin and then its argument prototype would still apply.  */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char $ac_func ();
11024 /* The GNU C library defines this for functions which it implements
11025     to always fail with ENOSYS.  Some functions are actually named
11026     something starting with __ and the normal name is an alias.  */
11027 #if defined __stub_$ac_func || defined __stub___$ac_func
11028 choke me
11029 #endif
11030
11031 int
11032 main ()
11033 {
11034 return $ac_func ();
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_link") 2>conftest.er1
11047   ac_status=$?
11048   grep -v '^ *+' conftest.er1 >conftest.err
11049   rm -f conftest.er1
11050   cat conftest.err >&5
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } &&
11053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11054   { (case "(($ac_try" in
11055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056   *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059   (eval "$ac_try") 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; } &&
11063          { ac_try='test -s conftest$ac_exeext'
11064   { (case "(($ac_try" in
11065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066   *) ac_try_echo=$ac_try;;
11067 esac
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069   (eval "$ac_try") 2>&5
11070   ac_status=$?
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); }; }; then
11073   eval "$as_ac_var=yes"
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078         eval "$as_ac_var=no"
11079 fi
11080
11081 rm -f core conftest.err conftest.$ac_objext \
11082       conftest$ac_exeext conftest.$ac_ext
11083 fi
11084 ac_res=`eval echo '${'$as_ac_var'}'`
11085                { echo "$as_me:$LINENO: result: $ac_res" >&5
11086 echo "${ECHO_T}$ac_res" >&6; }
11087 if test `eval echo '${'$as_ac_var'}'` = yes; then
11088   cat >>confdefs.h <<_ACEOF
11089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11090 _ACEOF
11091
11092 fi
11093 done
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11123                   stdio.h unistd.h
11124 do
11125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 fi
11132 ac_res=`eval echo '${'$as_ac_Header'}'`
11133                { echo "$as_me:$LINENO: result: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11135 else
11136   # Is the header compilable?
11137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h.  */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h.  */
11145 $ac_includes_default
11146 #include <$ac_header>
11147 _ACEOF
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155   (eval "$ac_compile") 2>conftest.er1
11156   ac_status=$?
11157   grep -v '^ *+' conftest.er1 >conftest.err
11158   rm -f conftest.er1
11159   cat conftest.err >&5
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } &&
11162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163   { (case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_try") 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; } &&
11172          { ac_try='test -s conftest.$ac_objext'
11173   { (case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_try") 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   ac_header_compiler=yes
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187         ac_header_compiler=no
11188 fi
11189
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11192 echo "${ECHO_T}$ac_header_compiler" >&6; }
11193
11194 # Is the header present?
11195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 #include <$ac_header>
11204 _ACEOF
11205 if { (ac_try="$ac_cpp conftest.$ac_ext"
11206 case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11212   ac_status=$?
11213   grep -v '^ *+' conftest.er1 >conftest.err
11214   rm -f conftest.er1
11215   cat conftest.err >&5
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } >/dev/null; then
11218   if test -s conftest.err; then
11219     ac_cpp_err=$ac_c_preproc_warn_flag
11220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11221   else
11222     ac_cpp_err=
11223   fi
11224 else
11225   ac_cpp_err=yes
11226 fi
11227 if test -z "$ac_cpp_err"; then
11228   ac_header_preproc=yes
11229 else
11230   echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233   ac_header_preproc=no
11234 fi
11235
11236 rm -f conftest.err conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238 echo "${ECHO_T}$ac_header_preproc" >&6; }
11239
11240 # So?  What about this header?
11241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242   yes:no: )
11243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247     ac_header_preproc=yes
11248     ;;
11249   no:yes:* )
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262     ( cat <<\_ASBOX
11263 ## ------------------------------------ ##
11264 ## Report this to http://llvm.org/bugs/ ##
11265 ## ------------------------------------ ##
11266 _ASBOX
11267      ) | sed "s/^/$as_me: WARNING:     /" >&2
11268     ;;
11269 esac
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   eval "$as_ac_Header=\$ac_header_preproc"
11276 fi
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278                { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11280
11281 fi
11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283   cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 _ACEOF
11286
11287 fi
11288
11289 done
11290
11291
11292
11293
11294
11295 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11296 do
11297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 fi
11304 ac_res=`eval echo '${'$as_ac_Header'}'`
11305                { echo "$as_me:$LINENO: result: $ac_res" >&5
11306 echo "${ECHO_T}$ac_res" >&6; }
11307 else
11308   # Is the header compilable?
11309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 $ac_includes_default
11318 #include <$ac_header>
11319 _ACEOF
11320 rm -f conftest.$ac_objext
11321 if { (ac_try="$ac_compile"
11322 case "(($ac_try" in
11323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324   *) ac_try_echo=$ac_try;;
11325 esac
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327   (eval "$ac_compile") 2>conftest.er1
11328   ac_status=$?
11329   grep -v '^ *+' conftest.er1 >conftest.err
11330   rm -f conftest.er1
11331   cat conftest.err >&5
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); } &&
11334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11335   { (case "(($ac_try" in
11336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337   *) ac_try_echo=$ac_try;;
11338 esac
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340   (eval "$ac_try") 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); }; } &&
11344          { ac_try='test -s conftest.$ac_objext'
11345   { (case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_try") 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; }; then
11354   ac_header_compiler=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359         ac_header_compiler=no
11360 fi
11361
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11364 echo "${ECHO_T}$ac_header_compiler" >&6; }
11365
11366 # Is the header present?
11367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375 #include <$ac_header>
11376 _ACEOF
11377 if { (ac_try="$ac_cpp conftest.$ac_ext"
11378 case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11384   ac_status=$?
11385   grep -v '^ *+' conftest.er1 >conftest.err
11386   rm -f conftest.er1
11387   cat conftest.err >&5
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } >/dev/null; then
11390   if test -s conftest.err; then
11391     ac_cpp_err=$ac_c_preproc_warn_flag
11392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11393   else
11394     ac_cpp_err=
11395   fi
11396 else
11397   ac_cpp_err=yes
11398 fi
11399 if test -z "$ac_cpp_err"; then
11400   ac_header_preproc=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405   ac_header_preproc=no
11406 fi
11407
11408 rm -f conftest.err conftest.$ac_ext
11409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11410 echo "${ECHO_T}$ac_header_preproc" >&6; }
11411
11412 # So?  What about this header?
11413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11414   yes:no: )
11415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11419     ac_header_preproc=yes
11420     ;;
11421   no:yes:* )
11422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11434     ( cat <<\_ASBOX
11435 ## ------------------------------------ ##
11436 ## Report this to http://llvm.org/bugs/ ##
11437 ## ------------------------------------ ##
11438 _ASBOX
11439      ) | sed "s/^/$as_me: WARNING:     /" >&2
11440     ;;
11441 esac
11442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   eval "$as_ac_Header=\$ac_header_preproc"
11448 fi
11449 ac_res=`eval echo '${'$as_ac_Header'}'`
11450                { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11452
11453 fi
11454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11455   cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11457 _ACEOF
11458
11459 fi
11460
11461 done
11462
11463
11464
11465 for ac_header in string.h strings.h
11466 do
11467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 fi
11474 ac_res=`eval echo '${'$as_ac_Header'}'`
11475                { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11477 else
11478   # Is the header compilable?
11479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 $ac_includes_default
11488 #include <$ac_header>
11489 _ACEOF
11490 rm -f conftest.$ac_objext
11491 if { (ac_try="$ac_compile"
11492 case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497   (eval "$ac_compile") 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11505   { (case "(($ac_try" in
11506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507   *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510   (eval "$ac_try") 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; } &&
11514          { ac_try='test -s conftest.$ac_objext'
11515   { (case "(($ac_try" in
11516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517   *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520   (eval "$ac_try") 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; }; then
11524   ac_header_compiler=yes
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529         ac_header_compiler=no
11530 fi
11531
11532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11534 echo "${ECHO_T}$ac_header_compiler" >&6; }
11535
11536 # Is the header present?
11537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 #include <$ac_header>
11546 _ACEOF
11547 if { (ac_try="$ac_cpp conftest.$ac_ext"
11548 case "(($ac_try" in
11549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550   *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } >/dev/null; then
11560   if test -s conftest.err; then
11561     ac_cpp_err=$ac_c_preproc_warn_flag
11562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563   else
11564     ac_cpp_err=
11565   fi
11566 else
11567   ac_cpp_err=yes
11568 fi
11569 if test -z "$ac_cpp_err"; then
11570   ac_header_preproc=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575   ac_header_preproc=no
11576 fi
11577
11578 rm -f conftest.err conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580 echo "${ECHO_T}$ac_header_preproc" >&6; }
11581
11582 # So?  What about this header?
11583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584   yes:no: )
11585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589     ac_header_preproc=yes
11590     ;;
11591   no:yes:* )
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604     ( cat <<\_ASBOX
11605 ## ------------------------------------ ##
11606 ## Report this to http://llvm.org/bugs/ ##
11607 ## ------------------------------------ ##
11608 _ASBOX
11609      ) | sed "s/^/$as_me: WARNING:     /" >&2
11610     ;;
11611 esac
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   eval "$as_ac_Header=\$ac_header_preproc"
11618 fi
11619 ac_res=`eval echo '${'$as_ac_Header'}'`
11620                { echo "$as_me:$LINENO: result: $ac_res" >&5
11621 echo "${ECHO_T}$ac_res" >&6; }
11622
11623 fi
11624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11625   cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11627 _ACEOF
11628  break
11629 fi
11630
11631 done
11632
11633
11634
11635
11636 for ac_func in strchr index
11637 do
11638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11642   echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644   cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11652 #define $ac_func innocuous_$ac_func
11653
11654 /* System header to define __stub macros and hopefully few prototypes,
11655     which can conflict with char $ac_func (); below.
11656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657     <limits.h> exists even on freestanding compilers.  */
11658
11659 #ifdef __STDC__
11660 # include <limits.h>
11661 #else
11662 # include <assert.h>
11663 #endif
11664
11665 #undef $ac_func
11666
11667 /* Override any GCC internal prototype to avoid an error.
11668    Use char because int might match the return type of a GCC
11669    builtin and then its argument prototype would still apply.  */
11670 #ifdef __cplusplus
11671 extern "C"
11672 #endif
11673 char $ac_func ();
11674 /* The GNU C library defines this for functions which it implements
11675     to always fail with ENOSYS.  Some functions are actually named
11676     something starting with __ and the normal name is an alias.  */
11677 #if defined __stub_$ac_func || defined __stub___$ac_func
11678 choke me
11679 #endif
11680
11681 int
11682 main ()
11683 {
11684 return $ac_func ();
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (ac_try="$ac_link"
11691 case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696   (eval "$ac_link") 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } &&
11703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704   { (case "(($ac_try" in
11705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706   *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709   (eval "$ac_try") 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; } &&
11713          { ac_try='test -s conftest$ac_exeext'
11714   { (case "(($ac_try" in
11715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716   *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719   (eval "$ac_try") 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); }; }; then
11723   eval "$as_ac_var=yes"
11724 else
11725   echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11727
11728         eval "$as_ac_var=no"
11729 fi
11730
11731 rm -f core conftest.err conftest.$ac_objext \
11732       conftest$ac_exeext conftest.$ac_ext
11733 fi
11734 ac_res=`eval echo '${'$as_ac_var'}'`
11735                { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
11738   cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 _ACEOF
11741  break
11742 fi
11743 done
11744
11745
11746
11747 for ac_func in strrchr rindex
11748 do
11749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11763 #define $ac_func innocuous_$ac_func
11764
11765 /* System header to define __stub macros and hopefully few prototypes,
11766     which can conflict with char $ac_func (); below.
11767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768     <limits.h> exists even on freestanding compilers.  */
11769
11770 #ifdef __STDC__
11771 # include <limits.h>
11772 #else
11773 # include <assert.h>
11774 #endif
11775
11776 #undef $ac_func
11777
11778 /* Override any GCC internal prototype to avoid an error.
11779    Use char because int might match the return type of a GCC
11780    builtin and then its argument prototype would still apply.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char $ac_func ();
11785 /* The GNU C library defines this for functions which it implements
11786     to always fail with ENOSYS.  Some functions are actually named
11787     something starting with __ and the normal name is an alias.  */
11788 #if defined __stub_$ac_func || defined __stub___$ac_func
11789 choke me
11790 #endif
11791
11792 int
11793 main ()
11794 {
11795 return $ac_func ();
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 rm -f conftest.$ac_objext conftest$ac_exeext
11801 if { (ac_try="$ac_link"
11802 case "(($ac_try" in
11803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804   *) ac_try_echo=$ac_try;;
11805 esac
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807   (eval "$ac_link") 2>conftest.er1
11808   ac_status=$?
11809   grep -v '^ *+' conftest.er1 >conftest.err
11810   rm -f conftest.er1
11811   cat conftest.err >&5
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); } &&
11814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11815   { (case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_try") 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; } &&
11824          { ac_try='test -s conftest$ac_exeext'
11825   { (case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_try") 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   eval "$as_ac_var=yes"
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839         eval "$as_ac_var=no"
11840 fi
11841
11842 rm -f core conftest.err conftest.$ac_objext \
11843       conftest$ac_exeext conftest.$ac_ext
11844 fi
11845 ac_res=`eval echo '${'$as_ac_var'}'`
11846                { echo "$as_me:$LINENO: result: $ac_res" >&5
11847 echo "${ECHO_T}$ac_res" >&6; }
11848 if test `eval echo '${'$as_ac_var'}'` = yes; then
11849   cat >>confdefs.h <<_ACEOF
11850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11851 _ACEOF
11852  break
11853 fi
11854 done
11855
11856
11857
11858 for ac_func in memcpy bcopy
11859 do
11860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11874 #define $ac_func innocuous_$ac_func
11875
11876 /* System header to define __stub macros and hopefully few prototypes,
11877     which can conflict with char $ac_func (); below.
11878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879     <limits.h> exists even on freestanding compilers.  */
11880
11881 #ifdef __STDC__
11882 # include <limits.h>
11883 #else
11884 # include <assert.h>
11885 #endif
11886
11887 #undef $ac_func
11888
11889 /* Override any GCC internal prototype to avoid an error.
11890    Use char because int might match the return type of a GCC
11891    builtin and then its argument prototype would still apply.  */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 char $ac_func ();
11896 /* The GNU C library defines this for functions which it implements
11897     to always fail with ENOSYS.  Some functions are actually named
11898     something starting with __ and the normal name is an alias.  */
11899 #if defined __stub_$ac_func || defined __stub___$ac_func
11900 choke me
11901 #endif
11902
11903 int
11904 main ()
11905 {
11906 return $ac_func ();
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918   (eval "$ac_link") 2>conftest.er1
11919   ac_status=$?
11920   grep -v '^ *+' conftest.er1 >conftest.err
11921   rm -f conftest.er1
11922   cat conftest.err >&5
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } &&
11925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926   { (case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_try") 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; } &&
11935          { ac_try='test -s conftest$ac_exeext'
11936   { (case "(($ac_try" in
11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938   *) ac_try_echo=$ac_try;;
11939 esac
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941   (eval "$ac_try") 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   eval "$as_ac_var=yes"
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950         eval "$as_ac_var=no"
11951 fi
11952
11953 rm -f core conftest.err conftest.$ac_objext \
11954       conftest$ac_exeext conftest.$ac_ext
11955 fi
11956 ac_res=`eval echo '${'$as_ac_var'}'`
11957                { echo "$as_me:$LINENO: result: $ac_res" >&5
11958 echo "${ECHO_T}$ac_res" >&6; }
11959 if test `eval echo '${'$as_ac_var'}'` = yes; then
11960   cat >>confdefs.h <<_ACEOF
11961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 _ACEOF
11963  break
11964 fi
11965 done
11966
11967
11968
11969 for ac_func in memmove strcmp
11970 do
11971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977   cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11985 #define $ac_func innocuous_$ac_func
11986
11987 /* System header to define __stub macros and hopefully few prototypes,
11988     which can conflict with char $ac_func (); below.
11989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990     <limits.h> exists even on freestanding compilers.  */
11991
11992 #ifdef __STDC__
11993 # include <limits.h>
11994 #else
11995 # include <assert.h>
11996 #endif
11997
11998 #undef $ac_func
11999
12000 /* Override any GCC internal prototype to avoid an error.
12001    Use char because int might match the return type of a GCC
12002    builtin and then its argument prototype would still apply.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 char $ac_func ();
12007 /* The GNU C library defines this for functions which it implements
12008     to always fail with ENOSYS.  Some functions are actually named
12009     something starting with __ and the normal name is an alias.  */
12010 #if defined __stub_$ac_func || defined __stub___$ac_func
12011 choke me
12012 #endif
12013
12014 int
12015 main ()
12016 {
12017 return $ac_func ();
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (ac_try="$ac_link"
12024 case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_link") 2>conftest.er1
12030   ac_status=$?
12031   grep -v '^ *+' conftest.er1 >conftest.err
12032   rm -f conftest.er1
12033   cat conftest.err >&5
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } &&
12036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest$ac_exeext'
12047   { (case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_try") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   eval "$as_ac_var=yes"
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061         eval "$as_ac_var=no"
12062 fi
12063
12064 rm -f core conftest.err conftest.$ac_objext \
12065       conftest$ac_exeext conftest.$ac_ext
12066 fi
12067 ac_res=`eval echo '${'$as_ac_var'}'`
12068                { echo "$as_me:$LINENO: result: $ac_res" >&5
12069 echo "${ECHO_T}$ac_res" >&6; }
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071   cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12074
12075 fi
12076 done
12077
12078
12079
12080
12081 for ac_func in closedir opendir readdir
12082 do
12083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089   cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12097 #define $ac_func innocuous_$ac_func
12098
12099 /* System header to define __stub macros and hopefully few prototypes,
12100     which can conflict with char $ac_func (); below.
12101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102     <limits.h> exists even on freestanding compilers.  */
12103
12104 #ifdef __STDC__
12105 # include <limits.h>
12106 #else
12107 # include <assert.h>
12108 #endif
12109
12110 #undef $ac_func
12111
12112 /* Override any GCC internal prototype to avoid an error.
12113    Use char because int might match the return type of a GCC
12114    builtin and then its argument prototype would still apply.  */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char $ac_func ();
12119 /* The GNU C library defines this for functions which it implements
12120     to always fail with ENOSYS.  Some functions are actually named
12121     something starting with __ and the normal name is an alias.  */
12122 #if defined __stub_$ac_func || defined __stub___$ac_func
12123 choke me
12124 #endif
12125
12126 int
12127 main ()
12128 {
12129 return $ac_func ();
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (ac_try="$ac_link"
12136 case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_link") 2>conftest.er1
12142   ac_status=$?
12143   grep -v '^ *+' conftest.er1 >conftest.err
12144   rm -f conftest.er1
12145   cat conftest.err >&5
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); } &&
12148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149   { (case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154   (eval "$ac_try") 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; } &&
12158          { ac_try='test -s conftest$ac_exeext'
12159   { (case "(($ac_try" in
12160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161   *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164   (eval "$ac_try") 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; }; then
12168   eval "$as_ac_var=yes"
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173         eval "$as_ac_var=no"
12174 fi
12175
12176 rm -f core conftest.err conftest.$ac_objext \
12177       conftest$ac_exeext conftest.$ac_ext
12178 fi
12179 ac_res=`eval echo '${'$as_ac_var'}'`
12180                { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182 if test `eval echo '${'$as_ac_var'}'` = yes; then
12183   cat >>confdefs.h <<_ACEOF
12184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12185 _ACEOF
12186
12187 fi
12188 done
12189
12190
12191
12192 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12193 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12194
12195 ICC=no
12196 IXX=no
12197 case $CC in
12198   icc*|icpc*)
12199     ICC=yes
12200     IXX=yes
12201     ;;
12202    *)
12203     ;;
12204 esac
12205
12206 if test "$GCC" != "yes" && test "$ICC" != "yes"
12207 then
12208   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12209 echo "$as_me: error: gcc|icc required but not found" >&2;}
12210    { (exit 1); exit 1; }; }
12211 fi
12212
12213 if test "$GXX" != "yes" && test "$IXX" != "yes"
12214 then
12215   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12216 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12217    { (exit 1); exit 1; }; }
12218 fi
12219
12220 if test "$GCC" = "yes"
12221 then
12222   cat >conftest.$ac_ext <<_ACEOF
12223
12224   /* confdefs.h.  */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h.  */
12229
12230     #if !defined(__GNUC__) || __GNUC__ < 3
12231     #error Unsupported GCC version
12232     #endif
12233
12234
12235 _ACEOF
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243   (eval "$ac_compile") 2>conftest.er1
12244   ac_status=$?
12245   grep -v '^ *+' conftest.er1 >conftest.err
12246   rm -f conftest.er1
12247   cat conftest.err >&5
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); } &&
12250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251   { (case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_try") 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; } &&
12260          { ac_try='test -s conftest.$ac_objext'
12261   { (case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_try") 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   :
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12276 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12277    { (exit 1); exit 1; }; }
12278 fi
12279
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281 fi
12282
12283 if test -z "$llvm_cv_gnu_make_command"
12284 then
12285   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12286 echo "$as_me: error: GNU Make required but not found" >&2;}
12287    { (exit 1); exit 1; }; }
12288 fi
12289
12290 { echo "$as_me:$LINENO: result: ok" >&5
12291 echo "${ECHO_T}ok" >&6; }
12292
12293 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12294 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12295 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12296
12297 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12298
12299 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12300
12301
12302 NO_UNINITIALIZED=
12303 NO_MAYBE_UNINITIALIZED=
12304 if test "$GXX" = "yes"
12305 then
12306   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12307
12308         if test -z "$NO_MAYBE_UNINITIALIZED"
12309   then
12310     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12311
12312   fi
12313 fi
12314 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12315 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12316
12317
12318 # Check whether --with-python was given.
12319 if test "${with_python+set}" = set; then
12320   withval=$with_python; PYTHON="$withval"
12321 fi
12322
12323
12324 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12325   { echo "$as_me:$LINENO: checking for python" >&5
12326 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12327   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12328 echo "${ECHO_T}user defined: $with_python" >&6; }
12329 else
12330   if test -n "$PYTHON" ; then
12331     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12332 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12333   fi
12334
12335   # Extract the first word of "python python2 python26", so it can be a program name with args.
12336 set dummy python python2 python26; ac_word=$2
12337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12339 if test "${ac_cv_path_PYTHON+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   case $PYTHON in
12343   [\\/]* | ?:[\\/]*)
12344   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12345   ;;
12346   *)
12347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350   IFS=$as_save_IFS
12351   test -z "$as_dir" && as_dir=.
12352   for ac_exec_ext in '' $ac_executable_extensions; do
12353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12354     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12356     break 2
12357   fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12363 echo "${ECHO_T}not found" >&6; }
12364                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12365 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12366    { (exit 1); exit 1; }; }"
12367   ;;
12368 esac
12369 fi
12370 PYTHON=$ac_cv_path_PYTHON
12371 if test -n "$PYTHON"; then
12372   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12373 echo "${ECHO_T}$PYTHON" >&6; }
12374 else
12375   { echo "$as_me:$LINENO: result: no" >&5
12376 echo "${ECHO_T}no" >&6; }
12377 fi
12378
12379
12380 fi
12381
12382 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12383 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12384 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12385 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12386 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12387 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12388 if   test "$ac_python_version_major" -eq "2" \
12389    && test "$ac_python_version_minor" -ge "5" ; then
12390   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12391 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12392 else
12393   { echo "$as_me:$LINENO: result: not found" >&5
12394 echo "${ECHO_T}not found" >&6; }
12395   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12396 See \`config.log' for more details." >&5
12397 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12398 See \`config.log' for more details." >&2;}
12399    { (exit 1); exit 1; }; }
12400 fi
12401
12402
12403
12404 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12405 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12406 if test "${ac_cv_lib_m_sin+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   ac_check_lib_save_LIBS=$LIBS
12410 LIBS="-lm  $LIBS"
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419    Use char because int might match the return type of a GCC
12420    builtin and then its argument prototype would still apply.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char sin ();
12425 int
12426 main ()
12427 {
12428 return sin ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_link") 2>conftest.er1
12441   ac_status=$?
12442   grep -v '^ *+' conftest.er1 >conftest.err
12443   rm -f conftest.er1
12444   cat conftest.err >&5
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448   { (case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_try") 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; } &&
12457          { ac_try='test -s conftest$ac_exeext'
12458   { (case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_try") 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_cv_lib_m_sin=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472         ac_cv_lib_m_sin=no
12473 fi
12474
12475 rm -f core conftest.err conftest.$ac_objext \
12476       conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12478 fi
12479 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12480 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12481 if test $ac_cv_lib_m_sin = yes; then
12482   cat >>confdefs.h <<_ACEOF
12483 #define HAVE_LIBM 1
12484 _ACEOF
12485
12486   LIBS="-lm $LIBS"
12487
12488 fi
12489
12490 if test "$llvm_cv_os_type" = "MingW" ; then
12491
12492 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12493 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12494 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-limagehlp  $LIBS"
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506
12507 int
12508 main ()
12509 {
12510 return main ();
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_link") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } &&
12529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530   { (case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_try") 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; } &&
12539          { ac_try='test -s conftest$ac_exeext'
12540   { (case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_try") 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   ac_cv_lib_imagehlp_main=yes
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554         ac_cv_lib_imagehlp_main=no
12555 fi
12556
12557 rm -f core conftest.err conftest.$ac_objext \
12558       conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12560 fi
12561 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12562 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12563 if test $ac_cv_lib_imagehlp_main = yes; then
12564   cat >>confdefs.h <<_ACEOF
12565 #define HAVE_LIBIMAGEHLP 1
12566 _ACEOF
12567
12568   LIBS="-limagehlp $LIBS"
12569
12570 fi
12571
12572
12573 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12574 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12575 if test "${ac_cv_lib_psapi_main+set}" = set; then
12576   echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578   ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-lpsapi  $LIBS"
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h.  */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h.  */
12586
12587
12588 int
12589 main ()
12590 {
12591 return main ();
12592   ;
12593   return 0;
12594 }
12595 _ACEOF
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_link") 2>conftest.er1
12604   ac_status=$?
12605   grep -v '^ *+' conftest.er1 >conftest.err
12606   rm -f conftest.er1
12607   cat conftest.err >&5
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); } &&
12610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611   { (case "(($ac_try" in
12612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613   *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616   (eval "$ac_try") 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_try") 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_cv_lib_psapi_main=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635         ac_cv_lib_psapi_main=no
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext \
12639       conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12643 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12644 if test $ac_cv_lib_psapi_main = yes; then
12645   cat >>confdefs.h <<_ACEOF
12646 #define HAVE_LIBPSAPI 1
12647 _ACEOF
12648
12649   LIBS="-lpsapi $LIBS"
12650
12651 fi
12652
12653 fi
12654
12655 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12656 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12657 if test "${ac_cv_search_dlopen+set}" = set; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   ac_func_search_save_LIBS=$LIBS
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667
12668 /* Override any GCC internal prototype to avoid an error.
12669    Use char because int might match the return type of a GCC
12670    builtin and then its argument prototype would still apply.  */
12671 #ifdef __cplusplus
12672 extern "C"
12673 #endif
12674 char dlopen ();
12675 int
12676 main ()
12677 {
12678 return dlopen ();
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 for ac_lib in '' dl; do
12684   if test -z "$ac_lib"; then
12685     ac_res="none required"
12686   else
12687     ac_res=-l$ac_lib
12688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12689   fi
12690   rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (ac_try="$ac_link"
12692 case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697   (eval "$ac_link") 2>conftest.er1
12698   ac_status=$?
12699   grep -v '^ *+' conftest.er1 >conftest.err
12700   rm -f conftest.er1
12701   cat conftest.err >&5
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); } &&
12704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12705   { (case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_try") 2>&5
12711   ac_status=$?
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; } &&
12714          { ac_try='test -s conftest$ac_exeext'
12715   { (case "(($ac_try" in
12716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717   *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720   (eval "$ac_try") 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; }; then
12724   ac_cv_search_dlopen=$ac_res
12725 else
12726   echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729
12730 fi
12731
12732 rm -f core conftest.err conftest.$ac_objext \
12733       conftest$ac_exeext
12734   if test "${ac_cv_search_dlopen+set}" = set; then
12735   break
12736 fi
12737 done
12738 if test "${ac_cv_search_dlopen+set}" = set; then
12739   :
12740 else
12741   ac_cv_search_dlopen=no
12742 fi
12743 rm conftest.$ac_ext
12744 LIBS=$ac_func_search_save_LIBS
12745 fi
12746 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12747 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12748 ac_res=$ac_cv_search_dlopen
12749 if test "$ac_res" != no; then
12750   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12751
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_DLOPEN 1
12754 _ACEOF
12755
12756 else
12757   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12758 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12759 fi
12760
12761
12762 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12763 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12764 if test "${ac_cv_search_clock_gettime+set}" = set; then
12765   echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767   ac_func_search_save_LIBS=$LIBS
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h.  */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h.  */
12774
12775 /* Override any GCC internal prototype to avoid an error.
12776    Use char because int might match the return type of a GCC
12777    builtin and then its argument prototype would still apply.  */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char clock_gettime ();
12782 int
12783 main ()
12784 {
12785 return clock_gettime ();
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 for ac_lib in '' rt; do
12791   if test -z "$ac_lib"; then
12792     ac_res="none required"
12793   else
12794     ac_res=-l$ac_lib
12795     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12796   fi
12797   rm -f conftest.$ac_objext conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_link") 2>conftest.er1
12805   ac_status=$?
12806   grep -v '^ *+' conftest.er1 >conftest.err
12807   rm -f conftest.er1
12808   cat conftest.err >&5
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } &&
12811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12812   { (case "(($ac_try" in
12813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814   *) ac_try_echo=$ac_try;;
12815 esac
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817   (eval "$ac_try") 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; } &&
12821          { ac_try='test -s conftest$ac_exeext'
12822   { (case "(($ac_try" in
12823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824   *) ac_try_echo=$ac_try;;
12825 esac
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827   (eval "$ac_try") 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831   ac_cv_search_clock_gettime=$ac_res
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836
12837 fi
12838
12839 rm -f core conftest.err conftest.$ac_objext \
12840       conftest$ac_exeext
12841   if test "${ac_cv_search_clock_gettime+set}" = set; then
12842   break
12843 fi
12844 done
12845 if test "${ac_cv_search_clock_gettime+set}" = set; then
12846   :
12847 else
12848   ac_cv_search_clock_gettime=no
12849 fi
12850 rm conftest.$ac_ext
12851 LIBS=$ac_func_search_save_LIBS
12852 fi
12853 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12854 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12855 ac_res=$ac_cv_search_clock_gettime
12856 if test "$ac_res" != no; then
12857   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12858
12859 fi
12860
12861
12862 if test "$llvm_cv_enable_libffi" = "yes" ; then
12863   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12864 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12865 if test "${ac_cv_search_ffi_call+set}" = set; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   ac_func_search_save_LIBS=$LIBS
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875
12876 /* Override any GCC internal prototype to avoid an error.
12877    Use char because int might match the return type of a GCC
12878    builtin and then its argument prototype would still apply.  */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 char ffi_call ();
12883 int
12884 main ()
12885 {
12886 return ffi_call ();
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 for ac_lib in '' ffi; do
12892   if test -z "$ac_lib"; then
12893     ac_res="none required"
12894   else
12895     ac_res=-l$ac_lib
12896     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12897   fi
12898   rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (ac_try="$ac_link"
12900 case "(($ac_try" in
12901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902   *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905   (eval "$ac_link") 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913   { (case "(($ac_try" in
12914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915   *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918   (eval "$ac_try") 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; } &&
12922          { ac_try='test -s conftest$ac_exeext'
12923   { (case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928   (eval "$ac_try") 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   ac_cv_search_ffi_call=$ac_res
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937
12938 fi
12939
12940 rm -f core conftest.err conftest.$ac_objext \
12941       conftest$ac_exeext
12942   if test "${ac_cv_search_ffi_call+set}" = set; then
12943   break
12944 fi
12945 done
12946 if test "${ac_cv_search_ffi_call+set}" = set; then
12947   :
12948 else
12949   ac_cv_search_ffi_call=no
12950 fi
12951 rm conftest.$ac_ext
12952 LIBS=$ac_func_search_save_LIBS
12953 fi
12954 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12955 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12956 ac_res=$ac_cv_search_ffi_call
12957 if test "$ac_res" != no; then
12958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12959
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_FFI_CALL 1
12962 _ACEOF
12963
12964 else
12965   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12966 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12967    { (exit 1); exit 1; }; }
12968 fi
12969
12970 fi
12971
12972 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12973 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12974 if test "${ac_cv_search_mallinfo+set}" = set; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   ac_func_search_save_LIBS=$LIBS
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h.  */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h.  */
12984
12985 /* Override any GCC internal prototype to avoid an error.
12986    Use char because int might match the return type of a GCC
12987    builtin and then its argument prototype would still apply.  */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char mallinfo ();
12992 int
12993 main ()
12994 {
12995 return mallinfo ();
12996   ;
12997   return 0;
12998 }
12999 _ACEOF
13000 for ac_lib in '' malloc; do
13001   if test -z "$ac_lib"; then
13002     ac_res="none required"
13003   else
13004     ac_res=-l$ac_lib
13005     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13006   fi
13007   rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (ac_try="$ac_link"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_link") 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } &&
13021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13022   { (case "(($ac_try" in
13023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024   *) ac_try_echo=$ac_try;;
13025 esac
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027   (eval "$ac_try") 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); }; } &&
13031          { ac_try='test -s conftest$ac_exeext'
13032   { (case "(($ac_try" in
13033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034   *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037   (eval "$ac_try") 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; }; then
13041   ac_cv_search_mallinfo=$ac_res
13042 else
13043   echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046
13047 fi
13048
13049 rm -f core conftest.err conftest.$ac_objext \
13050       conftest$ac_exeext
13051   if test "${ac_cv_search_mallinfo+set}" = set; then
13052   break
13053 fi
13054 done
13055 if test "${ac_cv_search_mallinfo+set}" = set; then
13056   :
13057 else
13058   ac_cv_search_mallinfo=no
13059 fi
13060 rm conftest.$ac_ext
13061 LIBS=$ac_func_search_save_LIBS
13062 fi
13063 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13064 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13065 ac_res=$ac_cv_search_mallinfo
13066 if test "$ac_res" != no; then
13067   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13068
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_MALLINFO 1
13071 _ACEOF
13072
13073 fi
13074
13075
13076 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13077
13078 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13079 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13080 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lpthread  $LIBS"
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091
13092 /* Override any GCC internal prototype to avoid an error.
13093    Use char because int might match the return type of a GCC
13094    builtin and then its argument prototype would still apply.  */
13095 #ifdef __cplusplus
13096 extern "C"
13097 #endif
13098 char pthread_mutex_init ();
13099 int
13100 main ()
13101 {
13102 return pthread_mutex_init ();
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (ac_try="$ac_link"
13109 case "(($ac_try" in
13110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111   *) ac_try_echo=$ac_try;;
13112 esac
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114   (eval "$ac_link") 2>conftest.er1
13115   ac_status=$?
13116   grep -v '^ *+' conftest.er1 >conftest.err
13117   rm -f conftest.er1
13118   cat conftest.err >&5
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } &&
13121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13122   { (case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127   (eval "$ac_try") 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; } &&
13131          { ac_try='test -s conftest$ac_exeext'
13132   { (case "(($ac_try" in
13133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134   *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137   (eval "$ac_try") 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   ac_cv_lib_pthread_pthread_mutex_init=yes
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146         ac_cv_lib_pthread_pthread_mutex_init=no
13147 fi
13148
13149 rm -f core conftest.err conftest.$ac_objext \
13150       conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_lib_save_LIBS
13152 fi
13153 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13154 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13155 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13156   cat >>confdefs.h <<_ACEOF
13157 #define HAVE_LIBPTHREAD 1
13158 _ACEOF
13159
13160   LIBS="-lpthread $LIBS"
13161
13162 fi
13163
13164   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13165 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13166 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   ac_func_search_save_LIBS=$LIBS
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176
13177 /* Override any GCC internal prototype to avoid an error.
13178    Use char because int might match the return type of a GCC
13179    builtin and then its argument prototype would still apply.  */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 char pthread_mutex_lock ();
13184 int
13185 main ()
13186 {
13187 return pthread_mutex_lock ();
13188   ;
13189   return 0;
13190 }
13191 _ACEOF
13192 for ac_lib in '' pthread; do
13193   if test -z "$ac_lib"; then
13194     ac_res="none required"
13195   else
13196     ac_res=-l$ac_lib
13197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13198   fi
13199   rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (ac_try="$ac_link"
13201 case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_link") 2>conftest.er1
13207   ac_status=$?
13208   grep -v '^ *+' conftest.er1 >conftest.err
13209   rm -f conftest.er1
13210   cat conftest.err >&5
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } &&
13213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214   { (case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219   (eval "$ac_try") 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; } &&
13223          { ac_try='test -s conftest$ac_exeext'
13224   { (case "(($ac_try" in
13225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226   *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229   (eval "$ac_try") 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; }; then
13233   ac_cv_search_pthread_mutex_lock=$ac_res
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext \
13242       conftest$ac_exeext
13243   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13244   break
13245 fi
13246 done
13247 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13248   :
13249 else
13250   ac_cv_search_pthread_mutex_lock=no
13251 fi
13252 rm conftest.$ac_ext
13253 LIBS=$ac_func_search_save_LIBS
13254 fi
13255 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13256 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13257 ac_res=$ac_cv_search_pthread_mutex_lock
13258 if test "$ac_res" != no; then
13259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13260
13261 cat >>confdefs.h <<\_ACEOF
13262 #define HAVE_PTHREAD_MUTEX_LOCK 1
13263 _ACEOF
13264
13265 fi
13266
13267   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13268 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13269 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13270   echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272   ac_func_search_save_LIBS=$LIBS
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279
13280 /* Override any GCC internal prototype to avoid an error.
13281    Use char because int might match the return type of a GCC
13282    builtin and then its argument prototype would still apply.  */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char pthread_rwlock_init ();
13287 int
13288 main ()
13289 {
13290 return pthread_rwlock_init ();
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 for ac_lib in '' pthread; do
13296   if test -z "$ac_lib"; then
13297     ac_res="none required"
13298   else
13299     ac_res=-l$ac_lib
13300     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13301   fi
13302   rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_link") 2>conftest.er1
13310   ac_status=$?
13311   grep -v '^ *+' conftest.er1 >conftest.err
13312   rm -f conftest.er1
13313   cat conftest.err >&5
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); } &&
13316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317   { (case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_try") 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; } &&
13326          { ac_try='test -s conftest$ac_exeext'
13327   { (case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_try") 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   ac_cv_search_pthread_rwlock_init=$ac_res
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341
13342 fi
13343
13344 rm -f core conftest.err conftest.$ac_objext \
13345       conftest$ac_exeext
13346   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13347   break
13348 fi
13349 done
13350 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13351   :
13352 else
13353   ac_cv_search_pthread_rwlock_init=no
13354 fi
13355 rm conftest.$ac_ext
13356 LIBS=$ac_func_search_save_LIBS
13357 fi
13358 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13359 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13360 ac_res=$ac_cv_search_pthread_rwlock_init
13361 if test "$ac_res" != no; then
13362   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_PTHREAD_RWLOCK_INIT 1
13366 _ACEOF
13367
13368 fi
13369
13370   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13371 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13372 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375   ac_func_search_save_LIBS=$LIBS
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382
13383 /* Override any GCC internal prototype to avoid an error.
13384    Use char because int might match the return type of a GCC
13385    builtin and then its argument prototype would still apply.  */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char pthread_getspecific ();
13390 int
13391 main ()
13392 {
13393 return pthread_getspecific ();
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 for ac_lib in '' pthread; do
13399   if test -z "$ac_lib"; then
13400     ac_res="none required"
13401   else
13402     ac_res=-l$ac_lib
13403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13404   fi
13405   rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_link") 2>conftest.er1
13413   ac_status=$?
13414   grep -v '^ *+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } &&
13419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420   { (case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_try") 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; } &&
13429          { ac_try='test -s conftest$ac_exeext'
13430   { (case "(($ac_try" in
13431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432   *) ac_try_echo=$ac_try;;
13433 esac
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435   (eval "$ac_try") 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_cv_search_pthread_getspecific=$ac_res
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444
13445 fi
13446
13447 rm -f core conftest.err conftest.$ac_objext \
13448       conftest$ac_exeext
13449   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13450   break
13451 fi
13452 done
13453 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13454   :
13455 else
13456   ac_cv_search_pthread_getspecific=no
13457 fi
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13460 fi
13461 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13462 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13463 ac_res=$ac_cv_search_pthread_getspecific
13464 if test "$ac_res" != no; then
13465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467 cat >>confdefs.h <<\_ACEOF
13468 #define HAVE_PTHREAD_GETSPECIFIC 1
13469 _ACEOF
13470
13471 fi
13472
13473 fi
13474
13475 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13476
13477 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13478 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13479 if test "${ac_cv_lib_z_compress2+set}" = set; then
13480   echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482   ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-lz  $LIBS"
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h.  */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h.  */
13490
13491 /* Override any GCC internal prototype to avoid an error.
13492    Use char because int might match the return type of a GCC
13493    builtin and then its argument prototype would still apply.  */
13494 #ifdef __cplusplus
13495 extern "C"
13496 #endif
13497 char compress2 ();
13498 int
13499 main ()
13500 {
13501 return compress2 ();
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (ac_try="$ac_link"
13508 case "(($ac_try" in
13509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510   *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513   (eval "$ac_link") 2>conftest.er1
13514   ac_status=$?
13515   grep -v '^ *+' conftest.er1 >conftest.err
13516   rm -f conftest.er1
13517   cat conftest.err >&5
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); } &&
13520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13521   { (case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_try") 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; } &&
13530          { ac_try='test -s conftest$ac_exeext'
13531   { (case "(($ac_try" in
13532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533   *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536   (eval "$ac_try") 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; }; then
13540   ac_cv_lib_z_compress2=yes
13541 else
13542   echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545         ac_cv_lib_z_compress2=no
13546 fi
13547
13548 rm -f core conftest.err conftest.$ac_objext \
13549       conftest$ac_exeext conftest.$ac_ext
13550 LIBS=$ac_check_lib_save_LIBS
13551 fi
13552 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13553 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13554 if test $ac_cv_lib_z_compress2 = yes; then
13555   cat >>confdefs.h <<_ACEOF
13556 #define HAVE_LIBZ 1
13557 _ACEOF
13558
13559   LIBS="-lz $LIBS"
13560
13561 fi
13562
13563 fi
13564
13565
13566 # Check whether --with-udis86 was given.
13567 if test "${with_udis86+set}" = set; then
13568   withval=$with_udis86;
13569       USE_UDIS86=1
13570
13571       case "$withval" in
13572         /usr/lib|yes) ;;
13573         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13574       esac
13575
13576 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13577 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13578 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13579   echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581   ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-ludis86  $LIBS"
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589
13590 /* Override any GCC internal prototype to avoid an error.
13591    Use char because int might match the return type of a GCC
13592    builtin and then its argument prototype would still apply.  */
13593 #ifdef __cplusplus
13594 extern "C"
13595 #endif
13596 char ud_init ();
13597 int
13598 main ()
13599 {
13600 return ud_init ();
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_link") 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620   { (case "(($ac_try" in
13621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622   *) ac_try_echo=$ac_try;;
13623 esac
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625   (eval "$ac_try") 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest$ac_exeext'
13630   { (case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635   (eval "$ac_try") 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_lib_udis86_ud_init=yes
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644         ac_cv_lib_udis86_ud_init=no
13645 fi
13646
13647 rm -f core conftest.err conftest.$ac_objext \
13648       conftest$ac_exeext conftest.$ac_ext
13649 LIBS=$ac_check_lib_save_LIBS
13650 fi
13651 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13652 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13653 if test $ac_cv_lib_udis86_ud_init = yes; then
13654   cat >>confdefs.h <<_ACEOF
13655 #define HAVE_LIBUDIS86 1
13656 _ACEOF
13657
13658   LIBS="-ludis86 $LIBS"
13659
13660 else
13661
13662         echo "Error! You need to have libudis86 around."
13663         exit -1
13664
13665 fi
13666
13667
13668 else
13669   USE_UDIS86=0
13670
13671 fi
13672
13673
13674 cat >>confdefs.h <<_ACEOF
13675 #define USE_UDIS86 $USE_UDIS86
13676 _ACEOF
13677
13678
13679
13680 # Check whether --with-oprofile was given.
13681 if test "${with_oprofile+set}" = set; then
13682   withval=$with_oprofile;
13683       USE_OPROFILE=1
13684
13685       case "$withval" in
13686         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13687         no) llvm_cv_oppath=
13688             USE_OPROFILE=0
13689  ;;
13690         *) llvm_cv_oppath="${withval}/lib/oprofile"
13691            CPPFLAGS="-I${withval}/include";;
13692       esac
13693       case $llvm_cv_os_type in
13694         Linux)
13695           if test -n "$llvm_cv_oppath" ; then
13696             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13697                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13698 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13699 if test "${ac_cv_search_bfd_init+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   ac_func_search_save_LIBS=$LIBS
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709
13710 /* Override any GCC internal prototype to avoid an error.
13711    Use char because int might match the return type of a GCC
13712    builtin and then its argument prototype would still apply.  */
13713 #ifdef __cplusplus
13714 extern "C"
13715 #endif
13716 char bfd_init ();
13717 int
13718 main ()
13719 {
13720 return bfd_init ();
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 for ac_lib in '' bfd; do
13726   if test -z "$ac_lib"; then
13727     ac_res="none required"
13728   else
13729     ac_res=-l$ac_lib
13730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13731   fi
13732   rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_link") 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747   { (case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_try") 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; } &&
13756          { ac_try='test -s conftest$ac_exeext'
13757   { (case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_try") 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_search_bfd_init=$ac_res
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771
13772 fi
13773
13774 rm -f core conftest.err conftest.$ac_objext \
13775       conftest$ac_exeext
13776   if test "${ac_cv_search_bfd_init+set}" = set; then
13777   break
13778 fi
13779 done
13780 if test "${ac_cv_search_bfd_init+set}" = set; then
13781   :
13782 else
13783   ac_cv_search_bfd_init=no
13784 fi
13785 rm conftest.$ac_ext
13786 LIBS=$ac_func_search_save_LIBS
13787 fi
13788 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13789 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13790 ac_res=$ac_cv_search_bfd_init
13791 if test "$ac_res" != no; then
13792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793
13794 fi
13795
13796             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13797 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13798 if test "${ac_cv_search_op_open_agent+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   ac_func_search_save_LIBS=$LIBS
13802 cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h.  */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h.  */
13808
13809 /* Override any GCC internal prototype to avoid an error.
13810    Use char because int might match the return type of a GCC
13811    builtin and then its argument prototype would still apply.  */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 char op_open_agent ();
13816 int
13817 main ()
13818 {
13819 return op_open_agent ();
13820   ;
13821   return 0;
13822 }
13823 _ACEOF
13824 for ac_lib in '' opagent; do
13825   if test -z "$ac_lib"; then
13826     ac_res="none required"
13827   else
13828     ac_res=-l$ac_lib
13829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13830   fi
13831   rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (ac_try="$ac_link"
13833 case "(($ac_try" in
13834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835   *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838   (eval "$ac_link") 2>conftest.er1
13839   ac_status=$?
13840   grep -v '^ *+' conftest.er1 >conftest.err
13841   rm -f conftest.er1
13842   cat conftest.err >&5
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13846   { (case "(($ac_try" in
13847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848   *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851   (eval "$ac_try") 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; } &&
13855          { ac_try='test -s conftest$ac_exeext'
13856   { (case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861   (eval "$ac_try") 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865   ac_cv_search_op_open_agent=$ac_res
13866 else
13867   echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870
13871 fi
13872
13873 rm -f core conftest.err conftest.$ac_objext \
13874       conftest$ac_exeext
13875   if test "${ac_cv_search_op_open_agent+set}" = set; then
13876   break
13877 fi
13878 done
13879 if test "${ac_cv_search_op_open_agent+set}" = set; then
13880   :
13881 else
13882   ac_cv_search_op_open_agent=no
13883 fi
13884 rm conftest.$ac_ext
13885 LIBS=$ac_func_search_save_LIBS
13886 fi
13887 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13888 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13889 ac_res=$ac_cv_search_op_open_agent
13890 if test "$ac_res" != no; then
13891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13892
13893 else
13894
13895               echo "Error! You need to have libopagent around."
13896               exit -1
13897
13898 fi
13899
13900             if test "${ac_cv_header_opagent_h+set}" = set; then
13901   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13902 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13903 if test "${ac_cv_header_opagent_h+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 fi
13906 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13907 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13908 else
13909   # Is the header compilable?
13910 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13911 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 $ac_includes_default
13919 #include <opagent.h>
13920 _ACEOF
13921 rm -f conftest.$ac_objext
13922 if { (ac_try="$ac_compile"
13923 case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928   (eval "$ac_compile") 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936   { (case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_try") 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; } &&
13945          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955   ac_header_compiler=yes
13956 else
13957   echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960         ac_header_compiler=no
13961 fi
13962
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965 echo "${ECHO_T}$ac_header_compiler" >&6; }
13966
13967 # Is the header present?
13968 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13969 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h.  */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h.  */
13976 #include <opagent.h>
13977 _ACEOF
13978 if { (ac_try="$ac_cpp conftest.$ac_ext"
13979 case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } >/dev/null; then
13991   if test -s conftest.err; then
13992     ac_cpp_err=$ac_c_preproc_warn_flag
13993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13994   else
13995     ac_cpp_err=
13996   fi
13997 else
13998   ac_cpp_err=yes
13999 fi
14000 if test -z "$ac_cpp_err"; then
14001   ac_header_preproc=yes
14002 else
14003   echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006   ac_header_preproc=no
14007 fi
14008
14009 rm -f conftest.err conftest.$ac_ext
14010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14011 echo "${ECHO_T}$ac_header_preproc" >&6; }
14012
14013 # So?  What about this header?
14014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14015   yes:no: )
14016     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14017 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14018     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14019 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14020     ac_header_preproc=yes
14021     ;;
14022   no:yes:* )
14023     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14024 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14025     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14026 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14027     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14028 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14029     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14030 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14032 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14034 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14035     ( cat <<\_ASBOX
14036 ## ------------------------------------ ##
14037 ## Report this to http://llvm.org/bugs/ ##
14038 ## ------------------------------------ ##
14039 _ASBOX
14040      ) | sed "s/^/$as_me: WARNING:     /" >&2
14041     ;;
14042 esac
14043 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14044 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_opagent_h+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   ac_cv_header_opagent_h=$ac_header_preproc
14049 fi
14050 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14051 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14052
14053 fi
14054 if test $ac_cv_header_opagent_h = yes; then
14055   :
14056 else
14057
14058               echo "Error! You need to have opagent.h around."
14059               exit -1
14060
14061 fi
14062
14063
14064           fi ;;
14065         *)
14066           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14067 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14068    { (exit 1); exit 1; }; } ;;
14069       esac
14070
14071 else
14072
14073       USE_OPROFILE=0
14074
14075
14076 fi
14077
14078
14079 cat >>confdefs.h <<_ACEOF
14080 #define LLVM_USE_OPROFILE $USE_OPROFILE
14081 _ACEOF
14082
14083
14084
14085 # Check whether --with-intel-jitevents was given.
14086 if test "${with_intel_jitevents+set}" = set; then
14087   withval=$with_intel_jitevents;
14088        case "$withval" in
14089           yes) USE_INTEL_JITEVENTS=1
14090 ;;
14091           no)  USE_INTEL_JITEVENTS=0
14092 ;;
14093           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14094 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14095    { (exit 1); exit 1; }; };;
14096        esac
14097
14098       case $llvm_cv_os_type in
14099         Linux|Win32|Cygwin|MingW) ;;
14100         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14101 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14102    { (exit 1); exit 1; }; };;
14103       esac
14104
14105       case "$llvm_cv_target_arch" in
14106         x86|x86_64) ;;
14107         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14108 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14109    { (exit 1); exit 1; }; };;
14110       esac
14111
14112 else
14113
14114       USE_INTEL_JITEVENTS=0
14115
14116
14117 fi
14118
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14122 _ACEOF
14123
14124
14125 for ac_prog in xml2-config
14126 do
14127   # Extract the first word of "$ac_prog", so it can be a program name with args.
14128 set dummy $ac_prog; ac_word=$2
14129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   if test -n "$XML2CONFIG"; then
14135   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14139 do
14140   IFS=$as_save_IFS
14141   test -z "$as_dir" && as_dir=.
14142   for ac_exec_ext in '' $ac_executable_extensions; do
14143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14144     ac_cv_prog_XML2CONFIG="$ac_prog"
14145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146     break 2
14147   fi
14148 done
14149 done
14150 IFS=$as_save_IFS
14151
14152 fi
14153 fi
14154 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14155 if test -n "$XML2CONFIG"; then
14156   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14157 echo "${ECHO_T}$XML2CONFIG" >&6; }
14158 else
14159   { echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6; }
14161 fi
14162
14163
14164   test -n "$XML2CONFIG" && break
14165 done
14166
14167
14168 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14169 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14170 if test "x$XML2CONFIG" = "x"; then
14171  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14172 echo "${ECHO_T}xml2-config not found" >&6; }
14173 else
14174  LIBXML2_INC=`$XML2CONFIG --cflags`
14175  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14176 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14177  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14178 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14179 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   ac_check_lib_save_LIBS=$LIBS
14183 LIBS="-lxml2  $LIBS"
14184 cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h.  */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h.  */
14190
14191 /* Override any GCC internal prototype to avoid an error.
14192    Use char because int might match the return type of a GCC
14193    builtin and then its argument prototype would still apply.  */
14194 #ifdef __cplusplus
14195 extern "C"
14196 #endif
14197 char xmlReadFile ();
14198 int
14199 main ()
14200 {
14201 return xmlReadFile ();
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_link") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest$ac_exeext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_lib_xml2_xmlReadFile=yes
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245         ac_cv_lib_xml2_xmlReadFile=no
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext \
14249       conftest$ac_exeext conftest.$ac_ext
14250 LIBS=$ac_check_lib_save_LIBS
14251 fi
14252 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14253 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14254 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14255
14256 cat >>confdefs.h <<\_ACEOF
14257 #define CLANG_HAVE_LIBXML 1
14258 _ACEOF
14259
14260                                 LIBXML2_LIBS="-lxml2"
14261 fi
14262
14263 fi
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273 ac_header_dirent=no
14274 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14275   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14276 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14277 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281   cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h.  */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h.  */
14287 #include <sys/types.h>
14288 #include <$ac_hdr>
14289
14290 int
14291 main ()
14292 {
14293 if ((DIR *) 0)
14294 return 0;
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (ac_try="$ac_compile"
14301 case "(($ac_try" in
14302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303   *) ac_try_echo=$ac_try;;
14304 esac
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306   (eval "$ac_compile") 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } &&
14313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14314   { (case "(($ac_try" in
14315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316   *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319   (eval "$ac_try") 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; } &&
14323          { ac_try='test -s conftest.$ac_objext'
14324   { (case "(($ac_try" in
14325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326   *) ac_try_echo=$ac_try;;
14327 esac
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329   (eval "$ac_try") 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   eval "$as_ac_Header=yes"
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338         eval "$as_ac_Header=no"
14339 fi
14340
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 ac_res=`eval echo '${'$as_ac_Header'}'`
14344                { echo "$as_me:$LINENO: result: $ac_res" >&5
14345 echo "${ECHO_T}$ac_res" >&6; }
14346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14347   cat >>confdefs.h <<_ACEOF
14348 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14349 _ACEOF
14350
14351 ac_header_dirent=$ac_hdr; break
14352 fi
14353
14354 done
14355 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14356 if test $ac_header_dirent = dirent.h; then
14357   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14358 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14359 if test "${ac_cv_search_opendir+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   ac_func_search_save_LIBS=$LIBS
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370 /* Override any GCC internal prototype to avoid an error.
14371    Use char because int might match the return type of a GCC
14372    builtin and then its argument prototype would still apply.  */
14373 #ifdef __cplusplus
14374 extern "C"
14375 #endif
14376 char opendir ();
14377 int
14378 main ()
14379 {
14380 return opendir ();
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 for ac_lib in '' dir; do
14386   if test -z "$ac_lib"; then
14387     ac_res="none required"
14388   else
14389     ac_res=-l$ac_lib
14390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14391   fi
14392   rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (ac_try="$ac_link"
14394 case "(($ac_try" in
14395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396   *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399   (eval "$ac_link") 2>conftest.er1
14400   ac_status=$?
14401   grep -v '^ *+' conftest.er1 >conftest.err
14402   rm -f conftest.er1
14403   cat conftest.err >&5
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); } &&
14406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14407   { (case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_try") 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; } &&
14416          { ac_try='test -s conftest$ac_exeext'
14417   { (case "(($ac_try" in
14418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419   *) ac_try_echo=$ac_try;;
14420 esac
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422   (eval "$ac_try") 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; }; then
14426   ac_cv_search_opendir=$ac_res
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431
14432 fi
14433
14434 rm -f core conftest.err conftest.$ac_objext \
14435       conftest$ac_exeext
14436   if test "${ac_cv_search_opendir+set}" = set; then
14437   break
14438 fi
14439 done
14440 if test "${ac_cv_search_opendir+set}" = set; then
14441   :
14442 else
14443   ac_cv_search_opendir=no
14444 fi
14445 rm conftest.$ac_ext
14446 LIBS=$ac_func_search_save_LIBS
14447 fi
14448 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14449 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14450 ac_res=$ac_cv_search_opendir
14451 if test "$ac_res" != no; then
14452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14453
14454 fi
14455
14456 else
14457   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14459 if test "${ac_cv_search_opendir+set}" = set; then
14460   echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462   ac_func_search_save_LIBS=$LIBS
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469
14470 /* Override any GCC internal prototype to avoid an error.
14471    Use char because int might match the return type of a GCC
14472    builtin and then its argument prototype would still apply.  */
14473 #ifdef __cplusplus
14474 extern "C"
14475 #endif
14476 char opendir ();
14477 int
14478 main ()
14479 {
14480 return opendir ();
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 for ac_lib in '' x; do
14486   if test -z "$ac_lib"; then
14487     ac_res="none required"
14488   else
14489     ac_res=-l$ac_lib
14490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14491   fi
14492   rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499   (eval "$ac_link") 2>conftest.er1
14500   ac_status=$?
14501   grep -v '^ *+' conftest.er1 >conftest.err
14502   rm -f conftest.er1
14503   cat conftest.err >&5
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } &&
14506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14507   { (case "(($ac_try" in
14508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509   *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512   (eval "$ac_try") 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; } &&
14516          { ac_try='test -s conftest$ac_exeext'
14517   { (case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522   (eval "$ac_try") 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; }; then
14526   ac_cv_search_opendir=$ac_res
14527 else
14528   echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14530
14531
14532 fi
14533
14534 rm -f core conftest.err conftest.$ac_objext \
14535       conftest$ac_exeext
14536   if test "${ac_cv_search_opendir+set}" = set; then
14537   break
14538 fi
14539 done
14540 if test "${ac_cv_search_opendir+set}" = set; then
14541   :
14542 else
14543   ac_cv_search_opendir=no
14544 fi
14545 rm conftest.$ac_ext
14546 LIBS=$ac_func_search_save_LIBS
14547 fi
14548 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14549 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14550 ac_res=$ac_cv_search_opendir
14551 if test "$ac_res" != no; then
14552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14553
14554 fi
14555
14556 fi
14557
14558 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14559 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14560 if test "${ac_cv_header_mmap_anon+set}" = set; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563    ac_ext=c
14564 ac_cpp='$CPP $CPPFLAGS'
14565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14568
14569   cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575 #include <sys/mman.h>
14576 #include <unistd.h>
14577 #include <fcntl.h>
14578 int
14579 main ()
14580 {
14581 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14582   ;
14583   return 0;
14584 }
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_compile") 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601   { (case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606   (eval "$ac_try") 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest.$ac_objext'
14611   { (case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_try") 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   ac_cv_header_mmap_anon=yes
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625         ac_cv_header_mmap_anon=no
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629   ac_ext=c
14630 ac_cpp='$CPP $CPPFLAGS'
14631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634
14635
14636 fi
14637 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14638 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14639 if test "$ac_cv_header_mmap_anon" = yes; then
14640
14641 cat >>confdefs.h <<\_ACEOF
14642 #define HAVE_MMAP_ANONYMOUS 1
14643 _ACEOF
14644
14645 fi
14646
14647 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14648 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14649 if test "${ac_cv_header_stat_broken+set}" = set; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658 #include <sys/types.h>
14659 #include <sys/stat.h>
14660
14661 #if defined S_ISBLK && defined S_IFDIR
14662 # if S_ISBLK (S_IFDIR)
14663 You lose.
14664 # endif
14665 #endif
14666
14667 #if defined S_ISBLK && defined S_IFCHR
14668 # if S_ISBLK (S_IFCHR)
14669 You lose.
14670 # endif
14671 #endif
14672
14673 #if defined S_ISLNK && defined S_IFREG
14674 # if S_ISLNK (S_IFREG)
14675 You lose.
14676 # endif
14677 #endif
14678
14679 #if defined S_ISSOCK && defined S_IFREG
14680 # if S_ISSOCK (S_IFREG)
14681 You lose.
14682 # endif
14683 #endif
14684
14685 _ACEOF
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687   $EGREP "You lose" >/dev/null 2>&1; then
14688   ac_cv_header_stat_broken=yes
14689 else
14690   ac_cv_header_stat_broken=no
14691 fi
14692 rm -f conftest*
14693
14694 fi
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14696 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14697 if test $ac_cv_header_stat_broken = yes; then
14698
14699 cat >>confdefs.h <<\_ACEOF
14700 #define STAT_MACROS_BROKEN 1
14701 _ACEOF
14702
14703 fi
14704
14705 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14706 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14707 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
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 <sys/types.h>
14717 #include <sys/wait.h>
14718 #ifndef WEXITSTATUS
14719 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14720 #endif
14721 #ifndef WIFEXITED
14722 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14723 #endif
14724
14725 int
14726 main ()
14727 {
14728   int s;
14729   wait (&s);
14730   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (ac_try="$ac_compile"
14737 case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_compile") 2>conftest.er1
14743   ac_status=$?
14744   grep -v '^ *+' conftest.er1 >conftest.err
14745   rm -f conftest.er1
14746   cat conftest.err >&5
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14750   { (case "(($ac_try" in
14751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752   *) ac_try_echo=$ac_try;;
14753 esac
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755   (eval "$ac_try") 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; } &&
14759          { ac_try='test -s conftest.$ac_objext'
14760   { (case "(($ac_try" in
14761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762   *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765   (eval "$ac_try") 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; }; then
14769   ac_cv_header_sys_wait_h=yes
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774         ac_cv_header_sys_wait_h=no
14775 fi
14776
14777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778 fi
14779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14780 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14781 if test $ac_cv_header_sys_wait_h = yes; then
14782
14783 cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_SYS_WAIT_H 1
14785 _ACEOF
14786
14787 fi
14788
14789 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14790 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14791 if test "${ac_cv_header_time+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800 #include <sys/types.h>
14801 #include <sys/time.h>
14802 #include <time.h>
14803
14804 int
14805 main ()
14806 {
14807 if ((struct tm *) 0)
14808 return 0;
14809   ;
14810   return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14821   ac_status=$?
14822   grep -v '^ *+' conftest.er1 >conftest.err
14823   rm -f conftest.er1
14824   cat conftest.err >&5
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); } &&
14827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14828   { (case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833   (eval "$ac_try") 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); }; } &&
14837          { ac_try='test -s conftest.$ac_objext'
14838   { (case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_try") 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; }; then
14847   ac_cv_header_time=yes
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852         ac_cv_header_time=no
14853 fi
14854
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 fi
14857 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14858 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14859 if test $ac_cv_header_time = yes; then
14860
14861 cat >>confdefs.h <<\_ACEOF
14862 #define TIME_WITH_SYS_TIME 1
14863 _ACEOF
14864
14865 fi
14866
14867
14868 ac_ext=cpp
14869 ac_cpp='$CXXCPP $CPPFLAGS'
14870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14873
14874 ac_ext=cpp
14875 ac_cpp='$CXXCPP $CPPFLAGS'
14876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14879 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14880 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14881 if test -z "$CXXCPP"; then
14882   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885       # Double quotes because CXXCPP needs to be expanded
14886     for CXXCPP in "$CXX -E" "/lib/cpp"
14887     do
14888       ac_preproc_ok=false
14889 for ac_cxx_preproc_warn_flag in '' yes
14890 do
14891   # Use a header file that comes with gcc, so configuring glibc
14892   # with a fresh cross-compiler works.
14893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14894   # <limits.h> exists even on freestanding compilers.
14895   # On the NeXT, cc -E runs the code through the compiler's parser,
14896   # not just through cpp. "Syntax error" is here to catch this case.
14897   cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903 #ifdef __STDC__
14904 # include <limits.h>
14905 #else
14906 # include <assert.h>
14907 #endif
14908                      Syntax error
14909 _ACEOF
14910 if { (ac_try="$ac_cpp conftest.$ac_ext"
14911 case "(($ac_try" in
14912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913   *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14917   ac_status=$?
14918   grep -v '^ *+' conftest.er1 >conftest.err
14919   rm -f conftest.er1
14920   cat conftest.err >&5
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); } >/dev/null; then
14923   if test -s conftest.err; then
14924     ac_cpp_err=$ac_cxx_preproc_warn_flag
14925     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14926   else
14927     ac_cpp_err=
14928   fi
14929 else
14930   ac_cpp_err=yes
14931 fi
14932 if test -z "$ac_cpp_err"; then
14933   :
14934 else
14935   echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938   # Broken: fails on valid input.
14939 continue
14940 fi
14941
14942 rm -f conftest.err conftest.$ac_ext
14943
14944   # OK, works on sane cases.  Now check whether nonexistent headers
14945   # can be detected and how.
14946   cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952 #include <ac_nonexistent.h>
14953 _ACEOF
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961   ac_status=$?
14962   grep -v '^ *+' conftest.er1 >conftest.err
14963   rm -f conftest.er1
14964   cat conftest.err >&5
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } >/dev/null; then
14967   if test -s conftest.err; then
14968     ac_cpp_err=$ac_cxx_preproc_warn_flag
14969     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14970   else
14971     ac_cpp_err=
14972   fi
14973 else
14974   ac_cpp_err=yes
14975 fi
14976 if test -z "$ac_cpp_err"; then
14977   # Broken: success on invalid input.
14978 continue
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983   # Passes both tests.
14984 ac_preproc_ok=:
14985 break
14986 fi
14987
14988 rm -f conftest.err conftest.$ac_ext
14989
14990 done
14991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14992 rm -f conftest.err conftest.$ac_ext
14993 if $ac_preproc_ok; then
14994   break
14995 fi
14996
14997     done
14998     ac_cv_prog_CXXCPP=$CXXCPP
14999
15000 fi
15001   CXXCPP=$ac_cv_prog_CXXCPP
15002 else
15003   ac_cv_prog_CXXCPP=$CXXCPP
15004 fi
15005 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15006 echo "${ECHO_T}$CXXCPP" >&6; }
15007 ac_preproc_ok=false
15008 for ac_cxx_preproc_warn_flag in '' yes
15009 do
15010   # Use a header file that comes with gcc, so configuring glibc
15011   # with a fresh cross-compiler works.
15012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15013   # <limits.h> exists even on freestanding compilers.
15014   # On the NeXT, cc -E runs the code through the compiler's parser,
15015   # not just through cpp. "Syntax error" is here to catch this case.
15016   cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022 #ifdef __STDC__
15023 # include <limits.h>
15024 #else
15025 # include <assert.h>
15026 #endif
15027                      Syntax error
15028 _ACEOF
15029 if { (ac_try="$ac_cpp conftest.$ac_ext"
15030 case "(($ac_try" in
15031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032   *) ac_try_echo=$ac_try;;
15033 esac
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } >/dev/null; then
15042   if test -s conftest.err; then
15043     ac_cpp_err=$ac_cxx_preproc_warn_flag
15044     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15045   else
15046     ac_cpp_err=
15047   fi
15048 else
15049   ac_cpp_err=yes
15050 fi
15051 if test -z "$ac_cpp_err"; then
15052   :
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057   # Broken: fails on valid input.
15058 continue
15059 fi
15060
15061 rm -f conftest.err conftest.$ac_ext
15062
15063   # OK, works on sane cases.  Now check whether nonexistent headers
15064   # can be detected and how.
15065   cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h.  */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h.  */
15071 #include <ac_nonexistent.h>
15072 _ACEOF
15073 if { (ac_try="$ac_cpp conftest.$ac_ext"
15074 case "(($ac_try" in
15075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076   *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15080   ac_status=$?
15081   grep -v '^ *+' conftest.er1 >conftest.err
15082   rm -f conftest.er1
15083   cat conftest.err >&5
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } >/dev/null; then
15086   if test -s conftest.err; then
15087     ac_cpp_err=$ac_cxx_preproc_warn_flag
15088     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15089   else
15090     ac_cpp_err=
15091   fi
15092 else
15093   ac_cpp_err=yes
15094 fi
15095 if test -z "$ac_cpp_err"; then
15096   # Broken: success on invalid input.
15097 continue
15098 else
15099   echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102   # Passes both tests.
15103 ac_preproc_ok=:
15104 break
15105 fi
15106
15107 rm -f conftest.err conftest.$ac_ext
15108
15109 done
15110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15111 rm -f conftest.err conftest.$ac_ext
15112 if $ac_preproc_ok; then
15113   :
15114 else
15115   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15116 See \`config.log' for more details." >&5
15117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15118 See \`config.log' for more details." >&2;}
15119    { (exit 1); exit 1; }; }
15120 fi
15121
15122 ac_ext=cpp
15123 ac_cpp='$CXXCPP $CPPFLAGS'
15124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15127
15128
15129
15130 for ac_header in cxxabi.h
15131 do
15132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 fi
15139 ac_res=`eval echo '${'$as_ac_Header'}'`
15140                { echo "$as_me:$LINENO: result: $ac_res" >&5
15141 echo "${ECHO_T}$ac_res" >&6; }
15142 else
15143   # Is the header compilable?
15144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 $ac_includes_default
15153 #include <$ac_header>
15154 _ACEOF
15155 rm -f conftest.$ac_objext
15156 if { (ac_try="$ac_compile"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_compile") 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15170   { (case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_try") 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } &&
15179          { ac_try='test -s conftest.$ac_objext'
15180   { (case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_try") 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_header_compiler=yes
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194         ac_header_compiler=no
15195 fi
15196
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199 echo "${ECHO_T}$ac_header_compiler" >&6; }
15200
15201 # Is the header present?
15202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 #include <$ac_header>
15211 _ACEOF
15212 if { (ac_try="$ac_cpp conftest.$ac_ext"
15213 case "(($ac_try" in
15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215   *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219   ac_status=$?
15220   grep -v '^ *+' conftest.er1 >conftest.err
15221   rm -f conftest.er1
15222   cat conftest.err >&5
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } >/dev/null; then
15225   if test -s conftest.err; then
15226     ac_cpp_err=$ac_cxx_preproc_warn_flag
15227     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15228   else
15229     ac_cpp_err=
15230   fi
15231 else
15232   ac_cpp_err=yes
15233 fi
15234 if test -z "$ac_cpp_err"; then
15235   ac_header_preproc=yes
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240   ac_header_preproc=no
15241 fi
15242
15243 rm -f conftest.err conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245 echo "${ECHO_T}$ac_header_preproc" >&6; }
15246
15247 # So?  What about this header?
15248 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15249   yes:no: )
15250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15254     ac_header_preproc=yes
15255     ;;
15256   no:yes:* )
15257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15269     ( cat <<\_ASBOX
15270 ## ------------------------------------ ##
15271 ## Report this to http://llvm.org/bugs/ ##
15272 ## ------------------------------------ ##
15273 _ASBOX
15274      ) | sed "s/^/$as_me: WARNING:     /" >&2
15275     ;;
15276 esac
15277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 else
15282   eval "$as_ac_Header=\$ac_header_preproc"
15283 fi
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285                { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15287
15288 fi
15289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15290   cat >>confdefs.h <<_ACEOF
15291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292 _ACEOF
15293
15294 fi
15295
15296 done
15297
15298 ac_ext=c
15299 ac_cpp='$CPP $CPPFLAGS'
15300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15303
15304
15305
15306
15307
15308
15309
15310 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15311 do
15312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 fi
15319 ac_res=`eval echo '${'$as_ac_Header'}'`
15320                { echo "$as_me:$LINENO: result: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15322 else
15323   # Is the header compilable?
15324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332 $ac_includes_default
15333 #include <$ac_header>
15334 _ACEOF
15335 rm -f conftest.$ac_objext
15336 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350   { (case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_try") 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest.$ac_objext'
15360   { (case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_try") 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369   ac_header_compiler=yes
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374         ac_header_compiler=no
15375 fi
15376
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15379 echo "${ECHO_T}$ac_header_compiler" >&6; }
15380
15381 # Is the header present?
15382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15384 cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390 #include <$ac_header>
15391 _ACEOF
15392 if { (ac_try="$ac_cpp conftest.$ac_ext"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } >/dev/null; then
15405   if test -s conftest.err; then
15406     ac_cpp_err=$ac_c_preproc_warn_flag
15407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15408   else
15409     ac_cpp_err=
15410   fi
15411 else
15412   ac_cpp_err=yes
15413 fi
15414 if test -z "$ac_cpp_err"; then
15415   ac_header_preproc=yes
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420   ac_header_preproc=no
15421 fi
15422
15423 rm -f conftest.err conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 echo "${ECHO_T}$ac_header_preproc" >&6; }
15426
15427 # So?  What about this header?
15428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15429   yes:no: )
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434     ac_header_preproc=yes
15435     ;;
15436   no:yes:* )
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15449     ( cat <<\_ASBOX
15450 ## ------------------------------------ ##
15451 ## Report this to http://llvm.org/bugs/ ##
15452 ## ------------------------------------ ##
15453 _ASBOX
15454      ) | sed "s/^/$as_me: WARNING:     /" >&2
15455     ;;
15456 esac
15457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   eval "$as_ac_Header=\$ac_header_preproc"
15463 fi
15464 ac_res=`eval echo '${'$as_ac_Header'}'`
15465                { echo "$as_me:$LINENO: result: $ac_res" >&5
15466 echo "${ECHO_T}$ac_res" >&6; }
15467
15468 fi
15469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15470   cat >>confdefs.h <<_ACEOF
15471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 _ACEOF
15473
15474 fi
15475
15476 done
15477
15478
15479
15480
15481
15482
15483
15484 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15485 do
15486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 fi
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494                { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15496 else
15497   # Is the header compilable?
15498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15500 cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 $ac_includes_default
15507 #include <$ac_header>
15508 _ACEOF
15509 rm -f conftest.$ac_objext
15510 if { (ac_try="$ac_compile"
15511 case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_compile") 2>conftest.er1
15517   ac_status=$?
15518   grep -v '^ *+' conftest.er1 >conftest.err
15519   rm -f conftest.er1
15520   cat conftest.err >&5
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } &&
15523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15524   { (case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529   (eval "$ac_try") 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; } &&
15533          { ac_try='test -s conftest.$ac_objext'
15534   { (case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539   (eval "$ac_try") 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; }; then
15543   ac_header_compiler=yes
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548         ac_header_compiler=no
15549 fi
15550
15551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15553 echo "${ECHO_T}$ac_header_compiler" >&6; }
15554
15555 # Is the header present?
15556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 #include <$ac_header>
15565 _ACEOF
15566 if { (ac_try="$ac_cpp conftest.$ac_ext"
15567 case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } >/dev/null; then
15579   if test -s conftest.err; then
15580     ac_cpp_err=$ac_c_preproc_warn_flag
15581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15582   else
15583     ac_cpp_err=
15584   fi
15585 else
15586   ac_cpp_err=yes
15587 fi
15588 if test -z "$ac_cpp_err"; then
15589   ac_header_preproc=yes
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594   ac_header_preproc=no
15595 fi
15596
15597 rm -f conftest.err conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15599 echo "${ECHO_T}$ac_header_preproc" >&6; }
15600
15601 # So?  What about this header?
15602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15603   yes:no: )
15604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15608     ac_header_preproc=yes
15609     ;;
15610   no:yes:* )
15611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15623     ( cat <<\_ASBOX
15624 ## ------------------------------------ ##
15625 ## Report this to http://llvm.org/bugs/ ##
15626 ## ------------------------------------ ##
15627 _ASBOX
15628      ) | sed "s/^/$as_me: WARNING:     /" >&2
15629     ;;
15630 esac
15631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   eval "$as_ac_Header=\$ac_header_preproc"
15637 fi
15638 ac_res=`eval echo '${'$as_ac_Header'}'`
15639                { echo "$as_me:$LINENO: result: $ac_res" >&5
15640 echo "${ECHO_T}$ac_res" >&6; }
15641
15642 fi
15643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15644   cat >>confdefs.h <<_ACEOF
15645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15646 _ACEOF
15647
15648 fi
15649
15650 done
15651
15652
15653
15654 for ac_header in utime.h windows.h
15655 do
15656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15658   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 fi
15663 ac_res=`eval echo '${'$as_ac_Header'}'`
15664                { echo "$as_me:$LINENO: result: $ac_res" >&5
15665 echo "${ECHO_T}$ac_res" >&6; }
15666 else
15667   # Is the header compilable?
15668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h.  */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h.  */
15676 $ac_includes_default
15677 #include <$ac_header>
15678 _ACEOF
15679 rm -f conftest.$ac_objext
15680 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15687   ac_status=$?
15688   grep -v '^ *+' conftest.er1 >conftest.err
15689   rm -f conftest.er1
15690   cat conftest.err >&5
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } &&
15693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15694   { (case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_try") 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; } &&
15703          { ac_try='test -s conftest.$ac_objext'
15704   { (case "(($ac_try" in
15705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706   *) ac_try_echo=$ac_try;;
15707 esac
15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709   (eval "$ac_try") 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; }; then
15713   ac_header_compiler=yes
15714 else
15715   echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15717
15718         ac_header_compiler=no
15719 fi
15720
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723 echo "${ECHO_T}$ac_header_compiler" >&6; }
15724
15725 # Is the header present?
15726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <$ac_header>
15735 _ACEOF
15736 if { (ac_try="$ac_cpp conftest.$ac_ext"
15737 case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } >/dev/null; then
15749   if test -s conftest.err; then
15750     ac_cpp_err=$ac_c_preproc_warn_flag
15751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15752   else
15753     ac_cpp_err=
15754   fi
15755 else
15756   ac_cpp_err=yes
15757 fi
15758 if test -z "$ac_cpp_err"; then
15759   ac_header_preproc=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764   ac_header_preproc=no
15765 fi
15766
15767 rm -f conftest.err conftest.$ac_ext
15768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15769 echo "${ECHO_T}$ac_header_preproc" >&6; }
15770
15771 # So?  What about this header?
15772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15773   yes:no: )
15774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15778     ac_header_preproc=yes
15779     ;;
15780   no:yes:* )
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15793     ( cat <<\_ASBOX
15794 ## ------------------------------------ ##
15795 ## Report this to http://llvm.org/bugs/ ##
15796 ## ------------------------------------ ##
15797 _ASBOX
15798      ) | sed "s/^/$as_me: WARNING:     /" >&2
15799     ;;
15800 esac
15801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804   echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806   eval "$as_ac_Header=\$ac_header_preproc"
15807 fi
15808 ac_res=`eval echo '${'$as_ac_Header'}'`
15809                { echo "$as_me:$LINENO: result: $ac_res" >&5
15810 echo "${ECHO_T}$ac_res" >&6; }
15811
15812 fi
15813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 fi
15819
15820 done
15821
15822
15823
15824
15825
15826
15827 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15828 do
15829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 fi
15836 ac_res=`eval echo '${'$as_ac_Header'}'`
15837                { echo "$as_me:$LINENO: result: $ac_res" >&5
15838 echo "${ECHO_T}$ac_res" >&6; }
15839 else
15840   # Is the header compilable?
15841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h.  */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h.  */
15849 $ac_includes_default
15850 #include <$ac_header>
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (ac_try="$ac_compile"
15854 case "(($ac_try" in
15855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856   *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859   (eval "$ac_compile") 2>conftest.er1
15860   ac_status=$?
15861   grep -v '^ *+' conftest.er1 >conftest.err
15862   rm -f conftest.er1
15863   cat conftest.err >&5
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } &&
15866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15867   { (case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_try") 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; } &&
15876          { ac_try='test -s conftest.$ac_objext'
15877   { (case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_try") 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; }; then
15886   ac_header_compiler=yes
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891         ac_header_compiler=no
15892 fi
15893
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15896 echo "${ECHO_T}$ac_header_compiler" >&6; }
15897
15898 # Is the header present?
15899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15901 cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 #include <$ac_header>
15908 _ACEOF
15909 if { (ac_try="$ac_cpp conftest.$ac_ext"
15910 case "(($ac_try" in
15911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912   *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } >/dev/null; then
15922   if test -s conftest.err; then
15923     ac_cpp_err=$ac_c_preproc_warn_flag
15924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15925   else
15926     ac_cpp_err=
15927   fi
15928 else
15929   ac_cpp_err=yes
15930 fi
15931 if test -z "$ac_cpp_err"; then
15932   ac_header_preproc=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937   ac_header_preproc=no
15938 fi
15939
15940 rm -f conftest.err conftest.$ac_ext
15941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942 echo "${ECHO_T}$ac_header_preproc" >&6; }
15943
15944 # So?  What about this header?
15945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15946   yes:no: )
15947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15951     ac_header_preproc=yes
15952     ;;
15953   no:yes:* )
15954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15966     ( cat <<\_ASBOX
15967 ## ------------------------------------ ##
15968 ## Report this to http://llvm.org/bugs/ ##
15969 ## ------------------------------------ ##
15970 _ASBOX
15971      ) | sed "s/^/$as_me: WARNING:     /" >&2
15972     ;;
15973 esac
15974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15977   echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979   eval "$as_ac_Header=\$ac_header_preproc"
15980 fi
15981 ac_res=`eval echo '${'$as_ac_Header'}'`
15982                { echo "$as_me:$LINENO: result: $ac_res" >&5
15983 echo "${ECHO_T}$ac_res" >&6; }
15984
15985 fi
15986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15987   cat >>confdefs.h <<_ACEOF
15988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15989 _ACEOF
15990
15991 fi
15992
15993 done
15994
15995
15996
15997
15998
15999 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16000 do
16001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 fi
16008 ac_res=`eval echo '${'$as_ac_Header'}'`
16009                { echo "$as_me:$LINENO: result: $ac_res" >&5
16010 echo "${ECHO_T}$ac_res" >&6; }
16011 else
16012   # Is the header compilable?
16013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021 $ac_includes_default
16022 #include <$ac_header>
16023 _ACEOF
16024 rm -f conftest.$ac_objext
16025 if { (ac_try="$ac_compile"
16026 case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_compile") 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039   { (case "(($ac_try" in
16040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041   *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044   (eval "$ac_try") 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; } &&
16048          { ac_try='test -s conftest.$ac_objext'
16049   { (case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_try") 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   ac_header_compiler=yes
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063         ac_header_compiler=no
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6; }
16069
16070 # Is the header present?
16071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 #include <$ac_header>
16080 _ACEOF
16081 if { (ac_try="$ac_cpp conftest.$ac_ext"
16082 case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16088   ac_status=$?
16089   grep -v '^ *+' conftest.er1 >conftest.err
16090   rm -f conftest.er1
16091   cat conftest.err >&5
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } >/dev/null; then
16094   if test -s conftest.err; then
16095     ac_cpp_err=$ac_c_preproc_warn_flag
16096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16097   else
16098     ac_cpp_err=
16099   fi
16100 else
16101   ac_cpp_err=yes
16102 fi
16103 if test -z "$ac_cpp_err"; then
16104   ac_header_preproc=yes
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109   ac_header_preproc=no
16110 fi
16111
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16115
16116 # So?  What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118   yes:no: )
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123     ac_header_preproc=yes
16124     ;;
16125   no:yes:* )
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138     ( cat <<\_ASBOX
16139 ## ------------------------------------ ##
16140 ## Report this to http://llvm.org/bugs/ ##
16141 ## ------------------------------------ ##
16142 _ASBOX
16143      ) | sed "s/^/$as_me: WARNING:     /" >&2
16144     ;;
16145 esac
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   eval "$as_ac_Header=\$ac_header_preproc"
16152 fi
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154                { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156
16157 fi
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159   cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16161 _ACEOF
16162
16163 fi
16164
16165 done
16166
16167
16168 for ac_header in valgrind/valgrind.h
16169 do
16170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175   echo $ECHO_N "(cached) $ECHO_C" >&6
16176 fi
16177 ac_res=`eval echo '${'$as_ac_Header'}'`
16178                { echo "$as_me:$LINENO: result: $ac_res" >&5
16179 echo "${ECHO_T}$ac_res" >&6; }
16180 else
16181   # Is the header compilable?
16182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 $ac_includes_default
16191 #include <$ac_header>
16192 _ACEOF
16193 rm -f conftest.$ac_objext
16194 if { (ac_try="$ac_compile"
16195 case "(($ac_try" in
16196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197   *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200   (eval "$ac_compile") 2>conftest.er1
16201   ac_status=$?
16202   grep -v '^ *+' conftest.er1 >conftest.err
16203   rm -f conftest.er1
16204   cat conftest.err >&5
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16208   { (case "(($ac_try" in
16209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210   *) ac_try_echo=$ac_try;;
16211 esac
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213   (eval "$ac_try") 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); }; } &&
16217          { ac_try='test -s conftest.$ac_objext'
16218   { (case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_try") 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; }; then
16227   ac_header_compiler=yes
16228 else
16229   echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232         ac_header_compiler=no
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 echo "${ECHO_T}$ac_header_compiler" >&6; }
16238
16239 # Is the header present?
16240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h.  */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h.  */
16248 #include <$ac_header>
16249 _ACEOF
16250 if { (ac_try="$ac_cpp conftest.$ac_ext"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16257   ac_status=$?
16258   grep -v '^ *+' conftest.er1 >conftest.err
16259   rm -f conftest.er1
16260   cat conftest.err >&5
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); } >/dev/null; then
16263   if test -s conftest.err; then
16264     ac_cpp_err=$ac_c_preproc_warn_flag
16265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16266   else
16267     ac_cpp_err=
16268   fi
16269 else
16270   ac_cpp_err=yes
16271 fi
16272 if test -z "$ac_cpp_err"; then
16273   ac_header_preproc=yes
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278   ac_header_preproc=no
16279 fi
16280
16281 rm -f conftest.err conftest.$ac_ext
16282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283 echo "${ECHO_T}$ac_header_preproc" >&6; }
16284
16285 # So?  What about this header?
16286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16287   yes:no: )
16288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16292     ac_header_preproc=yes
16293     ;;
16294   no:yes:* )
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16307     ( cat <<\_ASBOX
16308 ## ------------------------------------ ##
16309 ## Report this to http://llvm.org/bugs/ ##
16310 ## ------------------------------------ ##
16311 _ASBOX
16312      ) | sed "s/^/$as_me: WARNING:     /" >&2
16313     ;;
16314 esac
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320   eval "$as_ac_Header=\$ac_header_preproc"
16321 fi
16322 ac_res=`eval echo '${'$as_ac_Header'}'`
16323                { echo "$as_me:$LINENO: result: $ac_res" >&5
16324 echo "${ECHO_T}$ac_res" >&6; }
16325
16326 fi
16327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16328   cat >>confdefs.h <<_ACEOF
16329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16330 _ACEOF
16331
16332 fi
16333
16334 done
16335
16336
16337 for ac_header in fenv.h
16338 do
16339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344   echo $ECHO_N "(cached) $ECHO_C" >&6
16345 fi
16346 ac_res=`eval echo '${'$as_ac_Header'}'`
16347                { echo "$as_me:$LINENO: result: $ac_res" >&5
16348 echo "${ECHO_T}$ac_res" >&6; }
16349 else
16350   # Is the header compilable?
16351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16353 cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359 $ac_includes_default
16360 #include <$ac_header>
16361 _ACEOF
16362 rm -f conftest.$ac_objext
16363 if { (ac_try="$ac_compile"
16364 case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_compile") 2>conftest.er1
16370   ac_status=$?
16371   grep -v '^ *+' conftest.er1 >conftest.err
16372   rm -f conftest.er1
16373   cat conftest.err >&5
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); } &&
16376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377   { (case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_try") 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; } &&
16386          { ac_try='test -s conftest.$ac_objext'
16387   { (case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392   (eval "$ac_try") 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; }; then
16396   ac_header_compiler=yes
16397 else
16398   echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401         ac_header_compiler=no
16402 fi
16403
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16406 echo "${ECHO_T}$ac_header_compiler" >&6; }
16407
16408 # Is the header present?
16409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16411 cat >conftest.$ac_ext <<_ACEOF
16412 /* confdefs.h.  */
16413 _ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h.  */
16417 #include <$ac_header>
16418 _ACEOF
16419 if { (ac_try="$ac_cpp conftest.$ac_ext"
16420 case "(($ac_try" in
16421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422   *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426   ac_status=$?
16427   grep -v '^ *+' conftest.er1 >conftest.err
16428   rm -f conftest.er1
16429   cat conftest.err >&5
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } >/dev/null; then
16432   if test -s conftest.err; then
16433     ac_cpp_err=$ac_c_preproc_warn_flag
16434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16435   else
16436     ac_cpp_err=
16437   fi
16438 else
16439   ac_cpp_err=yes
16440 fi
16441 if test -z "$ac_cpp_err"; then
16442   ac_header_preproc=yes
16443 else
16444   echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16446
16447   ac_header_preproc=no
16448 fi
16449
16450 rm -f conftest.err conftest.$ac_ext
16451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16452 echo "${ECHO_T}$ac_header_preproc" >&6; }
16453
16454 # So?  What about this header?
16455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16456   yes:no: )
16457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16461     ac_header_preproc=yes
16462     ;;
16463   no:yes:* )
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16467 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16470     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16471 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16476     ( cat <<\_ASBOX
16477 ## ------------------------------------ ##
16478 ## Report this to http://llvm.org/bugs/ ##
16479 ## ------------------------------------ ##
16480 _ASBOX
16481      ) | sed "s/^/$as_me: WARNING:     /" >&2
16482     ;;
16483 esac
16484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489   eval "$as_ac_Header=\$ac_header_preproc"
16490 fi
16491 ac_res=`eval echo '${'$as_ac_Header'}'`
16492                { echo "$as_me:$LINENO: result: $ac_res" >&5
16493 echo "${ECHO_T}$ac_res" >&6; }
16494
16495 fi
16496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16497   cat >>confdefs.h <<_ACEOF
16498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16499 _ACEOF
16500
16501 fi
16502
16503 done
16504
16505 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16506 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16507 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516 #include <fenv.h>
16517
16518 int
16519 main ()
16520 {
16521 #ifndef FE_ALL_EXCEPT
16522   char *p = (char *) FE_ALL_EXCEPT;
16523   return !p;
16524 #endif
16525
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext
16531 if { (ac_try="$ac_compile"
16532 case "(($ac_try" in
16533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534   *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537   (eval "$ac_compile") 2>conftest.er1
16538   ac_status=$?
16539   grep -v '^ *+' conftest.er1 >conftest.err
16540   rm -f conftest.er1
16541   cat conftest.err >&5
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); } &&
16544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16545   { (case "(($ac_try" in
16546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547   *) ac_try_echo=$ac_try;;
16548 esac
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550   (eval "$ac_try") 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; } &&
16554          { ac_try='test -s conftest.$ac_objext'
16555   { (case "(($ac_try" in
16556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557   *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560   (eval "$ac_try") 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); }; }; then
16564   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16565 else
16566   echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569         ac_cv_have_decl_FE_ALL_EXCEPT=no
16570 fi
16571
16572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573 fi
16574 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16575 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16576 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16577
16578 cat >>confdefs.h <<_ACEOF
16579 #define HAVE_DECL_FE_ALL_EXCEPT 1
16580 _ACEOF
16581
16582
16583 else
16584   cat >>confdefs.h <<_ACEOF
16585 #define HAVE_DECL_FE_ALL_EXCEPT 0
16586 _ACEOF
16587
16588
16589 fi
16590 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16591 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16592 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 #include <fenv.h>
16602
16603 int
16604 main ()
16605 {
16606 #ifndef FE_INEXACT
16607   char *p = (char *) FE_INEXACT;
16608   return !p;
16609 #endif
16610
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_compile") 2>conftest.er1
16623   ac_status=$?
16624   grep -v '^ *+' conftest.er1 >conftest.err
16625   rm -f conftest.er1
16626   cat conftest.err >&5
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } &&
16629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630   { (case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_try") 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_try") 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   ac_cv_have_decl_FE_INEXACT=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654         ac_cv_have_decl_FE_INEXACT=no
16655 fi
16656
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 fi
16659 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16660 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16661 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16662
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_DECL_FE_INEXACT 1
16665 _ACEOF
16666
16667
16668 else
16669   cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_FE_INEXACT 0
16671 _ACEOF
16672
16673
16674 fi
16675
16676
16677 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16678
16679 for ac_header in pthread.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  HAVE_PTHREAD=1
16843
16844 else
16845   HAVE_PTHREAD=0
16846
16847 fi
16848
16849 done
16850
16851 else
16852   HAVE_PTHREAD=0
16853
16854 fi
16855 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16856
16857 for ac_header in zlib.h
16858 do
16859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 fi
16866 ac_res=`eval echo '${'$as_ac_Header'}'`
16867                { echo "$as_me:$LINENO: result: $ac_res" >&5
16868 echo "${ECHO_T}$ac_res" >&6; }
16869 else
16870   # Is the header compilable?
16871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879 $ac_includes_default
16880 #include <$ac_header>
16881 _ACEOF
16882 rm -f conftest.$ac_objext
16883 if { (ac_try="$ac_compile"
16884 case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_compile") 2>conftest.er1
16890   ac_status=$?
16891   grep -v '^ *+' conftest.er1 >conftest.err
16892   rm -f conftest.er1
16893   cat conftest.err >&5
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); } &&
16896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897   { (case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_try") 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; } &&
16906          { ac_try='test -s conftest.$ac_objext'
16907   { (case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_try") 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916   ac_header_compiler=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921         ac_header_compiler=no
16922 fi
16923
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16926 echo "${ECHO_T}$ac_header_compiler" >&6; }
16927
16928 # Is the header present?
16929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16931 cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 #include <$ac_header>
16938 _ACEOF
16939 if { (ac_try="$ac_cpp conftest.$ac_ext"
16940 case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16946   ac_status=$?
16947   grep -v '^ *+' conftest.er1 >conftest.err
16948   rm -f conftest.er1
16949   cat conftest.err >&5
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); } >/dev/null; then
16952   if test -s conftest.err; then
16953     ac_cpp_err=$ac_c_preproc_warn_flag
16954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16955   else
16956     ac_cpp_err=
16957   fi
16958 else
16959   ac_cpp_err=yes
16960 fi
16961 if test -z "$ac_cpp_err"; then
16962   ac_header_preproc=yes
16963 else
16964   echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16966
16967   ac_header_preproc=no
16968 fi
16969
16970 rm -f conftest.err conftest.$ac_ext
16971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16972 echo "${ECHO_T}$ac_header_preproc" >&6; }
16973
16974 # So?  What about this header?
16975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16976   yes:no: )
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16981     ac_header_preproc=yes
16982     ;;
16983   no:yes:* )
16984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16996     ( cat <<\_ASBOX
16997 ## ------------------------------------ ##
16998 ## Report this to http://llvm.org/bugs/ ##
16999 ## ------------------------------------ ##
17000 _ASBOX
17001      ) | sed "s/^/$as_me: WARNING:     /" >&2
17002     ;;
17003 esac
17004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009   eval "$as_ac_Header=\$ac_header_preproc"
17010 fi
17011 ac_res=`eval echo '${'$as_ac_Header'}'`
17012                { echo "$as_me:$LINENO: result: $ac_res" >&5
17013 echo "${ECHO_T}$ac_res" >&6; }
17014
17015 fi
17016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17017   cat >>confdefs.h <<_ACEOF
17018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17019 _ACEOF
17020  HAVE_LIBZ=1
17021
17022 else
17023   HAVE_LIBZ=0
17024
17025 fi
17026
17027 done
17028
17029 else
17030   HAVE_LIBZ=0
17031
17032 fi
17033
17034 if test "$llvm_cv_enable_libffi" = "yes" ; then
17035
17036
17037 for ac_header in ffi.h ffi/ffi.h
17038 do
17039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 fi
17046 ac_res=`eval echo '${'$as_ac_Header'}'`
17047                { echo "$as_me:$LINENO: result: $ac_res" >&5
17048 echo "${ECHO_T}$ac_res" >&6; }
17049 else
17050   # Is the header compilable?
17051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17053 cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h.  */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h.  */
17059 $ac_includes_default
17060 #include <$ac_header>
17061 _ACEOF
17062 rm -f conftest.$ac_objext
17063 if { (ac_try="$ac_compile"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_compile") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } &&
17076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077   { (case "(($ac_try" in
17078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079   *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082   (eval "$ac_try") 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; } &&
17086          { ac_try='test -s conftest.$ac_objext'
17087   { (case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_try") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_header_compiler=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         ac_header_compiler=no
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17106 echo "${ECHO_T}$ac_header_compiler" >&6; }
17107
17108 # Is the header present?
17109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h.  */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h.  */
17117 #include <$ac_header>
17118 _ACEOF
17119 if { (ac_try="$ac_cpp conftest.$ac_ext"
17120 case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17126   ac_status=$?
17127   grep -v '^ *+' conftest.er1 >conftest.err
17128   rm -f conftest.er1
17129   cat conftest.err >&5
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } >/dev/null; then
17132   if test -s conftest.err; then
17133     ac_cpp_err=$ac_c_preproc_warn_flag
17134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17135   else
17136     ac_cpp_err=
17137   fi
17138 else
17139   ac_cpp_err=yes
17140 fi
17141 if test -z "$ac_cpp_err"; then
17142   ac_header_preproc=yes
17143 else
17144   echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147   ac_header_preproc=no
17148 fi
17149
17150 rm -f conftest.err conftest.$ac_ext
17151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17152 echo "${ECHO_T}$ac_header_preproc" >&6; }
17153
17154 # So?  What about this header?
17155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17156   yes:no: )
17157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17161     ac_header_preproc=yes
17162     ;;
17163   no:yes:* )
17164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17176     ( cat <<\_ASBOX
17177 ## ------------------------------------ ##
17178 ## Report this to http://llvm.org/bugs/ ##
17179 ## ------------------------------------ ##
17180 _ASBOX
17181      ) | sed "s/^/$as_me: WARNING:     /" >&2
17182     ;;
17183 esac
17184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17187   echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17189   eval "$as_ac_Header=\$ac_header_preproc"
17190 fi
17191 ac_res=`eval echo '${'$as_ac_Header'}'`
17192                { echo "$as_me:$LINENO: result: $ac_res" >&5
17193 echo "${ECHO_T}$ac_res" >&6; }
17194
17195 fi
17196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17197   cat >>confdefs.h <<_ACEOF
17198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17199 _ACEOF
17200
17201 fi
17202
17203 done
17204
17205 fi
17206
17207
17208 for ac_header in CrashReporterClient.h
17209 do
17210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215   echo $ECHO_N "(cached) $ECHO_C" >&6
17216 fi
17217 ac_res=`eval echo '${'$as_ac_Header'}'`
17218                { echo "$as_me:$LINENO: result: $ac_res" >&5
17219 echo "${ECHO_T}$ac_res" >&6; }
17220 else
17221   # Is the header compilable?
17222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17224 cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h.  */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h.  */
17230 $ac_includes_default
17231 #include <$ac_header>
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_compile") 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } &&
17247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248   { (case "(($ac_try" in
17249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250   *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253   (eval "$ac_try") 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); }; } &&
17257          { ac_try='test -s conftest.$ac_objext'
17258   { (case "(($ac_try" in
17259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260   *) ac_try_echo=$ac_try;;
17261 esac
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263   (eval "$ac_try") 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; }; then
17267   ac_header_compiler=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272         ac_header_compiler=no
17273 fi
17274
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17277 echo "${ECHO_T}$ac_header_compiler" >&6; }
17278
17279 # Is the header present?
17280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288 #include <$ac_header>
17289 _ACEOF
17290 if { (ac_try="$ac_cpp conftest.$ac_ext"
17291 case "(($ac_try" in
17292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293   *) ac_try_echo=$ac_try;;
17294 esac
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17297   ac_status=$?
17298   grep -v '^ *+' conftest.er1 >conftest.err
17299   rm -f conftest.er1
17300   cat conftest.err >&5
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } >/dev/null; then
17303   if test -s conftest.err; then
17304     ac_cpp_err=$ac_c_preproc_warn_flag
17305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17306   else
17307     ac_cpp_err=
17308   fi
17309 else
17310   ac_cpp_err=yes
17311 fi
17312 if test -z "$ac_cpp_err"; then
17313   ac_header_preproc=yes
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318   ac_header_preproc=no
17319 fi
17320
17321 rm -f conftest.err conftest.$ac_ext
17322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17323 echo "${ECHO_T}$ac_header_preproc" >&6; }
17324
17325 # So?  What about this header?
17326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17327   yes:no: )
17328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17332     ac_header_preproc=yes
17333     ;;
17334   no:yes:* )
17335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17347     ( cat <<\_ASBOX
17348 ## ------------------------------------ ##
17349 ## Report this to http://llvm.org/bugs/ ##
17350 ## ------------------------------------ ##
17351 _ASBOX
17352      ) | sed "s/^/$as_me: WARNING:     /" >&2
17353     ;;
17354 esac
17355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358   echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360   eval "$as_ac_Header=\$ac_header_preproc"
17361 fi
17362 ac_res=`eval echo '${'$as_ac_Header'}'`
17363                { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17365
17366 fi
17367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17368   cat >>confdefs.h <<_ACEOF
17369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17370 _ACEOF
17371
17372 fi
17373
17374 done
17375
17376
17377 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17378 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17379 cat >conftest.$ac_ext <<_ACEOF
17380
17381   /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386
17387     extern const char *__crashreporter_info__;
17388     int main() {
17389       __crashreporter_info__ = "test";
17390       return 0;
17391     }
17392
17393
17394 _ACEOF
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (ac_try="$ac_link"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_link") 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } &&
17409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17410   { (case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_try") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; } &&
17419          { ac_try='test -s conftest$ac_exeext'
17420   { (case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_try") 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; }; then
17429
17430   { echo "$as_me:$LINENO: result: yes" >&5
17431 echo "${ECHO_T}yes" >&6; }
17432
17433 cat >>confdefs.h <<\_ACEOF
17434 #define HAVE_CRASHREPORTER_INFO 1
17435 _ACEOF
17436
17437
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442
17443   { echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6; }
17445
17446 cat >>confdefs.h <<\_ACEOF
17447 #define HAVE_CRASHREPORTER_INFO 0
17448 _ACEOF
17449
17450
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext \
17454       conftest$ac_exeext conftest.$ac_ext
17455
17456
17457
17458   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17459 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17460 if test "${ac_cv_huge_val_sanity+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463
17464     ac_ext=cpp
17465 ac_cpp='$CXXCPP $CPPFLAGS'
17466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17469
17470     ac_save_CXXFLAGS=$CXXFLAGS
17471     CXXFLAGS="$CXXFLAGS -pedantic"
17472     if test "$cross_compiling" = yes; then
17473   ac_cv_huge_val_sanity=yes
17474 else
17475   cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481 #include <math.h>
17482 int
17483 main ()
17484 {
17485 double x = HUGE_VAL; return x != x;
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest$ac_exeext
17491 if { (ac_try="$ac_link"
17492 case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_link") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17501   { (case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_try") 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); }; }; then
17510   ac_cv_huge_val_sanity=yes
17511 else
17512   echo "$as_me: program exited with status $ac_status" >&5
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 ( exit $ac_status )
17517 ac_cv_huge_val_sanity=no
17518 fi
17519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17520 fi
17521
17522
17523     CXXFLAGS=$ac_save_CXXFLAGS
17524     ac_ext=c
17525 ac_cpp='$CPP $CPPFLAGS'
17526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17529
17530
17531 fi
17532 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17533 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17534   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17535
17536
17537 { echo "$as_me:$LINENO: checking for pid_t" >&5
17538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17539 if test "${ac_cv_type_pid_t+set}" = set; then
17540   echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542   cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548 $ac_includes_default
17549 typedef pid_t ac__type_new_;
17550 int
17551 main ()
17552 {
17553 if ((ac__type_new_ *) 0)
17554   return 0;
17555 if (sizeof (ac__type_new_))
17556   return 0;
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568   (eval "$ac_compile") 2>conftest.er1
17569   ac_status=$?
17570   grep -v '^ *+' conftest.er1 >conftest.err
17571   rm -f conftest.er1
17572   cat conftest.err >&5
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); } &&
17575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576   { (case "(($ac_try" in
17577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578   *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581   (eval "$ac_try") 2>&5
17582   ac_status=$?
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); }; } &&
17585          { ac_try='test -s conftest.$ac_objext'
17586   { (case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_try") 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; }; then
17595   ac_cv_type_pid_t=yes
17596 else
17597   echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600         ac_cv_type_pid_t=no
17601 fi
17602
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604 fi
17605 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17606 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17607 if test $ac_cv_type_pid_t = yes; then
17608   :
17609 else
17610
17611 cat >>confdefs.h <<_ACEOF
17612 #define pid_t int
17613 _ACEOF
17614
17615 fi
17616
17617 { echo "$as_me:$LINENO: checking for size_t" >&5
17618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17619 if test "${ac_cv_type_size_t+set}" = set; then
17620   echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622   cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h.  */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h.  */
17628 $ac_includes_default
17629 typedef size_t ac__type_new_;
17630 int
17631 main ()
17632 {
17633 if ((ac__type_new_ *) 0)
17634   return 0;
17635 if (sizeof (ac__type_new_))
17636   return 0;
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (ac_try="$ac_compile"
17643 case "(($ac_try" in
17644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645   *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648   (eval "$ac_compile") 2>conftest.er1
17649   ac_status=$?
17650   grep -v '^ *+' conftest.er1 >conftest.err
17651   rm -f conftest.er1
17652   cat conftest.err >&5
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); } &&
17655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17656   { (case "(($ac_try" in
17657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658   *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661   (eval "$ac_try") 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; } &&
17665          { ac_try='test -s conftest.$ac_objext'
17666   { (case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_try") 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675   ac_cv_type_size_t=yes
17676 else
17677   echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680         ac_cv_type_size_t=no
17681 fi
17682
17683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684 fi
17685 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17686 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17687 if test $ac_cv_type_size_t = yes; then
17688   :
17689 else
17690
17691 cat >>confdefs.h <<_ACEOF
17692 #define size_t unsigned int
17693 _ACEOF
17694
17695 fi
17696
17697
17698 cat >>confdefs.h <<_ACEOF
17699 #define RETSIGTYPE void
17700 _ACEOF
17701
17702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17704 if test "${ac_cv_struct_tm+set}" = set; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713 #include <sys/types.h>
17714 #include <time.h>
17715
17716 int
17717 main ()
17718 {
17719 struct tm *tp; tp->tm_sec;
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_compile") 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } &&
17738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739   { (case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744   (eval "$ac_try") 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; } &&
17748          { ac_try='test -s conftest.$ac_objext'
17749   { (case "(($ac_try" in
17750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751   *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754   (eval "$ac_try") 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; }; then
17758   ac_cv_struct_tm=time.h
17759 else
17760   echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17762
17763         ac_cv_struct_tm=sys/time.h
17764 fi
17765
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 fi
17768 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17769 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17770 if test $ac_cv_struct_tm = sys/time.h; then
17771
17772 cat >>confdefs.h <<\_ACEOF
17773 #define TM_IN_SYS_TIME 1
17774 _ACEOF
17775
17776 fi
17777
17778 { echo "$as_me:$LINENO: checking for int64_t" >&5
17779 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17780 if test "${ac_cv_type_int64_t+set}" = set; then
17781   echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783   cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h.  */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h.  */
17789 $ac_includes_default
17790 typedef int64_t ac__type_new_;
17791 int
17792 main ()
17793 {
17794 if ((ac__type_new_ *) 0)
17795   return 0;
17796 if (sizeof (ac__type_new_))
17797   return 0;
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (ac_try="$ac_compile"
17804 case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809   (eval "$ac_compile") 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } &&
17816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817   { (case "(($ac_try" in
17818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819   *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822   (eval "$ac_try") 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; } &&
17826          { ac_try='test -s conftest.$ac_objext'
17827   { (case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_try") 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   ac_cv_type_int64_t=yes
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841         ac_cv_type_int64_t=no
17842 fi
17843
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 fi
17846 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17847 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17848 if test $ac_cv_type_int64_t = yes; then
17849
17850 cat >>confdefs.h <<_ACEOF
17851 #define HAVE_INT64_T 1
17852 _ACEOF
17853
17854
17855 else
17856   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17857 echo "$as_me: error: Type int64_t required but not found" >&2;}
17858    { (exit 1); exit 1; }; }
17859 fi
17860
17861 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17862 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17863 if test "${ac_cv_type_uint64_t+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 $ac_includes_default
17873 typedef uint64_t ac__type_new_;
17874 int
17875 main ()
17876 {
17877 if ((ac__type_new_ *) 0)
17878   return 0;
17879 if (sizeof (ac__type_new_))
17880   return 0;
17881   ;
17882   return 0;
17883 }
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_compile") 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } &&
17899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900   { (case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_try") 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; } &&
17909          { ac_try='test -s conftest.$ac_objext'
17910   { (case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_try") 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; }; then
17919   ac_cv_type_uint64_t=yes
17920 else
17921   echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923
17924         ac_cv_type_uint64_t=no
17925 fi
17926
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 fi
17929 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17930 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17931 if test $ac_cv_type_uint64_t = yes; then
17932
17933 cat >>confdefs.h <<_ACEOF
17934 #define HAVE_UINT64_T 1
17935 _ACEOF
17936
17937
17938 else
17939   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17940 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17941 if test "${ac_cv_type_u_int64_t+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950 $ac_includes_default
17951 typedef u_int64_t ac__type_new_;
17952 int
17953 main ()
17954 {
17955 if ((ac__type_new_ *) 0)
17956   return 0;
17957 if (sizeof (ac__type_new_))
17958   return 0;
17959   ;
17960   return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext
17964 if { (ac_try="$ac_compile"
17965 case "(($ac_try" in
17966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967   *) ac_try_echo=$ac_try;;
17968 esac
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970   (eval "$ac_compile") 2>conftest.er1
17971   ac_status=$?
17972   grep -v '^ *+' conftest.er1 >conftest.err
17973   rm -f conftest.er1
17974   cat conftest.err >&5
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } &&
17977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17978   { (case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983   (eval "$ac_try") 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; } &&
17987          { ac_try='test -s conftest.$ac_objext'
17988   { (case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993   (eval "$ac_try") 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; }; then
17997   ac_cv_type_u_int64_t=yes
17998 else
17999   echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18001
18002         ac_cv_type_u_int64_t=no
18003 fi
18004
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18006 fi
18007 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18008 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18009 if test $ac_cv_type_u_int64_t = yes; then
18010
18011 cat >>confdefs.h <<_ACEOF
18012 #define HAVE_U_INT64_T 1
18013 _ACEOF
18014
18015
18016 else
18017   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18018 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18019    { (exit 1); exit 1; }; }
18020 fi
18021
18022 fi
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18034 do
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18049 #define $ac_func innocuous_$ac_func
18050
18051 /* System header to define __stub macros and hopefully few prototypes,
18052     which can conflict with char $ac_func (); below.
18053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054     <limits.h> exists even on freestanding compilers.  */
18055
18056 #ifdef __STDC__
18057 # include <limits.h>
18058 #else
18059 # include <assert.h>
18060 #endif
18061
18062 #undef $ac_func
18063
18064 /* Override any GCC internal prototype to avoid an error.
18065    Use char because int might match the return type of a GCC
18066    builtin and then its argument prototype would still apply.  */
18067 #ifdef __cplusplus
18068 extern "C"
18069 #endif
18070 char $ac_func ();
18071 /* The GNU C library defines this for functions which it implements
18072     to always fail with ENOSYS.  Some functions are actually named
18073     something starting with __ and the normal name is an alias.  */
18074 #if defined __stub_$ac_func || defined __stub___$ac_func
18075 choke me
18076 #endif
18077
18078 int
18079 main ()
18080 {
18081 return $ac_func ();
18082   ;
18083   return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_link") 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101   { (case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_try") 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; } &&
18110          { ac_try='test -s conftest$ac_exeext'
18111   { (case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_try") 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; }; then
18120   eval "$as_ac_var=yes"
18121 else
18122   echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125         eval "$as_ac_var=no"
18126 fi
18127
18128 rm -f core conftest.err conftest.$ac_objext \
18129       conftest$ac_exeext conftest.$ac_ext
18130 fi
18131 ac_res=`eval echo '${'$as_ac_var'}'`
18132                { echo "$as_me:$LINENO: result: $ac_res" >&5
18133 echo "${ECHO_T}$ac_res" >&6; }
18134 if test `eval echo '${'$as_ac_var'}'` = yes; then
18135   cat >>confdefs.h <<_ACEOF
18136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18137 _ACEOF
18138
18139 fi
18140 done
18141
18142
18143
18144
18145
18146 for ac_func in powf fmodf strtof round
18147 do
18148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18162 #define $ac_func innocuous_$ac_func
18163
18164 /* System header to define __stub macros and hopefully few prototypes,
18165     which can conflict with char $ac_func (); below.
18166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167     <limits.h> exists even on freestanding compilers.  */
18168
18169 #ifdef __STDC__
18170 # include <limits.h>
18171 #else
18172 # include <assert.h>
18173 #endif
18174
18175 #undef $ac_func
18176
18177 /* Override any GCC internal prototype to avoid an error.
18178    Use char because int might match the return type of a GCC
18179    builtin and then its argument prototype would still apply.  */
18180 #ifdef __cplusplus
18181 extern "C"
18182 #endif
18183 char $ac_func ();
18184 /* The GNU C library defines this for functions which it implements
18185     to always fail with ENOSYS.  Some functions are actually named
18186     something starting with __ and the normal name is an alias.  */
18187 #if defined __stub_$ac_func || defined __stub___$ac_func
18188 choke me
18189 #endif
18190
18191 int
18192 main ()
18193 {
18194 return $ac_func ();
18195   ;
18196   return 0;
18197 }
18198 _ACEOF
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (ac_try="$ac_link"
18201 case "(($ac_try" in
18202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203   *) ac_try_echo=$ac_try;;
18204 esac
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206   (eval "$ac_link") 2>conftest.er1
18207   ac_status=$?
18208   grep -v '^ *+' conftest.er1 >conftest.err
18209   rm -f conftest.er1
18210   cat conftest.err >&5
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); } &&
18213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18214   { (case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_try") 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; } &&
18223          { ac_try='test -s conftest$ac_exeext'
18224   { (case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229   (eval "$ac_try") 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); }; }; then
18233   eval "$as_ac_var=yes"
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238         eval "$as_ac_var=no"
18239 fi
18240
18241 rm -f core conftest.err conftest.$ac_objext \
18242       conftest$ac_exeext conftest.$ac_ext
18243 fi
18244 ac_res=`eval echo '${'$as_ac_var'}'`
18245                { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_var'}'` = yes; then
18248   cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250 _ACEOF
18251
18252 fi
18253 done
18254
18255
18256
18257
18258
18259
18260 for ac_func in log log2 log10 exp exp2
18261 do
18262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18276 #define $ac_func innocuous_$ac_func
18277
18278 /* System header to define __stub macros and hopefully few prototypes,
18279     which can conflict with char $ac_func (); below.
18280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281     <limits.h> exists even on freestanding compilers.  */
18282
18283 #ifdef __STDC__
18284 # include <limits.h>
18285 #else
18286 # include <assert.h>
18287 #endif
18288
18289 #undef $ac_func
18290
18291 /* Override any GCC internal prototype to avoid an error.
18292    Use char because int might match the return type of a GCC
18293    builtin and then its argument prototype would still apply.  */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 char $ac_func ();
18298 /* The GNU C library defines this for functions which it implements
18299     to always fail with ENOSYS.  Some functions are actually named
18300     something starting with __ and the normal name is an alias.  */
18301 #if defined __stub_$ac_func || defined __stub___$ac_func
18302 choke me
18303 #endif
18304
18305 int
18306 main ()
18307 {
18308 return $ac_func ();
18309   ;
18310   return 0;
18311 }
18312 _ACEOF
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317   *) ac_try_echo=$ac_try;;
18318 esac
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320   (eval "$ac_link") 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18328   { (case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_try") 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347   eval "$as_ac_var=yes"
18348 else
18349   echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18351
18352         eval "$as_ac_var=no"
18353 fi
18354
18355 rm -f core conftest.err conftest.$ac_objext \
18356       conftest$ac_exeext conftest.$ac_ext
18357 fi
18358 ac_res=`eval echo '${'$as_ac_var'}'`
18359                { echo "$as_me:$LINENO: result: $ac_res" >&5
18360 echo "${ECHO_T}$ac_res" >&6; }
18361 if test `eval echo '${'$as_ac_var'}'` = yes; then
18362   cat >>confdefs.h <<_ACEOF
18363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18364 _ACEOF
18365
18366 fi
18367 done
18368
18369
18370
18371
18372
18373
18374 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18375 do
18376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18380   echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382   cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18390 #define $ac_func innocuous_$ac_func
18391
18392 /* System header to define __stub macros and hopefully few prototypes,
18393     which can conflict with char $ac_func (); below.
18394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395     <limits.h> exists even on freestanding compilers.  */
18396
18397 #ifdef __STDC__
18398 # include <limits.h>
18399 #else
18400 # include <assert.h>
18401 #endif
18402
18403 #undef $ac_func
18404
18405 /* Override any GCC internal prototype to avoid an error.
18406    Use char because int might match the return type of a GCC
18407    builtin and then its argument prototype would still apply.  */
18408 #ifdef __cplusplus
18409 extern "C"
18410 #endif
18411 char $ac_func ();
18412 /* The GNU C library defines this for functions which it implements
18413     to always fail with ENOSYS.  Some functions are actually named
18414     something starting with __ and the normal name is an alias.  */
18415 #if defined __stub_$ac_func || defined __stub___$ac_func
18416 choke me
18417 #endif
18418
18419 int
18420 main ()
18421 {
18422 return $ac_func ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431   *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434   (eval "$ac_link") 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442   { (case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_try") 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }; } &&
18451          { ac_try='test -s conftest$ac_exeext'
18452   { (case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_try") 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; }; then
18461   eval "$as_ac_var=yes"
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466         eval "$as_ac_var=no"
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext \
18470       conftest$ac_exeext conftest.$ac_ext
18471 fi
18472 ac_res=`eval echo '${'$as_ac_var'}'`
18473                { echo "$as_me:$LINENO: result: $ac_res" >&5
18474 echo "${ECHO_T}$ac_res" >&6; }
18475 if test `eval echo '${'$as_ac_var'}'` = yes; then
18476   cat >>confdefs.h <<_ACEOF
18477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18478 _ACEOF
18479
18480 fi
18481 done
18482
18483
18484
18485
18486 for ac_func in isatty mkdtemp mkstemp
18487 do
18488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18492   echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494   cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18502 #define $ac_func innocuous_$ac_func
18503
18504 /* System header to define __stub macros and hopefully few prototypes,
18505     which can conflict with char $ac_func (); below.
18506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507     <limits.h> exists even on freestanding compilers.  */
18508
18509 #ifdef __STDC__
18510 # include <limits.h>
18511 #else
18512 # include <assert.h>
18513 #endif
18514
18515 #undef $ac_func
18516
18517 /* Override any GCC internal prototype to avoid an error.
18518    Use char because int might match the return type of a GCC
18519    builtin and then its argument prototype would still apply.  */
18520 #ifdef __cplusplus
18521 extern "C"
18522 #endif
18523 char $ac_func ();
18524 /* The GNU C library defines this for functions which it implements
18525     to always fail with ENOSYS.  Some functions are actually named
18526     something starting with __ and the normal name is an alias.  */
18527 #if defined __stub_$ac_func || defined __stub___$ac_func
18528 choke me
18529 #endif
18530
18531 int
18532 main ()
18533 {
18534 return $ac_func ();
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543   *) ac_try_echo=$ac_try;;
18544 esac
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546   (eval "$ac_link") 2>conftest.er1
18547   ac_status=$?
18548   grep -v '^ *+' conftest.er1 >conftest.err
18549   rm -f conftest.er1
18550   cat conftest.err >&5
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); } &&
18553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18554   { (case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_try") 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; } &&
18563          { ac_try='test -s conftest$ac_exeext'
18564   { (case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569   (eval "$ac_try") 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   eval "$as_ac_var=yes"
18574 else
18575   echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578         eval "$as_ac_var=no"
18579 fi
18580
18581 rm -f core conftest.err conftest.$ac_objext \
18582       conftest$ac_exeext conftest.$ac_ext
18583 fi
18584 ac_res=`eval echo '${'$as_ac_var'}'`
18585                { echo "$as_me:$LINENO: result: $ac_res" >&5
18586 echo "${ECHO_T}$ac_res" >&6; }
18587 if test `eval echo '${'$as_ac_var'}'` = yes; then
18588   cat >>confdefs.h <<_ACEOF
18589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18590 _ACEOF
18591
18592 fi
18593 done
18594
18595
18596
18597
18598
18599
18600
18601
18602 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18603 do
18604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h.  */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h.  */
18616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18618 #define $ac_func innocuous_$ac_func
18619
18620 /* System header to define __stub macros and hopefully few prototypes,
18621     which can conflict with char $ac_func (); below.
18622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18623     <limits.h> exists even on freestanding compilers.  */
18624
18625 #ifdef __STDC__
18626 # include <limits.h>
18627 #else
18628 # include <assert.h>
18629 #endif
18630
18631 #undef $ac_func
18632
18633 /* Override any GCC internal prototype to avoid an error.
18634    Use char because int might match the return type of a GCC
18635    builtin and then its argument prototype would still apply.  */
18636 #ifdef __cplusplus
18637 extern "C"
18638 #endif
18639 char $ac_func ();
18640 /* The GNU C library defines this for functions which it implements
18641     to always fail with ENOSYS.  Some functions are actually named
18642     something starting with __ and the normal name is an alias.  */
18643 #if defined __stub_$ac_func || defined __stub___$ac_func
18644 choke me
18645 #endif
18646
18647 int
18648 main ()
18649 {
18650 return $ac_func ();
18651   ;
18652   return 0;
18653 }
18654 _ACEOF
18655 rm -f conftest.$ac_objext conftest$ac_exeext
18656 if { (ac_try="$ac_link"
18657 case "(($ac_try" in
18658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659   *) ac_try_echo=$ac_try;;
18660 esac
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662   (eval "$ac_link") 2>conftest.er1
18663   ac_status=$?
18664   grep -v '^ *+' conftest.er1 >conftest.err
18665   rm -f conftest.er1
18666   cat conftest.err >&5
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); } &&
18669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18670   { (case "(($ac_try" in
18671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672   *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675   (eval "$ac_try") 2>&5
18676   ac_status=$?
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; } &&
18679          { ac_try='test -s conftest$ac_exeext'
18680   { (case "(($ac_try" in
18681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682   *) ac_try_echo=$ac_try;;
18683 esac
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685   (eval "$ac_try") 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; }; then
18689   eval "$as_ac_var=yes"
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694         eval "$as_ac_var=no"
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext \
18698       conftest$ac_exeext conftest.$ac_ext
18699 fi
18700 ac_res=`eval echo '${'$as_ac_var'}'`
18701                { echo "$as_me:$LINENO: result: $ac_res" >&5
18702 echo "${ECHO_T}$ac_res" >&6; }
18703 if test `eval echo '${'$as_ac_var'}'` = yes; then
18704   cat >>confdefs.h <<_ACEOF
18705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18706 _ACEOF
18707
18708 fi
18709 done
18710
18711
18712
18713
18714
18715 for ac_func in strerror strerror_r setenv arc4random
18716 do
18717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18721   echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723   cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h.  */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h.  */
18729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18731 #define $ac_func innocuous_$ac_func
18732
18733 /* System header to define __stub macros and hopefully few prototypes,
18734     which can conflict with char $ac_func (); below.
18735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18736     <limits.h> exists even on freestanding compilers.  */
18737
18738 #ifdef __STDC__
18739 # include <limits.h>
18740 #else
18741 # include <assert.h>
18742 #endif
18743
18744 #undef $ac_func
18745
18746 /* Override any GCC internal prototype to avoid an error.
18747    Use char because int might match the return type of a GCC
18748    builtin and then its argument prototype would still apply.  */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char $ac_func ();
18753 /* The GNU C library defines this for functions which it implements
18754     to always fail with ENOSYS.  Some functions are actually named
18755     something starting with __ and the normal name is an alias.  */
18756 #if defined __stub_$ac_func || defined __stub___$ac_func
18757 choke me
18758 #endif
18759
18760 int
18761 main ()
18762 {
18763 return $ac_func ();
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_link") 2>conftest.er1
18776   ac_status=$?
18777   grep -v '^ *+' conftest.er1 >conftest.err
18778   rm -f conftest.er1
18779   cat conftest.err >&5
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); } &&
18782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783   { (case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_try") 2>&5
18789   ac_status=$?
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); }; } &&
18792          { ac_try='test -s conftest$ac_exeext'
18793   { (case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_try") 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; }; then
18802   eval "$as_ac_var=yes"
18803 else
18804   echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807         eval "$as_ac_var=no"
18808 fi
18809
18810 rm -f core conftest.err conftest.$ac_objext \
18811       conftest$ac_exeext conftest.$ac_ext
18812 fi
18813 ac_res=`eval echo '${'$as_ac_var'}'`
18814                { echo "$as_me:$LINENO: result: $ac_res" >&5
18815 echo "${ECHO_T}$ac_res" >&6; }
18816 if test `eval echo '${'$as_ac_var'}'` = yes; then
18817   cat >>confdefs.h <<_ACEOF
18818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18819 _ACEOF
18820
18821 fi
18822 done
18823
18824
18825
18826
18827
18828 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18829 do
18830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18834   echo $ECHO_N "(cached) $ECHO_C" >&6
18835 else
18836   cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18844 #define $ac_func innocuous_$ac_func
18845
18846 /* System header to define __stub macros and hopefully few prototypes,
18847     which can conflict with char $ac_func (); below.
18848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18849     <limits.h> exists even on freestanding compilers.  */
18850
18851 #ifdef __STDC__
18852 # include <limits.h>
18853 #else
18854 # include <assert.h>
18855 #endif
18856
18857 #undef $ac_func
18858
18859 /* Override any GCC internal prototype to avoid an error.
18860    Use char because int might match the return type of a GCC
18861    builtin and then its argument prototype would still apply.  */
18862 #ifdef __cplusplus
18863 extern "C"
18864 #endif
18865 char $ac_func ();
18866 /* The GNU C library defines this for functions which it implements
18867     to always fail with ENOSYS.  Some functions are actually named
18868     something starting with __ and the normal name is an alias.  */
18869 #if defined __stub_$ac_func || defined __stub___$ac_func
18870 choke me
18871 #endif
18872
18873 int
18874 main ()
18875 {
18876 return $ac_func ();
18877   ;
18878   return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (ac_try="$ac_link"
18883 case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_link") 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; } &&
18905          { ac_try='test -s conftest$ac_exeext'
18906   { (case "(($ac_try" in
18907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908   *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911   (eval "$ac_try") 2>&5
18912   ac_status=$?
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); }; }; then
18915   eval "$as_ac_var=yes"
18916 else
18917   echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919
18920         eval "$as_ac_var=no"
18921 fi
18922
18923 rm -f core conftest.err conftest.$ac_objext \
18924       conftest$ac_exeext conftest.$ac_ext
18925 fi
18926 ac_res=`eval echo '${'$as_ac_var'}'`
18927                { echo "$as_me:$LINENO: result: $ac_res" >&5
18928 echo "${ECHO_T}$ac_res" >&6; }
18929 if test `eval echo '${'$as_ac_var'}'` = yes; then
18930   cat >>confdefs.h <<_ACEOF
18931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18932 _ACEOF
18933
18934 fi
18935 done
18936
18937
18938
18939
18940
18941
18942 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18943 do
18944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18958 #define $ac_func innocuous_$ac_func
18959
18960 /* System header to define __stub macros and hopefully few prototypes,
18961     which can conflict with char $ac_func (); below.
18962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963     <limits.h> exists even on freestanding compilers.  */
18964
18965 #ifdef __STDC__
18966 # include <limits.h>
18967 #else
18968 # include <assert.h>
18969 #endif
18970
18971 #undef $ac_func
18972
18973 /* Override any GCC internal prototype to avoid an error.
18974    Use char because int might match the return type of a GCC
18975    builtin and then its argument prototype would still apply.  */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 char $ac_func ();
18980 /* The GNU C library defines this for functions which it implements
18981     to always fail with ENOSYS.  Some functions are actually named
18982     something starting with __ and the normal name is an alias.  */
18983 #if defined __stub_$ac_func || defined __stub___$ac_func
18984 choke me
18985 #endif
18986
18987 int
18988 main ()
18989 {
18990 return $ac_func ();
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_link") 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } &&
19009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19010   { (case "(($ac_try" in
19011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012   *) ac_try_echo=$ac_try;;
19013 esac
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015   (eval "$ac_try") 2>&5
19016   ac_status=$?
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); }; } &&
19019          { ac_try='test -s conftest$ac_exeext'
19020   { (case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025   (eval "$ac_try") 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); }; }; then
19029   eval "$as_ac_var=yes"
19030 else
19031   echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19033
19034         eval "$as_ac_var=no"
19035 fi
19036
19037 rm -f core conftest.err conftest.$ac_objext \
19038       conftest$ac_exeext conftest.$ac_ext
19039 fi
19040 ac_res=`eval echo '${'$as_ac_var'}'`
19041                { echo "$as_me:$LINENO: result: $ac_res" >&5
19042 echo "${ECHO_T}$ac_res" >&6; }
19043 if test `eval echo '${'$as_ac_var'}'` = yes; then
19044   cat >>confdefs.h <<_ACEOF
19045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19046 _ACEOF
19047
19048 fi
19049 done
19050
19051 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19052 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19053 if test "${llvm_cv_c_printf_a+set}" = set; then
19054   echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056   ac_ext=c
19057 ac_cpp='$CPP $CPPFLAGS'
19058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19061
19062  if test "$cross_compiling" = yes; then
19063   llvmac_cv_c_printf_a=no
19064 else
19065   cat >conftest.$ac_ext <<_ACEOF
19066
19067   /* confdefs.h.  */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h.  */
19072
19073 #include <stdio.h>
19074 #include <stdlib.h>
19075
19076 int
19077 main ()
19078 {
19079
19080 volatile double A, B;
19081 char Buffer[100];
19082 A = 1;
19083 A /= 10.0;
19084 sprintf(Buffer, "%a", A);
19085 B = atof(Buffer);
19086 if (A != B)
19087   return (1);
19088 if (A != 0x1.999999999999ap-4)
19089   return (1);
19090 return (0);
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest$ac_exeext
19096 if { (ac_try="$ac_link"
19097 case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_link") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106   { (case "(($ac_try" in
19107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108   *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111   (eval "$ac_try") 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); }; }; then
19115   llvm_cv_c_printf_a=yes
19116 else
19117   echo "$as_me: program exited with status $ac_status" >&5
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ( exit $ac_status )
19122 llvmac_cv_c_printf_a=no
19123 fi
19124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19125 fi
19126
19127
19128  ac_ext=c
19129 ac_cpp='$CPP $CPPFLAGS'
19130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19133
19134 fi
19135 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19136 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19137  if test "$llvm_cv_c_printf_a" = "yes"; then
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_PRINTF_A 1
19141 _ACEOF
19142
19143  fi
19144
19145
19146
19147   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19148 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19149 if test "${ac_cv_func_rand48+set}" = set; then
19150   echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152
19153     ac_ext=cpp
19154 ac_cpp='$CXXCPP $CPPFLAGS'
19155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19158
19159     cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 #include <stdlib.h>
19166 int
19167 main ()
19168 {
19169 srand48(0);lrand48();drand48();
19170   ;
19171   return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181   (eval "$ac_compile") 2>conftest.er1
19182   ac_status=$?
19183   grep -v '^ *+' conftest.er1 >conftest.err
19184   rm -f conftest.er1
19185   cat conftest.err >&5
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } &&
19188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; } &&
19198          { ac_try='test -s conftest.$ac_objext'
19199   { (case "(($ac_try" in
19200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201   *) ac_try_echo=$ac_try;;
19202 esac
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204   (eval "$ac_try") 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_cv_func_rand48=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         ac_cv_func_rand48=no
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217     ac_ext=c
19218 ac_cpp='$CPP $CPPFLAGS'
19219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19222
19223
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19226 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19227
19228 if test "$ac_cv_func_rand48" = "yes" ; then
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_RAND48 1
19232 _ACEOF
19233
19234 fi
19235
19236
19237 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19238 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19239 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19240   echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242   cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h.  */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h.  */
19248 $ac_includes_default
19249 int
19250 main ()
19251 {
19252 #ifndef strerror_s
19253   char *p = (char *) strerror_s;
19254   return !p;
19255 #endif
19256
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265   *) ac_try_echo=$ac_try;;
19266 esac
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268   (eval "$ac_compile") 2>conftest.er1
19269   ac_status=$?
19270   grep -v '^ *+' conftest.er1 >conftest.err
19271   rm -f conftest.er1
19272   cat conftest.err >&5
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); } &&
19275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19276   { (case "(($ac_try" in
19277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278   *) ac_try_echo=$ac_try;;
19279 esac
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281   (eval "$ac_try") 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); }; } &&
19285          { ac_try='test -s conftest.$ac_objext'
19286   { (case "(($ac_try" in
19287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288   *) ac_try_echo=$ac_try;;
19289 esac
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291   (eval "$ac_try") 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); }; }; then
19295   ac_cv_have_decl_strerror_s=yes
19296 else
19297   echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300         ac_cv_have_decl_strerror_s=no
19301 fi
19302
19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304 fi
19305 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19306 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19307 if test $ac_cv_have_decl_strerror_s = yes; then
19308
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_DECL_STRERROR_S 1
19311 _ACEOF
19312
19313
19314 else
19315   cat >>confdefs.h <<_ACEOF
19316 #define HAVE_DECL_STRERROR_S 0
19317 _ACEOF
19318
19319
19320 fi
19321
19322
19323
19324 if test "$llvm_cv_os_type" = "MingW" ; then
19325   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19326 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19327 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19328   echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330   ac_check_lib_save_LIBS=$LIBS
19331 LIBS="-lgcc  $LIBS"
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h.  */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h.  */
19338
19339 /* Override any GCC internal prototype to avoid an error.
19340    Use char because int might match the return type of a GCC
19341    builtin and then its argument prototype would still apply.  */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char _alloca ();
19346 int
19347 main ()
19348 {
19349 return _alloca ();
19350   ;
19351   return 0;
19352 }
19353 _ACEOF
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
19356 case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_link") 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369   { (case "(($ac_try" in
19370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371   *) ac_try_echo=$ac_try;;
19372 esac
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374   (eval "$ac_try") 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; } &&
19378          { ac_try='test -s conftest$ac_exeext'
19379   { (case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_try") 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388   ac_cv_lib_gcc__alloca=yes
19389 else
19390   echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393         ac_cv_lib_gcc__alloca=no
19394 fi
19395
19396 rm -f core conftest.err conftest.$ac_objext \
19397       conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19399 fi
19400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19401 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19402 if test $ac_cv_lib_gcc__alloca = yes; then
19403
19404 cat >>confdefs.h <<\_ACEOF
19405 #define HAVE__ALLOCA 1
19406 _ACEOF
19407
19408 fi
19409
19410   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19411 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19412 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19413   echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415   ac_check_lib_save_LIBS=$LIBS
19416 LIBS="-lgcc  $LIBS"
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423
19424 /* Override any GCC internal prototype to avoid an error.
19425    Use char because int might match the return type of a GCC
19426    builtin and then its argument prototype would still apply.  */
19427 #ifdef __cplusplus
19428 extern "C"
19429 #endif
19430 char __alloca ();
19431 int
19432 main ()
19433 {
19434 return __alloca ();
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_link") 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } &&
19453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454   { (case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_try") 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest$ac_exeext'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; }; then
19473   ac_cv_lib_gcc___alloca=yes
19474 else
19475   echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19477
19478         ac_cv_lib_gcc___alloca=no
19479 fi
19480
19481 rm -f core conftest.err conftest.$ac_objext \
19482       conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19484 fi
19485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19486 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19487 if test $ac_cv_lib_gcc___alloca = yes; then
19488
19489 cat >>confdefs.h <<\_ACEOF
19490 #define HAVE___ALLOCA 1
19491 _ACEOF
19492
19493 fi
19494
19495   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19496 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19497 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19498   echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500   ac_check_lib_save_LIBS=$LIBS
19501 LIBS="-lgcc  $LIBS"
19502 cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508
19509 /* Override any GCC internal prototype to avoid an error.
19510    Use char because int might match the return type of a GCC
19511    builtin and then its argument prototype would still apply.  */
19512 #ifdef __cplusplus
19513 extern "C"
19514 #endif
19515 char __chkstk ();
19516 int
19517 main ()
19518 {
19519 return __chkstk ();
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 rm -f conftest.$ac_objext conftest$ac_exeext
19525 if { (ac_try="$ac_link"
19526 case "(($ac_try" in
19527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528   *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531   (eval "$ac_link") 2>conftest.er1
19532   ac_status=$?
19533   grep -v '^ *+' conftest.er1 >conftest.err
19534   rm -f conftest.er1
19535   cat conftest.err >&5
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); } &&
19538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19539   { (case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_try") 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; } &&
19548          { ac_try='test -s conftest$ac_exeext'
19549   { (case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_try") 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558   ac_cv_lib_gcc___chkstk=yes
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563         ac_cv_lib_gcc___chkstk=no
19564 fi
19565
19566 rm -f core conftest.err conftest.$ac_objext \
19567       conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19569 fi
19570 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19571 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19572 if test $ac_cv_lib_gcc___chkstk = yes; then
19573
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE___CHKSTK 1
19576 _ACEOF
19577
19578 fi
19579
19580   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19581 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19582 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19583   echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585   ac_check_lib_save_LIBS=$LIBS
19586 LIBS="-lgcc  $LIBS"
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593
19594 /* Override any GCC internal prototype to avoid an error.
19595    Use char because int might match the return type of a GCC
19596    builtin and then its argument prototype would still apply.  */
19597 #ifdef __cplusplus
19598 extern "C"
19599 #endif
19600 char ___chkstk ();
19601 int
19602 main ()
19603 {
19604 return ___chkstk ();
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (ac_try="$ac_link"
19611 case "(($ac_try" in
19612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613   *) ac_try_echo=$ac_try;;
19614 esac
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616   (eval "$ac_link") 2>conftest.er1
19617   ac_status=$?
19618   grep -v '^ *+' conftest.er1 >conftest.err
19619   rm -f conftest.er1
19620   cat conftest.err >&5
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); } &&
19623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19624   { (case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_try") 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; } &&
19633          { ac_try='test -s conftest$ac_exeext'
19634   { (case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_try") 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; }; then
19643   ac_cv_lib_gcc____chkstk=yes
19644 else
19645   echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648         ac_cv_lib_gcc____chkstk=no
19649 fi
19650
19651 rm -f core conftest.err conftest.$ac_objext \
19652       conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19654 fi
19655 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19656 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19657 if test $ac_cv_lib_gcc____chkstk = yes; then
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE____CHKSTK 1
19661 _ACEOF
19662
19663 fi
19664
19665
19666   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19667 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19668 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671   ac_check_lib_save_LIBS=$LIBS
19672 LIBS="-lgcc  $LIBS"
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679
19680 /* Override any GCC internal prototype to avoid an error.
19681    Use char because int might match the return type of a GCC
19682    builtin and then its argument prototype would still apply.  */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 char __ashldi3 ();
19687 int
19688 main ()
19689 {
19690 return __ashldi3 ();
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699   *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702   (eval "$ac_link") 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } &&
19709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710   { (case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_try") 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; } &&
19719          { ac_try='test -s conftest$ac_exeext'
19720   { (case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_try") 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729   ac_cv_lib_gcc___ashldi3=yes
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734         ac_cv_lib_gcc___ashldi3=no
19735 fi
19736
19737 rm -f core conftest.err conftest.$ac_objext \
19738       conftest$ac_exeext conftest.$ac_ext
19739 LIBS=$ac_check_lib_save_LIBS
19740 fi
19741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19742 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19743 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19744
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE___ASHLDI3 1
19747 _ACEOF
19748
19749 fi
19750
19751   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19752 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19753 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756   ac_check_lib_save_LIBS=$LIBS
19757 LIBS="-lgcc  $LIBS"
19758 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764
19765 /* Override any GCC internal prototype to avoid an error.
19766    Use char because int might match the return type of a GCC
19767    builtin and then its argument prototype would still apply.  */
19768 #ifdef __cplusplus
19769 extern "C"
19770 #endif
19771 char __ashrdi3 ();
19772 int
19773 main ()
19774 {
19775 return __ashrdi3 ();
19776   ;
19777   return 0;
19778 }
19779 _ACEOF
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_link") 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19795   { (case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_try") 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; } &&
19804          { ac_try='test -s conftest$ac_exeext'
19805   { (case "(($ac_try" in
19806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807   *) ac_try_echo=$ac_try;;
19808 esac
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810   (eval "$ac_try") 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; }; then
19814   ac_cv_lib_gcc___ashrdi3=yes
19815 else
19816   echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819         ac_cv_lib_gcc___ashrdi3=no
19820 fi
19821
19822 rm -f core conftest.err conftest.$ac_objext \
19823       conftest$ac_exeext conftest.$ac_ext
19824 LIBS=$ac_check_lib_save_LIBS
19825 fi
19826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19827 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19828 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19829
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE___ASHRDI3 1
19832 _ACEOF
19833
19834 fi
19835
19836   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19837 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19838 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-lgcc  $LIBS"
19843 cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849
19850 /* Override any GCC internal prototype to avoid an error.
19851    Use char because int might match the return type of a GCC
19852    builtin and then its argument prototype would still apply.  */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 char __divdi3 ();
19857 int
19858 main ()
19859 {
19860 return __divdi3 ();
19861   ;
19862   return 0;
19863 }
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869   *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872   (eval "$ac_link") 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } &&
19879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19880   { (case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885   (eval "$ac_try") 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; } &&
19889          { ac_try='test -s conftest$ac_exeext'
19890   { (case "(($ac_try" in
19891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892   *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895   (eval "$ac_try") 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); }; }; then
19899   ac_cv_lib_gcc___divdi3=yes
19900 else
19901   echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904         ac_cv_lib_gcc___divdi3=no
19905 fi
19906
19907 rm -f core conftest.err conftest.$ac_objext \
19908       conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19910 fi
19911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19912 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19913 if test $ac_cv_lib_gcc___divdi3 = yes; then
19914
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE___DIVDI3 1
19917 _ACEOF
19918
19919 fi
19920
19921   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19922 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19923 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926   ac_check_lib_save_LIBS=$LIBS
19927 LIBS="-lgcc  $LIBS"
19928 cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934
19935 /* Override any GCC internal prototype to avoid an error.
19936    Use char because int might match the return type of a GCC
19937    builtin and then its argument prototype would still apply.  */
19938 #ifdef __cplusplus
19939 extern "C"
19940 #endif
19941 char __fixdfdi ();
19942 int
19943 main ()
19944 {
19945 return __fixdfdi ();
19946   ;
19947   return 0;
19948 }
19949 _ACEOF
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954   *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957   (eval "$ac_link") 2>conftest.er1
19958   ac_status=$?
19959   grep -v '^ *+' conftest.er1 >conftest.err
19960   rm -f conftest.er1
19961   cat conftest.err >&5
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); } &&
19964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19965   { (case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_try") 2>&5
19971   ac_status=$?
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); }; } &&
19974          { ac_try='test -s conftest$ac_exeext'
19975   { (case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980   (eval "$ac_try") 2>&5
19981   ac_status=$?
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); }; }; then
19984   ac_cv_lib_gcc___fixdfdi=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989         ac_cv_lib_gcc___fixdfdi=no
19990 fi
19991
19992 rm -f core conftest.err conftest.$ac_objext \
19993       conftest$ac_exeext conftest.$ac_ext
19994 LIBS=$ac_check_lib_save_LIBS
19995 fi
19996 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19997 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19998 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19999
20000 cat >>confdefs.h <<\_ACEOF
20001 #define HAVE___FIXDFDI 1
20002 _ACEOF
20003
20004 fi
20005
20006   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20007 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20008 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20009   echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011   ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lgcc  $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019
20020 /* Override any GCC internal prototype to avoid an error.
20021    Use char because int might match the return type of a GCC
20022    builtin and then its argument prototype would still apply.  */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 char __fixsfdi ();
20027 int
20028 main ()
20029 {
20030 return __fixsfdi ();
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_link") 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } &&
20049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20050   { (case "(($ac_try" in
20051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052   *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055   (eval "$ac_try") 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest$ac_exeext'
20060   { (case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_try") 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }; }; then
20069   ac_cv_lib_gcc___fixsfdi=yes
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074         ac_cv_lib_gcc___fixsfdi=no
20075 fi
20076
20077 rm -f core conftest.err conftest.$ac_objext \
20078       conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20080 fi
20081 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20082 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20083 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20084
20085 cat >>confdefs.h <<\_ACEOF
20086 #define HAVE___FIXSFDI 1
20087 _ACEOF
20088
20089 fi
20090
20091   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20092 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20093 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20094   echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096   ac_check_lib_save_LIBS=$LIBS
20097 LIBS="-lgcc  $LIBS"
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h.  */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h.  */
20104
20105 /* Override any GCC internal prototype to avoid an error.
20106    Use char because int might match the return type of a GCC
20107    builtin and then its argument prototype would still apply.  */
20108 #ifdef __cplusplus
20109 extern "C"
20110 #endif
20111 char __floatdidf ();
20112 int
20113 main ()
20114 {
20115 return __floatdidf ();
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124   *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127   (eval "$ac_link") 2>conftest.er1
20128   ac_status=$?
20129   grep -v '^ *+' conftest.er1 >conftest.err
20130   rm -f conftest.er1
20131   cat conftest.err >&5
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); } &&
20134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20135   { (case "(($ac_try" in
20136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137   *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140   (eval "$ac_try") 2>&5
20141   ac_status=$?
20142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); }; } &&
20144          { ac_try='test -s conftest$ac_exeext'
20145   { (case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_try") 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; }; then
20154   ac_cv_lib_gcc___floatdidf=yes
20155 else
20156   echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159         ac_cv_lib_gcc___floatdidf=no
20160 fi
20161
20162 rm -f core conftest.err conftest.$ac_objext \
20163       conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20165 fi
20166 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20167 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20168 if test $ac_cv_lib_gcc___floatdidf = yes; then
20169
20170 cat >>confdefs.h <<\_ACEOF
20171 #define HAVE___FLOATDIDF 1
20172 _ACEOF
20173
20174 fi
20175
20176   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20177 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20178 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181   ac_check_lib_save_LIBS=$LIBS
20182 LIBS="-lgcc  $LIBS"
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189
20190 /* Override any GCC internal prototype to avoid an error.
20191    Use char because int might match the return type of a GCC
20192    builtin and then its argument prototype would still apply.  */
20193 #ifdef __cplusplus
20194 extern "C"
20195 #endif
20196 char __lshrdi3 ();
20197 int
20198 main ()
20199 {
20200 return __lshrdi3 ();
20201   ;
20202   return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_link") 2>conftest.er1
20213   ac_status=$?
20214   grep -v '^ *+' conftest.er1 >conftest.err
20215   rm -f conftest.er1
20216   cat conftest.err >&5
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } &&
20219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20220   { (case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_try") 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; } &&
20229          { ac_try='test -s conftest$ac_exeext'
20230   { (case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_try") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; }; then
20239   ac_cv_lib_gcc___lshrdi3=yes
20240 else
20241   echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244         ac_cv_lib_gcc___lshrdi3=no
20245 fi
20246
20247 rm -f core conftest.err conftest.$ac_objext \
20248       conftest$ac_exeext conftest.$ac_ext
20249 LIBS=$ac_check_lib_save_LIBS
20250 fi
20251 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20252 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20253 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20254
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE___LSHRDI3 1
20257 _ACEOF
20258
20259 fi
20260
20261   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20262 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20263 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20264   echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266   ac_check_lib_save_LIBS=$LIBS
20267 LIBS="-lgcc  $LIBS"
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274
20275 /* Override any GCC internal prototype to avoid an error.
20276    Use char because int might match the return type of a GCC
20277    builtin and then its argument prototype would still apply.  */
20278 #ifdef __cplusplus
20279 extern "C"
20280 #endif
20281 char __moddi3 ();
20282 int
20283 main ()
20284 {
20285 return __moddi3 ();
20286   ;
20287   return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest.$ac_objext conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_link") 2>conftest.er1
20298   ac_status=$?
20299   grep -v '^ *+' conftest.er1 >conftest.err
20300   rm -f conftest.er1
20301   cat conftest.err >&5
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } &&
20304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20305   { (case "(($ac_try" in
20306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307   *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310   (eval "$ac_try") 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; } &&
20314          { ac_try='test -s conftest$ac_exeext'
20315   { (case "(($ac_try" in
20316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317   *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320   (eval "$ac_try") 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); }; }; then
20324   ac_cv_lib_gcc___moddi3=yes
20325 else
20326   echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329         ac_cv_lib_gcc___moddi3=no
20330 fi
20331
20332 rm -f core conftest.err conftest.$ac_objext \
20333       conftest$ac_exeext conftest.$ac_ext
20334 LIBS=$ac_check_lib_save_LIBS
20335 fi
20336 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20337 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20338 if test $ac_cv_lib_gcc___moddi3 = yes; then
20339
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE___MODDI3 1
20342 _ACEOF
20343
20344 fi
20345
20346   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20347 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20348 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   ac_check_lib_save_LIBS=$LIBS
20352 LIBS="-lgcc  $LIBS"
20353 cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h.  */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h.  */
20359
20360 /* Override any GCC internal prototype to avoid an error.
20361    Use char because int might match the return type of a GCC
20362    builtin and then its argument prototype would still apply.  */
20363 #ifdef __cplusplus
20364 extern "C"
20365 #endif
20366 char __udivdi3 ();
20367 int
20368 main ()
20369 {
20370 return __udivdi3 ();
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest.$ac_objext conftest$ac_exeext
20376 if { (ac_try="$ac_link"
20377 case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_link") 2>conftest.er1
20383   ac_status=$?
20384   grep -v '^ *+' conftest.er1 >conftest.err
20385   rm -f conftest.er1
20386   cat conftest.err >&5
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); } &&
20389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20390   { (case "(($ac_try" in
20391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392   *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395   (eval "$ac_try") 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; } &&
20399          { ac_try='test -s conftest$ac_exeext'
20400   { (case "(($ac_try" in
20401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402   *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405   (eval "$ac_try") 2>&5
20406   ac_status=$?
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; }; then
20409   ac_cv_lib_gcc___udivdi3=yes
20410 else
20411   echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414         ac_cv_lib_gcc___udivdi3=no
20415 fi
20416
20417 rm -f core conftest.err conftest.$ac_objext \
20418       conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20420 fi
20421 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20422 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20423 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20424
20425 cat >>confdefs.h <<\_ACEOF
20426 #define HAVE___UDIVDI3 1
20427 _ACEOF
20428
20429 fi
20430
20431   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20432 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20433 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20434   echo $ECHO_N "(cached) $ECHO_C" >&6
20435 else
20436   ac_check_lib_save_LIBS=$LIBS
20437 LIBS="-lgcc  $LIBS"
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h.  */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h.  */
20444
20445 /* Override any GCC internal prototype to avoid an error.
20446    Use char because int might match the return type of a GCC
20447    builtin and then its argument prototype would still apply.  */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 char __umoddi3 ();
20452 int
20453 main ()
20454 {
20455 return __umoddi3 ();
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (ac_try="$ac_link"
20462 case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_link") 2>conftest.er1
20468   ac_status=$?
20469   grep -v '^ *+' conftest.er1 >conftest.err
20470   rm -f conftest.er1
20471   cat conftest.err >&5
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); } &&
20474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20475   { (case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_try") 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; } &&
20484          { ac_try='test -s conftest$ac_exeext'
20485   { (case "(($ac_try" in
20486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487   *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490   (eval "$ac_try") 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_lib_gcc___umoddi3=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499         ac_cv_lib_gcc___umoddi3=no
20500 fi
20501
20502 rm -f core conftest.err conftest.$ac_objext \
20503       conftest$ac_exeext conftest.$ac_ext
20504 LIBS=$ac_check_lib_save_LIBS
20505 fi
20506 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20507 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20508 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20509
20510 cat >>confdefs.h <<\_ACEOF
20511 #define HAVE___UMODDI3 1
20512 _ACEOF
20513
20514 fi
20515
20516
20517   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20518 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20519 if test "${ac_cv_lib_gcc___main+set}" = set; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   ac_check_lib_save_LIBS=$LIBS
20523 LIBS="-lgcc  $LIBS"
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530
20531 /* Override any GCC internal prototype to avoid an error.
20532    Use char because int might match the return type of a GCC
20533    builtin and then its argument prototype would still apply.  */
20534 #ifdef __cplusplus
20535 extern "C"
20536 #endif
20537 char __main ();
20538 int
20539 main ()
20540 {
20541 return __main ();
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 rm -f conftest.$ac_objext conftest$ac_exeext
20547 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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_lib_gcc___main=yes
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585         ac_cv_lib_gcc___main=no
20586 fi
20587
20588 rm -f core conftest.err conftest.$ac_objext \
20589       conftest$ac_exeext conftest.$ac_ext
20590 LIBS=$ac_check_lib_save_LIBS
20591 fi
20592 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20593 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20594 if test $ac_cv_lib_gcc___main = yes; then
20595
20596 cat >>confdefs.h <<\_ACEOF
20597 #define HAVE___MAIN 1
20598 _ACEOF
20599
20600 fi
20601
20602   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20603 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lgcc  $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615
20616 /* Override any GCC internal prototype to avoid an error.
20617    Use char because int might match the return type of a GCC
20618    builtin and then its argument prototype would still apply.  */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char __cmpdi2 ();
20623 int
20624 main ()
20625 {
20626 return __cmpdi2 ();
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635   *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638   (eval "$ac_link") 2>conftest.er1
20639   ac_status=$?
20640   grep -v '^ *+' conftest.er1 >conftest.err
20641   rm -f conftest.er1
20642   cat conftest.err >&5
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } &&
20645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646   { (case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651   (eval "$ac_try") 2>&5
20652   ac_status=$?
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); }; } &&
20655          { ac_try='test -s conftest$ac_exeext'
20656   { (case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661   (eval "$ac_try") 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   ac_cv_lib_gcc___cmpdi2=yes
20666 else
20667   echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670         ac_cv_lib_gcc___cmpdi2=no
20671 fi
20672
20673 rm -f core conftest.err conftest.$ac_objext \
20674       conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
20677 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20678 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20679 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20680
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE___CMPDI2 1
20683 _ACEOF
20684
20685 fi
20686
20687 fi
20688
20689 if test "$llvm_cv_os_type" = "MingW" ; then
20690   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20691 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20692   cat >conftest.$ac_ext <<_ACEOF
20693
20694   /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699
20700     #include <windows.h>
20701     #include <imagehlp.h>
20702     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20703     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20704
20705
20706 _ACEOF
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_compile") 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } &&
20721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20722   { (case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_try") 2>&5
20728   ac_status=$?
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); }; } &&
20731          { ac_try='test -s conftest.$ac_objext'
20732   { (case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_try") 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; }; then
20741
20742   { echo "$as_me:$LINENO: result: yes" >&5
20743 echo "${ECHO_T}yes" >&6; }
20744   llvm_cv_win32_elmcb_pcstr="PCSTR"
20745
20746 else
20747   echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750
20751   { echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6; }
20753   llvm_cv_win32_elmcb_pcstr="PSTR"
20754
20755 fi
20756
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758
20759 cat >>confdefs.h <<_ACEOF
20760 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20761 _ACEOF
20762
20763 fi
20764
20765
20766
20767   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20768 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20769 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772
20773     ac_ext=cpp
20774 ac_cpp='$CXXCPP $CPPFLAGS'
20775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20778
20779     cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785 #include <math.h>
20786 int
20787 main ()
20788 {
20789 float f; isnan(f);
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext
20795 if { (ac_try="$ac_compile"
20796 case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_compile") 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20809   { (case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_try") 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; } &&
20818          { ac_try='test -s conftest.$ac_objext'
20819   { (case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_try") 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; }; then
20828   ac_cv_func_isnan_in_math_h=yes
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833         ac_cv_func_isnan_in_math_h=no
20834 fi
20835
20836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837     ac_ext=c
20838 ac_cpp='$CPP $CPPFLAGS'
20839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
20843
20844 fi
20845 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20846 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20847
20848
20849 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_ISNAN_IN_MATH_H 1
20853 _ACEOF
20854
20855 fi
20856
20857
20858   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20859 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20860 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863
20864     ac_ext=cpp
20865 ac_cpp='$CXXCPP $CPPFLAGS'
20866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20869
20870     cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876 #include <cmath>
20877 int
20878 main ()
20879 {
20880 float f; isnan(f);
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892   (eval "$ac_compile") 2>conftest.er1
20893   ac_status=$?
20894   grep -v '^ *+' conftest.er1 >conftest.err
20895   rm -f conftest.er1
20896   cat conftest.err >&5
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); } &&
20899          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20900   { (case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_try") 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; } &&
20909          { ac_try='test -s conftest.$ac_objext'
20910   { (case "(($ac_try" in
20911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912   *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915   (eval "$ac_try") 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; }; then
20919   ac_cv_func_isnan_in_cmath=yes
20920 else
20921   echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20923
20924         ac_cv_func_isnan_in_cmath=no
20925 fi
20926
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928     ac_ext=c
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933
20934
20935 fi
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20937 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20938
20939 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20940
20941 cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_ISNAN_IN_CMATH 1
20943 _ACEOF
20944
20945 fi
20946
20947
20948   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20949 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20950 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20951   echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953
20954     ac_ext=cpp
20955 ac_cpp='$CXXCPP $CPPFLAGS'
20956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20959
20960     cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h.  */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h.  */
20966 #include <cmath>
20967 int
20968 main ()
20969 {
20970 float f; std::isnan(f);
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } &&
20989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; } &&
20999          { ac_try='test -s conftest.$ac_objext'
21000   { (case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_try") 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_cv_func_std_isnan_in_cmath=yes
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         ac_cv_func_std_isnan_in_cmath=no
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018     ac_ext=c
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024
21025 fi
21026 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21027 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21028
21029 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21030
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_STD_ISNAN_IN_CMATH 1
21033 _ACEOF
21034
21035 fi
21036
21037
21038
21039
21040   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21041 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21042 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21043   echo $ECHO_N "(cached) $ECHO_C" >&6
21044 else
21045
21046     ac_ext=cpp
21047 ac_cpp='$CXXCPP $CPPFLAGS'
21048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21051
21052     cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058 #include <math.h>
21059 int
21060 main ()
21061 {
21062 float f; isinf(f);
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_compile") 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21082   { (case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_try") 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; } &&
21091          { ac_try='test -s conftest.$ac_objext'
21092   { (case "(($ac_try" in
21093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094   *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097   (eval "$ac_try") 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); }; }; then
21101   ac_cv_func_isinf_in_math_h=yes
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_cv_func_isinf_in_math_h=no
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110     ac_ext=c
21111 ac_cpp='$CPP $CPPFLAGS'
21112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21115
21116
21117 fi
21118 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21119 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21120
21121 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21122
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_ISINF_IN_MATH_H 1
21125 _ACEOF
21126
21127 fi
21128
21129
21130   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21131 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21132 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135
21136     ac_ext=cpp
21137 ac_cpp='$CXXCPP $CPPFLAGS'
21138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141
21142     cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 #include <cmath>
21149 int
21150 main ()
21151 {
21152 float f; isinf(f);
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_compile") 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21172   { (case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_try") 2>&5
21178   ac_status=$?
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); }; } &&
21181          { ac_try='test -s conftest.$ac_objext'
21182   { (case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_try") 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; }; then
21191   ac_cv_func_isinf_in_cmath=yes
21192 else
21193   echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196         ac_cv_func_isinf_in_cmath=no
21197 fi
21198
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200     ac_ext=c
21201 ac_cpp='$CPP $CPPFLAGS'
21202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21205
21206
21207 fi
21208 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21209 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21210
21211 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_ISINF_IN_CMATH 1
21215 _ACEOF
21216
21217 fi
21218
21219
21220   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21221 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21222 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225
21226     ac_ext=cpp
21227 ac_cpp='$CXXCPP $CPPFLAGS'
21228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21231
21232     cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 #include <cmath>
21239 int
21240 main ()
21241 {
21242 float f; std::isinf(f);
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_compile") 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } &&
21261          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21262   { (case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_try") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; } &&
21271          { ac_try='test -s conftest.$ac_objext'
21272   { (case "(($ac_try" in
21273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274   *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277   (eval "$ac_try") 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ac_cv_func_std_isinf_in_cmath=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286         ac_cv_func_std_isinf_in_cmath=no
21287 fi
21288
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290     ac_ext=c
21291 ac_cpp='$CPP $CPPFLAGS'
21292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21295
21296
21297 fi
21298 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21299 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21300
21301 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21302
21303 cat >>confdefs.h <<\_ACEOF
21304 #define HAVE_STD_ISINF_IN_CMATH 1
21305 _ACEOF
21306
21307 fi
21308
21309
21310   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21311 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21312 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21313   echo $ECHO_N "(cached) $ECHO_C" >&6
21314 else
21315
21316     ac_ext=cpp
21317 ac_cpp='$CXXCPP $CPPFLAGS'
21318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21321
21322     cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h.  */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h.  */
21328 #include <ieeefp.h>
21329 int
21330 main ()
21331 {
21332 float f; finite(f);
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344   (eval "$ac_compile") 2>conftest.er1
21345   ac_status=$?
21346   grep -v '^ *+' conftest.er1 >conftest.err
21347   rm -f conftest.er1
21348   cat conftest.err >&5
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); } &&
21351          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21352   { (case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357   (eval "$ac_try") 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); }; } &&
21361          { ac_try='test -s conftest.$ac_objext'
21362   { (case "(($ac_try" in
21363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364   *) ac_try_echo=$ac_try;;
21365 esac
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367   (eval "$ac_try") 2>&5
21368   ac_status=$?
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); }; }; then
21371   ac_cv_func_finite_in_ieeefp_h=yes
21372 else
21373   echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376         ac_cv_func_finite_in_ieeefp_h=no
21377 fi
21378
21379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380     ac_ext=c
21381 ac_cpp='$CPP $CPPFLAGS'
21382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21385
21386
21387 fi
21388 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21389 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21390
21391 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_FINITE_IN_IEEEFP_H 1
21395 _ACEOF
21396
21397 fi
21398
21399
21400
21401 if test "$llvm_cv_platform_type" = "Unix" ; then
21402
21403
21404 for ac_header in stdlib.h unistd.h
21405 do
21406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 fi
21413 ac_res=`eval echo '${'$as_ac_Header'}'`
21414                { echo "$as_me:$LINENO: result: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21416 else
21417   # Is the header compilable?
21418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 $ac_includes_default
21427 #include <$ac_header>
21428 _ACEOF
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_compile") 2>conftest.er1
21437   ac_status=$?
21438   grep -v '^ *+' conftest.er1 >conftest.err
21439   rm -f conftest.er1
21440   cat conftest.err >&5
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } &&
21443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21444   { (case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_try") 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; } &&
21453          { ac_try='test -s conftest.$ac_objext'
21454   { (case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_try") 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; }; then
21463   ac_header_compiler=yes
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468         ac_header_compiler=no
21469 fi
21470
21471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21473 echo "${ECHO_T}$ac_header_compiler" >&6; }
21474
21475 # Is the header present?
21476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21478 cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h.  */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h.  */
21484 #include <$ac_header>
21485 _ACEOF
21486 if { (ac_try="$ac_cpp conftest.$ac_ext"
21487 case "(($ac_try" in
21488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489   *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } >/dev/null; then
21499   if test -s conftest.err; then
21500     ac_cpp_err=$ac_c_preproc_warn_flag
21501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21502   else
21503     ac_cpp_err=
21504   fi
21505 else
21506   ac_cpp_err=yes
21507 fi
21508 if test -z "$ac_cpp_err"; then
21509   ac_header_preproc=yes
21510 else
21511   echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21513
21514   ac_header_preproc=no
21515 fi
21516
21517 rm -f conftest.err conftest.$ac_ext
21518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21519 echo "${ECHO_T}$ac_header_preproc" >&6; }
21520
21521 # So?  What about this header?
21522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21523   yes:no: )
21524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21528     ac_header_preproc=yes
21529     ;;
21530   no:yes:* )
21531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21543     ( cat <<\_ASBOX
21544 ## ------------------------------------ ##
21545 ## Report this to http://llvm.org/bugs/ ##
21546 ## ------------------------------------ ##
21547 _ASBOX
21548      ) | sed "s/^/$as_me: WARNING:     /" >&2
21549     ;;
21550 esac
21551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554   echo $ECHO_N "(cached) $ECHO_C" >&6
21555 else
21556   eval "$as_ac_Header=\$ac_header_preproc"
21557 fi
21558 ac_res=`eval echo '${'$as_ac_Header'}'`
21559                { echo "$as_me:$LINENO: result: $ac_res" >&5
21560 echo "${ECHO_T}$ac_res" >&6; }
21561
21562 fi
21563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21564   cat >>confdefs.h <<_ACEOF
21565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21566 _ACEOF
21567
21568 fi
21569
21570 done
21571
21572
21573 for ac_func in getpagesize
21574 do
21575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21579   echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581   cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21589 #define $ac_func innocuous_$ac_func
21590
21591 /* System header to define __stub macros and hopefully few prototypes,
21592     which can conflict with char $ac_func (); below.
21593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21594     <limits.h> exists even on freestanding compilers.  */
21595
21596 #ifdef __STDC__
21597 # include <limits.h>
21598 #else
21599 # include <assert.h>
21600 #endif
21601
21602 #undef $ac_func
21603
21604 /* Override any GCC internal prototype to avoid an error.
21605    Use char because int might match the return type of a GCC
21606    builtin and then its argument prototype would still apply.  */
21607 #ifdef __cplusplus
21608 extern "C"
21609 #endif
21610 char $ac_func ();
21611 /* The GNU C library defines this for functions which it implements
21612     to always fail with ENOSYS.  Some functions are actually named
21613     something starting with __ and the normal name is an alias.  */
21614 #if defined __stub_$ac_func || defined __stub___$ac_func
21615 choke me
21616 #endif
21617
21618 int
21619 main ()
21620 {
21621 return $ac_func ();
21622   ;
21623   return 0;
21624 }
21625 _ACEOF
21626 rm -f conftest.$ac_objext conftest$ac_exeext
21627 if { (ac_try="$ac_link"
21628 case "(($ac_try" in
21629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630   *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633   (eval "$ac_link") 2>conftest.er1
21634   ac_status=$?
21635   grep -v '^ *+' conftest.er1 >conftest.err
21636   rm -f conftest.er1
21637   cat conftest.err >&5
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); } &&
21640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21641   { (case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646   (eval "$ac_try") 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; } &&
21650          { ac_try='test -s conftest$ac_exeext'
21651   { (case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_try") 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); }; }; then
21660   eval "$as_ac_var=yes"
21661 else
21662   echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21664
21665         eval "$as_ac_var=no"
21666 fi
21667
21668 rm -f core conftest.err conftest.$ac_objext \
21669       conftest$ac_exeext conftest.$ac_ext
21670 fi
21671 ac_res=`eval echo '${'$as_ac_var'}'`
21672                { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21674 if test `eval echo '${'$as_ac_var'}'` = yes; then
21675   cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21677 _ACEOF
21678
21679 fi
21680 done
21681
21682 { echo "$as_me:$LINENO: checking for working mmap" >&5
21683 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21684 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21685   echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687   if test "$cross_compiling" = yes; then
21688   ac_cv_func_mmap_fixed_mapped=no
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 $ac_includes_default
21697 /* malloc might have been renamed as rpl_malloc. */
21698 #undef malloc
21699
21700 /* Thanks to Mike Haertel and Jim Avera for this test.
21701    Here is a matrix of mmap possibilities:
21702         mmap private not fixed
21703         mmap private fixed at somewhere currently unmapped
21704         mmap private fixed at somewhere already mapped
21705         mmap shared not fixed
21706         mmap shared fixed at somewhere currently unmapped
21707         mmap shared fixed at somewhere already mapped
21708    For private mappings, we should verify that changes cannot be read()
21709    back from the file, nor mmap's back from the file at a different
21710    address.  (There have been systems where private was not correctly
21711    implemented like the infamous i386 svr4.0, and systems where the
21712    VM page cache was not coherent with the file system buffer cache
21713    like early versions of FreeBSD and possibly contemporary NetBSD.)
21714    For shared mappings, we should conversely verify that changes get
21715    propagated back to all the places they're supposed to be.
21716
21717    Grep wants private fixed already mapped.
21718    The main things grep needs to know about mmap are:
21719    * does it exist and is it safe to write into the mmap'd area
21720    * how to use it (BSD variants)  */
21721
21722 #include <fcntl.h>
21723 #include <sys/mman.h>
21724
21725 #if !STDC_HEADERS && !HAVE_STDLIB_H
21726 char *malloc ();
21727 #endif
21728
21729 /* This mess was copied from the GNU getpagesize.h.  */
21730 #if !HAVE_GETPAGESIZE
21731 /* Assume that all systems that can run configure have sys/param.h.  */
21732 # if !HAVE_SYS_PARAM_H
21733 #  define HAVE_SYS_PARAM_H 1
21734 # endif
21735
21736 # ifdef _SC_PAGESIZE
21737 #  define getpagesize() sysconf(_SC_PAGESIZE)
21738 # else /* no _SC_PAGESIZE */
21739 #  if HAVE_SYS_PARAM_H
21740 #   include <sys/param.h>
21741 #   ifdef EXEC_PAGESIZE
21742 #    define getpagesize() EXEC_PAGESIZE
21743 #   else /* no EXEC_PAGESIZE */
21744 #    ifdef NBPG
21745 #     define getpagesize() NBPG * CLSIZE
21746 #     ifndef CLSIZE
21747 #      define CLSIZE 1
21748 #     endif /* no CLSIZE */
21749 #    else /* no NBPG */
21750 #     ifdef NBPC
21751 #      define getpagesize() NBPC
21752 #     else /* no NBPC */
21753 #      ifdef PAGESIZE
21754 #       define getpagesize() PAGESIZE
21755 #      endif /* PAGESIZE */
21756 #     endif /* no NBPC */
21757 #    endif /* no NBPG */
21758 #   endif /* no EXEC_PAGESIZE */
21759 #  else /* no HAVE_SYS_PARAM_H */
21760 #   define getpagesize() 8192   /* punt totally */
21761 #  endif /* no HAVE_SYS_PARAM_H */
21762 # endif /* no _SC_PAGESIZE */
21763
21764 #endif /* no HAVE_GETPAGESIZE */
21765
21766 int
21767 main ()
21768 {
21769   char *data, *data2, *data3;
21770   int i, pagesize;
21771   int fd;
21772
21773   pagesize = getpagesize ();
21774
21775   /* First, make a file with some known garbage in it. */
21776   data = (char *) malloc (pagesize);
21777   if (!data)
21778     return 1;
21779   for (i = 0; i < pagesize; ++i)
21780     *(data + i) = rand ();
21781   umask (0);
21782   fd = creat ("conftest.mmap", 0600);
21783   if (fd < 0)
21784     return 1;
21785   if (write (fd, data, pagesize) != pagesize)
21786     return 1;
21787   close (fd);
21788
21789   /* Next, try to mmap the file at a fixed address which already has
21790      something else allocated at it.  If we can, also make sure that
21791      we see the same garbage.  */
21792   fd = open ("conftest.mmap", O_RDWR);
21793   if (fd < 0)
21794     return 1;
21795   data2 = (char *) malloc (2 * pagesize);
21796   if (!data2)
21797     return 1;
21798   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21799   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21800                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21801     return 1;
21802   for (i = 0; i < pagesize; ++i)
21803     if (*(data + i) != *(data2 + i))
21804       return 1;
21805
21806   /* Finally, make sure that changes to the mapped area do not
21807      percolate back to the file as seen by read().  (This is a bug on
21808      some variants of i386 svr4.0.)  */
21809   for (i = 0; i < pagesize; ++i)
21810     *(data2 + i) = *(data2 + i) + 1;
21811   data3 = (char *) malloc (pagesize);
21812   if (!data3)
21813     return 1;
21814   if (read (fd, data3, pagesize) != pagesize)
21815     return 1;
21816   for (i = 0; i < pagesize; ++i)
21817     if (*(data + i) != *(data3 + i))
21818       return 1;
21819   close (fd);
21820   return 0;
21821 }
21822 _ACEOF
21823 rm -f conftest$ac_exeext
21824 if { (ac_try="$ac_link"
21825 case "(($ac_try" in
21826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827   *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830   (eval "$ac_link") 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834   { (case "(($ac_try" in
21835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836   *) ac_try_echo=$ac_try;;
21837 esac
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839   (eval "$ac_try") 2>&5
21840   ac_status=$?
21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); }; }; then
21843   ac_cv_func_mmap_fixed_mapped=yes
21844 else
21845   echo "$as_me: program exited with status $ac_status" >&5
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 ( exit $ac_status )
21850 ac_cv_func_mmap_fixed_mapped=no
21851 fi
21852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21853 fi
21854
21855
21856 fi
21857 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21858 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21860
21861 cat >>confdefs.h <<\_ACEOF
21862 #define HAVE_MMAP 1
21863 _ACEOF
21864
21865 fi
21866 rm -f conftest.mmap
21867
21868   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21869 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21870 if test "${ac_cv_func_mmap_file+set}" = set; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873    ac_ext=c
21874 ac_cpp='$CPP $CPPFLAGS'
21875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21878
21879   if test "$cross_compiling" = yes; then
21880   ac_cv_func_mmap_file=no
21881 else
21882   cat >conftest.$ac_ext <<_ACEOF
21883
21884     /* confdefs.h.  */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h.  */
21889
21890 #include <sys/types.h>
21891 #include <sys/mman.h>
21892 #include <fcntl.h>
21893
21894 int
21895 main ()
21896 {
21897
21898   int fd;
21899   fd = creat ("foo",0777);
21900   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21901   unlink ("foo");
21902   return (fd != (int) MAP_FAILED);
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_link") 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21918   { (case "(($ac_try" in
21919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920   *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923   (eval "$ac_try") 2>&5
21924   ac_status=$?
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); }; }; then
21927   ac_cv_func_mmap_file=yes
21928 else
21929   echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 ( exit $ac_status )
21934 ac_cv_func_mmap_file=no
21935 fi
21936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21937 fi
21938
21939
21940   ac_ext=c
21941 ac_cpp='$CPP $CPPFLAGS'
21942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21945
21946
21947 fi
21948 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21949 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21950 if test "$ac_cv_func_mmap_file" = yes; then
21951
21952 cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_MMAP_FILE
21954 _ACEOF
21955
21956    MMAP_FILE=yes
21957
21958 fi
21959
21960   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21961 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21962 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21963   echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965   if test "$llvm_cv_os_type" = "Interix" ; then
21966    ac_cv_need_dev_zero_for_mmap=yes
21967  else
21968    ac_cv_need_dev_zero_for_mmap=no
21969  fi
21970
21971 fi
21972 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21973 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21974 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define NEED_DEV_ZERO_FOR_MMAP 1
21978 _ACEOF
21979
21980 fi
21981
21982   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21983   then
21984     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21985 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21986   fi
21987   if test "$ac_cv_func_mmap_file" = "no"
21988   then
21989     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21990 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21991   fi
21992 fi
21993
21994 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21995 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21996 ac_ext=cpp
21997 ac_cpp='$CXXCPP $CPPFLAGS'
21998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22001
22002 cat >conftest.$ac_ext <<_ACEOF
22003
22004   /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009
22010     int main() {
22011       volatile unsigned long val = 1;
22012       __sync_synchronize();
22013       __sync_val_compare_and_swap(&val, 1, 0);
22014       __sync_add_and_fetch(&val, 1);
22015       __sync_sub_and_fetch(&val, 1);
22016       return 0;
22017     }
22018
22019
22020 _ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (ac_try="$ac_link"
22023 case "(($ac_try" in
22024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025   *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028   (eval "$ac_link") 2>conftest.er1
22029   ac_status=$?
22030   grep -v '^ *+' conftest.er1 >conftest.err
22031   rm -f conftest.er1
22032   cat conftest.err >&5
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } &&
22035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22036   { (case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_try") 2>&5
22042   ac_status=$?
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); }; } &&
22045          { ac_try='test -s conftest$ac_exeext'
22046   { (case "(($ac_try" in
22047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048   *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051   (eval "$ac_try") 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; }; then
22055
22056   { echo "$as_me:$LINENO: result: yes" >&5
22057 echo "${ECHO_T}yes" >&6; }
22058
22059 cat >>confdefs.h <<\_ACEOF
22060 #define LLVM_HAS_ATOMICS 1
22061 _ACEOF
22062
22063
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068
22069   { echo "$as_me:$LINENO: result: no" >&5
22070 echo "${ECHO_T}no" >&6; }
22071
22072 cat >>confdefs.h <<\_ACEOF
22073 #define LLVM_HAS_ATOMICS 0
22074 _ACEOF
22075
22076   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22077 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22078
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext \
22082       conftest$ac_exeext conftest.$ac_ext
22083 ac_ext=c
22084 ac_cpp='$CPP $CPPFLAGS'
22085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22088
22089
22090
22091 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22092   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22093 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22094 if test "${llvm_cv_linux_mixed+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097    ac_ext=c
22098 ac_cpp='$CPP $CPPFLAGS'
22099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22102
22103   cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109 #ifndef __x86_64__
22110        error: Not x86-64 even if uname says so!
22111       #endif
22112
22113 int
22114 main ()
22115 {
22116
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_compile") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } &&
22135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136   { (case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_try") 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; } &&
22145          { ac_try='test -s conftest.$ac_objext'
22146   { (case "(($ac_try" in
22147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148   *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151   (eval "$ac_try") 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); }; }; then
22155   llvm_cv_linux_mixed=no
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160         llvm_cv_linux_mixed=yes
22161 fi
22162
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164   ac_ext=c
22165 ac_cpp='$CPP $CPPFLAGS'
22166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22169
22170
22171 fi
22172 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22173 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22174
22175   if test "$llvm_cv_linux_mixed" = "yes"; then
22176     llvm_cv_target_arch="x86"
22177     ARCH="x86"
22178   fi
22179 fi
22180
22181
22182 for ac_func in __dso_handle
22183 do
22184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22188   echo $ECHO_N "(cached) $ECHO_C" >&6
22189 else
22190   cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h.  */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h.  */
22196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22198 #define $ac_func innocuous_$ac_func
22199
22200 /* System header to define __stub macros and hopefully few prototypes,
22201     which can conflict with char $ac_func (); below.
22202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22203     <limits.h> exists even on freestanding compilers.  */
22204
22205 #ifdef __STDC__
22206 # include <limits.h>
22207 #else
22208 # include <assert.h>
22209 #endif
22210
22211 #undef $ac_func
22212
22213 /* Override any GCC internal prototype to avoid an error.
22214    Use char because int might match the return type of a GCC
22215    builtin and then its argument prototype would still apply.  */
22216 #ifdef __cplusplus
22217 extern "C"
22218 #endif
22219 char $ac_func ();
22220 /* The GNU C library defines this for functions which it implements
22221     to always fail with ENOSYS.  Some functions are actually named
22222     something starting with __ and the normal name is an alias.  */
22223 #if defined __stub_$ac_func || defined __stub___$ac_func
22224 choke me
22225 #endif
22226
22227 int
22228 main ()
22229 {
22230 return $ac_func ();
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (ac_try="$ac_link"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_link") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } &&
22249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22250   { (case "(($ac_try" in
22251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252   *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255   (eval "$ac_try") 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest$ac_exeext'
22260   { (case "(($ac_try" in
22261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262   *) ac_try_echo=$ac_try;;
22263 esac
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265   (eval "$ac_try") 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; }; then
22269   eval "$as_ac_var=yes"
22270 else
22271   echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274         eval "$as_ac_var=no"
22275 fi
22276
22277 rm -f core conftest.err conftest.$ac_objext \
22278       conftest$ac_exeext conftest.$ac_ext
22279 fi
22280 ac_res=`eval echo '${'$as_ac_var'}'`
22281                { echo "$as_me:$LINENO: result: $ac_res" >&5
22282 echo "${ECHO_T}$ac_res" >&6; }
22283 if test `eval echo '${'$as_ac_var'}'` = yes; then
22284   cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22286 _ACEOF
22287
22288 fi
22289 done
22290
22291
22292 SHLIBEXT=$libltdl_cv_shlibext
22293
22294
22295 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22296
22297
22298 if test "${prefix}" = "NONE" ; then
22299   prefix="/usr/local"
22300 fi
22301 eval LLVM_PREFIX="${prefix}";
22302 eval LLVM_BINDIR="${prefix}/bin";
22303 eval LLVM_LIBDIR="${prefix}/lib";
22304 eval LLVM_DATADIR="${prefix}/share/llvm";
22305 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22306 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22307 eval LLVM_INCLUDEDIR="${prefix}/include";
22308 eval LLVM_INFODIR="${prefix}/info";
22309 eval LLVM_MANDIR="${prefix}/man";
22310 LLVM_CONFIGTIME=`date`
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22323   LLVM_CONFIGTIME="(timestamp not enabled)"
22324 fi
22325
22326
22327 cat >>confdefs.h <<_ACEOF
22328 #define LLVM_PREFIX "$LLVM_PREFIX"
22329 _ACEOF
22330
22331
22332 cat >>confdefs.h <<_ACEOF
22333 #define LLVM_BINDIR "$LLVM_BINDIR"
22334 _ACEOF
22335
22336
22337 cat >>confdefs.h <<_ACEOF
22338 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22339 _ACEOF
22340
22341
22342 cat >>confdefs.h <<_ACEOF
22343 #define LLVM_DATADIR "$LLVM_DATADIR"
22344 _ACEOF
22345
22346
22347 cat >>confdefs.h <<_ACEOF
22348 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22349 _ACEOF
22350
22351
22352 cat >>confdefs.h <<_ACEOF
22353 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22354 _ACEOF
22355
22356
22357 cat >>confdefs.h <<_ACEOF
22358 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22359 _ACEOF
22360
22361
22362 cat >>confdefs.h <<_ACEOF
22363 #define LLVM_INFODIR "$LLVM_INFODIR"
22364 _ACEOF
22365
22366
22367 cat >>confdefs.h <<_ACEOF
22368 #define LLVM_MANDIR "$LLVM_MANDIR"
22369 _ACEOF
22370
22371
22372 cat >>confdefs.h <<_ACEOF
22373 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22374 _ACEOF
22375
22376
22377 cat >>confdefs.h <<_ACEOF
22378 #define LLVM_HOST_TRIPLE "$host"
22379 _ACEOF
22380
22381
22382 cat >>confdefs.h <<_ACEOF
22383 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22384 _ACEOF
22385
22386
22387 if test "$BINDINGS_TO_BUILD" = auto ; then
22388   BINDINGS_TO_BUILD=""
22389   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22390     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22391   fi
22392 fi
22393 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22394
22395
22396 ALL_BINDINGS=ocaml
22397
22398
22399 binding_prereqs_failed=0
22400 for a_binding in $BINDINGS_TO_BUILD ; do
22401   case "$a_binding" in
22402   ocaml)
22403     if test "x$OCAMLC" = x ; then
22404       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22405 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22406       binding_prereqs_failed=1
22407     fi
22408     if test "x$OCAMLDEP" = x ; then
22409       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22410 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22411       binding_prereqs_failed=1
22412     fi
22413     if test "x$OCAMLOPT" = x ; then
22414       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22415 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22416           fi
22417     if test "x$with_ocaml_libdir" != xauto ; then
22418       OCAML_LIBDIR=$with_ocaml_libdir
22419
22420     else
22421       ocaml_stdlib="`"$OCAMLC" -where`"
22422       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22423       then
22424         # ocaml stdlib is beneath our prefix; use stdlib
22425         OCAML_LIBDIR=$ocaml_stdlib
22426
22427       else
22428         # ocaml stdlib is outside our prefix; use libdir/ocaml
22429         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22430
22431       fi
22432     fi
22433     ;;
22434   esac
22435 done
22436 if test "$binding_prereqs_failed" = 1 ; then
22437   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22438 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22439    { (exit 1); exit 1; }; }
22440 fi
22441
22442 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22443 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22444 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22445   echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447    ac_ext=cpp
22448 ac_cpp='$CXXCPP $CPPFLAGS'
22449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22452
22453   oldcxxflags="$CXXFLAGS"
22454   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22455   cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22462 int
22463 main ()
22464 {
22465 X<int>().f();
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext
22471 if { (ac_try="$ac_compile"
22472 case "(($ac_try" in
22473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474   *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477   (eval "$ac_compile") 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } &&
22484          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22485   { (case "(($ac_try" in
22486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487   *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490   (eval "$ac_try") 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; } &&
22494          { ac_try='test -s conftest.$ac_objext'
22495   { (case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_try") 2>&5
22501   ac_status=$?
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); }; }; then
22504   llvm_cv_cxx_visibility_inlines_hidden=yes
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509         llvm_cv_cxx_visibility_inlines_hidden=no
22510 fi
22511
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513   CXXFLAGS="$oldcxxflags"
22514   ac_ext=c
22515 ac_cpp='$CPP $CPPFLAGS'
22516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22519
22520
22521 fi
22522 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22523 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22524 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22525   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22526
22527 else
22528   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22529
22530 fi
22531
22532
22533 if test "$llvm_cv_link_use_r" = "yes" ; then
22534   RPATH="-Wl,-R"
22535 else
22536   RPATH="-Wl,-rpath"
22537 fi
22538
22539
22540 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22541   RDYNAMIC="-Wl,-export-dynamic"
22542 else
22543   RDYNAMIC=""
22544 fi
22545
22546
22547
22548 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22549
22550
22551
22552
22553
22554
22555 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22556
22557 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22558
22559 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22560
22561 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22562
22563 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22564
22565
22566 ac_config_files="$ac_config_files Makefile.config"
22567
22568
22569 ac_config_files="$ac_config_files llvm.spec"
22570
22571
22572 ac_config_files="$ac_config_files docs/doxygen.cfg"
22573
22574
22575 if test "${clang_src_root}" = ""; then
22576   clang_src_root="$srcdir/tools/clang"
22577 fi
22578 if test -f ${clang_src_root}/README.txt; then
22579     configh="include/clang/Config/config.h"
22580   doxy="docs/doxygen.cfg"
22581   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22582
22583   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22584
22585 fi
22586
22587 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22588
22589
22590 test "x$program_prefix" = "xNONE" && program_prefix=""
22591
22592
22593
22594 ac_config_commands="$ac_config_commands setup"
22595
22596 ac_config_commands="$ac_config_commands Makefile"
22597
22598
22599 ac_config_commands="$ac_config_commands Makefile.common"
22600
22601
22602 ac_config_commands="$ac_config_commands examples/Makefile"
22603
22604
22605 ac_config_commands="$ac_config_commands lib/Makefile"
22606
22607
22608 ac_config_commands="$ac_config_commands runtime/Makefile"
22609
22610
22611 ac_config_commands="$ac_config_commands test/Makefile"
22612
22613
22614 ac_config_commands="$ac_config_commands test/Makefile.tests"
22615
22616
22617 ac_config_commands="$ac_config_commands unittests/Makefile"
22618
22619
22620 ac_config_commands="$ac_config_commands tools/Makefile"
22621
22622
22623 ac_config_commands="$ac_config_commands utils/Makefile"
22624
22625
22626 ac_config_commands="$ac_config_commands projects/Makefile"
22627
22628
22629 ac_config_commands="$ac_config_commands bindings/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22633
22634
22635
22636 cat >confcache <<\_ACEOF
22637 # This file is a shell script that caches the results of configure
22638 # tests run on this system so they can be shared between configure
22639 # scripts and configure runs, see configure's option --config-cache.
22640 # It is not useful on other systems.  If it contains results you don't
22641 # want to keep, you may remove or edit it.
22642 #
22643 # config.status only pays attention to the cache file if you give it
22644 # the --recheck option to rerun configure.
22645 #
22646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22648 # following values.
22649
22650 _ACEOF
22651
22652 # The following way of writing the cache mishandles newlines in values,
22653 # but we know of no workaround that is simple, portable, and efficient.
22654 # So, we kill variables containing newlines.
22655 # Ultrix sh set writes to stderr and can't be redirected directly,
22656 # and sets the high bit in the cache file unless we assign to the vars.
22657 (
22658   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22659     eval ac_val=\$$ac_var
22660     case $ac_val in #(
22661     *${as_nl}*)
22662       case $ac_var in #(
22663       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22665       esac
22666       case $ac_var in #(
22667       _ | IFS | as_nl) ;; #(
22668       *) $as_unset $ac_var ;;
22669       esac ;;
22670     esac
22671   done
22672
22673   (set) 2>&1 |
22674     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22675     *${as_nl}ac_space=\ *)
22676       # `set' does not quote correctly, so add quotes (double-quote
22677       # substitution turns \\\\ into \\, and sed turns \\ into \).
22678       sed -n \
22679         "s/'/'\\\\''/g;
22680           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22681       ;; #(
22682     *)
22683       # `set' quotes correctly as required by POSIX, so do not add quotes.
22684       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22685       ;;
22686     esac |
22687     sort
22688 ) |
22689   sed '
22690      /^ac_cv_env_/b end
22691      t clear
22692      :clear
22693      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22694      t end
22695      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22696      :end' >>confcache
22697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22698   if test -w "$cache_file"; then
22699     test "x$cache_file" != "x/dev/null" &&
22700       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22701 echo "$as_me: updating cache $cache_file" >&6;}
22702     cat confcache >$cache_file
22703   else
22704     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22705 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22706   fi
22707 fi
22708 rm -f confcache
22709
22710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22711 # Let make expand exec_prefix.
22712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22713
22714 DEFS=-DHAVE_CONFIG_H
22715
22716 ac_libobjs=
22717 ac_ltlibobjs=
22718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22719   # 1. Remove the extension, and $U if already installed.
22720   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22721   ac_i=`echo "$ac_i" | sed "$ac_script"`
22722   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22723   #    will be set to the directory where LIBOBJS objects are built.
22724   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22725   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22726 done
22727 LIBOBJS=$ac_libobjs
22728
22729 LTLIBOBJS=$ac_ltlibobjs
22730
22731
22732 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22733   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22734 Usually this means the macro was only invoked conditionally." >&5
22735 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22736 Usually this means the macro was only invoked conditionally." >&2;}
22737    { (exit 1); exit 1; }; }
22738 fi
22739 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22740   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22741 Usually this means the macro was only invoked conditionally." >&5
22742 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&2;}
22744    { (exit 1); exit 1; }; }
22745 fi
22746
22747 : ${CONFIG_STATUS=./config.status}
22748 ac_clean_files_save=$ac_clean_files
22749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22752 cat >$CONFIG_STATUS <<_ACEOF
22753 #! $SHELL
22754 # Generated by $as_me.
22755 # Run this file to recreate the current configuration.
22756 # Compiler output produced by configure, useful for debugging
22757 # configure, is in config.log if it exists.
22758
22759 debug=false
22760 ac_cs_recheck=false
22761 ac_cs_silent=false
22762 SHELL=\${CONFIG_SHELL-$SHELL}
22763 _ACEOF
22764
22765 cat >>$CONFIG_STATUS <<\_ACEOF
22766 ## --------------------- ##
22767 ## M4sh Initialization.  ##
22768 ## --------------------- ##
22769
22770 # Be Bourne compatible
22771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22772   emulate sh
22773   NULLCMD=:
22774   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22775   # is contrary to our usage.  Disable this feature.
22776   alias -g '${1+"$@"}'='"$@"'
22777   setopt NO_GLOB_SUBST
22778 else
22779   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22780 fi
22781 BIN_SH=xpg4; export BIN_SH # for Tru64
22782 DUALCASE=1; export DUALCASE # for MKS sh
22783
22784
22785 # PATH needs CR
22786 # Avoid depending upon Character Ranges.
22787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22790 as_cr_digits='0123456789'
22791 as_cr_alnum=$as_cr_Letters$as_cr_digits
22792
22793 # The user is always right.
22794 if test "${PATH_SEPARATOR+set}" != set; then
22795   echo "#! /bin/sh" >conf$$.sh
22796   echo  "exit 0"   >>conf$$.sh
22797   chmod +x conf$$.sh
22798   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22799     PATH_SEPARATOR=';'
22800   else
22801     PATH_SEPARATOR=:
22802   fi
22803   rm -f conf$$.sh
22804 fi
22805
22806 # Support unset when possible.
22807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22808   as_unset=unset
22809 else
22810   as_unset=false
22811 fi
22812
22813
22814 # IFS
22815 # We need space, tab and new line, in precisely that order.  Quoting is
22816 # there to prevent editors from complaining about space-tab.
22817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22818 # splitting by setting IFS to empty value.)
22819 as_nl='
22820 '
22821 IFS=" ""        $as_nl"
22822
22823 # Find who we are.  Look in the path if we contain no directory separator.
22824 case $0 in
22825   *[\\/]* ) as_myself=$0 ;;
22826   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22827 for as_dir in $PATH
22828 do
22829   IFS=$as_save_IFS
22830   test -z "$as_dir" && as_dir=.
22831   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22832 done
22833 IFS=$as_save_IFS
22834
22835      ;;
22836 esac
22837 # We did not find ourselves, most probably we were run as `sh COMMAND'
22838 # in which case we are not to be found in the path.
22839 if test "x$as_myself" = x; then
22840   as_myself=$0
22841 fi
22842 if test ! -f "$as_myself"; then
22843   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22844   { (exit 1); exit 1; }
22845 fi
22846
22847 # Work around bugs in pre-3.0 UWIN ksh.
22848 for as_var in ENV MAIL MAILPATH
22849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22850 done
22851 PS1='$ '
22852 PS2='> '
22853 PS4='+ '
22854
22855 # NLS nuisances.
22856 for as_var in \
22857   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859   LC_TELEPHONE LC_TIME
22860 do
22861   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862     eval $as_var=C; export $as_var
22863   else
22864     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22865   fi
22866 done
22867
22868 # Required to use basename.
22869 if expr a : '\(a\)' >/dev/null 2>&1 &&
22870    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22871   as_expr=expr
22872 else
22873   as_expr=false
22874 fi
22875
22876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22877   as_basename=basename
22878 else
22879   as_basename=false
22880 fi
22881
22882
22883 # Name of the executable.
22884 as_me=`$as_basename -- "$0" ||
22885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22886          X"$0" : 'X\(//\)$' \| \
22887          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22888 echo X/"$0" |
22889     sed '/^.*\/\([^/][^/]*\)\/*$/{
22890             s//\1/
22891             q
22892           }
22893           /^X\/\(\/\/\)$/{
22894             s//\1/
22895             q
22896           }
22897           /^X\/\(\/\).*/{
22898             s//\1/
22899             q
22900           }
22901           s/.*/./; q'`
22902
22903 # CDPATH.
22904 $as_unset CDPATH
22905
22906
22907
22908   as_lineno_1=$LINENO
22909   as_lineno_2=$LINENO
22910   test "x$as_lineno_1" != "x$as_lineno_2" &&
22911   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22912
22913   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22914   # uniformly replaced by the line number.  The first 'sed' inserts a
22915   # line-number line after each line using $LINENO; the second 'sed'
22916   # does the real work.  The second script uses 'N' to pair each
22917   # line-number line with the line containing $LINENO, and appends
22918   # trailing '-' during substitution so that $LINENO is not a special
22919   # case at line end.
22920   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22921   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22922   # E. McMahon (1931-1989) for sed's syntax.  :-)
22923   sed -n '
22924     p
22925     /[$]LINENO/=
22926   ' <$as_myself |
22927     sed '
22928       s/[$]LINENO.*/&-/
22929       t lineno
22930       b
22931       :lineno
22932       N
22933       :loop
22934       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22935       t loop
22936       s/-\n.*//
22937     ' >$as_me.lineno &&
22938   chmod +x "$as_me.lineno" ||
22939     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22940    { (exit 1); exit 1; }; }
22941
22942   # Don't try to exec as it changes $[0], causing all sort of problems
22943   # (the dirname of $[0] is not the place where we might find the
22944   # original and so on.  Autoconf is especially sensitive to this).
22945   . "./$as_me.lineno"
22946   # Exit status is that of the last command.
22947   exit
22948 }
22949
22950
22951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22952   as_dirname=dirname
22953 else
22954   as_dirname=false
22955 fi
22956
22957 ECHO_C= ECHO_N= ECHO_T=
22958 case `echo -n x` in
22959 -n*)
22960   case `echo 'x\c'` in
22961   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22962   *)   ECHO_C='\c';;
22963   esac;;
22964 *)
22965   ECHO_N='-n';;
22966 esac
22967
22968 if expr a : '\(a\)' >/dev/null 2>&1 &&
22969    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22970   as_expr=expr
22971 else
22972   as_expr=false
22973 fi
22974
22975 rm -f conf$$ conf$$.exe conf$$.file
22976 if test -d conf$$.dir; then
22977   rm -f conf$$.dir/conf$$.file
22978 else
22979   rm -f conf$$.dir
22980   mkdir conf$$.dir
22981 fi
22982 echo >conf$$.file
22983 if ln -s conf$$.file conf$$ 2>/dev/null; then
22984   as_ln_s='ln -s'
22985   # ... but there are two gotchas:
22986   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22987   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22988   # In both cases, we have to default to `cp -p'.
22989   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22990     as_ln_s='cp -p'
22991 elif ln conf$$.file conf$$ 2>/dev/null; then
22992   as_ln_s=ln
22993 else
22994   as_ln_s='cp -p'
22995 fi
22996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22997 rmdir conf$$.dir 2>/dev/null
22998
22999 if mkdir -p . 2>/dev/null; then
23000   as_mkdir_p=:
23001 else
23002   test -d ./-p && rmdir ./-p
23003   as_mkdir_p=false
23004 fi
23005
23006 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23007 # systems may use methods other than mode bits to determine executability.
23008 cat >conf$$.file <<_ASEOF
23009 #! /bin/sh
23010 exit 0
23011 _ASEOF
23012 chmod +x conf$$.file
23013 if test -x conf$$.file >/dev/null 2>&1; then
23014   as_executable_p="test -x"
23015 else
23016   as_executable_p=:
23017 fi
23018 rm -f conf$$.file
23019
23020 # Sed expression to map a string onto a valid CPP name.
23021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23022
23023 # Sed expression to map a string onto a valid variable name.
23024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23025
23026
23027 exec 6>&1
23028
23029 # Save the log message, to keep $[0] and so on meaningful, and to
23030 # report actual input values of CONFIG_FILES etc. instead of their
23031 # values after options handling.
23032 ac_log="
23033 This file was extended by LLVM $as_me 3.3svn, which was
23034 generated by GNU Autoconf 2.60.  Invocation command line was
23035
23036   CONFIG_FILES    = $CONFIG_FILES
23037   CONFIG_HEADERS  = $CONFIG_HEADERS
23038   CONFIG_LINKS    = $CONFIG_LINKS
23039   CONFIG_COMMANDS = $CONFIG_COMMANDS
23040   $ $0 $@
23041
23042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23043 "
23044
23045 _ACEOF
23046
23047 cat >>$CONFIG_STATUS <<_ACEOF
23048 # Files that config.status was made for.
23049 config_files="$ac_config_files"
23050 config_headers="$ac_config_headers"
23051 config_commands="$ac_config_commands"
23052
23053 _ACEOF
23054
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23056 ac_cs_usage="\
23057 \`$as_me' instantiates files from templates according to the
23058 current configuration.
23059
23060 Usage: $0 [OPTIONS] [FILE]...
23061
23062   -h, --help       print this help, then exit
23063   -V, --version    print version number, then exit
23064   -q, --quiet      do not print progress messages
23065   -d, --debug      don't remove temporary files
23066       --recheck    update $as_me by reconfiguring in the same conditions
23067   --file=FILE[:TEMPLATE]
23068                    instantiate the configuration file FILE
23069   --header=FILE[:TEMPLATE]
23070                    instantiate the configuration header FILE
23071
23072 Configuration files:
23073 $config_files
23074
23075 Configuration headers:
23076 $config_headers
23077
23078 Configuration commands:
23079 $config_commands
23080
23081 Report bugs to <bug-autoconf@gnu.org>."
23082
23083 _ACEOF
23084 cat >>$CONFIG_STATUS <<_ACEOF
23085 ac_cs_version="\\
23086 LLVM config.status 3.3svn
23087 configured by $0, generated by GNU Autoconf 2.60,
23088   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23089
23090 Copyright (C) 2006 Free Software Foundation, Inc.
23091 This config.status script is free software; the Free Software Foundation
23092 gives unlimited permission to copy, distribute and modify it."
23093
23094 ac_pwd='$ac_pwd'
23095 srcdir='$srcdir'
23096 INSTALL='$INSTALL'
23097 _ACEOF
23098
23099 cat >>$CONFIG_STATUS <<\_ACEOF
23100 # If no file are specified by the user, then we need to provide default
23101 # value.  By we need to know if files were specified by the user.
23102 ac_need_defaults=:
23103 while test $# != 0
23104 do
23105   case $1 in
23106   --*=*)
23107     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23108     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23109     ac_shift=:
23110     ;;
23111   *)
23112     ac_option=$1
23113     ac_optarg=$2
23114     ac_shift=shift
23115     ;;
23116   esac
23117
23118   case $ac_option in
23119   # Handling of the options.
23120   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23121     ac_cs_recheck=: ;;
23122   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23123     echo "$ac_cs_version"; exit ;;
23124   --debug | --debu | --deb | --de | --d | -d )
23125     debug=: ;;
23126   --file | --fil | --fi | --f )
23127     $ac_shift
23128     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23129     ac_need_defaults=false;;
23130   --header | --heade | --head | --hea )
23131     $ac_shift
23132     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23133     ac_need_defaults=false;;
23134   --he | --h)
23135     # Conflict between --help and --header
23136     { echo "$as_me: error: ambiguous option: $1
23137 Try \`$0 --help' for more information." >&2
23138    { (exit 1); exit 1; }; };;
23139   --help | --hel | -h )
23140     echo "$ac_cs_usage"; exit ;;
23141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23142   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23143     ac_cs_silent=: ;;
23144
23145   # This is an error.
23146   -*) { echo "$as_me: error: unrecognized option: $1
23147 Try \`$0 --help' for more information." >&2
23148    { (exit 1); exit 1; }; } ;;
23149
23150   *) ac_config_targets="$ac_config_targets $1"
23151      ac_need_defaults=false ;;
23152
23153   esac
23154   shift
23155 done
23156
23157 ac_configure_extra_args=
23158
23159 if $ac_cs_silent; then
23160   exec 6>/dev/null
23161   ac_configure_extra_args="$ac_configure_extra_args --silent"
23162 fi
23163
23164 _ACEOF
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 if \$ac_cs_recheck; then
23167   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168   CONFIG_SHELL=$SHELL
23169   export CONFIG_SHELL
23170   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23171 fi
23172
23173 _ACEOF
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23175 exec 5>>config.log
23176 {
23177   echo
23178   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23179 ## Running $as_me. ##
23180 _ASBOX
23181   echo "$ac_log"
23182 } >&5
23183
23184 _ACEOF
23185 cat >>$CONFIG_STATUS <<_ACEOF
23186 #
23187 # INIT-COMMANDS
23188 #
23189 llvm_src="${srcdir}"
23190
23191 _ACEOF
23192
23193 cat >>$CONFIG_STATUS <<\_ACEOF
23194
23195 # Handling of arguments.
23196 for ac_config_target in $ac_config_targets
23197 do
23198   case $ac_config_target in
23199     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23200     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23201     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23202     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23203     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23204     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23205     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23206     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23207     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23208     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23209     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23210     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23211     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23212     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23213     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23214     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23215     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23216     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23217     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23218     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23219     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23220     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23221     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23222     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23223     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23224     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23225     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23226
23227   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23229    { (exit 1); exit 1; }; };;
23230   esac
23231 done
23232
23233
23234 # If the user did not use the arguments to specify the items to instantiate,
23235 # then the envvar interface is used.  Set only those that are not.
23236 # We use the long form for the default assignment because of an extremely
23237 # bizarre bug on SunOS 4.1.3.
23238 if $ac_need_defaults; then
23239   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23240   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23241   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23242 fi
23243
23244 # Have a temporary directory for convenience.  Make it in the build tree
23245 # simply because there is no reason against having it here, and in addition,
23246 # creating and moving files from /tmp can sometimes cause problems.
23247 # Hook for its removal unless debugging.
23248 # Note that there is a small window in which the directory will not be cleaned:
23249 # after its creation but before its name has been assigned to `$tmp'.
23250 $debug ||
23251 {
23252   tmp=
23253   trap 'exit_status=$?
23254   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23255 ' 0
23256   trap '{ (exit 1); exit 1; }' 1 2 13 15
23257 }
23258 # Create a (secure) tmp directory for tmp files.
23259
23260 {
23261   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23262   test -n "$tmp" && test -d "$tmp"
23263 }  ||
23264 {
23265   tmp=./conf$$-$RANDOM
23266   (umask 077 && mkdir "$tmp")
23267 } ||
23268 {
23269    echo "$me: cannot create a temporary directory in ." >&2
23270    { (exit 1); exit 1; }
23271 }
23272
23273 #
23274 # Set up the sed scripts for CONFIG_FILES section.
23275 #
23276
23277 # No need to generate the scripts if there are no CONFIG_FILES.
23278 # This happens for instance when ./config.status config.h
23279 if test -n "$CONFIG_FILES"; then
23280
23281 _ACEOF
23282
23283
23284
23285 ac_delim='%!_!# '
23286 for ac_last_try in false false false false false :; do
23287   cat >conf$$subs.sed <<_ACEOF
23288 SHELL!$SHELL$ac_delim
23289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23295 exec_prefix!$exec_prefix$ac_delim
23296 prefix!$prefix$ac_delim
23297 program_transform_name!$program_transform_name$ac_delim
23298 bindir!$bindir$ac_delim
23299 sbindir!$sbindir$ac_delim
23300 libexecdir!$libexecdir$ac_delim
23301 datarootdir!$datarootdir$ac_delim
23302 datadir!$datadir$ac_delim
23303 sysconfdir!$sysconfdir$ac_delim
23304 sharedstatedir!$sharedstatedir$ac_delim
23305 localstatedir!$localstatedir$ac_delim
23306 includedir!$includedir$ac_delim
23307 oldincludedir!$oldincludedir$ac_delim
23308 docdir!$docdir$ac_delim
23309 infodir!$infodir$ac_delim
23310 htmldir!$htmldir$ac_delim
23311 dvidir!$dvidir$ac_delim
23312 pdfdir!$pdfdir$ac_delim
23313 psdir!$psdir$ac_delim
23314 libdir!$libdir$ac_delim
23315 localedir!$localedir$ac_delim
23316 mandir!$mandir$ac_delim
23317 DEFS!$DEFS$ac_delim
23318 ECHO_C!$ECHO_C$ac_delim
23319 ECHO_N!$ECHO_N$ac_delim
23320 ECHO_T!$ECHO_T$ac_delim
23321 LIBS!$LIBS$ac_delim
23322 build_alias!$build_alias$ac_delim
23323 host_alias!$host_alias$ac_delim
23324 target_alias!$target_alias$ac_delim
23325 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23326 CC!$CC$ac_delim
23327 CFLAGS!$CFLAGS$ac_delim
23328 LDFLAGS!$LDFLAGS$ac_delim
23329 CPPFLAGS!$CPPFLAGS$ac_delim
23330 ac_ct_CC!$ac_ct_CC$ac_delim
23331 EXEEXT!$EXEEXT$ac_delim
23332 OBJEXT!$OBJEXT$ac_delim
23333 CXX!$CXX$ac_delim
23334 CXXFLAGS!$CXXFLAGS$ac_delim
23335 ac_ct_CXX!$ac_ct_CXX$ac_delim
23336 CPP!$CPP$ac_delim
23337 subdirs!$subdirs$ac_delim
23338 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23339 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23340 build!$build$ac_delim
23341 build_cpu!$build_cpu$ac_delim
23342 build_vendor!$build_vendor$ac_delim
23343 build_os!$build_os$ac_delim
23344 host!$host$ac_delim
23345 host_cpu!$host_cpu$ac_delim
23346 host_vendor!$host_vendor$ac_delim
23347 host_os!$host_os$ac_delim
23348 target!$target$ac_delim
23349 target_cpu!$target_cpu$ac_delim
23350 target_vendor!$target_vendor$ac_delim
23351 target_os!$target_os$ac_delim
23352 OS!$OS$ac_delim
23353 HOST_OS!$HOST_OS$ac_delim
23354 TARGET_OS!$TARGET_OS$ac_delim
23355 LINKALL!$LINKALL$ac_delim
23356 NOLINKALL!$NOLINKALL$ac_delim
23357 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23358 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23359 ARCH!$ARCH$ac_delim
23360 HOST_ARCH!$HOST_ARCH$ac_delim
23361 ENDIAN!$ENDIAN$ac_delim
23362 GREP!$GREP$ac_delim
23363 EGREP!$EGREP$ac_delim
23364 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23365 BUILD_CC!$BUILD_CC$ac_delim
23366 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23367 BUILD_CXX!$BUILD_CXX$ac_delim
23368 CVSBUILD!$CVSBUILD$ac_delim
23369 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23370 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23371 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23374 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23377 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23378 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23382 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23383 JIT!$JIT$ac_delim
23384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23385 _ACEOF
23386
23387   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23388     break
23389   elif $ac_last_try; then
23390     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23392    { (exit 1); exit 1; }; }
23393   else
23394     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23395   fi
23396 done
23397
23398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23399 if test -n "$ac_eof"; then
23400   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23401   ac_eof=`expr $ac_eof + 1`
23402 fi
23403
23404 cat >>$CONFIG_STATUS <<_ACEOF
23405 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23407 _ACEOF
23408 sed '
23409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23410 s/^/s,@/; s/!/@,|#_!!_#|/
23411 :n
23412 t n
23413 s/'"$ac_delim"'$/,g/; t
23414 s/$/\\/; p
23415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23416 ' >>$CONFIG_STATUS <conf$$subs.sed
23417 rm -f conf$$subs.sed
23418 cat >>$CONFIG_STATUS <<_ACEOF
23419 CEOF$ac_eof
23420 _ACEOF
23421
23422
23423 ac_delim='%!_!# '
23424 for ac_last_try in false false false false false :; do
23425   cat >conf$$subs.sed <<_ACEOF
23426 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23427 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23428 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23429 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23430 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23431 ENABLE_PIC!$ENABLE_PIC$ac_delim
23432 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23433 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23434 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23435 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23436 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23437 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23438 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23439 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23440 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23441 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23442 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23443 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23444 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23445 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23446 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23447 NM!$NM$ac_delim
23448 ifGNUmake!$ifGNUmake$ac_delim
23449 LN_S!$LN_S$ac_delim
23450 CMP!$CMP$ac_delim
23451 CP!$CP$ac_delim
23452 DATE!$DATE$ac_delim
23453 FIND!$FIND$ac_delim
23454 MKDIR!$MKDIR$ac_delim
23455 MV!$MV$ac_delim
23456 RANLIB!$RANLIB$ac_delim
23457 AR!$AR$ac_delim
23458 RM!$RM$ac_delim
23459 SED!$SED$ac_delim
23460 TAR!$TAR$ac_delim
23461 BINPWD!$BINPWD$ac_delim
23462 GRAPHVIZ!$GRAPHVIZ$ac_delim
23463 DOT!$DOT$ac_delim
23464 FDP!$FDP$ac_delim
23465 NEATO!$NEATO$ac_delim
23466 TWOPI!$TWOPI$ac_delim
23467 CIRCO!$CIRCO$ac_delim
23468 GV!$GV$ac_delim
23469 DOTTY!$DOTTY$ac_delim
23470 XDOT_PY!$XDOT_PY$ac_delim
23471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473 INSTALL_DATA!$INSTALL_DATA$ac_delim
23474 BZIP2!$BZIP2$ac_delim
23475 CAT!$CAT$ac_delim
23476 DOXYGEN!$DOXYGEN$ac_delim
23477 GROFF!$GROFF$ac_delim
23478 GZIPBIN!$GZIPBIN$ac_delim
23479 PDFROFF!$PDFROFF$ac_delim
23480 ZIP!$ZIP$ac_delim
23481 OCAMLC!$OCAMLC$ac_delim
23482 OCAMLOPT!$OCAMLOPT$ac_delim
23483 OCAMLDEP!$OCAMLDEP$ac_delim
23484 OCAMLDOC!$OCAMLDOC$ac_delim
23485 GAS!$GAS$ac_delim
23486 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23487 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23488 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23489 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23490 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23491 LIBADD_DL!$LIBADD_DL$ac_delim
23492 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23493 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23494 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23495 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23496 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23497 PYTHON!$PYTHON$ac_delim
23498 USE_UDIS86!$USE_UDIS86$ac_delim
23499 USE_OPROFILE!$USE_OPROFILE$ac_delim
23500 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23501 XML2CONFIG!$XML2CONFIG$ac_delim
23502 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23503 LIBXML2_INC!$LIBXML2_INC$ac_delim
23504 CXXCPP!$CXXCPP$ac_delim
23505 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23506 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23507 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23508 MMAP_FILE!$MMAP_FILE$ac_delim
23509 SHLIBEXT!$SHLIBEXT$ac_delim
23510 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23511 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23512 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23513 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23514 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23515 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23516 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23517 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23518 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23519 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23520 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23521 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23522 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23523 _ACEOF
23524
23525   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23526     break
23527   elif $ac_last_try; then
23528     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23529 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23530    { (exit 1); exit 1; }; }
23531   else
23532     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23533   fi
23534 done
23535
23536 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23537 if test -n "$ac_eof"; then
23538   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23539   ac_eof=`expr $ac_eof + 1`
23540 fi
23541
23542 cat >>$CONFIG_STATUS <<_ACEOF
23543 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23545 _ACEOF
23546 sed '
23547 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23548 s/^/s,@/; s/!/@,|#_!!_#|/
23549 :n
23550 t n
23551 s/'"$ac_delim"'$/,g/; t
23552 s/$/\\/; p
23553 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23554 ' >>$CONFIG_STATUS <conf$$subs.sed
23555 rm -f conf$$subs.sed
23556 cat >>$CONFIG_STATUS <<_ACEOF
23557 CEOF$ac_eof
23558 _ACEOF
23559
23560
23561 ac_delim='%!_!# '
23562 for ac_last_try in false false false false false :; do
23563   cat >conf$$subs.sed <<_ACEOF
23564 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23565 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23566 RPATH!$RPATH$ac_delim
23567 RDYNAMIC!$RDYNAMIC$ac_delim
23568 program_prefix!$program_prefix$ac_delim
23569 LIBOBJS!$LIBOBJS$ac_delim
23570 LTLIBOBJS!$LTLIBOBJS$ac_delim
23571 _ACEOF
23572
23573   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23574     break
23575   elif $ac_last_try; then
23576     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23577 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23578    { (exit 1); exit 1; }; }
23579   else
23580     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23581   fi
23582 done
23583
23584 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23585 if test -n "$ac_eof"; then
23586   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23587   ac_eof=`expr $ac_eof + 1`
23588 fi
23589
23590 cat >>$CONFIG_STATUS <<_ACEOF
23591 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23593 _ACEOF
23594 sed '
23595 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23596 s/^/s,@/; s/!/@,|#_!!_#|/
23597 :n
23598 t n
23599 s/'"$ac_delim"'$/,g/; t
23600 s/$/\\/; p
23601 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23602 ' >>$CONFIG_STATUS <conf$$subs.sed
23603 rm -f conf$$subs.sed
23604 cat >>$CONFIG_STATUS <<_ACEOF
23605 :end
23606 s/|#_!!_#|//g
23607 CEOF$ac_eof
23608 _ACEOF
23609
23610
23611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23613 # trailing colons and then remove the whole line if VPATH becomes empty
23614 # (actually we leave an empty line to preserve line numbers).
23615 if test "x$srcdir" = x.; then
23616   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23617 s/:*\$(srcdir):*/:/
23618 s/:*\${srcdir}:*/:/
23619 s/:*@srcdir@:*/:/
23620 s/^\([^=]*=[     ]*\):*/\1/
23621 s/:*$//
23622 s/^[^=]*=[       ]*$//
23623 }'
23624 fi
23625
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 fi # test -n "$CONFIG_FILES"
23628
23629
23630 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23631 do
23632   case $ac_tag in
23633   :[FHLC]) ac_mode=$ac_tag; continue;;
23634   esac
23635   case $ac_mode$ac_tag in
23636   :[FHL]*:*);;
23637   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23638 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23639    { (exit 1); exit 1; }; };;
23640   :[FH]-) ac_tag=-:-;;
23641   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23642   esac
23643   ac_save_IFS=$IFS
23644   IFS=:
23645   set x $ac_tag
23646   IFS=$ac_save_IFS
23647   shift
23648   ac_file=$1
23649   shift
23650
23651   case $ac_mode in
23652   :L) ac_source=$1;;
23653   :[FH])
23654     ac_file_inputs=
23655     for ac_f
23656     do
23657       case $ac_f in
23658       -) ac_f="$tmp/stdin";;
23659       *) # Look for the file first in the build tree, then in the source tree
23660          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23661          # because $ac_f cannot contain `:'.
23662          test -f "$ac_f" ||
23663            case $ac_f in
23664            [\\/$]*) false;;
23665            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23666            esac ||
23667            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23668 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23669    { (exit 1); exit 1; }; };;
23670       esac
23671       ac_file_inputs="$ac_file_inputs $ac_f"
23672     done
23673
23674     # Let's still pretend it is `configure' which instantiates (i.e., don't
23675     # use $as_me), people would be surprised to read:
23676     #    /* config.h.  Generated by config.status.  */
23677     configure_input="Generated from "`IFS=:
23678           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23679     if test x"$ac_file" != x-; then
23680       configure_input="$ac_file.  $configure_input"
23681       { echo "$as_me:$LINENO: creating $ac_file" >&5
23682 echo "$as_me: creating $ac_file" >&6;}
23683     fi
23684
23685     case $ac_tag in
23686     *:-:* | *:-) cat >"$tmp/stdin";;
23687     esac
23688     ;;
23689   esac
23690
23691   ac_dir=`$as_dirname -- "$ac_file" ||
23692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23693          X"$ac_file" : 'X\(//\)[^/]' \| \
23694          X"$ac_file" : 'X\(//\)$' \| \
23695          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23696 echo X"$ac_file" |
23697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23698             s//\1/
23699             q
23700           }
23701           /^X\(\/\/\)[^/].*/{
23702             s//\1/
23703             q
23704           }
23705           /^X\(\/\/\)$/{
23706             s//\1/
23707             q
23708           }
23709           /^X\(\/\).*/{
23710             s//\1/
23711             q
23712           }
23713           s/.*/./; q'`
23714   { as_dir="$ac_dir"
23715   case $as_dir in #(
23716   -*) as_dir=./$as_dir;;
23717   esac
23718   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23719     as_dirs=
23720     while :; do
23721       case $as_dir in #(
23722       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23723       *) as_qdir=$as_dir;;
23724       esac
23725       as_dirs="'$as_qdir' $as_dirs"
23726       as_dir=`$as_dirname -- "$as_dir" ||
23727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23728          X"$as_dir" : 'X\(//\)[^/]' \| \
23729          X"$as_dir" : 'X\(//\)$' \| \
23730          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23731 echo X"$as_dir" |
23732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23733             s//\1/
23734             q
23735           }
23736           /^X\(\/\/\)[^/].*/{
23737             s//\1/
23738             q
23739           }
23740           /^X\(\/\/\)$/{
23741             s//\1/
23742             q
23743           }
23744           /^X\(\/\).*/{
23745             s//\1/
23746             q
23747           }
23748           s/.*/./; q'`
23749       test -d "$as_dir" && break
23750     done
23751     test -z "$as_dirs" || eval "mkdir $as_dirs"
23752   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23753 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23754    { (exit 1); exit 1; }; }; }
23755   ac_builddir=.
23756
23757 case "$ac_dir" in
23758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759 *)
23760   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23761   # A ".." for each directory in $ac_dir_suffix.
23762   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23763   case $ac_top_builddir_sub in
23764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23766   esac ;;
23767 esac
23768 ac_abs_top_builddir=$ac_pwd
23769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23770 # for backward compatibility:
23771 ac_top_builddir=$ac_top_build_prefix
23772
23773 case $srcdir in
23774   .)  # We are building in place.
23775     ac_srcdir=.
23776     ac_top_srcdir=$ac_top_builddir_sub
23777     ac_abs_top_srcdir=$ac_pwd ;;
23778   [\\/]* | ?:[\\/]* )  # Absolute name.
23779     ac_srcdir=$srcdir$ac_dir_suffix;
23780     ac_top_srcdir=$srcdir
23781     ac_abs_top_srcdir=$srcdir ;;
23782   *) # Relative name.
23783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23784     ac_top_srcdir=$ac_top_build_prefix$srcdir
23785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23786 esac
23787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23788
23789
23790   case $ac_mode in
23791   :F)
23792   #
23793   # CONFIG_FILE
23794   #
23795
23796   case $INSTALL in
23797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23799   esac
23800 _ACEOF
23801
23802 cat >>$CONFIG_STATUS <<\_ACEOF
23803 # If the template does not know about datarootdir, expand it.
23804 # FIXME: This hack should be removed a few years after 2.60.
23805 ac_datarootdir_hack=; ac_datarootdir_seen=
23806
23807 case `sed -n '/datarootdir/ {
23808   p
23809   q
23810 }
23811 /@datadir@/p
23812 /@docdir@/p
23813 /@infodir@/p
23814 /@localedir@/p
23815 /@mandir@/p
23816 ' $ac_file_inputs` in
23817 *datarootdir*) ac_datarootdir_seen=yes;;
23818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23819   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23820 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23821 _ACEOF
23822 cat >>$CONFIG_STATUS <<_ACEOF
23823   ac_datarootdir_hack='
23824   s&@datadir@&$datadir&g
23825   s&@docdir@&$docdir&g
23826   s&@infodir@&$infodir&g
23827   s&@localedir@&$localedir&g
23828   s&@mandir@&$mandir&g
23829     s&\\\${datarootdir}&$datarootdir&g' ;;
23830 esac
23831 _ACEOF
23832
23833 # Neutralize VPATH when `$srcdir' = `.'.
23834 # Shell code in configure.ac might set extrasub.
23835 # FIXME: do we really want to maintain this feature?
23836 cat >>$CONFIG_STATUS <<_ACEOF
23837   sed "$ac_vpsub
23838 $extrasub
23839 _ACEOF
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841 :t
23842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23843 s&@configure_input@&$configure_input&;t t
23844 s&@top_builddir@&$ac_top_builddir_sub&;t t
23845 s&@srcdir@&$ac_srcdir&;t t
23846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23847 s&@top_srcdir@&$ac_top_srcdir&;t t
23848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23849 s&@builddir@&$ac_builddir&;t t
23850 s&@abs_builddir@&$ac_abs_builddir&;t t
23851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23852 s&@INSTALL@&$ac_INSTALL&;t t
23853 $ac_datarootdir_hack
23854 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23855
23856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860 which seems to be undefined.  Please make sure it is defined." >&5
23861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined.  Please make sure it is defined." >&2;}
23863
23864   rm -f "$tmp/stdin"
23865   case $ac_file in
23866   -) cat "$tmp/out"; rm -f "$tmp/out";;
23867   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23868   esac
23869  ;;
23870   :H)
23871   #
23872   # CONFIG_HEADER
23873   #
23874 _ACEOF
23875
23876 # Transform confdefs.h into a sed script `conftest.defines', that
23877 # substitutes the proper values into config.h.in to produce config.h.
23878 rm -f conftest.defines conftest.tail
23879 # First, append a space to every undef/define line, to ease matching.
23880 echo 's/$/ /' >conftest.defines
23881 # Then, protect against being on the right side of a sed subst, or in
23882 # an unquoted here document, in config.status.  If some macros were
23883 # called several times there might be several #defines for the same
23884 # symbol, which is useless.  But do not sort them, since the last
23885 # AC_DEFINE must be honored.
23886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23889 # PARAMS is the parameter list in the macro definition--in most cases, it's
23890 # just an empty string.
23891 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23892 ac_dB='\\)[      (].*,\\1define\\2'
23893 ac_dC=' '
23894 ac_dD=' ,'
23895
23896 uniq confdefs.h |
23897   sed -n '
23898         t rset
23899         :rset
23900         s/^[     ]*#[    ]*define[       ][      ]*//
23901         t ok
23902         d
23903         :ok
23904         s/[\\&,]/\\&/g
23905         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907   ' >>conftest.defines
23908
23909 # Remove the space that was appended to ease matching.
23910 # Then replace #undef with comments.  This is necessary, for
23911 # example, in the case of _POSIX_SOURCE, which is predefined and required
23912 # on some systems where configure will not decide to define it.
23913 # (The regexp can be short, since the line contains either #define or #undef.)
23914 echo 's/ $//
23915 s,^[     #]*u.*,/* & */,' >>conftest.defines
23916
23917 # Break up conftest.defines:
23918 ac_max_sed_lines=50
23919
23920 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923 # et cetera.
23924 ac_in='$ac_file_inputs'
23925 ac_out='"$tmp/out1"'
23926 ac_nxt='"$tmp/out2"'
23927
23928 while :
23929 do
23930   # Write a here document:
23931     cat >>$CONFIG_STATUS <<_ACEOF
23932     # First, check the format of the line:
23933     cat >"\$tmp/defines.sed" <<\\CEOF
23934 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23935 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23936 b
23937 :def
23938 _ACEOF
23939   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940   echo 'CEOF
23941     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944   grep . conftest.tail >/dev/null || break
23945   rm -f conftest.defines
23946   mv conftest.tail conftest.defines
23947 done
23948 rm -f conftest.defines conftest.tail
23949
23950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952   if test x"$ac_file" != x-; then
23953     echo "/* $configure_input  */" >"$tmp/config.h"
23954     cat "$ac_result" >>"$tmp/config.h"
23955     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957 echo "$as_me: $ac_file is unchanged" >&6;}
23958     else
23959       rm -f $ac_file
23960       mv "$tmp/config.h" $ac_file
23961     fi
23962   else
23963     echo "/* $configure_input  */"
23964     cat "$ac_result"
23965   fi
23966   rm -f "$tmp/out12"
23967  ;;
23968
23969   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23970 echo "$as_me: executing $ac_file commands" >&6;}
23971  ;;
23972   esac
23973
23974
23975   case $ac_file$ac_mode in
23976     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23977    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23978     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23979    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23980     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23982     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23984     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23986     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23988     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23990     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23992     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23994     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23996     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23998     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24000     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24002
24003   esac
24004 done # for ac_tag
24005
24006
24007 { (exit 0); exit 0; }
24008 _ACEOF
24009 chmod +x $CONFIG_STATUS
24010 ac_clean_files=$ac_clean_files_save
24011
24012
24013 # configure is writing to config.log, and then calls config.status.
24014 # config.status does its own redirection, appending to config.log.
24015 # Unfortunately, on DOS this fails, as config.log is still kept open
24016 # by configure, so config.status won't be able to write to it; its
24017 # output is simply discarded.  So we exec the FD to /dev/null,
24018 # effectively closing config.log, so it can be properly (re)opened and
24019 # appended to by config.status.  When coming back to configure, we
24020 # need to make the FD available again.
24021 if test "$no_create" != yes; then
24022   ac_cs_success=:
24023   ac_config_status_args=
24024   test "$silent" = yes &&
24025     ac_config_status_args="$ac_config_status_args --quiet"
24026   exec 5>/dev/null
24027   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24028   exec 5>>config.log
24029   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24030   # would make configure fail if this is the last instruction.
24031   $ac_cs_success || { (exit 1); exit 1; }
24032 fi
24033
24034 #
24035 # CONFIG_SUBDIRS section.
24036 #
24037 if test "$no_recursion" != yes; then
24038
24039   # Remove --cache-file and --srcdir arguments so they do not pile up.
24040   ac_sub_configure_args=
24041   ac_prev=
24042   eval "set x $ac_configure_args"
24043   shift
24044   for ac_arg
24045   do
24046     if test -n "$ac_prev"; then
24047       ac_prev=
24048       continue
24049     fi
24050     case $ac_arg in
24051     -cache-file | --cache-file | --cache-fil | --cache-fi \
24052     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24053       ac_prev=cache_file ;;
24054     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24055     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24056     | --c=*)
24057       ;;
24058     --config-cache | -C)
24059       ;;
24060     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24061       ac_prev=srcdir ;;
24062     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24063       ;;
24064     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24065       ac_prev=prefix ;;
24066     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24067       ;;
24068     *)
24069       case $ac_arg in
24070       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24071       esac
24072       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24073     esac
24074   done
24075
24076   # Always prepend --prefix to ensure using the same prefix
24077   # in subdir configurations.
24078   ac_arg="--prefix=$prefix"
24079   case $ac_arg in
24080   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24081   esac
24082   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24083
24084   ac_popdir=`pwd`
24085   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24086
24087     # Do not complain, so a configure script can configure whichever
24088     # parts of a large source tree are present.
24089     test -d "$srcdir/$ac_dir" || continue
24090
24091     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24092     echo "$as_me:$LINENO: $ac_msg" >&5
24093     echo "$ac_msg" >&6
24094     { as_dir="$ac_dir"
24095   case $as_dir in #(
24096   -*) as_dir=./$as_dir;;
24097   esac
24098   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24099     as_dirs=
24100     while :; do
24101       case $as_dir in #(
24102       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24103       *) as_qdir=$as_dir;;
24104       esac
24105       as_dirs="'$as_qdir' $as_dirs"
24106       as_dir=`$as_dirname -- "$as_dir" ||
24107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108          X"$as_dir" : 'X\(//\)[^/]' \| \
24109          X"$as_dir" : 'X\(//\)$' \| \
24110          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24111 echo X"$as_dir" |
24112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24113             s//\1/
24114             q
24115           }
24116           /^X\(\/\/\)[^/].*/{
24117             s//\1/
24118             q
24119           }
24120           /^X\(\/\/\)$/{
24121             s//\1/
24122             q
24123           }
24124           /^X\(\/\).*/{
24125             s//\1/
24126             q
24127           }
24128           s/.*/./; q'`
24129       test -d "$as_dir" && break
24130     done
24131     test -z "$as_dirs" || eval "mkdir $as_dirs"
24132   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24133 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24134    { (exit 1); exit 1; }; }; }
24135     ac_builddir=.
24136
24137 case "$ac_dir" in
24138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24139 *)
24140   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141   # A ".." for each directory in $ac_dir_suffix.
24142   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24143   case $ac_top_builddir_sub in
24144   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24146   esac ;;
24147 esac
24148 ac_abs_top_builddir=$ac_pwd
24149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24150 # for backward compatibility:
24151 ac_top_builddir=$ac_top_build_prefix
24152
24153 case $srcdir in
24154   .)  # We are building in place.
24155     ac_srcdir=.
24156     ac_top_srcdir=$ac_top_builddir_sub
24157     ac_abs_top_srcdir=$ac_pwd ;;
24158   [\\/]* | ?:[\\/]* )  # Absolute name.
24159     ac_srcdir=$srcdir$ac_dir_suffix;
24160     ac_top_srcdir=$srcdir
24161     ac_abs_top_srcdir=$srcdir ;;
24162   *) # Relative name.
24163     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24164     ac_top_srcdir=$ac_top_build_prefix$srcdir
24165     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24166 esac
24167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24168
24169
24170     cd "$ac_dir"
24171
24172     # Check for guested configure; otherwise get Cygnus style configure.
24173     if test -f "$ac_srcdir/configure.gnu"; then
24174       ac_sub_configure=$ac_srcdir/configure.gnu
24175     elif test -f "$ac_srcdir/configure"; then
24176       ac_sub_configure=$ac_srcdir/configure
24177     elif test -f "$ac_srcdir/configure.in"; then
24178       # This should be Cygnus configure.
24179       ac_sub_configure=$ac_aux_dir/configure
24180     else
24181       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24183       ac_sub_configure=
24184     fi
24185
24186     # The recursion is here.
24187     if test -n "$ac_sub_configure"; then
24188       # Make the cache file name correct relative to the subdirectory.
24189       case $cache_file in
24190       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24191       *) # Relative name.
24192         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24193       esac
24194
24195       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24196 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24197       # The eval makes quoting arguments work.
24198       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24199            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24200         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24201 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24202    { (exit 1); exit 1; }; }
24203     fi
24204
24205     cd "$ac_popdir"
24206   done
24207 fi
24208