Add AArch64 as an experimental target.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 ENABLE_PIC
707 ENABLE_SHARED
708 ENABLE_EMBED_STDCXX
709 ENABLE_TIMESTAMPS
710 ENABLE_BACKTRACES
711 TARGETS_TO_BUILD
712 LLVM_ENUM_TARGETS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
716 OPTIMIZE_OPTION
717 EXTRA_OPTIONS
718 EXTRA_LD_OPTIONS
719 CLANG_SRC_ROOT
720 BINUTILS_INCDIR
721 INTERNAL_PREFIX
722 NM
723 ifGNUmake
724 LN_S
725 CMP
726 CP
727 DATE
728 FIND
729 MKDIR
730 MV
731 RANLIB
732 AR
733 RM
734 SED
735 TAR
736 BINPWD
737 GRAPHVIZ
738 DOT
739 FDP
740 NEATO
741 TWOPI
742 CIRCO
743 GV
744 DOTTY
745 XDOT_PY
746 INSTALL_PROGRAM
747 INSTALL_SCRIPT
748 INSTALL_DATA
749 BZIP2
750 CAT
751 DOXYGEN
752 GROFF
753 GZIPBIN
754 PDFROFF
755 ZIP
756 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 HAVE_PTHREAD
780 HUGE_VAL_SANITY
781 MMAP_FILE
782 SHLIBEXT
783 SHLIBPATH_VAR
784 LLVM_PREFIX
785 LLVM_BINDIR
786 LLVM_LIBDIR
787 LLVM_DATADIR
788 LLVM_DOCSDIR
789 LLVM_ETCDIR
790 LLVM_INCLUDEDIR
791 LLVM_INFODIR
792 LLVM_MANDIR
793 LLVM_CONFIGTIME
794 BINDINGS_TO_BUILD
795 ALL_BINDINGS
796 OCAML_LIBDIR
797 ENABLE_VISIBILITY_INLINES_HIDDEN
798 RPATH
799 RDYNAMIC
800 program_prefix
801 LIBOBJS
802 LTLIBOBJS'
803 ac_subst_files=''
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 CPPFLAGS
811 CXX
812 CXXFLAGS
813 CCC
814 CPP'
815 ac_subdirs_all='projects/llvm-gcc
816 projects/test-suite
817 projects/llvm-test
818 projects/poolalloc
819 projects/llvm-poolalloc
820 projects/sample
821 projects/privbracket
822 projects/llvm-stacker
823 projects/llvm-reopt
824 projects/llvm-java
825 projects/llvm-tv
826 projects/safecode
827 projects/llvm-kernel
828 tools/polly'
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935    { (exit 1); exit 1; }; }
936     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937     eval enable_$ac_feature=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954    { (exit 1); exit 1; }; }
955     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956     eval enable_$ac_feature=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package| sed 's/-/_/g'`
1153     eval with_$ac_package=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid package name: $ac_package" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_package=`echo $ac_package | sed 's/-/_/g'`
1162     eval with_$ac_package=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184    { (exit 1); exit 1; }; }
1185     ;;
1186
1187   *=*)
1188     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192    { (exit 1); exit 1; }; }
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   { echo "$as_me: error: missing argument to $ac_option" >&2
1210    { (exit 1); exit 1; }; }
1211 fi
1212
1213 # Be sure to have absolute directory names.
1214 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215                 datadir sysconfdir sharedstatedir localstatedir includedir \
1216                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217                 libdir localedir mandir
1218 do
1219   eval ac_val=\$$ac_var
1220   case $ac_val in
1221     [\\/$]* | ?:[\\/]* )  continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223   esac
1224   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225    { (exit 1); exit 1; }; }
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   { echo "$as_me: error: Working directory cannot be determined" >&2
1256    { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   { echo "$as_me: error: pwd does not report name of working directory" >&2
1259    { (exit 1); exit 1; }; }
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$0" : 'X\(//\)[^/]' \| \
1269          X"$0" : 'X\(//\)$' \| \
1270          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 echo X"$0" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299    { (exit 1); exit 1; }; }
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304    { (exit 1); exit 1; }; }
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR           user executables [EPREFIX/bin]
1365   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR       program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR           object code libraries [EPREFIX/lib]
1371   --includedir=DIR       C header files [PREFIX/include]
1372   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR          info documentation [DATAROOTDIR/info]
1376   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR           man documentation [DATAROOTDIR/man]
1378   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1379   --htmldir=DIR          html documentation [DOCDIR]
1380   --dvidir=DIR           dvi documentation [DOCDIR]
1381   --pdfdir=DIR           pdf documentation [DOCDIR]
1382   --psdir=DIR            ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390   --target=TARGET   configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395   case $ac_init_help in
1396      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1397    esac
1398   cat <<\_ACEOF
1399
1400 Optional Features:
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --enable-polly          Use polly if available (default is YES)
1404   --enable-libcpp         Use libc++ if available (default is NO)
1405   --enable-cxx11          Use c++11 if available (default is NO)
1406   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1407   --enable-clang-static-analyzer
1408                           Enable building of clang Static Analyzer (default is
1409                           YES)
1410   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411   --enable-optimized      Compile with optimizations enabled (default is NO)
1412   --enable-profiling      Compile with profiling enabled (default is NO)
1413   --enable-assertions     Compile with assertion checks enabled (default is
1414                           YES)
1415   --enable-werror         Compile with -Werror enabled (default is NO)
1416   --enable-expensive-checks
1417                           Compile with expensive debug checks enabled (default
1418                           is NO)
1419   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1420                           NO)
1421   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1422                           optimization is on and YES if it's off)
1423   --enable-keep-symbols   Do not strip installed executables)
1424   --enable-jit            Enable Just In Time Compiling (default is YES)
1425   --enable-docs           Build documents (default is YES)
1426   --enable-doxygen        Build doxygen documentation (default is NO)
1427   --enable-threads        Use threads if available (default is YES)
1428   --enable-pthreads       Use pthreads if available (default is YES)
1429   --enable-pic            Build LLVM with Position Independent Code (default
1430                           is YES)
1431   --enable-shared         Build a shared library and link tools against it
1432                           (default is NO)
1433   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1434                           Win32 DLL (default is NO)
1435   --enable-timestamps     Enable embedding timestamp information in build
1436                           (default is YES)
1437   --enable-backtraces     Enable embedding backtraces on crash (default is
1438                           YES)
1439   --enable-targets        Build specific host targets: all or
1440                           target1,target2,... Valid targets are: host, x86,
1441                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1442                           xcore, msp430, nvptx, and cpp (default=all)
1443   --enable-experimental-targets
1444                           Build experimental host targets: disable or
1445                           target1,target2,... (default=disable)
1446   --enable-bindings       Build specific language bindings:
1447                           all,auto,none,{binding-name} (default=auto)
1448   --enable-libffi         Check for the presence of libffi (default is NO)
1449   --enable-ltdl-install   install libltdl
1450
1451 Optional Packages:
1452   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454   --with-optimize-option  Select the compiler options to use for optimized
1455                           builds
1456   --with-extra-options    Specify additional options to compile LLVM with
1457   --with-extra-ld-options Specify additional options to link LLVM with
1458   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1459                           is stdlib)
1460   --with-clang-srcdir     Directory to the out-of-tree Clang source
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-gcc-toolchain    Directory where gcc is installed.
1467   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1468   --with-binutils-include Specify path to binutils/include/ containing
1469                           plugin-api.h file for gold plugin.
1470   --with-bug-report-url   Specify the URL where bug reports should be
1471                           submitted (default=http://llvm.org/bugs/)
1472   --with-internal-prefix  Installation directory for internal files
1473   --with-python           path to python
1474   --with-udis86=<path>    Use udis86 external x86 disassembler library
1475   --with-oprofile=<prefix>
1476                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1477   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1478
1479
1480 Some influential environment variables:
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489   CPP         C preprocessor
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <http://llvm.org/bugs/>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500   # If there are subdirs, report their specific --help.
1501   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502     test -d "$ac_dir" || continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 LLVM configure 3.3svn
1556 generated by GNU Autoconf 2.60
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562
1563 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1564 _ACEOF
1565   exit
1566 fi
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1570
1571 It was created by LLVM $as_me 3.3svn, which was
1572 generated by GNU Autoconf 2.60.  Invocation command line was
1573
1574   $ $0 $@
1575
1576 _ACEOF
1577 exec 5>>config.log
1578 {
1579 cat <<_ASUNAME
1580 ## --------- ##
1581 ## Platform. ##
1582 ## --------- ##
1583
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1592
1593 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1594 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1597 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1598 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1599 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1600
1601 _ASUNAME
1602
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   echo "PATH: $as_dir"
1609 done
1610 IFS=$as_save_IFS
1611
1612 } >&5
1613
1614 cat >&5 <<_ACEOF
1615
1616
1617 ## ----------- ##
1618 ## Core tests. ##
1619 ## ----------- ##
1620
1621 _ACEOF
1622
1623
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_configure_args=
1630 ac_configure_args0=
1631 ac_configure_args1=
1632 ac_must_keep_next=false
1633 for ac_pass in 1 2
1634 do
1635   for ac_arg
1636   do
1637     case $ac_arg in
1638     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640     | -silent | --silent | --silen | --sile | --sil)
1641       continue ;;
1642     *\'*)
1643       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644     esac
1645     case $ac_pass in
1646     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647     2)
1648       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649       if test $ac_must_keep_next = true; then
1650         ac_must_keep_next=false # Got value, back to normal.
1651       else
1652         case $ac_arg in
1653           *=* | --config-cache | -C | -disable-* | --disable-* \
1654           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656           | -with-* | --with-* | -without-* | --without-* | --x)
1657             case "$ac_configure_args0 " in
1658               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659             esac
1660             ;;
1661           -* ) ac_must_keep_next=true ;;
1662         esac
1663       fi
1664       ac_configure_args="$ac_configure_args '$ac_arg'"
1665       ;;
1666     esac
1667   done
1668 done
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log.  We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678   # Save into config.log some information that might help in debugging.
1679   {
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1686 _ASBOX
1687     echo
1688     # The following way of writing the cache mishandles newlines in values,
1689 (
1690   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691     eval ac_val=\$$ac_var
1692     case $ac_val in #(
1693     *${as_nl}*)
1694       case $ac_var in #(
1695       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697       esac
1698       case $ac_var in #(
1699       _ | IFS | as_nl) ;; #(
1700       *) $as_unset $ac_var ;;
1701       esac ;;
1702     esac
1703   done
1704   (set) 2>&1 |
1705     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706     *${as_nl}ac_space=\ *)
1707       sed -n \
1708         "s/'\''/'\''\\\\'\'''\''/g;
1709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710       ;; #(
1711     *)
1712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713       ;;
1714     esac |
1715     sort
1716 )
1717     echo
1718
1719     cat <<\_ASBOX
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1723 _ASBOX
1724     echo
1725     for ac_var in $ac_subst_vars
1726     do
1727       eval ac_val=\$$ac_var
1728       case $ac_val in
1729       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730       esac
1731       echo "$ac_var='\''$ac_val'\''"
1732     done | sort
1733     echo
1734
1735     if test -n "$ac_subst_files"; then
1736       cat <<\_ASBOX
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1740 _ASBOX
1741       echo
1742       for ac_var in $ac_subst_files
1743       do
1744         eval ac_val=\$$ac_var
1745         case $ac_val in
1746         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747         esac
1748         echo "$ac_var='\''$ac_val'\''"
1749       done | sort
1750       echo
1751     fi
1752
1753     if test -s confdefs.h; then
1754       cat <<\_ASBOX
1755 ## ----------- ##
1756 ## confdefs.h. ##
1757 ## ----------- ##
1758 _ASBOX
1759       echo
1760       cat confdefs.h
1761       echo
1762     fi
1763     test "$ac_signal" != 0 &&
1764       echo "$as_me: caught signal $ac_signal"
1765     echo "$as_me: exit $exit_status"
1766   } >&5
1767   rm -f core *.core core.conftest.* &&
1768     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769     exit $exit_status
1770 ' 0
1771 for ac_signal in 1 2 13 15; do
1772   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 done
1774 ac_signal=0
1775
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1778
1779 # Predefined preprocessor variables.
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809   set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 else
1813   set x "$ac_default_prefix/share/config.site" \
1814         "$ac_default_prefix/etc/config.site"
1815 fi
1816 shift
1817 for ac_site_file
1818 do
1819   if test -r "$ac_site_file"; then
1820     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822     sed 's/^/| /' "$ac_site_file" >&5
1823     . "$ac_site_file"
1824   fi
1825 done
1826
1827 if test -r "$cache_file"; then
1828   # Some versions of bash will fail to source /dev/null (special
1829   # files actually), so we avoid doing that.
1830   if test -f "$cache_file"; then
1831     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1833     case $cache_file in
1834       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835       *)                      . "./$cache_file";;
1836     esac
1837   fi
1838 else
1839   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1841   >$cache_file
1842 fi
1843
1844 # Check that the precious variables saved in the cache have kept the same
1845 # value.
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849   eval ac_new_set=\$ac_env_${ac_var}_set
1850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851   eval ac_new_val=\$ac_env_${ac_var}_value
1852   case $ac_old_set,$ac_new_set in
1853     set,)
1854       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,set)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,);;
1862     *)
1863       if test "x$ac_old_val" != "x$ac_new_val"; then
1864         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1867 echo "$as_me:   former value:  $ac_old_val" >&2;}
1868         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1869 echo "$as_me:   current value: $ac_new_val" >&2;}
1870         ac_cache_corrupted=:
1871       fi;;
1872   esac
1873   # Pass precious variables to config.status.
1874   if test "$ac_new_set" = set; then
1875     case $ac_new_val in
1876     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877     *) ac_arg=$ac_var=$ac_new_val ;;
1878     esac
1879     case " $ac_configure_args " in
1880       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1881       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882     esac
1883   fi
1884 done
1885 if $ac_cache_corrupted; then
1886   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924
1925 cat >>confdefs.h <<\_ACEOF
1926 #define LLVM_VERSION_MAJOR 3
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MINOR 3
1932 _ACEOF
1933
1934
1935 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1936
1937
1938
1939
1940
1941
1942
1943 ac_aux_dir=
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974
1975 if test ${srcdir} != "." ; then
1976   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1977     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1978 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1979    { (exit 1); exit 1; }; }
1980   fi
1981 fi
1982
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988 if test -n "$ac_tool_prefix"; then
1989   for ac_prog in clang llvm-gcc gcc
1990   do
1991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$CC"; then
1999   ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2008     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014 IFS=$as_save_IFS
2015
2016 fi
2017 fi
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020   { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2022 else
2023   { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2025 fi
2026
2027
2028     test -n "$CC" && break
2029   done
2030 fi
2031 if test -z "$CC"; then
2032   ac_ct_CC=$CC
2033   for ac_prog in clang llvm-gcc gcc
2034 do
2035   # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$ac_ct_CC"; then
2043   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     ac_cv_prog_ac_ct_CC="$ac_prog"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6; }
2066 else
2067   { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2069 fi
2070
2071
2072   test -n "$ac_ct_CC" && break
2073 done
2074
2075   if test "x$ac_ct_CC" = x; then
2076     CC=""
2077   else
2078     case $cross_compiling:$ac_tool_warned in
2079 yes:)
2080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet.  If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&5
2083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet.  If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2086 ac_tool_warned=yes ;;
2087 esac
2088     CC=$ac_ct_CC
2089   fi
2090 fi
2091
2092
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO: checking for C compiler version" >&5
2101 ac_compiler=`set X $ac_compile; echo $2`
2102 { (ac_try="$ac_compiler --version >&5"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108   (eval "$ac_compiler --version >&5") 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112 { (ac_try="$ac_compiler -v >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler -v >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -V >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -V >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2154 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 #
2157 # List of possible output files, starting from the most likely.
2158 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2159 # only as a last resort.  b.out is created by i960 compilers.
2160 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2161 #
2162 # The IRIX 6 linker writes into existing files which may not be
2163 # executable, retaining their permissions.  Remove them first so a
2164 # subsequent execution test works.
2165 ac_rmfiles=
2166 for ac_file in $ac_files
2167 do
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2171   esac
2172 done
2173 rm -f $ac_rmfiles
2174
2175 if { (ac_try="$ac_link_default"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181   (eval "$ac_link_default") 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; then
2185   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2187 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2188 # so that the user can short-circuit this test for compilers unknown to
2189 # Autoconf.
2190 for ac_file in $ac_files
2191 do
2192   test -f "$ac_file" || continue
2193   case $ac_file in
2194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2195         ;;
2196     [ab].out )
2197         # We found the default executable, but exeext='' is most
2198         # certainly right.
2199         break;;
2200     *.* )
2201         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2202         then :; else
2203            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204         fi
2205         # We set ac_cv_exeext here because the later test for it is not
2206         # safe: cross compilers may not add the suffix if given an `-o'
2207         # argument, so we may need to know it at that point already.
2208         # Even if this section looks crufty: it has the advantage of
2209         # actually working.
2210         break;;
2211     * )
2212         break;;
2213   esac
2214 done
2215 test "$ac_cv_exeext" = no && ac_cv_exeext=
2216
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225    { (exit 77); exit 77; }; }
2226 fi
2227
2228 ac_exeext=$ac_cv_exeext
2229 { echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6; }
2231
2232 # Check that the compiler produces executables we can run.  If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239   if { ac_try='./$ac_file'
2240   { (case "(($ac_try" in
2241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242   *) ac_try_echo=$ac_try;;
2243 esac
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245   (eval "$ac_try") 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; }; then
2249     cross_compiling=no
2250   else
2251     if test "$cross_compiling" = maybe; then
2252         cross_compiling=yes
2253     else
2254         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260    { (exit 1); exit 1; }; }
2261     fi
2262   fi
2263 fi
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run.  If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2275
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2279 case "(($ac_try" in
2280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281   *) ac_try_echo=$ac_try;;
2282 esac
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284   (eval "$ac_link") 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; then
2288   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 # `rm'.
2292 for ac_file in conftest.exe conftest conftest.*; do
2293   test -f "$ac_file" || continue
2294   case $ac_file in
2295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2296     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297           break;;
2298     * ) break;;
2299   esac
2300 done
2301 else
2302   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327
2328 int
2329 main ()
2330 {
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try="$ac_compile"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_compile") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   for ac_file in conftest.o conftest.obj conftest.*; do
2348   test -f "$ac_file" || continue;
2349   case $ac_file in
2350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352        break;;
2353   esac
2354 done
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363    { (exit 1); exit 1; }; }
2364 fi
2365
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367 fi
2368 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383
2384 int
2385 main ()
2386 {
2387 #ifndef __GNUC__
2388        choke me
2389 #endif
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_compile") 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410   { (case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415   (eval "$ac_try") 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; } &&
2419          { ac_try='test -s conftest.$ac_objext'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; }; then
2429   ac_compiler_gnu=yes
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434         ac_compiler_gnu=no
2435 fi
2436
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2439
2440 fi
2441 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2443 GCC=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2446 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_cc_g+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   ac_save_c_werror_flag=$ac_c_werror_flag
2452    ac_c_werror_flag=yes
2453    ac_cv_prog_cc_g=no
2454    CFLAGS="-g"
2455    cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465
2466   ;
2467   return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (ac_try="$ac_compile"
2472 case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_compile") 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2485   { (case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_try") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; } &&
2494          { ac_try='test -s conftest.$ac_objext'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; }; then
2504   ac_cv_prog_cc_g=yes
2505 else
2506   echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509         CFLAGS=""
2510       cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (ac_try="$ac_compile"
2527 case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_compile") 2>conftest.er1
2533   ac_status=$?
2534   grep -v '^ *+' conftest.er1 >conftest.err
2535   rm -f conftest.er1
2536   cat conftest.err >&5
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2540   { (case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest.$ac_objext'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   :
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564         ac_c_werror_flag=$ac_save_c_werror_flag
2565          CFLAGS="-g"
2566          cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 int
2574 main ()
2575 {
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2583 case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_compile") 2>conftest.er1
2589   ac_status=$?
2590   grep -v '^ *+' conftest.er1 >conftest.err
2591   rm -f conftest.er1
2592   cat conftest.err >&5
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } &&
2595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2596   { (case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601   (eval "$ac_try") 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   ac_cv_prog_cc_g=yes
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2619
2620
2621 fi
2622
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 fi
2625
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 fi
2628
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630    ac_c_werror_flag=$ac_save_c_werror_flag
2631 fi
2632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2634 if test "$ac_test_CFLAGS" = set; then
2635   CFLAGS=$ac_save_CFLAGS
2636 elif test $ac_cv_prog_cc_g = yes; then
2637   if test "$GCC" = yes; then
2638     CFLAGS="-g -O2"
2639   else
2640     CFLAGS="-g"
2641   fi
2642 else
2643   if test "$GCC" = yes; then
2644     CFLAGS="-O2"
2645   else
2646     CFLAGS=
2647   fi
2648 fi
2649 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2650 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_cc_c89+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   ac_cv_prog_cc_c89=no
2655 ac_save_CC=$CC
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662 #include <stdarg.h>
2663 #include <stdio.h>
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2670      char **p;
2671      int i;
2672 {
2673   return p[i];
2674 }
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2676 {
2677   char *s;
2678   va_list v;
2679   va_start (v,p);
2680   s = g (p, va_arg (v,int));
2681   va_end (v);
2682   return s;
2683 }
2684
2685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2686    function prototypes and stuff, but not '\xHH' hex character constants.
2687    These don't provoke an error unfortunately, instead are silently treated
2688    as 'x'.  The following induces an error, until -std is added to get
2689    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2690    array size at least.  It's necessary to write '\x00'==0 to get something
2691    that's true only with -std.  */
2692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2693
2694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2695    inside strings and character constants.  */
2696 #define FOO(x) 'x'
2697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2698
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2703 int argc;
2704 char **argv;
2705 int
2706 main ()
2707 {
2708 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2714         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715 do
2716   CC="$ac_save_CC $ac_arg"
2717   rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_compile") 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2732   { (case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_try") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   ac_cv_prog_cc_c89=$ac_arg
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756
2757 fi
2758
2759 rm -f core conftest.err conftest.$ac_objext
2760   test "x$ac_cv_prog_cc_c89" != "xno" && break
2761 done
2762 rm -f conftest.$ac_ext
2763 CC=$ac_save_CC
2764
2765 fi
2766 # AC_CACHE_VAL
2767 case "x$ac_cv_prog_cc_c89" in
2768   x)
2769     { echo "$as_me:$LINENO: result: none needed" >&5
2770 echo "${ECHO_T}none needed" >&6; } ;;
2771   xno)
2772     { echo "$as_me:$LINENO: result: unsupported" >&5
2773 echo "${ECHO_T}unsupported" >&6; } ;;
2774   *)
2775     CC="$CC $ac_cv_prog_cc_c89"
2776     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2778 esac
2779
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787 ac_ext=cpp
2788 ac_cpp='$CXXCPP $CPPFLAGS'
2789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792 if test -z "$CXX"; then
2793   if test -n "$CCC"; then
2794     CXX=$CCC
2795   else
2796     if test -n "$ac_tool_prefix"; then
2797   for ac_prog in clang++ llvm-g++ g++
2798   do
2799     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CXX+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$CXX"; then
2807   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CXX=$ac_cv_prog_CXX
2827 if test -n "$CXX"; then
2828   { echo "$as_me:$LINENO: result: $CXX" >&5
2829 echo "${ECHO_T}$CXX" >&6; }
2830 else
2831   { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2833 fi
2834
2835
2836     test -n "$CXX" && break
2837   done
2838 fi
2839 if test -z "$CXX"; then
2840   ac_ct_CXX=$CXX
2841   for ac_prog in clang++ llvm-g++ g++
2842 do
2843   # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   if test -n "$ac_ct_CXX"; then
2851   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858   for ac_exec_ext in '' $ac_executable_extensions; do
2859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2860     ac_cv_prog_ac_ct_CXX="$ac_prog"
2861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2871 if test -n "$ac_ct_CXX"; then
2872   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2873 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2874 else
2875   { echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6; }
2877 fi
2878
2879
2880   test -n "$ac_ct_CXX" && break
2881 done
2882
2883   if test "x$ac_ct_CXX" = x; then
2884     CXX="g++"
2885   else
2886     case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2889 whose name does not start with the host triplet.  If you think this
2890 configuration is useful to you, please write to autoconf@gnu.org." >&5
2891 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2892 whose name does not start with the host triplet.  If you think this
2893 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2894 ac_tool_warned=yes ;;
2895 esac
2896     CXX=$ac_ct_CXX
2897   fi
2898 fi
2899
2900   fi
2901 fi
2902 # Provide some information about the compiler.
2903 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2904 ac_compiler=`set X $ac_compile; echo $2`
2905 { (ac_try="$ac_compiler --version >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compiler --version >&5") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915 { (ac_try="$ac_compiler -v >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler -v >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -V >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -V >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951 #ifndef __GNUC__
2952        choke me
2953 #endif
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compile") 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2974   { (case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979   (eval "$ac_try") 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; } &&
2983          { ac_try='test -s conftest.$ac_objext'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   ac_compiler_gnu=yes
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998         ac_compiler_gnu=no
2999 fi
3000
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3003
3004 fi
3005 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3007 GXX=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CXXFLAGS=${CXXFLAGS+set}
3009 ac_save_CXXFLAGS=$CXXFLAGS
3010 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cxx_g+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3016    ac_cxx_werror_flag=yes
3017    ac_cv_prog_cxx_g=no
3018    CXXFLAGS="-g"
3019    cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025
3026 int
3027 main ()
3028 {
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_compile") 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } &&
3048          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   ac_cv_prog_cxx_g=yes
3069 else
3070   echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3072
3073         CXXFLAGS=""
3074       cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_compile") 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; } &&
3113          { ac_try='test -s conftest.$ac_objext'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; }; then
3123   :
3124 else
3125   echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3129          CXXFLAGS="-g"
3130          cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_compile") 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; } &&
3169          { ac_try='test -s conftest.$ac_objext'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   ac_cv_prog_cxx_g=yes
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184
3185 fi
3186
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3195 fi
3196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3197 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3198 if test "$ac_test_CXXFLAGS" = set; then
3199   CXXFLAGS=$ac_save_CXXFLAGS
3200 elif test $ac_cv_prog_cxx_g = yes; then
3201   if test "$GXX" = yes; then
3202     CXXFLAGS="-g -O2"
3203   else
3204     CXXFLAGS="-g"
3205   fi
3206 else
3207   if test "$GXX" = yes; then
3208     CXXFLAGS="-O2"
3209   else
3210     CXXFLAGS=
3211   fi
3212 fi
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219 ac_ext=c
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3226 # On Suns, sometimes $CPP names a directory.
3227 if test -n "$CPP" && test -d "$CPP"; then
3228   CPP=
3229 fi
3230 if test -z "$CPP"; then
3231   if test "${ac_cv_prog_CPP+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234       # Double quotes because CPP needs to be expanded
3235     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236     do
3237       ac_preproc_ok=false
3238 for ac_c_preproc_warn_flag in '' yes
3239 do
3240   # Use a header file that comes with gcc, so configuring glibc
3241   # with a fresh cross-compiler works.
3242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243   # <limits.h> exists even on freestanding compilers.
3244   # On the NeXT, cc -E runs the code through the compiler's parser,
3245   # not just through cpp. "Syntax error" is here to catch this case.
3246   cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h.  */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h.  */
3252 #ifdef __STDC__
3253 # include <limits.h>
3254 #else
3255 # include <assert.h>
3256 #endif
3257                      Syntax error
3258 _ACEOF
3259 if { (ac_try="$ac_cpp conftest.$ac_ext"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3266   ac_status=$?
3267   grep -v '^ *+' conftest.er1 >conftest.err
3268   rm -f conftest.er1
3269   cat conftest.err >&5
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); } >/dev/null; then
3272   if test -s conftest.err; then
3273     ac_cpp_err=$ac_c_preproc_warn_flag
3274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3275   else
3276     ac_cpp_err=
3277   fi
3278 else
3279   ac_cpp_err=yes
3280 fi
3281 if test -z "$ac_cpp_err"; then
3282   :
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287   # Broken: fails on valid input.
3288 continue
3289 fi
3290
3291 rm -f conftest.err conftest.$ac_ext
3292
3293   # OK, works on sane cases.  Now check whether nonexistent headers
3294   # can be detected and how.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #include <ac_nonexistent.h>
3302 _ACEOF
3303 if { (ac_try="$ac_cpp conftest.$ac_ext"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   # Broken: success on invalid input.
3327 continue
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3335 fi
3336
3337 rm -f conftest.err conftest.$ac_ext
3338
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3343   break
3344 fi
3345
3346     done
3347     ac_cv_prog_CPP=$CPP
3348
3349 fi
3350   CPP=$ac_cv_prog_CPP
3351 else
3352   ac_cv_prog_CPP=$CPP
3353 fi
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359   # Use a header file that comes with gcc, so configuring glibc
3360   # with a fresh cross-compiler works.
3361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362   # <limits.h> exists even on freestanding compilers.
3363   # On the NeXT, cc -E runs the code through the compiler's parser,
3364   # not just through cpp. "Syntax error" is here to catch this case.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376                      Syntax error
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null; then
3391   if test -s conftest.err; then
3392     ac_cpp_err=$ac_c_preproc_warn_flag
3393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394   else
3395     ac_cpp_err=
3396   fi
3397 else
3398   ac_cpp_err=yes
3399 fi
3400 if test -z "$ac_cpp_err"; then
3401   :
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406   # Broken: fails on valid input.
3407 continue
3408 fi
3409
3410 rm -f conftest.err conftest.$ac_ext
3411
3412   # OK, works on sane cases.  Now check whether nonexistent headers
3413   # can be detected and how.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #include <ac_nonexistent.h>
3421 _ACEOF
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } >/dev/null; then
3435   if test -s conftest.err; then
3436     ac_cpp_err=$ac_c_preproc_warn_flag
3437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438   else
3439     ac_cpp_err=
3440   fi
3441 else
3442   ac_cpp_err=yes
3443 fi
3444 if test -z "$ac_cpp_err"; then
3445   # Broken: success on invalid input.
3446 continue
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451   # Passes both tests.
3452 ac_preproc_ok=:
3453 break
3454 fi
3455
3456 rm -f conftest.err conftest.$ac_ext
3457
3458 done
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3462   :
3463 else
3464   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details." >&5
3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3467 See \`config.log' for more details." >&2;}
3468    { (exit 1); exit 1; }; }
3469 fi
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478 if test "$CXX" = "clang++" ; then
3479   { echo "$as_me:$LINENO: checking whether clang works" >&5
3480 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3481   ac_ext=cpp
3482 ac_cpp='$CXXCPP $CPPFLAGS'
3483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3486
3487
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #include <limits>
3495 #if __has_include (<cxxabi.h>)
3496 #include <cxxabi.h>
3497 #endif
3498 #if __has_include (<unwind.h>)
3499 #include <unwind.h>
3500 #endif
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 rm -f conftest.$ac_objext
3511 if { (ac_try="$ac_compile"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517   (eval "$ac_compile") 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3525   { (case "(($ac_try" in
3526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527   *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530   (eval "$ac_try") 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; } &&
3534          { ac_try='test -s conftest.$ac_objext'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; }; then
3544
3545   { echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6; }
3547
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552
3553   { echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6; }
3555   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3556 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3557    { (exit 1); exit 1; }; }
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562   ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568 fi
3569
3570
3571
3572 if test -d ${srcdir}/projects/llvm-gcc ; then
3573   subdirs="$subdirs projects/llvm-gcc"
3574
3575 fi
3576
3577 if test -d ${srcdir}/projects/test-suite ; then
3578   subdirs="$subdirs projects/test-suite"
3579
3580 fi
3581
3582 if test -d ${srcdir}/projects/llvm-test ; then
3583   subdirs="$subdirs projects/llvm-test"
3584
3585 fi
3586
3587 if test -d ${srcdir}/projects/poolalloc ; then
3588   subdirs="$subdirs projects/poolalloc"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3593   subdirs="$subdirs projects/llvm-poolalloc"
3594
3595 fi
3596
3597 for i in `ls ${srcdir}/projects`
3598 do
3599   if test -d ${srcdir}/projects/${i} ; then
3600     case ${i} in
3601       sample)       subdirs="$subdirs projects/sample"
3602     ;;
3603       privbracket)  subdirs="$subdirs projects/privbracket"
3604  ;;
3605       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3606  ;;
3607       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3608 ;;
3609       llvm-java)    subdirs="$subdirs projects/llvm-java"
3610  ;;
3611       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3612    ;;
3613       safecode)     subdirs="$subdirs projects/safecode"
3614  ;;
3615       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3616  ;;
3617       compiler-rt)       ;;
3618       llvm-gcc)       ;;
3619       test-suite)     ;;
3620       llvm-test)      ;;
3621       poolalloc)      ;;
3622       llvm-poolalloc) ;;
3623       *)
3624         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3625 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3626         ;;
3627     esac
3628   fi
3629 done
3630
3631 # Check whether --enable-polly was given.
3632 if test "${enable_polly+set}" = set; then
3633   enableval=$enable_polly;
3634 else
3635   enableval=default
3636 fi
3637
3638 case "$enableval" in
3639   yes) ENABLE_POLLY=1
3640  ;;
3641   no)  ENABLE_POLLY=0
3642  ;;
3643   default) ENABLE_POLLY=1
3644  ;;
3645   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3646 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3647    { (exit 1); exit 1; }; } ;;
3648 esac
3649
3650
3651 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3652   LLVM_HAS_POLLY=1
3653
3654   subdirs="$subdirs tools/polly"
3655
3656 fi
3657
3658
3659 # Make sure we can run config.sub.
3660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3661   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3662 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3663    { (exit 1); exit 1; }; }
3664
3665 { echo "$as_me:$LINENO: checking build system type" >&5
3666 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3667 if test "${ac_cv_build+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   ac_build_alias=$build_alias
3671 test "x$ac_build_alias" = x &&
3672   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3673 test "x$ac_build_alias" = x &&
3674   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3675 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3676    { (exit 1); exit 1; }; }
3677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3678   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3679 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3680    { (exit 1); exit 1; }; }
3681
3682 fi
3683 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3684 echo "${ECHO_T}$ac_cv_build" >&6; }
3685 case $ac_cv_build in
3686 *-*-*) ;;
3687 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3688 echo "$as_me: error: invalid value of canonical build" >&2;}
3689    { (exit 1); exit 1; }; };;
3690 esac
3691 build=$ac_cv_build
3692 ac_save_IFS=$IFS; IFS='-'
3693 set x $ac_cv_build
3694 shift
3695 build_cpu=$1
3696 build_vendor=$2
3697 shift; shift
3698 # Remember, the first character of IFS is used to create $*,
3699 # except with old shells:
3700 build_os=$*
3701 IFS=$ac_save_IFS
3702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3703
3704
3705 { echo "$as_me:$LINENO: checking host system type" >&5
3706 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3707 if test "${ac_cv_host+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   if test "x$host_alias" = x; then
3711   ac_cv_host=$ac_cv_build
3712 else
3713   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3714     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3715 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3716    { (exit 1); exit 1; }; }
3717 fi
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3721 echo "${ECHO_T}$ac_cv_host" >&6; }
3722 case $ac_cv_host in
3723 *-*-*) ;;
3724 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3725 echo "$as_me: error: invalid value of canonical host" >&2;}
3726    { (exit 1); exit 1; }; };;
3727 esac
3728 host=$ac_cv_host
3729 ac_save_IFS=$IFS; IFS='-'
3730 set x $ac_cv_host
3731 shift
3732 host_cpu=$1
3733 host_vendor=$2
3734 shift; shift
3735 # Remember, the first character of IFS is used to create $*,
3736 # except with old shells:
3737 host_os=$*
3738 IFS=$ac_save_IFS
3739 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3740
3741
3742 { echo "$as_me:$LINENO: checking target system type" >&5
3743 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3744 if test "${ac_cv_target+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if test "x$target_alias" = x; then
3748   ac_cv_target=$ac_cv_host
3749 else
3750   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3751     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3752 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 fi
3757 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3758 echo "${ECHO_T}$ac_cv_target" >&6; }
3759 case $ac_cv_target in
3760 *-*-*) ;;
3761 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3762 echo "$as_me: error: invalid value of canonical target" >&2;}
3763    { (exit 1); exit 1; }; };;
3764 esac
3765 target=$ac_cv_target
3766 ac_save_IFS=$IFS; IFS='-'
3767 set x $ac_cv_target
3768 shift
3769 target_cpu=$1
3770 target_vendor=$2
3771 shift; shift
3772 # Remember, the first character of IFS is used to create $*,
3773 # except with old shells:
3774 target_os=$*
3775 IFS=$ac_save_IFS
3776 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3777
3778
3779 # The aliases save the names the user supplied, while $host etc.
3780 # will get canonicalized.
3781 test -n "$target_alias" &&
3782   test "$program_prefix$program_suffix$program_transform_name" = \
3783     NONENONEs,x,x, &&
3784   program_prefix=${target_alias}-
3785
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3787 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3788 if test "${llvm_cv_os_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case $host in
3792   *-*-aix*)
3793     llvm_cv_link_all_option="-Wl,--whole-archive"
3794     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3795     llvm_cv_os_type="AIX"
3796     llvm_cv_platform_type="Unix" ;;
3797   *-*-irix*)
3798     llvm_cv_link_all_option="-Wl,--whole-archive"
3799     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3800     llvm_cv_os_type="IRIX"
3801     llvm_cv_platform_type="Unix" ;;
3802   *-*-cygwin*)
3803     llvm_cv_link_all_option="-Wl,--whole-archive"
3804     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805     llvm_cv_os_type="Cygwin"
3806     llvm_cv_platform_type="Unix" ;;
3807   *-*-darwin*)
3808     llvm_cv_link_all_option="-Wl,-all_load"
3809     llvm_cv_no_link_all_option="-Wl,-noall_load"
3810     llvm_cv_os_type="Darwin"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-minix*)
3813     llvm_cv_link_all_option="-Wl,-all_load"
3814     llvm_cv_no_link_all_option="-Wl,-noall_load"
3815     llvm_cv_os_type="Minix"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-freebsd* | *-*-kfreebsd-gnu)
3818     llvm_cv_link_all_option="-Wl,--whole-archive"
3819     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820     llvm_cv_os_type="FreeBSD"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-openbsd*)
3823     llvm_cv_link_all_option="-Wl,--whole-archive"
3824     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3825     llvm_cv_os_type="OpenBSD"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-netbsd*)
3828     llvm_cv_link_all_option="-Wl,--whole-archive"
3829     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830     llvm_cv_os_type="NetBSD"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-dragonfly*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="DragonFly"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-hpux*)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="HP-UX"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-interix*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="Interix"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-linux*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="Linux"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-gnu*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="GNU"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-solaris*)
3858     llvm_cv_link_all_option="-Wl,-z,allextract"
3859     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3860     llvm_cv_os_type="SunOS"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-auroraux*)
3863     llvm_cv_link_all_option="-Wl,-z,allextract"
3864     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3865     llvm_cv_os_type="AuroraUX"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-win32*)
3868     llvm_cv_link_all_option="-Wl,--whole-archive"
3869     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870     llvm_cv_os_type="Win32"
3871     llvm_cv_platform_type="Win32" ;;
3872   *-*-mingw*)
3873     llvm_cv_link_all_option="-Wl,--whole-archive"
3874     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875     llvm_cv_os_type="MingW"
3876     llvm_cv_platform_type="Win32" ;;
3877   *-*-haiku*)
3878     llvm_cv_link_all_option="-Wl,--whole-archive"
3879     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880     llvm_cv_os_type="Haiku"
3881     llvm_cv_platform_type="Unix" ;;
3882   *-unknown-eabi*)
3883     llvm_cv_link_all_option="-Wl,--whole-archive"
3884     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885     llvm_cv_os_type="Freestanding"
3886     llvm_cv_platform_type="Unix" ;;
3887   *-unknown-elf*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Freestanding"
3891     llvm_cv_platform_type="Unix" ;;
3892   *)
3893     llvm_cv_link_all_option=""
3894     llvm_cv_no_link_all_option=""
3895     llvm_cv_os_type="Unknown"
3896     llvm_cv_platform_type="Unknown" ;;
3897 esac
3898 fi
3899 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3900 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3901
3902 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3903 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3904 if test "${llvm_cv_target_os_type+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   case $target in
3908   *-*-aix*)
3909     llvm_cv_target_os_type="AIX" ;;
3910   *-*-irix*)
3911     llvm_cv_target_os_type="IRIX" ;;
3912   *-*-cygwin*)
3913     llvm_cv_target_os_type="Cygwin" ;;
3914   *-*-darwin*)
3915     llvm_cv_target_os_type="Darwin" ;;
3916   *-*-minix*)
3917     llvm_cv_target_os_type="Minix" ;;
3918   *-*-freebsd* | *-*-kfreebsd-gnu)
3919     llvm_cv_target_os_type="FreeBSD" ;;
3920   *-*-openbsd*)
3921     llvm_cv_target_os_type="OpenBSD" ;;
3922   *-*-netbsd*)
3923     llvm_cv_target_os_type="NetBSD" ;;
3924   *-*-dragonfly*)
3925     llvm_cv_target_os_type="DragonFly" ;;
3926   *-*-hpux*)
3927     llvm_cv_target_os_type="HP-UX" ;;
3928   *-*-interix*)
3929     llvm_cv_target_os_type="Interix" ;;
3930   *-*-linux*)
3931     llvm_cv_target_os_type="Linux" ;;
3932   *-*-gnu*)
3933     llvm_cv_target_os_type="GNU" ;;
3934   *-*-solaris*)
3935     llvm_cv_target_os_type="SunOS" ;;
3936   *-*-auroraux*)
3937     llvm_cv_target_os_type="AuroraUX" ;;
3938   *-*-win32*)
3939     llvm_cv_target_os_type="Win32" ;;
3940   *-*-mingw*)
3941     llvm_cv_target_os_type="MingW" ;;
3942   *-*-haiku*)
3943     llvm_cv_target_os_type="Haiku" ;;
3944   *-*-rtems*)
3945     llvm_cv_target_os_type="RTEMS" ;;
3946   *-*-nacl*)
3947     llvm_cv_target_os_type="NativeClient" ;;
3948   *-unknown-eabi*)
3949     llvm_cv_target_os_type="Freestanding" ;;
3950   *)
3951     llvm_cv_target_os_type="Unknown" ;;
3952 esac
3953 fi
3954 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3955 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3956
3957 if test "$llvm_cv_os_type" = "Unknown" ; then
3958   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3959 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3960    { (exit 1); exit 1; }; }
3961 fi
3962
3963 OS=$llvm_cv_os_type
3964
3965 HOST_OS=$llvm_cv_os_type
3966
3967 TARGET_OS=$llvm_cv_target_os_type
3968
3969
3970 LINKALL=$llvm_cv_link_all_option
3971
3972 NOLINKALL=$llvm_cv_no_link_all_option
3973
3974
3975 case $llvm_cv_platform_type in
3976   Unix)
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define LLVM_ON_UNIX 1
3980 _ACEOF
3981
3982     LLVM_ON_UNIX=1
3983
3984     LLVM_ON_WIN32=0
3985
3986     ;;
3987   Win32)
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LLVM_ON_WIN32 1
3991 _ACEOF
3992
3993     LLVM_ON_UNIX=0
3994
3995     LLVM_ON_WIN32=1
3996
3997     ;;
3998 esac
3999
4000 { echo "$as_me:$LINENO: checking target architecture" >&5
4001 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4002 if test "${llvm_cv_target_arch+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   case $target in
4006   i?86-*)                 llvm_cv_target_arch="x86" ;;
4007   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4008   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4009   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4010   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4011   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4012   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4013   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4014   xcore-*)                llvm_cv_target_arch="XCore" ;;
4015   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4016   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4017   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4018   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4019   *)                      llvm_cv_target_arch="Unknown" ;;
4020 esac
4021 fi
4022 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4023 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4024
4025 if test "$llvm_cv_target_arch" = "Unknown" ; then
4026   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4027 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4028 fi
4029
4030 case "$llvm_cv_target_arch" in
4031     x86)     LLVM_NATIVE_ARCH="X86" ;;
4032     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4033     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4034 esac
4035
4036 ARCH=$llvm_cv_target_arch
4037
4038
4039 case $host in
4040   i?86-*)                 host_arch="x86" ;;
4041   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4042   sparc*-*)               host_arch="Sparc" ;;
4043   powerpc*-*)             host_arch="PowerPC" ;;
4044   arm*-*)                 host_arch="ARM" ;;
4045   aarch64*-*)             host_arch="AArch64" ;;
4046   mips-* | mips64-*)      host_arch="Mips" ;;
4047   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4048   xcore-*)                host_arch="XCore" ;;
4049   msp430-*)               host_arch="MSP430" ;;
4050   hexagon-*)              host_arch="Hexagon" ;;
4051   mblaze-*)               host_arch="MBlaze" ;;
4052   *)                      host_arch="Unknown" ;;
4053 esac
4054
4055 if test "$host_arch" = "Unknown" ; then
4056   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4057 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4058 fi
4059
4060 HOST_ARCH=$host_arch
4061
4062
4063
4064
4065 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4066 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4067 if test "${ac_cv_path_GREP+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   # Extract the first word of "grep ggrep" to use in msg output
4071 if test -z "$GREP"; then
4072 set dummy grep ggrep; ac_prog_name=$2
4073 if test "${ac_cv_path_GREP+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   ac_path_GREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083   for ac_prog in grep ggrep; do
4084   for ac_exec_ext in '' $ac_executable_extensions; do
4085     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4086     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4087     # Check for GNU ac_path_GREP and select it if it is found.
4088   # Check for GNU $ac_path_GREP
4089 case `"$ac_path_GREP" --version 2>&1` in
4090 *GNU*)
4091   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4092 *)
4093   ac_count=0
4094   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4095   while :
4096   do
4097     cat "conftest.in" "conftest.in" >"conftest.tmp"
4098     mv "conftest.tmp" "conftest.in"
4099     cp "conftest.in" "conftest.nl"
4100     echo 'GREP' >> "conftest.nl"
4101     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103     ac_count=`expr $ac_count + 1`
4104     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4105       # Best one so far, save it but keep looking for a better one
4106       ac_cv_path_GREP="$ac_path_GREP"
4107       ac_path_GREP_max=$ac_count
4108     fi
4109     # 10*(2^10) chars as input seems more than enough
4110     test $ac_count -gt 10 && break
4111   done
4112   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 esac
4114
4115
4116     $ac_path_GREP_found && break 3
4117   done
4118 done
4119
4120 done
4121 IFS=$as_save_IFS
4122
4123
4124 fi
4125
4126 GREP="$ac_cv_path_GREP"
4127 if test -z "$GREP"; then
4128   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4129 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4130    { (exit 1); exit 1; }; }
4131 fi
4132
4133 else
4134   ac_cv_path_GREP=$GREP
4135 fi
4136
4137
4138 fi
4139 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4140 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4141  GREP="$ac_cv_path_GREP"
4142
4143
4144 { echo "$as_me:$LINENO: checking for egrep" >&5
4145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4146 if test "${ac_cv_path_EGREP+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4150    then ac_cv_path_EGREP="$GREP -E"
4151    else
4152      # Extract the first word of "egrep" to use in msg output
4153 if test -z "$EGREP"; then
4154 set dummy egrep; ac_prog_name=$2
4155 if test "${ac_cv_path_EGREP+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   ac_path_EGREP_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_prog in egrep; do
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4168     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4169     # Check for GNU ac_path_EGREP and select it if it is found.
4170   # Check for GNU $ac_path_EGREP
4171 case `"$ac_path_EGREP" --version 2>&1` in
4172 *GNU*)
4173   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4174 *)
4175   ac_count=0
4176   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4177   while :
4178   do
4179     cat "conftest.in" "conftest.in" >"conftest.tmp"
4180     mv "conftest.tmp" "conftest.in"
4181     cp "conftest.in" "conftest.nl"
4182     echo 'EGREP' >> "conftest.nl"
4183     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185     ac_count=`expr $ac_count + 1`
4186     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4187       # Best one so far, save it but keep looking for a better one
4188       ac_cv_path_EGREP="$ac_path_EGREP"
4189       ac_path_EGREP_max=$ac_count
4190     fi
4191     # 10*(2^10) chars as input seems more than enough
4192     test $ac_count -gt 10 && break
4193   done
4194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197
4198     $ac_path_EGREP_found && break 3
4199   done
4200 done
4201
4202 done
4203 IFS=$as_save_IFS
4204
4205
4206 fi
4207
4208 EGREP="$ac_cv_path_EGREP"
4209 if test -z "$EGREP"; then
4210   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4211 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4212    { (exit 1); exit 1; }; }
4213 fi
4214
4215 else
4216   ac_cv_path_EGREP=$EGREP
4217 fi
4218
4219
4220    fi
4221 fi
4222 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4223 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4224  EGREP="$ac_cv_path_EGREP"
4225
4226
4227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4229 if test "${ac_cv_header_stdc+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238 #include <stdlib.h>
4239 #include <stdarg.h>
4240 #include <string.h>
4241 #include <float.h>
4242
4243 int
4244 main ()
4245 {
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_compile") 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4266   { (case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_try") 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; } &&
4275          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4285   ac_cv_header_stdc=yes
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290         ac_cv_header_stdc=no
4291 fi
4292
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294
4295 if test $ac_cv_header_stdc = yes; then
4296   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 #include <string.h>
4304
4305 _ACEOF
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307   $EGREP "memchr" >/dev/null 2>&1; then
4308   :
4309 else
4310   ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest*
4313
4314 fi
4315
4316 if test $ac_cv_header_stdc = yes; then
4317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <stdlib.h>
4325
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328   $EGREP "free" >/dev/null 2>&1; then
4329   :
4330 else
4331   ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4334
4335 fi
4336
4337 if test $ac_cv_header_stdc = yes; then
4338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4339   if test "$cross_compiling" = yes; then
4340   :
4341 else
4342   cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h.  */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h.  */
4348 #include <ctype.h>
4349 #include <stdlib.h>
4350 #if ((' ' & 0x0FF) == 0x020)
4351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4353 #else
4354 # define ISLOWER(c) \
4355                    (('a' <= (c) && (c) <= 'i') \
4356                      || ('j' <= (c) && (c) <= 'r') \
4357                      || ('s' <= (c) && (c) <= 'z'))
4358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4359 #endif
4360
4361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4362 int
4363 main ()
4364 {
4365   int i;
4366   for (i = 0; i < 256; i++)
4367     if (XOR (islower (i), ISLOWER (i))
4368         || toupper (i) != TOUPPER (i))
4369       return 2;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest$ac_exeext
4374 if { (ac_try="$ac_link"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_link") 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4384   { (case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389   (eval "$ac_try") 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   :
4394 else
4395   echo "$as_me: program exited with status $ac_status" >&5
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 ( exit $ac_status )
4400 ac_cv_header_stdc=no
4401 fi
4402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4403 fi
4404
4405
4406 fi
4407 fi
4408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4410 if test $ac_cv_header_stdc = yes; then
4411
4412 cat >>confdefs.h <<\_ACEOF
4413 #define STDC_HEADERS 1
4414 _ACEOF
4415
4416 fi
4417
4418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4429                   inttypes.h stdint.h unistd.h
4430 do
4431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 $ac_includes_default
4444
4445 #include <$ac_header>
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_compile") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } &&
4461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462   { (case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467   (eval "$ac_try") 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; } &&
4471          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4481   eval "$as_ac_Header=yes"
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486         eval "$as_ac_Header=no"
4487 fi
4488
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 fi
4491 ac_res=`eval echo '${'$as_ac_Header'}'`
4492                { echo "$as_me:$LINENO: result: $ac_res" >&5
4493 echo "${ECHO_T}$ac_res" >&6; }
4494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4495   cat >>confdefs.h <<_ACEOF
4496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4497 _ACEOF
4498
4499 fi
4500
4501 done
4502
4503
4504 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4505 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4506 if test "${ac_cv_c_bigendian+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   # See if sys/param.h defines the BYTE_ORDER macro.
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 #include <sys/types.h>
4517 #include <sys/param.h>
4518
4519 int
4520 main ()
4521 {
4522 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4523  bogus endian macros
4524 #endif
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.$ac_objext
4531 if { (ac_try="$ac_compile"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537   (eval "$ac_compile") 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
4541   cat conftest.err >&5
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } &&
4544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4545   { (case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_try") 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; } &&
4554          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4564   # It does; now see whether it defined to BIG_ENDIAN or not.
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571 #include <sys/types.h>
4572 #include <sys/param.h>
4573
4574 int
4575 main ()
4576 {
4577 #if BYTE_ORDER != BIG_ENDIAN
4578  not big endian
4579 #endif
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4587 case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592   (eval "$ac_compile") 2>conftest.er1
4593   ac_status=$?
4594   grep -v '^ *+' conftest.er1 >conftest.err
4595   rm -f conftest.er1
4596   cat conftest.err >&5
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); } &&
4599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600   { (case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_try") 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; } &&
4609          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4619   ac_cv_c_bigendian=yes
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624         ac_cv_c_bigendian=no
4625 fi
4626
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632         # It does not; compile a test program.
4633 if test "$cross_compiling" = yes; then
4634   # try to guess the endianness by grepping values into an object file
4635   ac_cv_c_bigendian=unknown
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4643 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4644 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4645 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4646 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4647 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4648 int
4649 main ()
4650 {
4651  _ascii (); _ebcdic ();
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4658 case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663   (eval "$ac_compile") 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671   { (case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676   (eval "$ac_try") 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; } &&
4680          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4690   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4691   ac_cv_c_bigendian=yes
4692 fi
4693 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4694   if test "$ac_cv_c_bigendian" = unknown; then
4695     ac_cv_c_bigendian=no
4696   else
4697     # finding both strings is unlikely to happen, but who knows?
4698     ac_cv_c_bigendian=unknown
4699   fi
4700 fi
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 else
4710   cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 $ac_includes_default
4717 int
4718 main ()
4719 {
4720
4721   /* Are we little or big endian?  From Harbison&Steele.  */
4722   union
4723   {
4724     long int l;
4725     char c[sizeof (long int)];
4726   } u;
4727   u.l = 1;
4728   return u.c[sizeof (long int) - 1] == 1;
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest$ac_exeext
4735 if { (ac_try="$ac_link"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741   (eval "$ac_link") 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4745   { (case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750   (eval "$ac_try") 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_c_bigendian=no
4755 else
4756   echo "$as_me: program exited with status $ac_status" >&5
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 ( exit $ac_status )
4761 ac_cv_c_bigendian=yes
4762 fi
4763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4764 fi
4765
4766
4767 fi
4768
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4772 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4773 case $ac_cv_c_bigendian in
4774   yes)
4775     ENDIAN=big
4776  ;;
4777   no)
4778     ENDIAN=little
4779  ;;
4780   *)
4781     { { echo "$as_me:$LINENO: error: unknown endianness
4782 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4783 echo "$as_me: error: unknown endianness
4784 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4785    { (exit 1); exit 1; }; } ;;
4786 esac
4787
4788
4789 if test "$cross_compiling" = yes; then
4790   LLVM_CROSS_COMPILING=1
4791
4792
4793 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4794 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4795 if test "${ac_cv_build_exeext+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4799   ac_cv_build_exeext=.exe
4800 else
4801   ac_build_prefix=${build_alias}-
4802
4803   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4804 set dummy ${ac_build_prefix}gcc; ac_word=$2
4805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4807 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   if test -n "$BUILD_CC"; then
4811   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818   for ac_exec_ext in '' $ac_executable_extensions; do
4819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4820     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 BUILD_CC=$ac_cv_prog_BUILD_CC
4831 if test -n "$BUILD_CC"; then
4832   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4833 echo "${ECHO_T}$BUILD_CC" >&6; }
4834 else
4835   { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4837 fi
4838
4839
4840   if test -z "$BUILD_CC"; then
4841      # Extract the first word of "gcc", so it can be a program name with args.
4842 set dummy gcc; ac_word=$2
4843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4845 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   if test -n "$BUILD_CC"; then
4849   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856   for ac_exec_ext in '' $ac_executable_extensions; do
4857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4858     ac_cv_prog_BUILD_CC="gcc"
4859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 BUILD_CC=$ac_cv_prog_BUILD_CC
4869 if test -n "$BUILD_CC"; then
4870   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4871 echo "${ECHO_T}$BUILD_CC" >&6; }
4872 else
4873   { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4875 fi
4876
4877
4878      if test -z "$BUILD_CC"; then
4879        # Extract the first word of "cc", so it can be a program name with args.
4880 set dummy cc; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   if test -n "$BUILD_CC"; then
4887   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4888 else
4889   ac_prog_rejected=no
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895   for ac_exec_ext in '' $ac_executable_extensions; do
4896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4897     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4898        ac_prog_rejected=yes
4899        continue
4900      fi
4901     ac_cv_prog_BUILD_CC="cc"
4902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903     break 2
4904   fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 if test $ac_prog_rejected = yes; then
4910   # We found a bogon in the path, so make sure we never use it.
4911   set dummy $ac_cv_prog_BUILD_CC
4912   shift
4913   if test $# != 0; then
4914     # We chose a different compiler from the bogus one.
4915     # However, it has the same basename, so the bogon will be chosen
4916     # first if we set BUILD_CC to just the basename; use the full file name.
4917     shift
4918     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4919   fi
4920 fi
4921 fi
4922 fi
4923 BUILD_CC=$ac_cv_prog_BUILD_CC
4924 if test -n "$BUILD_CC"; then
4925   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4926 echo "${ECHO_T}$BUILD_CC" >&6; }
4927 else
4928   { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4930 fi
4931
4932
4933      fi
4934   fi
4935   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4936 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4937    { (exit 1); exit 1; }; }
4938   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4939   rm -f conftest*
4940   echo 'int main () { return 0; }' > conftest.$ac_ext
4941   ac_cv_build_exeext=
4942   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4943   (eval $ac_build_link) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; then
4947     for file in conftest.*; do
4948       case $file in
4949       *.c | *.o | *.obj | *.dSYM) ;;
4950       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4951       esac
4952     done
4953   else
4954     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4955 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4956    { (exit 1); exit 1; }; }
4957   fi
4958   rm -f conftest*
4959   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4960 fi
4961 fi
4962
4963 BUILD_EXEEXT=""
4964 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4965 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4966 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4967 ac_build_exeext=$BUILD_EXEEXT
4968
4969   ac_build_prefix=${build_alias}-
4970   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4971 set dummy ${ac_build_prefix}g++; ac_word=$2
4972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4974 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   if test -n "$BUILD_CXX"; then
4978   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4987     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4998 if test -n "$BUILD_CXX"; then
4999   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5000 echo "${ECHO_T}$BUILD_CXX" >&6; }
5001 else
5002   { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5004 fi
5005
5006
5007   if test -z "$BUILD_CXX"; then
5008      # Extract the first word of "g++", so it can be a program name with args.
5009 set dummy g++; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   if test -n "$BUILD_CXX"; then
5016   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_prog_BUILD_CXX="g++"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5036 if test -n "$BUILD_CXX"; then
5037   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5038 echo "${ECHO_T}$BUILD_CXX" >&6; }
5039 else
5040   { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5042 fi
5043
5044
5045      if test -z "$BUILD_CXX"; then
5046        # Extract the first word of "c++", so it can be a program name with args.
5047 set dummy c++; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   if test -n "$BUILD_CXX"; then
5054   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5055 else
5056   ac_prog_rejected=no
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5064     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5065        ac_prog_rejected=yes
5066        continue
5067      fi
5068     ac_cv_prog_BUILD_CXX="c++"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074 IFS=$as_save_IFS
5075
5076 if test $ac_prog_rejected = yes; then
5077   # We found a bogon in the path, so make sure we never use it.
5078   set dummy $ac_cv_prog_BUILD_CXX
5079   shift
5080   if test $# != 0; then
5081     # We chose a different compiler from the bogus one.
5082     # However, it has the same basename, so the bogon will be chosen
5083     # first if we set BUILD_CXX to just the basename; use the full file name.
5084     shift
5085     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5086   fi
5087 fi
5088 fi
5089 fi
5090 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5091 if test -n "$BUILD_CXX"; then
5092   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5093 echo "${ECHO_T}$BUILD_CXX" >&6; }
5094 else
5095   { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5097 fi
5098
5099
5100      fi
5101   fi
5102 else
5103   LLVM_CROSS_COMPILING=0
5104
5105 fi
5106
5107 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5108   cvsbuild="yes"
5109   optimize="no"
5110   CVSBUILD=CVSBUILD=1
5111
5112 else
5113   cvsbuild="no"
5114   optimize="yes"
5115 fi
5116
5117
5118 # Check whether --enable-libcpp was given.
5119 if test "${enable_libcpp+set}" = set; then
5120   enableval=$enable_libcpp;
5121 else
5122   enableval=default
5123 fi
5124
5125 case "$enableval" in
5126   yes) ENABLE_LIBCPP=1
5127  ;;
5128   no)  ENABLE_LIBCPP=0
5129  ;;
5130   default) ENABLE_LIBCPP=0
5131 ;;
5132   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5134    { (exit 1); exit 1; }; } ;;
5135 esac
5136
5137 # Check whether --enable-cxx11 was given.
5138 if test "${enable_cxx11+set}" = set; then
5139   enableval=$enable_cxx11;
5140 else
5141   enableval=default
5142 fi
5143
5144 case "$enableval" in
5145   yes) ENABLE_CXX11=1
5146  ;;
5147   no)  ENABLE_CXX11=0
5148  ;;
5149   default) ENABLE_CXX11=0
5150 ;;
5151   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5153    { (exit 1); exit 1; }; } ;;
5154 esac
5155
5156 clang_arcmt="yes"
5157 # Check whether --enable-clang-arcmt was given.
5158 if test "${enable_clang_arcmt+set}" = set; then
5159   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5160 else
5161   enableval="yes"
5162 fi
5163
5164 case "$enableval" in
5165   yes) ENABLE_CLANG_ARCMT=1
5166  ;;
5167   no)  ENABLE_CLANG_ARCMT=0
5168  ;;
5169   default) ENABLE_CLANG_ARCMT=1
5170 ;;
5171   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5173    { (exit 1); exit 1; }; } ;;
5174 esac
5175
5176 clang_static_analyzer="yes"
5177 # Check whether --enable-clang-static-analyzer was given.
5178 if test "${enable_clang_static_analyzer+set}" = set; then
5179   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5180 else
5181   enableval="yes"
5182 fi
5183
5184 case "$enableval" in
5185   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5186  ;;
5187   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5188  ;;
5189   default) ENABLE_CLANG_STATIC_ANALYZER=1
5190 ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5195
5196 # Check whether --enable-clang-rewriter was given.
5197 if test "${enable_clang_rewriter+set}" = set; then
5198   enableval=$enable_clang_rewriter;
5199 else
5200   enableval="yes"
5201 fi
5202
5203 case "$enableval" in
5204   yes) ENABLE_CLANG_REWRITER=1
5205  ;;
5206   no)
5207     if test ${clang_arcmt} != "no" ; then
5208       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5209 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5210    { (exit 1); exit 1; }; }
5211     fi
5212     if test ${clang_static_analyzer} != "no" ; then
5213       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5214 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5215    { (exit 1); exit 1; }; }
5216     fi
5217     ENABLE_CLANG_REWRITER=0
5218
5219     ;;
5220   default) ENABLE_CLANG_REWRITER=1
5221 ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 # Check whether --enable-optimized was given.
5228 if test "${enable_optimized+set}" = set; then
5229   enableval=$enable_optimized;
5230 else
5231   enableval=$optimize
5232 fi
5233
5234 if test ${enableval} = "no" ; then
5235   ENABLE_OPTIMIZED=
5236
5237 else
5238   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5239
5240 fi
5241
5242 # Check whether --enable-profiling was given.
5243 if test "${enable_profiling+set}" = set; then
5244   enableval=$enable_profiling;
5245 else
5246   enableval="no"
5247 fi
5248
5249 if test ${enableval} = "no" ; then
5250   ENABLE_PROFILING=
5251
5252 else
5253   ENABLE_PROFILING=ENABLE_PROFILING=1
5254
5255 fi
5256
5257 # Check whether --enable-assertions was given.
5258 if test "${enable_assertions+set}" = set; then
5259   enableval=$enable_assertions;
5260 else
5261   enableval="yes"
5262 fi
5263
5264 if test ${enableval} = "yes" ; then
5265   DISABLE_ASSERTIONS=
5266
5267 else
5268   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5269
5270 fi
5271
5272 # Check whether --enable-werror was given.
5273 if test "${enable_werror+set}" = set; then
5274   enableval=$enable_werror;
5275 else
5276   enableval="no"
5277 fi
5278
5279 case "$enableval" in
5280   yes) ENABLE_WERROR=1
5281  ;;
5282   no)  ENABLE_WERROR=0
5283  ;;
5284   default) ENABLE_WERROR=0
5285 ;;
5286   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5287 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5288    { (exit 1); exit 1; }; } ;;
5289 esac
5290
5291 # Check whether --enable-expensive-checks was given.
5292 if test "${enable_expensive_checks+set}" = set; then
5293   enableval=$enable_expensive_checks;
5294 else
5295   enableval="no"
5296 fi
5297
5298 if test ${enableval} = "yes" ; then
5299   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5300
5301   EXPENSIVE_CHECKS=yes
5302
5303 else
5304   ENABLE_EXPENSIVE_CHECKS=
5305
5306   EXPENSIVE_CHECKS=no
5307
5308 fi
5309
5310 # Check whether --enable-debug-runtime was given.
5311 if test "${enable_debug_runtime+set}" = set; then
5312   enableval=$enable_debug_runtime;
5313 else
5314   enableval=no
5315 fi
5316
5317 if test ${enableval} = "no" ; then
5318   DEBUG_RUNTIME=
5319
5320 else
5321   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5322
5323 fi
5324
5325 # Check whether --enable-debug-symbols was given.
5326 if test "${enable_debug_symbols+set}" = set; then
5327   enableval=$enable_debug_symbols;
5328 else
5329   enableval=no
5330 fi
5331
5332 if test ${enableval} = "no" ; then
5333   DEBUG_SYMBOLS=
5334
5335 else
5336   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5337
5338 fi
5339
5340 # Check whether --enable-keep-symbols was given.
5341 if test "${enable_keep_symbols+set}" = set; then
5342   enableval=$enable_keep_symbols;
5343 else
5344   enableval=no
5345 fi
5346
5347 if test ${enableval} = "no" ; then
5348   KEEP_SYMBOLS=
5349
5350 else
5351   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5352
5353 fi
5354
5355 # Check whether --enable-jit was given.
5356 if test "${enable_jit+set}" = set; then
5357   enableval=$enable_jit;
5358 else
5359   enableval=default
5360 fi
5361
5362 if test ${enableval} = "no"
5363 then
5364   JIT=
5365
5366 else
5367   case "$llvm_cv_target_arch" in
5368     x86)         TARGET_HAS_JIT=1
5369  ;;
5370     Sparc)       TARGET_HAS_JIT=0
5371  ;;
5372     PowerPC)     TARGET_HAS_JIT=1
5373  ;;
5374     x86_64)      TARGET_HAS_JIT=1
5375  ;;
5376     ARM)         TARGET_HAS_JIT=1
5377  ;;
5378     AArch64)     TARGET_HAS_JIT=0
5379  ;;
5380     Mips)        TARGET_HAS_JIT=1
5381  ;;
5382     XCore)       TARGET_HAS_JIT=0
5383  ;;
5384     MSP430)      TARGET_HAS_JIT=0
5385  ;;
5386     Hexagon)     TARGET_HAS_JIT=0
5387  ;;
5388     MBlaze)      TARGET_HAS_JIT=0
5389  ;;
5390     NVPTX)       TARGET_HAS_JIT=0
5391  ;;
5392     *)           TARGET_HAS_JIT=0
5393  ;;
5394   esac
5395 fi
5396
5397 # Check whether --enable-docs was given.
5398 if test "${enable_docs+set}" = set; then
5399   enableval=$enable_docs;
5400 else
5401   enableval=default
5402 fi
5403
5404 case "$enableval" in
5405   yes) ENABLE_DOCS=1
5406  ;;
5407   no)  ENABLE_DOCS=0
5408  ;;
5409   default) ENABLE_DOCS=1
5410  ;;
5411   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5412 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5413    { (exit 1); exit 1; }; } ;;
5414 esac
5415
5416 # Check whether --enable-doxygen was given.
5417 if test "${enable_doxygen+set}" = set; then
5418   enableval=$enable_doxygen;
5419 else
5420   enableval=default
5421 fi
5422
5423 case "$enableval" in
5424   yes) ENABLE_DOXYGEN=1
5425  ;;
5426   no)  ENABLE_DOXYGEN=0
5427  ;;
5428   default) ENABLE_DOXYGEN=0
5429  ;;
5430   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5431 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5432    { (exit 1); exit 1; }; } ;;
5433 esac
5434
5435 # Check whether --enable-threads was given.
5436 if test "${enable_threads+set}" = set; then
5437   enableval=$enable_threads;
5438 else
5439   enableval=default
5440 fi
5441
5442 case "$enableval" in
5443   yes) LLVM_ENABLE_THREADS=1
5444  ;;
5445   no)  LLVM_ENABLE_THREADS=0
5446  ;;
5447   default) LLVM_ENABLE_THREADS=1
5448  ;;
5449   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5450 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5451    { (exit 1); exit 1; }; } ;;
5452 esac
5453
5454 cat >>confdefs.h <<_ACEOF
5455 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5456 _ACEOF
5457
5458
5459 # Check whether --enable-pthreads was given.
5460 if test "${enable_pthreads+set}" = set; then
5461   enableval=$enable_pthreads;
5462 else
5463   enableval=default
5464 fi
5465
5466 case "$enableval" in
5467   yes) ENABLE_PTHREADS=1
5468  ;;
5469   no)  ENABLE_PTHREADS=0
5470  ;;
5471   default) ENABLE_PTHREADS=1
5472  ;;
5473   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5474 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5475    { (exit 1); exit 1; }; } ;;
5476 esac
5477
5478 # Check whether --enable-pic was given.
5479 if test "${enable_pic+set}" = set; then
5480   enableval=$enable_pic;
5481 else
5482   enableval=default
5483 fi
5484
5485 case "$enableval" in
5486   yes) ENABLE_PIC=1
5487  ;;
5488   no)  ENABLE_PIC=0
5489  ;;
5490   default) ENABLE_PIC=1
5491  ;;
5492   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5493 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5494    { (exit 1); exit 1; }; } ;;
5495 esac
5496
5497 cat >>confdefs.h <<_ACEOF
5498 #define ENABLE_PIC $ENABLE_PIC
5499 _ACEOF
5500
5501
5502 # Check whether --enable-shared was given.
5503 if test "${enable_shared+set}" = set; then
5504   enableval=$enable_shared;
5505 else
5506   enableval=default
5507 fi
5508
5509 case "$enableval" in
5510   yes) ENABLE_SHARED=1
5511  ;;
5512   no)  ENABLE_SHARED=0
5513  ;;
5514   default) ENABLE_SHARED=0
5515  ;;
5516   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5517 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5518    { (exit 1); exit 1; }; } ;;
5519 esac
5520
5521 # Check whether --enable-embed-stdcxx was given.
5522 if test "${enable_embed_stdcxx+set}" = set; then
5523   enableval=$enable_embed_stdcxx;
5524 else
5525   enableval=default
5526 fi
5527
5528 case "$enableval" in
5529   yes) ENABLE_EMBED_STDCXX=1
5530  ;;
5531   no)  ENABLE_EMBED_STDCXX=0
5532  ;;
5533   default) ENABLE_EMBED_STDCXX=0
5534  ;;
5535   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5536 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5537    { (exit 1); exit 1; }; } ;;
5538 esac
5539
5540 # Check whether --enable-timestamps was given.
5541 if test "${enable_timestamps+set}" = set; then
5542   enableval=$enable_timestamps;
5543 else
5544   enableval=default
5545 fi
5546
5547 case "$enableval" in
5548   yes) ENABLE_TIMESTAMPS=1
5549  ;;
5550   no)  ENABLE_TIMESTAMPS=0
5551  ;;
5552   default) ENABLE_TIMESTAMPS=1
5553  ;;
5554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557 esac
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5561 _ACEOF
5562
5563
5564
5565 # Check whether --enable-backtraces was given.
5566 if test "${enable_backtraces+set}" = set; then
5567   enableval=$enable_backtraces;
5568 else
5569   enableval=default
5570 fi
5571
5572 case "$enableval" in
5573   yes) ENABLE_BACKTRACES=1
5574  ;;
5575   no)  ENABLE_BACKTRACES=0
5576  ;;
5577   default) ENABLE_BACKTRACES=1
5578  ;;
5579   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582 esac
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5586 _ACEOF
5587
5588
5589 TARGETS_TO_BUILD=""
5590 # Check whether --enable-targets was given.
5591 if test "${enable_targets+set}" = set; then
5592   enableval=$enable_targets;
5593 else
5594   enableval=all
5595 fi
5596
5597 if test "$enableval" = host-only ; then
5598   enableval=host
5599 fi
5600 case "$enableval" in
5601   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5602   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5603       case "$a_target" in
5604         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5605         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5606         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5607         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5608         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5609         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5610         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5611         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5612         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5613         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5614         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5615         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5616         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5617         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5618         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5619         host) case "$llvm_cv_target_arch" in
5620             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5621             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5622             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5623             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5624             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5625             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5626             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5627             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5628             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5629             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5630             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5631             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5632 echo "$as_me: error: Can not set target to build" >&2;}
5633    { (exit 1); exit 1; }; } ;;
5634           esac ;;
5635         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5636 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5637    { (exit 1); exit 1; }; } ;;
5638       esac
5639   done
5640   ;;
5641 esac
5642
5643 # Check whether --enable-experimental-targets was given.
5644 if test "${enable_experimental_targets+set}" = set; then
5645   enableval=$enable_experimental_targets;
5646 else
5647   enableval=disable
5648 fi
5649
5650
5651 if test ${enableval} != "disable"
5652 then
5653   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5654 fi
5655
5656 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5657
5658
5659 for a_target in $TARGETS_TO_BUILD; do
5660   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5664 _ACEOF
5665
5666     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5667     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5668     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5669     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5670     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5671       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5672     fi
5673     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5674       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5675     fi
5676
5677 cat >>confdefs.h <<_ACEOF
5678 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5679 _ACEOF
5680
5681
5682 cat >>confdefs.h <<_ACEOF
5683 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5684 _ACEOF
5685
5686
5687 cat >>confdefs.h <<_ACEOF
5688 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5689 _ACEOF
5690
5691
5692 cat >>confdefs.h <<_ACEOF
5693 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5694 _ACEOF
5695
5696     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5697
5698 cat >>confdefs.h <<_ACEOF
5699 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5700 _ACEOF
5701
5702     fi
5703     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5707 _ACEOF
5708
5709     fi
5710   fi
5711 done
5712
5713 LLVM_ENUM_TARGETS=""
5714 LLVM_ENUM_ASM_PRINTERS=""
5715 LLVM_ENUM_ASM_PARSERS=""
5716 LLVM_ENUM_DISASSEMBLERS=""
5717 for target_to_build in $TARGETS_TO_BUILD; do
5718   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5719   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5720     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5721   fi
5722   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5723     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5724   fi
5725   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5726     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5727   fi
5728 done
5729
5730
5731
5732
5733
5734
5735 # Check whether --with-optimize-option was given.
5736 if test "${with_optimize_option+set}" = set; then
5737   withval=$with_optimize_option;
5738 else
5739   withval=default
5740 fi
5741
5742 { echo "$as_me:$LINENO: checking optimization flags" >&5
5743 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5744 case "$withval" in
5745   default)
5746     case "$llvm_cv_os_type" in
5747     FreeBSD) optimize_option=-O2 ;;
5748     MingW) optimize_option=-O2 ;;
5749     *)     optimize_option=-O3 ;;
5750     esac ;;
5751   *) optimize_option="$withval" ;;
5752 esac
5753 OPTIMIZE_OPTION=$optimize_option
5754
5755 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5756 echo "${ECHO_T}$optimize_option" >&6; }
5757
5758
5759 # Check whether --with-extra-options was given.
5760 if test "${with_extra_options+set}" = set; then
5761   withval=$with_extra_options;
5762 else
5763   withval=default
5764 fi
5765
5766 case "$withval" in
5767   default) EXTRA_OPTIONS= ;;
5768   *) EXTRA_OPTIONS=$withval ;;
5769 esac
5770 EXTRA_OPTIONS=$EXTRA_OPTIONS
5771
5772
5773
5774 # Check whether --with-extra-ld-options was given.
5775 if test "${with_extra_ld_options+set}" = set; then
5776   withval=$with_extra_ld_options;
5777 else
5778   withval=default
5779 fi
5780
5781 case "$withval" in
5782   default) EXTRA_LD_OPTIONS= ;;
5783   *) EXTRA_LD_OPTIONS=$withval ;;
5784 esac
5785 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5786
5787
5788 # Check whether --enable-bindings was given.
5789 if test "${enable_bindings+set}" = set; then
5790   enableval=$enable_bindings;
5791 else
5792   enableval=default
5793 fi
5794
5795 BINDINGS_TO_BUILD=""
5796 case "$enableval" in
5797   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5798   all ) BINDINGS_TO_BUILD="ocaml" ;;
5799   none | no) BINDINGS_TO_BUILD="" ;;
5800   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5801       case "$a_binding" in
5802         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5803         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5804 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5805    { (exit 1); exit 1; }; } ;;
5806       esac
5807   done
5808   ;;
5809 esac
5810
5811
5812 # Check whether --with-ocaml-libdir was given.
5813 if test "${with_ocaml_libdir+set}" = set; then
5814   withval=$with_ocaml_libdir;
5815 else
5816   withval=auto
5817 fi
5818
5819 case "$withval" in
5820   auto) with_ocaml_libdir="$withval" ;;
5821   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5822   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5823 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5824    { (exit 1); exit 1; }; } ;;
5825 esac
5826
5827
5828 # Check whether --with-clang-srcdir was given.
5829 if test "${with_clang_srcdir+set}" = set; then
5830   withval=$with_clang_srcdir;
5831 else
5832   withval="-"
5833 fi
5834
5835 case "$withval" in
5836   -) clang_src_root="" ;;
5837   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5838   *) clang_src_root="$ac_pwd/$withval" ;;
5839 esac
5840 CLANG_SRC_ROOT=$clang_src_root
5841
5842
5843
5844 # Check whether --with-clang-resource-dir was given.
5845 if test "${with_clang_resource_dir+set}" = set; then
5846   withval=$with_clang_resource_dir;
5847 else
5848   withval=""
5849 fi
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define CLANG_RESOURCE_DIR "$withval"
5854 _ACEOF
5855
5856
5857
5858 # Check whether --with-c-include-dirs was given.
5859 if test "${with_c_include_dirs+set}" = set; then
5860   withval=$with_c_include_dirs;
5861 else
5862   withval=""
5863 fi
5864
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define C_INCLUDE_DIRS "$withval"
5868 _ACEOF
5869
5870
5871 # Clang normally uses the system c++ headers and libraries. With this option,
5872 # clang will use the ones provided by a gcc installation instead. This option should
5873 # be passed the same value that was used with --prefix when configuring gcc.
5874
5875 # Check whether --with-gcc-toolchain was given.
5876 if test "${with_gcc_toolchain+set}" = set; then
5877   withval=$with_gcc_toolchain;
5878 else
5879   withval=""
5880 fi
5881
5882
5883 cat >>confdefs.h <<_ACEOF
5884 #define GCC_INSTALL_PREFIX "$withval"
5885 _ACEOF
5886
5887
5888
5889 # Check whether --with-default-sysroot was given.
5890 if test "${with_default_sysroot+set}" = set; then
5891   withval=$with_default_sysroot;
5892 else
5893   withval=""
5894 fi
5895
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define DEFAULT_SYSROOT "$withval"
5899 _ACEOF
5900
5901
5902
5903 # Check whether --with-binutils-include was given.
5904 if test "${with_binutils_include+set}" = set; then
5905   withval=$with_binutils_include;
5906 else
5907   withval=default
5908 fi
5909
5910 case "$withval" in
5911   default) WITH_BINUTILS_INCDIR=default ;;
5912   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5913   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5914 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5915    { (exit 1); exit 1; }; } ;;
5916 esac
5917 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5918   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5919
5920   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5921      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5922      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5923 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5924    { (exit 1); exit 1; }; };
5925   fi
5926 fi
5927
5928
5929 # Check whether --with-bug-report-url was given.
5930 if test "${with_bug_report_url+set}" = set; then
5931   withval=$with_bug_report_url;
5932 else
5933   withval="http://llvm.org/bugs/"
5934 fi
5935
5936
5937 cat >>confdefs.h <<_ACEOF
5938 #define BUG_REPORT_URL "$withval"
5939 _ACEOF
5940
5941
5942 # Check whether --enable-libffi was given.
5943 if test "${enable_libffi+set}" = set; then
5944   enableval=$enable_libffi; case "$enableval" in
5945     yes) llvm_cv_enable_libffi="yes" ;;
5946     no)  llvm_cv_enable_libffi="no"  ;;
5947     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5948 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5949    { (exit 1); exit 1; }; } ;;
5950   esac
5951 else
5952   llvm_cv_enable_libffi=no
5953 fi
5954
5955
5956
5957 # Check whether --with-internal-prefix was given.
5958 if test "${with_internal_prefix+set}" = set; then
5959   withval=$with_internal_prefix;
5960 else
5961   withval=""
5962 fi
5963
5964 INTERNAL_PREFIX=$withval
5965
5966
5967
5968 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5969 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5970 if test "${lt_cv_path_NM+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   if test -n "$NM"; then
5974   # Let the user override the test.
5975   lt_cv_path_NM="$NM"
5976 else
5977   lt_nm_to_check="${ac_tool_prefix}nm"
5978   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5979     lt_nm_to_check="$lt_nm_to_check nm"
5980   fi
5981   for lt_tmp_nm in $lt_nm_to_check; do
5982     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5983     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5984       IFS="$lt_save_ifs"
5985       test -z "$ac_dir" && ac_dir=.
5986       tmp_nm="$ac_dir/$lt_tmp_nm"
5987       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5988         # Check to see if the nm accepts a BSD-compat flag.
5989         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5990         #   nm: unknown option "B" ignored
5991         # Tru64's nm complains that /dev/null is an invalid object file
5992         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5993         */dev/null* | *'Invalid file or object type'*)
5994           lt_cv_path_NM="$tmp_nm -B"
5995           break
5996           ;;
5997         *)
5998           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5999           */dev/null*)
6000             lt_cv_path_NM="$tmp_nm -p"
6001             break
6002             ;;
6003           *)
6004             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6005             continue # so that we can try to find one that supports BSD flags
6006             ;;
6007           esac
6008           ;;
6009         esac
6010       fi
6011     done
6012     IFS="$lt_save_ifs"
6013   done
6014   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6015 fi
6016 fi
6017 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6018 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6019 NM="$lt_cv_path_NM"
6020
6021
6022
6023 { echo "$as_me:$LINENO: checking for GNU make" >&5
6024 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6025 if test "${llvm_cv_gnu_make_command+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   llvm_cv_gnu_make_command=''
6029  for a in "$MAKE" make gmake gnumake ; do
6030   if test -z "$a" ; then continue ; fi ;
6031   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6032   then
6033    llvm_cv_gnu_make_command=$a ;
6034    break;
6035   fi
6036  done
6037 fi
6038 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6039 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6040  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6041    ifGNUmake='' ;
6042  else
6043    ifGNUmake='#' ;
6044    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6045 echo "${ECHO_T}\"Not found\"" >&6; };
6046  fi
6047
6048
6049 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6050 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6051 LN_S=$as_ln_s
6052 if test "$LN_S" = "ln -s"; then
6053   { echo "$as_me:$LINENO: result: yes" >&5
6054 echo "${ECHO_T}yes" >&6; }
6055 else
6056   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6057 echo "${ECHO_T}no, using $LN_S" >&6; }
6058 fi
6059
6060 # Extract the first word of "cmp", so it can be a program name with args.
6061 set dummy cmp; ac_word=$2
6062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6064 if test "${ac_cv_path_CMP+set}" = set; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067   case $CMP in
6068   [\\/]* | ?:[\\/]*)
6069   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6070   ;;
6071   *)
6072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077   for ac_exec_ext in '' $ac_executable_extensions; do
6078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6079     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6088   ;;
6089 esac
6090 fi
6091 CMP=$ac_cv_path_CMP
6092 if test -n "$CMP"; then
6093   { echo "$as_me:$LINENO: result: $CMP" >&5
6094 echo "${ECHO_T}$CMP" >&6; }
6095 else
6096   { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6098 fi
6099
6100
6101 # Extract the first word of "cp", so it can be a program name with args.
6102 set dummy cp; ac_word=$2
6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105 if test "${ac_cv_path_CP+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   case $CP in
6109   [\\/]* | ?:[\\/]*)
6110   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6111   ;;
6112   *)
6113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6129   ;;
6130 esac
6131 fi
6132 CP=$ac_cv_path_CP
6133 if test -n "$CP"; then
6134   { echo "$as_me:$LINENO: result: $CP" >&5
6135 echo "${ECHO_T}$CP" >&6; }
6136 else
6137   { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6139 fi
6140
6141
6142 # Extract the first word of "date", so it can be a program name with args.
6143 set dummy date; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_path_DATE+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   case $DATE in
6150   [\\/]* | ?:[\\/]*)
6151   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6152   ;;
6153   *)
6154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159   for ac_exec_ext in '' $ac_executable_extensions; do
6160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6170   ;;
6171 esac
6172 fi
6173 DATE=$ac_cv_path_DATE
6174 if test -n "$DATE"; then
6175   { echo "$as_me:$LINENO: result: $DATE" >&5
6176 echo "${ECHO_T}$DATE" >&6; }
6177 else
6178   { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6180 fi
6181
6182
6183 # Extract the first word of "find", so it can be a program name with args.
6184 set dummy find; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_path_FIND+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   case $FIND in
6191   [\\/]* | ?:[\\/]*)
6192   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6193   ;;
6194   *)
6195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200   for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6211   ;;
6212 esac
6213 fi
6214 FIND=$ac_cv_path_FIND
6215 if test -n "$FIND"; then
6216   { echo "$as_me:$LINENO: result: $FIND" >&5
6217 echo "${ECHO_T}$FIND" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223
6224 # Extract the first word of "grep", so it can be a program name with args.
6225 set dummy grep; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_GREP+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   case $GREP in
6232   [\\/]* | ?:[\\/]*)
6233   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6234   ;;
6235   *)
6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241   for ac_exec_ext in '' $ac_executable_extensions; do
6242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6252   ;;
6253 esac
6254 fi
6255 GREP=$ac_cv_path_GREP
6256 if test -n "$GREP"; then
6257   { echo "$as_me:$LINENO: result: $GREP" >&5
6258 echo "${ECHO_T}$GREP" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264
6265 # Extract the first word of "mkdir", so it can be a program name with args.
6266 set dummy mkdir; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_MKDIR+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272   case $MKDIR in
6273   [\\/]* | ?:[\\/]*)
6274   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6275   ;;
6276   *)
6277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282   for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6293   ;;
6294 esac
6295 fi
6296 MKDIR=$ac_cv_path_MKDIR
6297 if test -n "$MKDIR"; then
6298   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6299 echo "${ECHO_T}$MKDIR" >&6; }
6300 else
6301   { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303 fi
6304
6305
6306 # Extract the first word of "mv", so it can be a program name with args.
6307 set dummy mv; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_MV+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   case $MV in
6314   [\\/]* | ?:[\\/]*)
6315   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6316   ;;
6317   *)
6318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323   for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6334   ;;
6335 esac
6336 fi
6337 MV=$ac_cv_path_MV
6338 if test -n "$MV"; then
6339   { echo "$as_me:$LINENO: result: $MV" >&5
6340 echo "${ECHO_T}$MV" >&6; }
6341 else
6342   { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6344 fi
6345
6346
6347 if test -n "$ac_tool_prefix"; then
6348   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_prog_RANLIB+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   if test -n "$RANLIB"; then
6356   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363   for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 RANLIB=$ac_cv_prog_RANLIB
6376 if test -n "$RANLIB"; then
6377   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6378 echo "${ECHO_T}$RANLIB" >&6; }
6379 else
6380   { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6382 fi
6383
6384
6385 fi
6386 if test -z "$ac_cv_prog_RANLIB"; then
6387   ac_ct_RANLIB=$RANLIB
6388   # Extract the first word of "ranlib", so it can be a program name with args.
6389 set dummy ranlib; ac_word=$2
6390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   if test -n "$ac_ct_RANLIB"; then
6396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403   for ac_exec_ext in '' $ac_executable_extensions; do
6404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6405     ac_cv_prog_ac_ct_RANLIB="ranlib"
6406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6416 if test -n "$ac_ct_RANLIB"; then
6417   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6418 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6419 else
6420   { echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6; }
6422 fi
6423
6424   if test "x$ac_ct_RANLIB" = x; then
6425     RANLIB=":"
6426   else
6427     case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6430 whose name does not start with the host triplet.  If you think this
6431 configuration is useful to you, please write to autoconf@gnu.org." >&5
6432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet.  If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437     RANLIB=$ac_ct_RANLIB
6438   fi
6439 else
6440   RANLIB="$ac_cv_prog_RANLIB"
6441 fi
6442
6443 if test -n "$ac_tool_prefix"; then
6444   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}ar; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_prog_AR+set}" = set; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451   if test -n "$AR"; then
6452   ac_cv_prog_AR="$AR" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459   for ac_exec_ext in '' $ac_executable_extensions; do
6460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6461     ac_cv_prog_AR="${ac_tool_prefix}ar"
6462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 AR=$ac_cv_prog_AR
6472 if test -n "$AR"; then
6473   { echo "$as_me:$LINENO: result: $AR" >&5
6474 echo "${ECHO_T}$AR" >&6; }
6475 else
6476   { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6478 fi
6479
6480
6481 fi
6482 if test -z "$ac_cv_prog_AR"; then
6483   ac_ct_AR=$AR
6484   # Extract the first word of "ar", so it can be a program name with args.
6485 set dummy ar; ac_word=$2
6486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6489   echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491   if test -n "$ac_ct_AR"; then
6492   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499   for ac_exec_ext in '' $ac_executable_extensions; do
6500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501     ac_cv_prog_ac_ct_AR="ar"
6502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6512 if test -n "$ac_ct_AR"; then
6513   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6514 echo "${ECHO_T}$ac_ct_AR" >&6; }
6515 else
6516   { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6518 fi
6519
6520   if test "x$ac_ct_AR" = x; then
6521     AR="false"
6522   else
6523     case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526 whose name does not start with the host triplet.  If you think this
6527 configuration is useful to you, please write to autoconf@gnu.org." >&5
6528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet.  If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533     AR=$ac_ct_AR
6534   fi
6535 else
6536   AR="$ac_cv_prog_AR"
6537 fi
6538
6539 # Extract the first word of "rm", so it can be a program name with args.
6540 set dummy rm; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_RM+set}" = set; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546   case $RM in
6547   [\\/]* | ?:[\\/]*)
6548   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6549   ;;
6550   *)
6551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556   for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6567   ;;
6568 esac
6569 fi
6570 RM=$ac_cv_path_RM
6571 if test -n "$RM"; then
6572   { echo "$as_me:$LINENO: result: $RM" >&5
6573 echo "${ECHO_T}$RM" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579
6580 # Extract the first word of "sed", so it can be a program name with args.
6581 set dummy sed; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_SED+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   case $SED in
6588   [\\/]* | ?:[\\/]*)
6589   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6590   ;;
6591   *)
6592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   for ac_exec_ext in '' $ac_executable_extensions; do
6598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6608   ;;
6609 esac
6610 fi
6611 SED=$ac_cv_path_SED
6612 if test -n "$SED"; then
6613   { echo "$as_me:$LINENO: result: $SED" >&5
6614 echo "${ECHO_T}$SED" >&6; }
6615 else
6616   { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6618 fi
6619
6620
6621 # Extract the first word of "tar", so it can be a program name with args.
6622 set dummy tar; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_TAR+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   case $TAR in
6629   [\\/]* | ?:[\\/]*)
6630   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6631   ;;
6632   *)
6633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638   for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6649   ;;
6650 esac
6651 fi
6652 TAR=$ac_cv_path_TAR
6653 if test -n "$TAR"; then
6654   { echo "$as_me:$LINENO: result: $TAR" >&5
6655 echo "${ECHO_T}$TAR" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660
6661
6662 # Extract the first word of "pwd", so it can be a program name with args.
6663 set dummy pwd; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_path_BINPWD+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   case $BINPWD in
6670   [\\/]* | ?:[\\/]*)
6671   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6672   ;;
6673   *)
6674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679   for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6690   ;;
6691 esac
6692 fi
6693 BINPWD=$ac_cv_path_BINPWD
6694 if test -n "$BINPWD"; then
6695   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6696 echo "${ECHO_T}$BINPWD" >&6; }
6697 else
6698   { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6700 fi
6701
6702
6703
6704 # Extract the first word of "Graphviz", so it can be a program name with args.
6705 set dummy Graphviz; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $GRAPHVIZ in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6732   ;;
6733 esac
6734 fi
6735 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6736 if test -n "$GRAPHVIZ"; then
6737   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6738 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_GRAPHVIZ 1
6749 _ACEOF
6750
6751     if test "$llvm_cv_os_type" = "MingW" ; then
6752     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753   fi
6754
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6757 _ACEOF
6758
6759 fi
6760 # Extract the first word of "dot", so it can be a program name with args.
6761 set dummy dot; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DOT+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   case $DOT in
6768   [\\/]* | ?:[\\/]*)
6769   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6770   ;;
6771   *)
6772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777   for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6788   ;;
6789 esac
6790 fi
6791 DOT=$ac_cv_path_DOT
6792 if test -n "$DOT"; then
6793   { echo "$as_me:$LINENO: result: $DOT" >&5
6794 echo "${ECHO_T}$DOT" >&6; }
6795 else
6796   { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6798 fi
6799
6800
6801 if test "$DOT" != "echo dot" ; then
6802
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_DOT 1
6805 _ACEOF
6806
6807     if test "$llvm_cv_os_type" = "MingW" ; then
6808     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6809   fi
6810
6811 cat >>confdefs.h <<_ACEOF
6812 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6813 _ACEOF
6814
6815 fi
6816 # Extract the first word of "fdp", so it can be a program name with args.
6817 set dummy fdp; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_FDP+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $FDP in
6824   [\\/]* | ?:[\\/]*)
6825   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6826   ;;
6827   *)
6828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831   IFS=$as_save_IFS
6832   test -z "$as_dir" && as_dir=.
6833   for ac_exec_ext in '' $ac_executable_extensions; do
6834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837     break 2
6838   fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6844   ;;
6845 esac
6846 fi
6847 FDP=$ac_cv_path_FDP
6848 if test -n "$FDP"; then
6849   { echo "$as_me:$LINENO: result: $FDP" >&5
6850 echo "${ECHO_T}$FDP" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856
6857 if test "$FDP" != "echo fdp" ; then
6858
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_FDP 1
6861 _ACEOF
6862
6863     if test "$llvm_cv_os_type" = "MingW" ; then
6864     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6865   fi
6866
6867 cat >>confdefs.h <<_ACEOF
6868 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6869 _ACEOF
6870
6871 fi
6872 # Extract the first word of "neato", so it can be a program name with args.
6873 set dummy neato; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_NEATO+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   case $NEATO in
6880   [\\/]* | ?:[\\/]*)
6881   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6882   ;;
6883   *)
6884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889   for ac_exec_ext in '' $ac_executable_extensions; do
6890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6900   ;;
6901 esac
6902 fi
6903 NEATO=$ac_cv_path_NEATO
6904 if test -n "$NEATO"; then
6905   { echo "$as_me:$LINENO: result: $NEATO" >&5
6906 echo "${ECHO_T}$NEATO" >&6; }
6907 else
6908   { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6910 fi
6911
6912
6913 if test "$NEATO" != "echo neato" ; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define HAVE_NEATO 1
6917 _ACEOF
6918
6919     if test "$llvm_cv_os_type" = "MingW" ; then
6920     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6921   fi
6922
6923 cat >>confdefs.h <<_ACEOF
6924 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6925 _ACEOF
6926
6927 fi
6928 # Extract the first word of "twopi", so it can be a program name with args.
6929 set dummy twopi; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_TWOPI+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   case $TWOPI in
6936   [\\/]* | ?:[\\/]*)
6937   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6938   ;;
6939   *)
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945   for ac_exec_ext in '' $ac_executable_extensions; do
6946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6956   ;;
6957 esac
6958 fi
6959 TWOPI=$ac_cv_path_TWOPI
6960 if test -n "$TWOPI"; then
6961   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6962 echo "${ECHO_T}$TWOPI" >&6; }
6963 else
6964   { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6966 fi
6967
6968
6969 if test "$TWOPI" != "echo twopi" ; then
6970
6971 cat >>confdefs.h <<\_ACEOF
6972 #define HAVE_TWOPI 1
6973 _ACEOF
6974
6975     if test "$llvm_cv_os_type" = "MingW" ; then
6976     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6977   fi
6978
6979 cat >>confdefs.h <<_ACEOF
6980 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6981 _ACEOF
6982
6983 fi
6984 # Extract the first word of "circo", so it can be a program name with args.
6985 set dummy circo; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_CIRCO+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   case $CIRCO in
6992   [\\/]* | ?:[\\/]*)
6993   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6994   ;;
6995   *)
6996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001   for ac_exec_ext in '' $ac_executable_extensions; do
7002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008 done
7009 IFS=$as_save_IFS
7010
7011   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7012   ;;
7013 esac
7014 fi
7015 CIRCO=$ac_cv_path_CIRCO
7016 if test -n "$CIRCO"; then
7017   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7018 echo "${ECHO_T}$CIRCO" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024
7025 if test "$CIRCO" != "echo circo" ; then
7026
7027 cat >>confdefs.h <<\_ACEOF
7028 #define HAVE_CIRCO 1
7029 _ACEOF
7030
7031     if test "$llvm_cv_os_type" = "MingW" ; then
7032     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7033   fi
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7037 _ACEOF
7038
7039 fi
7040 for ac_prog in gv gsview32
7041 do
7042   # Extract the first word of "$ac_prog", so it can be a program name with args.
7043 set dummy $ac_prog; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_GV+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   case $GV in
7050   [\\/]* | ?:[\\/]*)
7051   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7052   ;;
7053   *)
7054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069   ;;
7070 esac
7071 fi
7072 GV=$ac_cv_path_GV
7073 if test -n "$GV"; then
7074   { echo "$as_me:$LINENO: result: $GV" >&5
7075 echo "${ECHO_T}$GV" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082   test -n "$GV" && break
7083 done
7084 test -n "$GV" || GV="echo gv"
7085
7086 if test "$GV" != "echo gv" ; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_GV 1
7090 _ACEOF
7091
7092     if test "$llvm_cv_os_type" = "MingW" ; then
7093     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7094   fi
7095
7096 cat >>confdefs.h <<_ACEOF
7097 #define LLVM_PATH_GV "$GV${EXEEXT}"
7098 _ACEOF
7099
7100 fi
7101 # Extract the first word of "dotty", so it can be a program name with args.
7102 set dummy dotty; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_DOTTY+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   case $DOTTY in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7129   ;;
7130 esac
7131 fi
7132 DOTTY=$ac_cv_path_DOTTY
7133 if test -n "$DOTTY"; then
7134   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7135 echo "${ECHO_T}$DOTTY" >&6; }
7136 else
7137   { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7139 fi
7140
7141
7142 if test "$DOTTY" != "echo dotty" ; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_DOTTY 1
7146 _ACEOF
7147
7148     if test "$llvm_cv_os_type" = "MingW" ; then
7149     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7150   fi
7151
7152 cat >>confdefs.h <<_ACEOF
7153 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7154 _ACEOF
7155
7156 fi
7157 # Extract the first word of "xdot.py", so it can be a program name with args.
7158 set dummy xdot.py; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   case $XDOT_PY in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7185   ;;
7186 esac
7187 fi
7188 XDOT_PY=$ac_cv_path_XDOT_PY
7189 if test -n "$XDOT_PY"; then
7190   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7191 echo "${ECHO_T}$XDOT_PY" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 if test "$XDOT_PY" != "echo xdot.py" ; then
7199
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_XDOT_PY 1
7202 _ACEOF
7203
7204     if test "$llvm_cv_os_type" = "MingW" ; then
7205     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7206   fi
7207
7208 cat >>confdefs.h <<_ACEOF
7209 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7210 _ACEOF
7211
7212 fi
7213
7214 # Find a good install program.  We prefer a C program (faster),
7215 # so one script is as good as another.  But avoid the broken or
7216 # incompatible versions:
7217 # SysV /etc/install, /usr/sbin/install
7218 # SunOS /usr/etc/install
7219 # IRIX /sbin/install
7220 # AIX /bin/install
7221 # AmigaOS /C/install, which installs bootblocks on floppy discs
7222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7225 # OS/2's system install, which has a completely different semantic
7226 # ./install, which can be erroneously created by make from ./install.sh.
7227 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7228 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7229 if test -z "$INSTALL"; then
7230 if test "${ac_cv_path_install+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238   # Account for people who put trailing slashes in PATH elements.
7239 case $as_dir/ in
7240   ./ | .// | /cC/* | \
7241   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7242   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7243   /usr/ucb/* ) ;;
7244   *)
7245     # OSF1 and SCO ODT 3.0 have their own names for install.
7246     # Don't use installbsd from OSF since it installs stuff as root
7247     # by default.
7248     for ac_prog in ginstall scoinst install; do
7249       for ac_exec_ext in '' $ac_executable_extensions; do
7250         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7251           if test $ac_prog = install &&
7252             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7253             # AIX install.  It has an incompatible calling convention.
7254             :
7255           elif test $ac_prog = install &&
7256             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7257             # program-specific install script used by HP pwplus--don't use.
7258             :
7259           else
7260             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7261             break 3
7262           fi
7263         fi
7264       done
7265     done
7266     ;;
7267 esac
7268 done
7269 IFS=$as_save_IFS
7270
7271
7272 fi
7273   if test "${ac_cv_path_install+set}" = set; then
7274     INSTALL=$ac_cv_path_install
7275   else
7276     # As a last resort, use the slow shell script.  Don't cache a
7277     # value for INSTALL within a source directory, because that will
7278     # break other packages using the cache if that directory is
7279     # removed, or if the value is a relative name.
7280     INSTALL=$ac_install_sh
7281   fi
7282 fi
7283 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7284 echo "${ECHO_T}$INSTALL" >&6; }
7285
7286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7287 # It thinks the first close brace ends the variable substitution.
7288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7289
7290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7291
7292 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7293
7294 case "$INSTALL" in
7295  [\\/$]* | ?:[\\/]* ) ;;
7296  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7297 esac
7298
7299 # Extract the first word of "bzip2", so it can be a program name with args.
7300 set dummy bzip2; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_BZIP2+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $BZIP2 in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 BZIP2=$ac_cv_path_BZIP2
7330 if test -n "$BZIP2"; then
7331   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7332 echo "${ECHO_T}$BZIP2" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339 # Extract the first word of "cat", so it can be a program name with args.
7340 set dummy cat; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_CAT+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   case $CAT in
7347   [\\/]* | ?:[\\/]*)
7348   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7349   ;;
7350   *)
7351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366   ;;
7367 esac
7368 fi
7369 CAT=$ac_cv_path_CAT
7370 if test -n "$CAT"; then
7371   { echo "$as_me:$LINENO: result: $CAT" >&5
7372 echo "${ECHO_T}$CAT" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378
7379 # Extract the first word of "doxygen", so it can be a program name with args.
7380 set dummy doxygen; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   case $DOXYGEN in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406   ;;
7407 esac
7408 fi
7409 DOXYGEN=$ac_cv_path_DOXYGEN
7410 if test -n "$DOXYGEN"; then
7411   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7412 echo "${ECHO_T}$DOXYGEN" >&6; }
7413 else
7414   { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7416 fi
7417
7418
7419 # Extract the first word of "groff", so it can be a program name with args.
7420 set dummy groff; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_GROFF+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   case $GROFF in
7427   [\\/]* | ?:[\\/]*)
7428   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7429   ;;
7430   *)
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446   ;;
7447 esac
7448 fi
7449 GROFF=$ac_cv_path_GROFF
7450 if test -n "$GROFF"; then
7451   { echo "$as_me:$LINENO: result: $GROFF" >&5
7452 echo "${ECHO_T}$GROFF" >&6; }
7453 else
7454   { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7456 fi
7457
7458
7459 # Extract the first word of "gzip", so it can be a program name with args.
7460 set dummy gzip; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   case $GZIPBIN in
7467   [\\/]* | ?:[\\/]*)
7468   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7469   ;;
7470   *)
7471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476   for ac_exec_ext in '' $ac_executable_extensions; do
7477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7478     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483 done
7484 IFS=$as_save_IFS
7485
7486   ;;
7487 esac
7488 fi
7489 GZIPBIN=$ac_cv_path_GZIPBIN
7490 if test -n "$GZIPBIN"; then
7491   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7492 echo "${ECHO_T}$GZIPBIN" >&6; }
7493 else
7494   { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7496 fi
7497
7498
7499 # Extract the first word of "pdfroff", so it can be a program name with args.
7500 set dummy pdfroff; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_PDFROFF+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $PDFROFF in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   ;;
7527 esac
7528 fi
7529 PDFROFF=$ac_cv_path_PDFROFF
7530 if test -n "$PDFROFF"; then
7531   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7532 echo "${ECHO_T}$PDFROFF" >&6; }
7533 else
7534   { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538
7539 # Extract the first word of "zip", so it can be a program name with args.
7540 set dummy zip; ac_word=$2
7541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_ZIP+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   case $ZIP in
7547   [\\/]* | ?:[\\/]*)
7548   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7549   ;;
7550   *)
7551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566   ;;
7567 esac
7568 fi
7569 ZIP=$ac_cv_path_ZIP
7570 if test -n "$ZIP"; then
7571   { echo "$as_me:$LINENO: result: $ZIP" >&5
7572 echo "${ECHO_T}$ZIP" >&6; }
7573 else
7574   { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576 fi
7577
7578
7579 for ac_prog in ocamlc
7580 do
7581   # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_OCAMLC+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $OCAMLC in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   ;;
7609 esac
7610 fi
7611 OCAMLC=$ac_cv_path_OCAMLC
7612 if test -n "$OCAMLC"; then
7613   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7614 echo "${ECHO_T}$OCAMLC" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621   test -n "$OCAMLC" && break
7622 done
7623
7624 for ac_prog in ocamlopt
7625 do
7626   # Extract the first word of "$ac_prog", so it can be a program name with args.
7627 set dummy $ac_prog; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   case $OCAMLOPT in
7634   [\\/]* | ?:[\\/]*)
7635   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7636   ;;
7637   *)
7638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643   for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653   ;;
7654 esac
7655 fi
7656 OCAMLOPT=$ac_cv_path_OCAMLOPT
7657 if test -n "$OCAMLOPT"; then
7658   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7659 echo "${ECHO_T}$OCAMLOPT" >&6; }
7660 else
7661   { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7663 fi
7664
7665
7666   test -n "$OCAMLOPT" && break
7667 done
7668
7669 for ac_prog in ocamldep
7670 do
7671   # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   case $OCAMLDEP in
7679   [\\/]* | ?:[\\/]*)
7680   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7681   ;;
7682   *)
7683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688   for ac_exec_ext in '' $ac_executable_extensions; do
7689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698   ;;
7699 esac
7700 fi
7701 OCAMLDEP=$ac_cv_path_OCAMLDEP
7702 if test -n "$OCAMLDEP"; then
7703   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7704 echo "${ECHO_T}$OCAMLDEP" >&6; }
7705 else
7706   { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7708 fi
7709
7710
7711   test -n "$OCAMLDEP" && break
7712 done
7713
7714 for ac_prog in ocamldoc
7715 do
7716   # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   case $OCAMLDOC in
7724   [\\/]* | ?:[\\/]*)
7725   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7726   ;;
7727   *)
7728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733   for ac_exec_ext in '' $ac_executable_extensions; do
7734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737     break 2
7738   fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743   ;;
7744 esac
7745 fi
7746 OCAMLDOC=$ac_cv_path_OCAMLDOC
7747 if test -n "$OCAMLDOC"; then
7748   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7749 echo "${ECHO_T}$OCAMLDOC" >&6; }
7750 else
7751   { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7753 fi
7754
7755
7756   test -n "$OCAMLDOC" && break
7757 done
7758
7759 for ac_prog in gas as
7760 do
7761   # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_path_GAS+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   case $GAS in
7769   [\\/]* | ?:[\\/]*)
7770   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7771   ;;
7772   *)
7773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778   for ac_exec_ext in '' $ac_executable_extensions; do
7779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7780     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788   ;;
7789 esac
7790 fi
7791 GAS=$ac_cv_path_GAS
7792 if test -n "$GAS"; then
7793   { echo "$as_me:$LINENO: result: $GAS" >&5
7794 echo "${ECHO_T}$GAS" >&6; }
7795 else
7796   { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7798 fi
7799
7800
7801   test -n "$GAS" && break
7802 done
7803
7804
7805 { echo "$as_me:$LINENO: checking for linker version" >&5
7806 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7807 if test "${llvm_cv_link_version+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810
7811    version_string="$(ld -v 2>&1 | head -1)"
7812
7813    # Check for ld64.
7814    if (echo "$version_string" | grep -q "ld64"); then
7815      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7816    else
7817      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7818    fi
7819
7820 fi
7821 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7822 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7826 _ACEOF
7827
7828
7829
7830 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7831 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7832 if test "${llvm_cv_link_use_r+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835    ac_ext=c
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840
7841   oldcflags="$CFLAGS"
7842   CFLAGS="$CFLAGS -Wl,-R."
7843   cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h.  */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h.  */
7849
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7860 case "(($ac_try" in
7861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862   *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865   (eval "$ac_link") 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873   { (case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_try") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest$ac_exeext'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   llvm_cv_link_use_r=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897         llvm_cv_link_use_r=no
7898 fi
7899
7900 rm -f core conftest.err conftest.$ac_objext \
7901       conftest$ac_exeext conftest.$ac_ext
7902   CFLAGS="$oldcflags"
7903   ac_ext=c
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908
7909
7910 fi
7911 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7912 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7913 if test "$llvm_cv_link_use_r" = yes ; then
7914
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_LINK_R 1
7917 _ACEOF
7918
7919   fi
7920
7921
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927    ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933   oldcflags="$CFLAGS"
7934   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7935   cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941
7942 int
7943 main ()
7944 {
7945
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7952 case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957   (eval "$ac_link") 2>conftest.er1
7958   ac_status=$?
7959   grep -v '^ *+' conftest.er1 >conftest.err
7960   rm -f conftest.er1
7961   cat conftest.err >&5
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7965   { (case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_try") 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; } &&
7974          { ac_try='test -s conftest$ac_exeext'
7975   { (case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_try") 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   llvm_cv_link_use_export_dynamic=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989         llvm_cv_link_use_export_dynamic=no
7990 fi
7991
7992 rm -f core conftest.err conftest.$ac_objext \
7993       conftest$ac_exeext conftest.$ac_ext
7994   CFLAGS="$oldcflags"
7995   ac_ext=c
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000
8001
8002 fi
8003 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8004 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8005 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8006
8007 cat >>confdefs.h <<\_ACEOF
8008 #define HAVE_LINK_EXPORT_DYNAMIC 1
8009 _ACEOF
8010
8011   fi
8012
8013
8014 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8015 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8016 if test "${llvm_cv_link_use_version_script+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019    ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025   oldcflags="$CFLAGS"
8026
8027   # The following code is from the autoconf manual,
8028   # "11.13: Limitations of Usual Tools".
8029   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8030   # Use mktemp if possible; otherwise fall back on mkdir,
8031   # with $RANDOM to make collisions less likely.
8032   : ${TMPDIR=/tmp}
8033   {
8034     tmp=`
8035       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8036     ` &&
8037     test -n "$tmp" && test -d "$tmp"
8038   } || {
8039     tmp=$TMPDIR/foo$$-$RANDOM
8040     (umask 077 && mkdir "$tmp")
8041   } || exit $?
8042
8043   echo "{" > "$tmp/export.map"
8044   echo "  global: main;" >> "$tmp/export.map"
8045   echo "  local: *;" >> "$tmp/export.map"
8046   echo "};" >> "$tmp/export.map"
8047
8048   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055
8056 int
8057 main ()
8058 {
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_link") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } &&
8078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079   { (case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084   (eval "$ac_try") 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; } &&
8088          { ac_try='test -s conftest$ac_exeext'
8089   { (case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_try") 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); }; }; then
8098   llvm_cv_link_use_version_script=yes
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103         llvm_cv_link_use_version_script=no
8104 fi
8105
8106 rm -f core conftest.err conftest.$ac_objext \
8107       conftest$ac_exeext conftest.$ac_ext
8108   rm "$tmp/export.map"
8109   rmdir "$tmp"
8110   CFLAGS="$oldcflags"
8111   ac_ext=c
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117
8118 fi
8119 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8120 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8121 if test "$llvm_cv_link_use_version_script" = yes ; then
8122   HAVE_LINK_VERSION_SCRIPT=1
8123
8124   fi
8125
8126
8127
8128
8129 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8130 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8131 if test "${ac_cv_c_const+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140
8141 int
8142 main ()
8143 {
8144 /* FIXME: Include the comments suggested by Paul. */
8145 #ifndef __cplusplus
8146   /* Ultrix mips cc rejects this.  */
8147   typedef int charset[2];
8148   const charset x;
8149   /* SunOS 4.1.1 cc rejects this.  */
8150   char const *const *ccp;
8151   char **p;
8152   /* NEC SVR4.0.2 mips cc rejects this.  */
8153   struct point {int x, y;};
8154   static struct point const zero = {0,0};
8155   /* AIX XL C 1.02.0.0 rejects this.
8156      It does not let you subtract one const X* pointer from another in
8157      an arm of an if-expression whose if-part is not a constant
8158      expression */
8159   const char *g = "string";
8160   ccp = &g + (g ? g-g : 0);
8161   /* HPUX 7.0 cc rejects these. */
8162   ++ccp;
8163   p = (char**) ccp;
8164   ccp = (char const *const *) p;
8165   { /* SCO 3.2v4 cc rejects this.  */
8166     char *t;
8167     char const *s = 0 ? (char *) 0 : (char const *) 0;
8168
8169     *t++ = 0;
8170     if (s) return 0;
8171   }
8172   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8173     int x[] = {25, 17};
8174     const int *foo = &x[0];
8175     ++foo;
8176   }
8177   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8178     typedef const int *iptr;
8179     iptr p = 0;
8180     ++p;
8181   }
8182   { /* AIX XL C 1.02.0.0 rejects this saying
8183        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8184     struct s { int j; const int *ap[3]; };
8185     struct s *b; b->j = 5;
8186   }
8187   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8188     const int foo = 10;
8189     if (!foo) return 0;
8190   }
8191   return !x[0] && !zero.x;
8192 #endif
8193
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (ac_try="$ac_compile"
8200 case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_compile") 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213   { (case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218   (eval "$ac_try") 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; } &&
8222          { ac_try='test -s conftest.$ac_objext'
8223   { (case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_try") 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; }; then
8232   ac_cv_c_const=yes
8233 else
8234   echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237         ac_cv_c_const=no
8238 fi
8239
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8243 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8244 if test $ac_cv_c_const = no; then
8245
8246 cat >>confdefs.h <<\_ACEOF
8247 #define const
8248 _ACEOF
8249
8250 fi
8251
8252
8253
8254
8255
8256
8257 ac_header_dirent=no
8258 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8259   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8260 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8261 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 #include <sys/types.h>
8272 #include <$ac_hdr>
8273
8274 int
8275 main ()
8276 {
8277 if ((DIR *) 0)
8278 return 0;
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290   (eval "$ac_compile") 2>conftest.er1
8291   ac_status=$?
8292   grep -v '^ *+' conftest.er1 >conftest.err
8293   rm -f conftest.er1
8294   cat conftest.err >&5
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } &&
8297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8298   { (case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303   (eval "$ac_try") 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; } &&
8307          { ac_try='test -s conftest.$ac_objext'
8308   { (case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_try") 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   eval "$as_ac_Header=yes"
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322         eval "$as_ac_Header=no"
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328                { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331   cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 ac_header_dirent=$ac_hdr; break
8336 fi
8337
8338 done
8339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8340 if test $ac_header_dirent = dirent.h; then
8341   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8343 if test "${ac_cv_search_opendir+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   ac_func_search_save_LIBS=$LIBS
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353
8354 /* Override any GCC internal prototype to avoid an error.
8355    Use char because int might match the return type of a GCC
8356    builtin and then its argument prototype would still apply.  */
8357 #ifdef __cplusplus
8358 extern "C"
8359 #endif
8360 char opendir ();
8361 int
8362 main ()
8363 {
8364 return opendir ();
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 for ac_lib in '' dir; do
8370   if test -z "$ac_lib"; then
8371     ac_res="none required"
8372   else
8373     ac_res=-l$ac_lib
8374     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8375   fi
8376   rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (ac_try="$ac_link"
8378 case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_link") 2>conftest.er1
8384   ac_status=$?
8385   grep -v '^ *+' conftest.er1 >conftest.err
8386   rm -f conftest.er1
8387   cat conftest.err >&5
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } &&
8390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391   { (case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_try") 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_try") 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   ac_cv_search_opendir=$ac_res
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext \
8419       conftest$ac_exeext
8420   if test "${ac_cv_search_opendir+set}" = set; then
8421   break
8422 fi
8423 done
8424 if test "${ac_cv_search_opendir+set}" = set; then
8425   :
8426 else
8427   ac_cv_search_opendir=no
8428 fi
8429 rm conftest.$ac_ext
8430 LIBS=$ac_func_search_save_LIBS
8431 fi
8432 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8433 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8434 ac_res=$ac_cv_search_opendir
8435 if test "$ac_res" != no; then
8436   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8437
8438 fi
8439
8440 else
8441   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8443 if test "${ac_cv_search_opendir+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   ac_func_search_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 /* Override any GCC internal prototype to avoid an error.
8455    Use char because int might match the return type of a GCC
8456    builtin and then its argument prototype would still apply.  */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 char opendir ();
8461 int
8462 main ()
8463 {
8464 return opendir ();
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 for ac_lib in '' x; do
8470   if test -z "$ac_lib"; then
8471     ac_res="none required"
8472   else
8473     ac_res=-l$ac_lib
8474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8475   fi
8476   rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (ac_try="$ac_link"
8478 case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_link") 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491   { (case "(($ac_try" in
8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493   *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496   (eval "$ac_try") 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_cv_search_opendir=$ac_res
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext \
8519       conftest$ac_exeext
8520   if test "${ac_cv_search_opendir+set}" = set; then
8521   break
8522 fi
8523 done
8524 if test "${ac_cv_search_opendir+set}" = set; then
8525   :
8526 else
8527   ac_cv_search_opendir=no
8528 fi
8529 rm conftest.$ac_ext
8530 LIBS=$ac_func_search_save_LIBS
8531 fi
8532 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8533 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8534 ac_res=$ac_cv_search_opendir
8535 if test "$ac_res" != no; then
8536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8537
8538 fi
8539
8540 fi
8541
8542
8543 for ac_header in dlfcn.h
8544 do
8545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 fi
8552 ac_res=`eval echo '${'$as_ac_Header'}'`
8553                { echo "$as_me:$LINENO: result: $ac_res" >&5
8554 echo "${ECHO_T}$ac_res" >&6; }
8555 else
8556   # Is the header compilable?
8557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565 $ac_includes_default
8566 #include <$ac_header>
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_compile") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } &&
8582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583   { (case "(($ac_try" in
8584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585   *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588   (eval "$ac_try") 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; } &&
8592          { ac_try='test -s conftest.$ac_objext'
8593   { (case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_try") 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; }; then
8602   ac_header_compiler=yes
8603 else
8604   echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607         ac_header_compiler=no
8608 fi
8609
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8612 echo "${ECHO_T}$ac_header_compiler" >&6; }
8613
8614 # Is the header present?
8615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h.  */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h.  */
8623 #include <$ac_header>
8624 _ACEOF
8625 if { (ac_try="$ac_cpp conftest.$ac_ext"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } >/dev/null; then
8638   if test -s conftest.err; then
8639     ac_cpp_err=$ac_c_preproc_warn_flag
8640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8641   else
8642     ac_cpp_err=
8643   fi
8644 else
8645   ac_cpp_err=yes
8646 fi
8647 if test -z "$ac_cpp_err"; then
8648   ac_header_preproc=yes
8649 else
8650   echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653   ac_header_preproc=no
8654 fi
8655
8656 rm -f conftest.err conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6; }
8659
8660 # So?  What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662   yes:no: )
8663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667     ac_header_preproc=yes
8668     ;;
8669   no:yes:* )
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682     ( cat <<\_ASBOX
8683 ## ------------------------------------ ##
8684 ## Report this to http://llvm.org/bugs/ ##
8685 ## ------------------------------------ ##
8686 _ASBOX
8687      ) | sed "s/^/$as_me: WARNING:     /" >&2
8688     ;;
8689 esac
8690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695   eval "$as_ac_Header=\$ac_header_preproc"
8696 fi
8697 ac_res=`eval echo '${'$as_ac_Header'}'`
8698                { echo "$as_me:$LINENO: result: $ac_res" >&5
8699 echo "${ECHO_T}$ac_res" >&6; }
8700
8701 fi
8702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703   cat >>confdefs.h <<_ACEOF
8704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705 _ACEOF
8706
8707 fi
8708
8709 done
8710
8711 # Check whether --enable-ltdl-install was given.
8712 if test "${enable_ltdl_install+set}" = set; then
8713   enableval=$enable_ltdl_install;
8714 fi
8715
8716
8717
8718
8719 if test x"${enable_ltdl_install-no}" != xno; then
8720   INSTALL_LTDL_TRUE=
8721   INSTALL_LTDL_FALSE='#'
8722 else
8723   INSTALL_LTDL_TRUE='#'
8724   INSTALL_LTDL_FALSE=
8725 fi
8726
8727
8728
8729 if test x"${enable_ltdl_convenience-no}" != xno; then
8730   CONVENIENCE_LTDL_TRUE=
8731   CONVENIENCE_LTDL_FALSE='#'
8732 else
8733   CONVENIENCE_LTDL_TRUE='#'
8734   CONVENIENCE_LTDL_FALSE=
8735 fi
8736
8737
8738 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8739 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8740 library_names_spec=
8741 libname_spec='lib$name'
8742 soname_spec=
8743 shrext_cmds=".so"
8744 postinstall_cmds=
8745 postuninstall_cmds=
8746 finish_cmds=
8747 finish_eval=
8748 shlibpath_var=
8749 shlibpath_overrides_runpath=unknown
8750 version_type=none
8751 dynamic_linker="$host_os ld.so"
8752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8753 if test "$GCC" = yes; then
8754   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8756     # if the path contains ";" then we assume it to be the separator
8757     # otherwise default to the standard path separator (i.e. ":") - it is
8758     # assumed that no part of a normal pathname contains ";" but that should
8759     # okay in the real world where ";" in dirpaths is itself problematic.
8760     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8761   else
8762     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8763   fi
8764 else
8765   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8766 fi
8767 need_lib_prefix=unknown
8768 hardcode_into_libs=no
8769
8770 # when you set need_version to no, make sure it does not cause -set_version
8771 # flags to be left without arguments
8772 need_version=unknown
8773
8774 case $host_os in
8775 aix3*)
8776   version_type=linux
8777   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8778   shlibpath_var=LIBPATH
8779
8780   # AIX 3 has no versioning support, so we append a major version to the name.
8781   soname_spec='${libname}${release}${shared_ext}$major'
8782   ;;
8783
8784 aix4* | aix5*)
8785   version_type=linux
8786   need_lib_prefix=no
8787   need_version=no
8788   hardcode_into_libs=yes
8789   if test "$host_cpu" = ia64; then
8790     # AIX 5 supports IA64
8791     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8792     shlibpath_var=LD_LIBRARY_PATH
8793   else
8794     # With GCC up to 2.95.x, collect2 would create an import file
8795     # for dependence libraries.  The import file would start with
8796     # the line `#! .'.  This would cause the generated library to
8797     # depend on `.', always an invalid library.  This was fixed in
8798     # development snapshots of GCC prior to 3.0.
8799     case $host_os in
8800       aix4 | aix4.[01] | aix4.[01].*)
8801       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8802            echo ' yes '
8803            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8804         :
8805       else
8806         can_build_shared=no
8807       fi
8808       ;;
8809     esac
8810     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8811     # soname into executable. Probably we can add versioning support to
8812     # collect2, so additional links can be useful in future.
8813     if test "$aix_use_runtimelinking" = yes; then
8814       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8815       # instead of lib<name>.a to let people know that these are not
8816       # typical AIX shared libraries.
8817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818     else
8819       # We preserve .a as extension for shared libraries through AIX4.2
8820       # and later when we are not doing run time linking.
8821       library_names_spec='${libname}${release}.a $libname.a'
8822       soname_spec='${libname}${release}${shared_ext}$major'
8823     fi
8824     shlibpath_var=LIBPATH
8825   fi
8826   ;;
8827
8828 amigaos*)
8829   library_names_spec='$libname.ixlibrary $libname.a'
8830   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8831   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'
8832   ;;
8833
8834 beos*)
8835   library_names_spec='${libname}${shared_ext}'
8836   dynamic_linker="$host_os ld.so"
8837   shlibpath_var=LIBRARY_PATH
8838   ;;
8839
8840 bsdi[45]*)
8841   version_type=linux
8842   need_version=no
8843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844   soname_spec='${libname}${release}${shared_ext}$major'
8845   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8846   shlibpath_var=LD_LIBRARY_PATH
8847   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8848   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8849   # the default ld.so.conf also contains /usr/contrib/lib and
8850   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8851   # libtool to hard-code these into programs
8852   ;;
8853
8854 cygwin* | mingw* | pw32*)
8855   version_type=windows
8856   shrext_cmds=".dll"
8857   need_version=no
8858   need_lib_prefix=no
8859
8860   case $GCC,$host_os in
8861   yes,cygwin* | yes,mingw* | yes,pw32*)
8862     library_names_spec='$libname.dll.a'
8863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8864     postinstall_cmds='base_file=`basename \${file}`~
8865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8866       dldir=$destdir/`dirname \$dlpath`~
8867       test -d \$dldir || mkdir -p \$dldir~
8868       $install_prog $dir/$dlname \$dldir/$dlname~
8869       chmod a+x \$dldir/$dlname'
8870     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8871       dlpath=$dir/\$dldll~
8872        $rm \$dlpath'
8873     shlibpath_overrides_runpath=yes
8874
8875     case $host_os in
8876     cygwin*)
8877       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8878       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8879       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8880       ;;
8881     mingw*)
8882       # MinGW DLLs use traditional 'lib' prefix
8883       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8885       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8886         # It is most probably a Windows format PATH printed by
8887         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8888         # path with ; separators, and with drive letters. We can handle the
8889         # drive letters (cygwin fileutils understands them), so leave them,
8890         # especially as we might pass files found there to a mingw objdump,
8891         # which wouldn't understand a cygwinified path. Ahh.
8892         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8893       else
8894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8895       fi
8896       ;;
8897     pw32*)
8898       # pw32 DLLs use 'pw' prefix rather than 'lib'
8899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8900       ;;
8901     esac
8902     ;;
8903
8904   *)
8905     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8906     ;;
8907   esac
8908   dynamic_linker='Win32 ld.exe'
8909   # FIXME: first we should search . and the directory the executable is in
8910   shlibpath_var=PATH
8911   ;;
8912
8913 darwin* | rhapsody*)
8914   dynamic_linker="$host_os dyld"
8915   version_type=darwin
8916   need_lib_prefix=no
8917   need_version=no
8918   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8919   soname_spec='${libname}${release}${major}$shared_ext'
8920   shlibpath_overrides_runpath=yes
8921   shlibpath_var=DYLD_LIBRARY_PATH
8922   shrext_cmds='.dylib'
8923   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8924   if test "$GCC" = yes; then
8925     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"`
8926   else
8927     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8928   fi
8929   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8930   ;;
8931
8932 dgux*)
8933   version_type=linux
8934   need_lib_prefix=no
8935   need_version=no
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   shlibpath_var=LD_LIBRARY_PATH
8939   ;;
8940
8941 freebsd1.*)
8942   dynamic_linker=no
8943   ;;
8944
8945 kfreebsd*-gnu)
8946   version_type=linux
8947   need_lib_prefix=no
8948   need_version=no
8949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950   soname_spec='${libname}${release}${shared_ext}$major'
8951   shlibpath_var=LD_LIBRARY_PATH
8952   shlibpath_overrides_runpath=no
8953   hardcode_into_libs=yes
8954   dynamic_linker='GNU ld.so'
8955   ;;
8956
8957 freebsd* | dragonfly*)
8958   # DragonFly does not have aout.  When/if they implement a new
8959   # versioning mechanism, adjust this.
8960   if test -x /usr/bin/objformat; then
8961     objformat=`/usr/bin/objformat`
8962   else
8963     case $host_os in
8964     freebsd[123].*) objformat=aout ;;
8965     *) objformat=elf ;;
8966     esac
8967   fi
8968   version_type=freebsd-$objformat
8969   case $version_type in
8970     freebsd-elf*)
8971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8972       need_version=no
8973       need_lib_prefix=no
8974       ;;
8975     freebsd-*)
8976       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8977       need_version=yes
8978       ;;
8979   esac
8980   shlibpath_var=LD_LIBRARY_PATH
8981   case $host_os in
8982   freebsd2.*)
8983     shlibpath_overrides_runpath=yes
8984     ;;
8985   freebsd3.[01]* | freebsdelf3.[01]*)
8986     shlibpath_overrides_runpath=yes
8987     hardcode_into_libs=yes
8988     ;;
8989   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8990   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8991     shlibpath_overrides_runpath=no
8992     hardcode_into_libs=yes
8993     ;;
8994   freebsd*) # from 4.6 on
8995     shlibpath_overrides_runpath=yes
8996     hardcode_into_libs=yes
8997     ;;
8998   esac
8999   ;;
9000
9001 gnu*)
9002   version_type=linux
9003   need_lib_prefix=no
9004   need_version=no
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   hardcode_into_libs=yes
9009   ;;
9010
9011 hpux9* | hpux10* | hpux11*)
9012   # Give a soname corresponding to the major version so that dld.sl refuses to
9013   # link against other versions.
9014   version_type=sunos
9015   need_lib_prefix=no
9016   need_version=no
9017   case $host_cpu in
9018   ia64*)
9019     shrext_cmds='.so'
9020     hardcode_into_libs=yes
9021     dynamic_linker="$host_os dld.so"
9022     shlibpath_var=LD_LIBRARY_PATH
9023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025     soname_spec='${libname}${release}${shared_ext}$major'
9026     if test "X$HPUX_IA64_MODE" = X32; then
9027       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9028     else
9029       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9030     fi
9031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9032     ;;
9033    hppa*64*)
9034      shrext_cmds='.sl'
9035      hardcode_into_libs=yes
9036      dynamic_linker="$host_os dld.sl"
9037      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9038      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040      soname_spec='${libname}${release}${shared_ext}$major'
9041      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9042      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9043      ;;
9044    *)
9045     shrext_cmds='.sl'
9046     dynamic_linker="$host_os dld.sl"
9047     shlibpath_var=SHLIB_PATH
9048     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050     soname_spec='${libname}${release}${shared_ext}$major'
9051     ;;
9052   esac
9053   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9054   postinstall_cmds='chmod 555 $lib'
9055   ;;
9056
9057 interix3*)
9058   version_type=linux
9059   need_lib_prefix=no
9060   need_version=no
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9062   soname_spec='${libname}${release}${shared_ext}$major'
9063   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   shlibpath_overrides_runpath=no
9066   hardcode_into_libs=yes
9067   ;;
9068
9069 irix5* | irix6* | nonstopux*)
9070   case $host_os in
9071     nonstopux*) version_type=nonstopux ;;
9072     *)
9073         if test "$lt_cv_prog_gnu_ld" = yes; then
9074                 version_type=linux
9075         else
9076                 version_type=irix
9077         fi ;;
9078   esac
9079   need_lib_prefix=no
9080   need_version=no
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9083   case $host_os in
9084   irix5* | nonstopux*)
9085     libsuff= shlibsuff=
9086     ;;
9087   *)
9088     case $LD in # libtool.m4 will add one of these switches to LD
9089     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9090       libsuff= shlibsuff= libmagic=32-bit;;
9091     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9092       libsuff=32 shlibsuff=N32 libmagic=N32;;
9093     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9094       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9095     *) libsuff= shlibsuff= libmagic=never-match;;
9096     esac
9097     ;;
9098   esac
9099   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9100   shlibpath_overrides_runpath=no
9101   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9102   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9103   hardcode_into_libs=yes
9104   ;;
9105
9106 # No shared lib support for Linux oldld, aout, or coff.
9107 linux*oldld* | linux*aout* | linux*coff*)
9108   dynamic_linker=no
9109   ;;
9110
9111 # This must be Linux ELF.
9112 linux*)
9113   version_type=linux
9114   need_lib_prefix=no
9115   need_version=no
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9119   shlibpath_var=LD_LIBRARY_PATH
9120   shlibpath_overrides_runpath=no
9121   # This implies no fast_install, which is unacceptable.
9122   # Some rework will be needed to allow for fast_install
9123   # before this can be enabled.
9124   hardcode_into_libs=yes
9125
9126   # Append ld.so.conf contents to the search path
9127   if test -f /etc/ld.so.conf; then
9128     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' ' '`
9129     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9130   fi
9131
9132   # We used to test for /lib/ld.so.1 and disable shared libraries on
9133   # powerpc, because MkLinux only supported shared libraries with the
9134   # GNU dynamic linker.  Since this was broken with cross compilers,
9135   # most powerpc-linux boxes support dynamic linking these days and
9136   # people can always --disable-shared, the test was removed, and we
9137   # assume the GNU/Linux dynamic linker is in use.
9138   dynamic_linker='GNU/Linux ld.so'
9139   ;;
9140
9141 knetbsd*-gnu)
9142   version_type=linux
9143   need_lib_prefix=no
9144   need_version=no
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   shlibpath_overrides_runpath=no
9149   hardcode_into_libs=yes
9150   dynamic_linker='GNU ld.so'
9151   ;;
9152
9153 netbsd*)
9154   version_type=sunos
9155   need_lib_prefix=no
9156   need_version=no
9157   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9160     dynamic_linker='NetBSD (a.out) ld.so'
9161   else
9162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9163     soname_spec='${libname}${release}${shared_ext}$major'
9164     dynamic_linker='NetBSD ld.elf_so'
9165   fi
9166   shlibpath_var=LD_LIBRARY_PATH
9167   shlibpath_overrides_runpath=yes
9168   hardcode_into_libs=yes
9169   ;;
9170
9171 newsos6)
9172   version_type=linux
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174   shlibpath_var=LD_LIBRARY_PATH
9175   shlibpath_overrides_runpath=yes
9176   ;;
9177
9178 nto-qnx*)
9179   version_type=linux
9180   need_lib_prefix=no
9181   need_version=no
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   shlibpath_var=LD_LIBRARY_PATH
9185   shlibpath_overrides_runpath=yes
9186   ;;
9187
9188 openbsd* | bitrig*)
9189   version_type=sunos
9190   sys_lib_dlsearch_path_spec="/usr/lib"
9191   need_lib_prefix=no
9192   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9193   case $host_os in
9194     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9195     *)                         need_version=no  ;;
9196   esac
9197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9201     case $host_os in
9202       openbsd2.[89] | openbsd2.[89].*)
9203         shlibpath_overrides_runpath=no
9204         ;;
9205       *)
9206         shlibpath_overrides_runpath=yes
9207         ;;
9208       esac
9209   else
9210     shlibpath_overrides_runpath=yes
9211   fi
9212   ;;
9213
9214 os2*)
9215   libname_spec='$name'
9216   shrext_cmds=".dll"
9217   need_lib_prefix=no
9218   library_names_spec='$libname${shared_ext} $libname.a'
9219   dynamic_linker='OS/2 ld.exe'
9220   shlibpath_var=LIBPATH
9221   ;;
9222
9223 osf3* | osf4* | osf5*)
9224   version_type=osf
9225   need_lib_prefix=no
9226   need_version=no
9227   soname_spec='${libname}${release}${shared_ext}$major'
9228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229   shlibpath_var=LD_LIBRARY_PATH
9230   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9231   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9232   ;;
9233
9234 solaris*)
9235   version_type=linux
9236   need_lib_prefix=no
9237   need_version=no
9238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239   soname_spec='${libname}${release}${shared_ext}$major'
9240   shlibpath_var=LD_LIBRARY_PATH
9241   shlibpath_overrides_runpath=yes
9242   hardcode_into_libs=yes
9243   # ldd complains unless libraries are executable
9244   postinstall_cmds='chmod +x $lib'
9245   ;;
9246
9247 sunos4*)
9248   version_type=sunos
9249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9251   shlibpath_var=LD_LIBRARY_PATH
9252   shlibpath_overrides_runpath=yes
9253   if test "$with_gnu_ld" = yes; then
9254     need_lib_prefix=no
9255   fi
9256   need_version=yes
9257   ;;
9258
9259 sysv4 | sysv4.3*)
9260   version_type=linux
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262   soname_spec='${libname}${release}${shared_ext}$major'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   case $host_vendor in
9265     sni)
9266       shlibpath_overrides_runpath=no
9267       need_lib_prefix=no
9268       export_dynamic_flag_spec='${wl}-Blargedynsym'
9269       runpath_var=LD_RUN_PATH
9270       ;;
9271     siemens)
9272       need_lib_prefix=no
9273       ;;
9274     motorola)
9275       need_lib_prefix=no
9276       need_version=no
9277       shlibpath_overrides_runpath=no
9278       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9279       ;;
9280   esac
9281   ;;
9282
9283 sysv4*MP*)
9284   if test -d /usr/nec ;then
9285     version_type=linux
9286     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9287     soname_spec='$libname${shared_ext}.$major'
9288     shlibpath_var=LD_LIBRARY_PATH
9289   fi
9290   ;;
9291
9292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9293   version_type=freebsd-elf
9294   need_lib_prefix=no
9295   need_version=no
9296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9297   soname_spec='${libname}${release}${shared_ext}$major'
9298   shlibpath_var=LD_LIBRARY_PATH
9299   hardcode_into_libs=yes
9300   if test "$with_gnu_ld" = yes; then
9301     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9302     shlibpath_overrides_runpath=no
9303   else
9304     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9305     shlibpath_overrides_runpath=yes
9306     case $host_os in
9307       sco3.2v5*)
9308         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9309         ;;
9310     esac
9311   fi
9312   sys_lib_dlsearch_path_spec='/usr/lib'
9313   ;;
9314
9315 uts4*)
9316   version_type=linux
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   ;;
9321
9322 *)
9323   dynamic_linker=no
9324   ;;
9325 esac
9326 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9327 echo "${ECHO_T}$dynamic_linker" >&6; }
9328 test "$dynamic_linker" = no && can_build_shared=no
9329
9330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9331 if test "$GCC" = yes; then
9332   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9333 fi
9334
9335
9336 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9337 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9338 if test "${libltdl_cv_shlibext+set}" = set; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341
9342 module=yes
9343 eval libltdl_cv_shlibext=$shrext_cmds
9344
9345 fi
9346 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9347 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9348 if test -n "$libltdl_cv_shlibext"; then
9349
9350 cat >>confdefs.h <<_ACEOF
9351 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9352 _ACEOF
9353
9354 fi
9355
9356
9357 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9358 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9359 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   libltdl_cv_shlibpath_var="$shlibpath_var"
9363 fi
9364 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9365 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9366 if test -n "$libltdl_cv_shlibpath_var"; then
9367
9368 cat >>confdefs.h <<_ACEOF
9369 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9370 _ACEOF
9371
9372 fi
9373
9374
9375 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9376 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9377 if test "${libltdl_cv_sys_search_path+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9381 fi
9382 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9383 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9384 if test -n "$libltdl_cv_sys_search_path"; then
9385   sys_search_path=
9386   for dir in $libltdl_cv_sys_search_path; do
9387     if test -z "$sys_search_path"; then
9388       sys_search_path="$dir"
9389     else
9390       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9391     fi
9392   done
9393
9394 cat >>confdefs.h <<_ACEOF
9395 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9396 _ACEOF
9397
9398 fi
9399
9400 { echo "$as_me:$LINENO: checking for objdir" >&5
9401 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_objdir+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   libltdl_cv_objdir="$objdir"
9406   if test -n "$objdir"; then
9407     :
9408   else
9409     rm -f .libs 2>/dev/null
9410     mkdir .libs 2>/dev/null
9411     if test -d .libs; then
9412       libltdl_cv_objdir=.libs
9413     else
9414       # MS-DOS does not allow filenames that begin with a dot.
9415       libltdl_cv_objdir=_libs
9416     fi
9417   rmdir .libs 2>/dev/null
9418   fi
9419
9420 fi
9421 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9422 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9423
9424 cat >>confdefs.h <<_ACEOF
9425 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9426 _ACEOF
9427
9428
9429
9430
9431
9432
9433 # Check for command to grab the raw symbol name followed by C symbol from nm.
9434 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9435 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9436 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439
9440 # These are sane defaults that work on at least a few old systems.
9441 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9442
9443 # Character class describing NM global symbol codes.
9444 symcode='[BCDEGRST]'
9445
9446 # Regexp to match symbols that can be accessed directly from C.
9447 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9448
9449 # Transform an extracted symbol line into a proper C declaration
9450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9451
9452 # Transform an extracted symbol line into symbol name and symbol address
9453 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'"
9454
9455 # Define system-specific variables.
9456 case $host_os in
9457 aix*)
9458   symcode='[BCDT]'
9459   ;;
9460 cygwin* | mingw* | pw32*)
9461   symcode='[ABCDGISTW]'
9462   ;;
9463 hpux*) # Its linker distinguishes data from code symbols
9464   if test "$host_cpu" = ia64; then
9465     symcode='[ABCDEGRST]'
9466   fi
9467   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9468   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'"
9469   ;;
9470 linux*)
9471   if test "$host_cpu" = ia64; then
9472     symcode='[ABCDGIRSTW]'
9473     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9474     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'"
9475   fi
9476   ;;
9477 irix* | nonstopux*)
9478   symcode='[BCDEGRST]'
9479   ;;
9480 osf*)
9481   symcode='[BCDEGQRST]'
9482   ;;
9483 solaris*)
9484   symcode='[BDRT]'
9485   ;;
9486 sco3.2v5*)
9487   symcode='[DT]'
9488   ;;
9489 sysv4.2uw2*)
9490   symcode='[DT]'
9491   ;;
9492 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9493   symcode='[ABDT]'
9494   ;;
9495 sysv4)
9496   symcode='[DFNSTU]'
9497   ;;
9498 esac
9499
9500 # Handle CRLF in mingw tool chain
9501 opt_cr=
9502 case $build_os in
9503 mingw*)
9504   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9505   ;;
9506 esac
9507
9508 # If we're using GNU nm, then use its standard symbol codes.
9509 case `$NM -V 2>&1` in
9510 *GNU* | *'with BFD'*)
9511   symcode='[ABCDGIRSTW]' ;;
9512 esac
9513
9514 # Try without a prefix undercore, then with it.
9515 for ac_symprfx in "" "_"; do
9516
9517   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9518   symxfrm="\\1 $ac_symprfx\\2 \\2"
9519
9520   # Write the raw and C identifiers.
9521   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9522
9523   # Check to see that the pipe works correctly.
9524   pipe_works=no
9525
9526   rm -f conftest*
9527   cat > conftest.$ac_ext <<EOF
9528 #ifdef __cplusplus
9529 extern "C" {
9530 #endif
9531 char nm_test_var;
9532 void nm_test_func(){}
9533 #ifdef __cplusplus
9534 }
9535 #endif
9536 int main(){nm_test_var='a';nm_test_func();return(0);}
9537 EOF
9538
9539   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540   (eval $ac_compile) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; then
9544     # Now try to grab the symbols.
9545     nlist=conftest.nm
9546     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9547   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } && test -s "$nlist"; then
9551       # Try sorting and uniquifying the output.
9552       if sort "$nlist" | uniq > "$nlist"T; then
9553         mv -f "$nlist"T "$nlist"
9554       else
9555         rm -f "$nlist"T
9556       fi
9557
9558       # Make sure that we snagged all the symbols we need.
9559       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9560         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9561           cat <<EOF > conftest.$ac_ext
9562 #ifdef __cplusplus
9563 extern "C" {
9564 #endif
9565
9566 EOF
9567           # Now generate the symbol file.
9568           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9569
9570           cat <<EOF >> conftest.$ac_ext
9571 #if defined (__STDC__) && __STDC__
9572 # define lt_ptr_t void *
9573 #else
9574 # define lt_ptr_t char *
9575 # define const
9576 #endif
9577
9578 /* The mapping between symbol names and symbols. */
9579 const struct {
9580   const char *name;
9581   lt_ptr_t address;
9582 }
9583 lt_preloaded_symbols[] =
9584 {
9585 EOF
9586           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9587           cat <<\EOF >> conftest.$ac_ext
9588   {0, (lt_ptr_t) 0}
9589 };
9590
9591 #ifdef __cplusplus
9592 }
9593 #endif
9594 EOF
9595           # Now try linking the two files.
9596           mv conftest.$ac_objext conftstm.$ac_objext
9597           lt_save_LIBS="$LIBS"
9598           lt_save_CFLAGS="$CFLAGS"
9599           LIBS="conftstm.$ac_objext"
9600           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9601           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602   (eval $ac_link) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9606             pipe_works=yes
9607           fi
9608           LIBS="$lt_save_LIBS"
9609           CFLAGS="$lt_save_CFLAGS"
9610         else
9611           echo "cannot find nm_test_func in $nlist" >&5
9612         fi
9613       else
9614         echo "cannot find nm_test_var in $nlist" >&5
9615       fi
9616     else
9617       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9618     fi
9619   else
9620     echo "$progname: failed program was:" >&5
9621     cat conftest.$ac_ext >&5
9622   fi
9623   rm -f conftest* conftst*
9624
9625   # Do not use the global_symbol_pipe unless it works.
9626   if test "$pipe_works" = yes; then
9627     break
9628   else
9629     lt_cv_sys_global_symbol_pipe=
9630   fi
9631 done
9632
9633 fi
9634
9635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9636   lt_cv_sys_global_symbol_to_cdecl=
9637 fi
9638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9639   { echo "$as_me:$LINENO: result: failed" >&5
9640 echo "${ECHO_T}failed" >&6; }
9641 else
9642   { echo "$as_me:$LINENO: result: ok" >&5
9643 echo "${ECHO_T}ok" >&6; }
9644 fi
9645
9646
9647 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9648 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9649 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9653     libltdl_cv_preloaded_symbols=yes
9654   else
9655     libltdl_cv_preloaded_symbols=no
9656   fi
9657
9658 fi
9659 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9660 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9661 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9662
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_PRELOADED_SYMBOLS 1
9665 _ACEOF
9666
9667 fi
9668
9669 LIBADD_DL=
9670
9671 ac_ext=c
9672 ac_cpp='$CPP $CPPFLAGS'
9673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9676
9677
9678 { echo "$as_me:$LINENO: checking for shl_load" >&5
9679 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9680 if test "${ac_cv_func_shl_load+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9691 #define shl_load innocuous_shl_load
9692
9693 /* System header to define __stub macros and hopefully few prototypes,
9694     which can conflict with char shl_load (); below.
9695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696     <limits.h> exists even on freestanding compilers.  */
9697
9698 #ifdef __STDC__
9699 # include <limits.h>
9700 #else
9701 # include <assert.h>
9702 #endif
9703
9704 #undef shl_load
9705
9706 /* Override any GCC internal prototype to avoid an error.
9707    Use char because int might match the return type of a GCC
9708    builtin and then its argument prototype would still apply.  */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 char shl_load ();
9713 /* The GNU C library defines this for functions which it implements
9714     to always fail with ENOSYS.  Some functions are actually named
9715     something starting with __ and the normal name is an alias.  */
9716 #if defined __stub_shl_load || defined __stub___shl_load
9717 choke me
9718 #endif
9719
9720 int
9721 main ()
9722 {
9723 return shl_load ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_link") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9743   { (case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_try") 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; } &&
9752          { ac_try='test -s conftest$ac_exeext'
9753   { (case "(($ac_try" in
9754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755   *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758   (eval "$ac_try") 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_func_shl_load=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767         ac_cv_func_shl_load=no
9768 fi
9769
9770 rm -f core conftest.err conftest.$ac_objext \
9771       conftest$ac_exeext conftest.$ac_ext
9772 fi
9773 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9774 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9775 if test $ac_cv_func_shl_load = yes; then
9776
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_SHL_LOAD 1
9779 _ACEOF
9780
9781 else
9782   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-ldld  $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h.  */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h.  */
9795
9796 /* Override any GCC internal prototype to avoid an error.
9797    Use char because int might match the return type of a GCC
9798    builtin and then its argument prototype would still apply.  */
9799 #ifdef __cplusplus
9800 extern "C"
9801 #endif
9802 char shl_load ();
9803 int
9804 main ()
9805 {
9806 return shl_load ();
9807   ;
9808   return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (ac_try="$ac_link"
9813 case "(($ac_try" in
9814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815   *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818   (eval "$ac_link") 2>conftest.er1
9819   ac_status=$?
9820   grep -v '^ *+' conftest.er1 >conftest.err
9821   rm -f conftest.er1
9822   cat conftest.err >&5
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); } &&
9825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9826   { (case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831   (eval "$ac_try") 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest$ac_exeext'
9836   { (case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_try") 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_cv_lib_dld_shl_load=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850         ac_cv_lib_dld_shl_load=no
9851 fi
9852
9853 rm -f core conftest.err conftest.$ac_objext \
9854       conftest$ac_exeext conftest.$ac_ext
9855 LIBS=$ac_check_lib_save_LIBS
9856 fi
9857 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9858 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9859 if test $ac_cv_lib_dld_shl_load = yes; then
9860
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_SHL_LOAD 1
9863 _ACEOF
9864
9865         LIBADD_DL="$LIBADD_DL -ldld"
9866 else
9867   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-ldl  $LIBS"
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882    Use char because int might match the return type of a GCC
9883    builtin and then its argument prototype would still apply.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dlopen ();
9888 int
9889 main ()
9890 {
9891 return dlopen ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9898 case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_link") 2>conftest.er1
9904   ac_status=$?
9905   grep -v '^ *+' conftest.er1 >conftest.err
9906   rm -f conftest.er1
9907   cat conftest.err >&5
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9911   { (case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_try") 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_try") 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; }; then
9930   ac_cv_lib_dl_dlopen=yes
9931 else
9932   echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935         ac_cv_lib_dl_dlopen=no
9936 fi
9937
9938 rm -f core conftest.err conftest.$ac_objext \
9939       conftest$ac_exeext conftest.$ac_ext
9940 LIBS=$ac_check_lib_save_LIBS
9941 fi
9942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9944 if test $ac_cv_lib_dl_dlopen = yes; then
9945
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_LIBDL 1
9948 _ACEOF
9949
9950                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9951 else
9952   cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h.  */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h.  */
9958 #if HAVE_DLFCN_H
9959 #  include <dlfcn.h>
9960 #endif
9961
9962 int
9963 main ()
9964 {
9965 dlopen(0, 0);
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9972 case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_link") 2>conftest.er1
9978   ac_status=$?
9979   grep -v '^ *+' conftest.er1 >conftest.err
9980   rm -f conftest.er1
9981   cat conftest.err >&5
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985   { (case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_try") 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest$ac_exeext'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_LIBDL 1
10007 _ACEOF
10008  libltdl_cv_func_dlopen="yes"
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lsvld  $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026
10027 /* Override any GCC internal prototype to avoid an error.
10028    Use char because int might match the return type of a GCC
10029    builtin and then its argument prototype would still apply.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dlopen ();
10034 int
10035 main ()
10036 {
10037 return dlopen ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_link") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057   { (case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062   (eval "$ac_try") 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; } &&
10066          { ac_try='test -s conftest$ac_exeext'
10067   { (case "(($ac_try" in
10068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069   *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072   (eval "$ac_try") 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   ac_cv_lib_svld_dlopen=yes
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081         ac_cv_lib_svld_dlopen=no
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext \
10085       conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10089 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10090 if test $ac_cv_lib_svld_dlopen = yes; then
10091
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_LIBDL 1
10094 _ACEOF
10095
10096                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10097 else
10098   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103   ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-ldld  $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113    Use char because int might match the return type of a GCC
10114    builtin and then its argument prototype would still apply.  */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char dld_link ();
10119 int
10120 main ()
10121 {
10122 return dld_link ();
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131   *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134   (eval "$ac_link") 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10142   { (case "(($ac_try" in
10143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144   *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147   (eval "$ac_try") 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest$ac_exeext'
10152   { (case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157   (eval "$ac_try") 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   ac_cv_lib_dld_dld_link=yes
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166         ac_cv_lib_dld_dld_link=no
10167 fi
10168
10169 rm -f core conftest.err conftest.$ac_objext \
10170       conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10172 fi
10173 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10174 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10175 if test $ac_cv_lib_dld_dld_link = yes; then
10176
10177 cat >>confdefs.h <<\_ACEOF
10178 #define HAVE_DLD 1
10179 _ACEOF
10180
10181                 LIBADD_DL="$LIBADD_DL -ldld"
10182 else
10183   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10184 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10185 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10196 #define _dyld_func_lookup innocuous__dyld_func_lookup
10197
10198 /* System header to define __stub macros and hopefully few prototypes,
10199     which can conflict with char _dyld_func_lookup (); below.
10200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201     <limits.h> exists even on freestanding compilers.  */
10202
10203 #ifdef __STDC__
10204 # include <limits.h>
10205 #else
10206 # include <assert.h>
10207 #endif
10208
10209 #undef _dyld_func_lookup
10210
10211 /* Override any GCC internal prototype to avoid an error.
10212    Use char because int might match the return type of a GCC
10213    builtin and then its argument prototype would still apply.  */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char _dyld_func_lookup ();
10218 /* The GNU C library defines this for functions which it implements
10219     to always fail with ENOSYS.  Some functions are actually named
10220     something starting with __ and the normal name is an alias.  */
10221 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10222 choke me
10223 #endif
10224
10225 int
10226 main ()
10227 {
10228 return _dyld_func_lookup ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_link") 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10248   { (case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253   (eval "$ac_try") 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; } &&
10257          { ac_try='test -s conftest$ac_exeext'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267   ac_cv_func__dyld_func_lookup=yes
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272         ac_cv_func__dyld_func_lookup=no
10273 fi
10274
10275 rm -f core conftest.err conftest.$ac_objext \
10276       conftest$ac_exeext conftest.$ac_ext
10277 fi
10278 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10279 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10280 if test $ac_cv_func__dyld_func_lookup = yes; then
10281
10282 cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_DYLD 1
10284 _ACEOF
10285
10286 fi
10287
10288
10289 fi
10290
10291
10292 fi
10293
10294
10295 fi
10296
10297 rm -f core conftest.err conftest.$ac_objext \
10298       conftest$ac_exeext conftest.$ac_ext
10299
10300 fi
10301
10302
10303 fi
10304
10305
10306 fi
10307
10308
10309 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10310 then
10311   lt_save_LIBS="$LIBS"
10312   LIBS="$LIBS $LIBADD_DL"
10313
10314 for ac_func in dlerror
10315 do
10316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10330 #define $ac_func innocuous_$ac_func
10331
10332 /* System header to define __stub macros and hopefully few prototypes,
10333     which can conflict with char $ac_func (); below.
10334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10335     <limits.h> exists even on freestanding compilers.  */
10336
10337 #ifdef __STDC__
10338 # include <limits.h>
10339 #else
10340 # include <assert.h>
10341 #endif
10342
10343 #undef $ac_func
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346    Use char because int might match the return type of a GCC
10347    builtin and then its argument prototype would still apply.  */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char $ac_func ();
10352 /* The GNU C library defines this for functions which it implements
10353     to always fail with ENOSYS.  Some functions are actually named
10354     something starting with __ and the normal name is an alias.  */
10355 #if defined __stub_$ac_func || defined __stub___$ac_func
10356 choke me
10357 #endif
10358
10359 int
10360 main ()
10361 {
10362 return $ac_func ();
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_link") 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10382   { (case "(($ac_try" in
10383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384   *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387   (eval "$ac_try") 2>&5
10388   ac_status=$?
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); }; } &&
10391          { ac_try='test -s conftest$ac_exeext'
10392   { (case "(($ac_try" in
10393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394   *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397   (eval "$ac_try") 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; }; then
10401   eval "$as_ac_var=yes"
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406         eval "$as_ac_var=no"
10407 fi
10408
10409 rm -f core conftest.err conftest.$ac_objext \
10410       conftest$ac_exeext conftest.$ac_ext
10411 fi
10412 ac_res=`eval echo '${'$as_ac_var'}'`
10413                { echo "$as_me:$LINENO: result: $ac_res" >&5
10414 echo "${ECHO_T}$ac_res" >&6; }
10415 if test `eval echo '${'$as_ac_var'}'` = yes; then
10416   cat >>confdefs.h <<_ACEOF
10417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10418 _ACEOF
10419
10420 fi
10421 done
10422
10423   LIBS="$lt_save_LIBS"
10424 fi
10425 ac_ext=c
10426 ac_cpp='$CPP $CPPFLAGS'
10427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10430
10431
10432
10433 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10434 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10435 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   ac_cv_sys_symbol_underscore=no
10439   cat > conftest.$ac_ext <<EOF
10440 void nm_test_func(){}
10441 int main(){nm_test_func;return 0;}
10442 EOF
10443   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444   (eval $ac_compile) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); }; then
10448     # Now try to grab the symbols.
10449     ac_nlist=conftest.nm
10450     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10451   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } && test -s "$ac_nlist"; then
10455       # See whether the symbols have a leading underscore.
10456       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10457         ac_cv_sys_symbol_underscore=yes
10458       else
10459         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10460           :
10461         else
10462           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10463         fi
10464       fi
10465     else
10466       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10467     fi
10468   else
10469     echo "configure: failed program was:" >&5
10470     cat conftest.c >&5
10471   fi
10472   rm -rf conftest*
10473
10474 fi
10475 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10476 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10477
10478
10479 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10480   if test x"$libltdl_cv_func_dlopen" = xyes ||
10481      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10482         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10483 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10484 if test "${libltdl_cv_need_uscore+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   libltdl_cv_need_uscore=unknown
10488           save_LIBS="$LIBS"
10489           LIBS="$LIBS $LIBADD_DL"
10490           if test "$cross_compiling" = yes; then :
10491   libltdl_cv_need_uscore=cross
10492 else
10493   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10494   lt_status=$lt_dlunknown
10495   cat > conftest.$ac_ext <<EOF
10496 #line 10496 "configure"
10497 #include "confdefs.h"
10498
10499 #if HAVE_DLFCN_H
10500 #include <dlfcn.h>
10501 #endif
10502
10503 #include <stdio.h>
10504
10505 #ifdef RTLD_GLOBAL
10506 #  define LT_DLGLOBAL           RTLD_GLOBAL
10507 #else
10508 #  ifdef DL_GLOBAL
10509 #    define LT_DLGLOBAL         DL_GLOBAL
10510 #  else
10511 #    define LT_DLGLOBAL         0
10512 #  endif
10513 #endif
10514
10515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10516    find out it does not work in some platform. */
10517 #ifndef LT_DLLAZY_OR_NOW
10518 #  ifdef RTLD_LAZY
10519 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10520 #  else
10521 #    ifdef DL_LAZY
10522 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10523 #    else
10524 #      ifdef RTLD_NOW
10525 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10526 #      else
10527 #        ifdef DL_NOW
10528 #          define LT_DLLAZY_OR_NOW      DL_NOW
10529 #        else
10530 #          define LT_DLLAZY_OR_NOW      0
10531 #        endif
10532 #      endif
10533 #    endif
10534 #  endif
10535 #endif
10536
10537 #ifdef __cplusplus
10538 extern "C" void exit (int);
10539 #endif
10540
10541 void fnord() { int i=42;}
10542 int main ()
10543 {
10544   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10545   int status = $lt_dlunknown;
10546
10547   if (self)
10548     {
10549       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10550       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10551       /* dlclose (self); */
10552     }
10553   else
10554     puts (dlerror ());
10555
10556     exit (status);
10557 }
10558 EOF
10559   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560   (eval $ac_link) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10564     (./conftest; exit; ) >&5 2>/dev/null
10565     lt_status=$?
10566     case x$lt_status in
10567       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10568       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10569       x$lt_dlunknown|x*)  ;;
10570     esac
10571   else :
10572     # compilation failed
10573
10574   fi
10575 fi
10576 rm -fr conftest*
10577
10578           LIBS="$save_LIBS"
10579
10580 fi
10581 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10582 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10583   fi
10584 fi
10585
10586 if test x"$libltdl_cv_need_uscore" = xyes; then
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define NEED_USCORE 1
10590 _ACEOF
10591
10592 fi
10593
10594
10595 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10596 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10597 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   # PORTME does your system automatically load deplibs for dlopen?
10601   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10602   # For now, we just catch OSes we know something about -- in the
10603   # future, we'll try test this programmatically.
10604   libltdl_cv_sys_dlopen_deplibs=unknown
10605   case "$host_os" in
10606   aix3*|aix4.1.*|aix4.2.*)
10607     # Unknown whether this is true for these versions of AIX, but
10608     # we want this `case' here to explicitly catch those versions.
10609     libltdl_cv_sys_dlopen_deplibs=unknown
10610     ;;
10611   aix[45]*)
10612     libltdl_cv_sys_dlopen_deplibs=yes
10613     ;;
10614   darwin*)
10615     # Assuming the user has installed a libdl from somewhere, this is true
10616     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10617     libltdl_cv_sys_dlopen_deplibs=yes
10618     ;;
10619   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10620     # GNU and its variants, using gnu ld.so (Glibc)
10621     libltdl_cv_sys_dlopen_deplibs=yes
10622     ;;
10623   hpux10*|hpux11*)
10624     libltdl_cv_sys_dlopen_deplibs=yes
10625     ;;
10626   interix*)
10627     libltdl_cv_sys_dlopen_deplibs=yes
10628     ;;
10629   irix[12345]*|irix6.[01]*)
10630     # Catch all versions of IRIX before 6.2, and indicate that we don't
10631     # know how it worked for any of those versions.
10632     libltdl_cv_sys_dlopen_deplibs=unknown
10633     ;;
10634   irix*)
10635     # The case above catches anything before 6.2, and it's known that
10636     # at 6.2 and later dlopen does load deplibs.
10637     libltdl_cv_sys_dlopen_deplibs=yes
10638     ;;
10639   netbsd*)
10640     libltdl_cv_sys_dlopen_deplibs=yes
10641     ;;
10642   openbsd*)
10643     libltdl_cv_sys_dlopen_deplibs=yes
10644     ;;
10645   osf[1234]*)
10646     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10647     # it did *not* use an RPATH in a shared library to find objects the
10648     # library depends on, so we explicitly say `no'.
10649     libltdl_cv_sys_dlopen_deplibs=no
10650     ;;
10651   osf5.0|osf5.0a|osf5.1)
10652     # dlopen *does* load deplibs and with the right loader patch applied
10653     # it even uses RPATH in a shared library to search for shared objects
10654     # that the library depends on, but there's no easy way to know if that
10655     # patch is installed.  Since this is the case, all we can really
10656     # say is unknown -- it depends on the patch being installed.  If
10657     # it is, this changes to `yes'.  Without it, it would be `no'.
10658     libltdl_cv_sys_dlopen_deplibs=unknown
10659     ;;
10660   osf*)
10661     # the two cases above should catch all versions of osf <= 5.1.  Read
10662     # the comments above for what we know about them.
10663     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10664     # is used to find them so we can finally say `yes'.
10665     libltdl_cv_sys_dlopen_deplibs=yes
10666     ;;
10667   solaris*)
10668     libltdl_cv_sys_dlopen_deplibs=yes
10669     ;;
10670   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10671     libltdl_cv_sys_dlopen_deplibs=yes
10672     ;;
10673   esac
10674
10675 fi
10676 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10677 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10678 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10679
10680 cat >>confdefs.h <<\_ACEOF
10681 #define LTDL_DLOPEN_DEPLIBS 1
10682 _ACEOF
10683
10684 fi
10685
10686
10687 for ac_header in argz.h
10688 do
10689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 fi
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697                { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10699 else
10700   # Is the header compilable?
10701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 $ac_includes_default
10710 #include <$ac_header>
10711 _ACEOF
10712 rm -f conftest.$ac_objext
10713 if { (ac_try="$ac_compile"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_compile") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727   { (case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732   (eval "$ac_try") 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; } &&
10736          { ac_try='test -s conftest.$ac_objext'
10737   { (case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742   (eval "$ac_try") 2>&5
10743   ac_status=$?
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); }; }; then
10746   ac_header_compiler=yes
10747 else
10748   echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751         ac_header_compiler=no
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10756 echo "${ECHO_T}$ac_header_compiler" >&6; }
10757
10758 # Is the header present?
10759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767 #include <$ac_header>
10768 _ACEOF
10769 if { (ac_try="$ac_cpp conftest.$ac_ext"
10770 case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10776   ac_status=$?
10777   grep -v '^ *+' conftest.er1 >conftest.err
10778   rm -f conftest.er1
10779   cat conftest.err >&5
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } >/dev/null; then
10782   if test -s conftest.err; then
10783     ac_cpp_err=$ac_c_preproc_warn_flag
10784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10785   else
10786     ac_cpp_err=
10787   fi
10788 else
10789   ac_cpp_err=yes
10790 fi
10791 if test -z "$ac_cpp_err"; then
10792   ac_header_preproc=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797   ac_header_preproc=no
10798 fi
10799
10800 rm -f conftest.err conftest.$ac_ext
10801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10802 echo "${ECHO_T}$ac_header_preproc" >&6; }
10803
10804 # So?  What about this header?
10805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10806   yes:no: )
10807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10811     ac_header_preproc=yes
10812     ;;
10813   no:yes:* )
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10817 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10821 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10826     ( cat <<\_ASBOX
10827 ## ------------------------------------ ##
10828 ## Report this to http://llvm.org/bugs/ ##
10829 ## ------------------------------------ ##
10830 _ASBOX
10831      ) | sed "s/^/$as_me: WARNING:     /" >&2
10832     ;;
10833 esac
10834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   eval "$as_ac_Header=\$ac_header_preproc"
10840 fi
10841 ac_res=`eval echo '${'$as_ac_Header'}'`
10842                { echo "$as_me:$LINENO: result: $ac_res" >&5
10843 echo "${ECHO_T}$ac_res" >&6; }
10844
10845 fi
10846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10847   cat >>confdefs.h <<_ACEOF
10848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10849 _ACEOF
10850
10851 fi
10852
10853 done
10854
10855
10856 { echo "$as_me:$LINENO: checking for error_t" >&5
10857 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10858 if test "${ac_cv_type_error_t+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h.  */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h.  */
10867 #if HAVE_ARGZ_H
10868 #  include <argz.h>
10869 #endif
10870
10871 typedef error_t ac__type_new_;
10872 int
10873 main ()
10874 {
10875 if ((ac__type_new_ *) 0)
10876   return 0;
10877 if (sizeof (ac__type_new_))
10878   return 0;
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext
10884 if { (ac_try="$ac_compile"
10885 case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890   (eval "$ac_compile") 2>conftest.er1
10891   ac_status=$?
10892   grep -v '^ *+' conftest.er1 >conftest.err
10893   rm -f conftest.er1
10894   cat conftest.err >&5
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10898   { (case "(($ac_try" in
10899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900   *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903   (eval "$ac_try") 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); }; } &&
10907          { ac_try='test -s conftest.$ac_objext'
10908   { (case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_try") 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; }; then
10917   ac_cv_type_error_t=yes
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922         ac_cv_type_error_t=no
10923 fi
10924
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 fi
10927 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10929 if test $ac_cv_type_error_t = yes; then
10930
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_ERROR_T 1
10933 _ACEOF
10934
10935
10936 else
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define error_t int
10940 _ACEOF
10941
10942 fi
10943
10944
10945
10946
10947
10948
10949
10950 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10951 do
10952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10966 #define $ac_func innocuous_$ac_func
10967
10968 /* System header to define __stub macros and hopefully few prototypes,
10969     which can conflict with char $ac_func (); below.
10970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10971     <limits.h> exists even on freestanding compilers.  */
10972
10973 #ifdef __STDC__
10974 # include <limits.h>
10975 #else
10976 # include <assert.h>
10977 #endif
10978
10979 #undef $ac_func
10980
10981 /* Override any GCC internal prototype to avoid an error.
10982    Use char because int might match the return type of a GCC
10983    builtin and then its argument prototype would still apply.  */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 char $ac_func ();
10988 /* The GNU C library defines this for functions which it implements
10989     to always fail with ENOSYS.  Some functions are actually named
10990     something starting with __ and the normal name is an alias.  */
10991 #if defined __stub_$ac_func || defined __stub___$ac_func
10992 choke me
10993 #endif
10994
10995 int
10996 main ()
10997 {
10998 return $ac_func ();
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (ac_try="$ac_link"
11005 case "(($ac_try" in
11006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007   *) ac_try_echo=$ac_try;;
11008 esac
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010   (eval "$ac_link") 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } &&
11017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11018   { (case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_try") 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; } &&
11027          { ac_try='test -s conftest$ac_exeext'
11028   { (case "(($ac_try" in
11029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030   *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033   (eval "$ac_try") 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; }; then
11037   eval "$as_ac_var=yes"
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042         eval "$as_ac_var=no"
11043 fi
11044
11045 rm -f core conftest.err conftest.$ac_objext \
11046       conftest$ac_exeext conftest.$ac_ext
11047 fi
11048 ac_res=`eval echo '${'$as_ac_var'}'`
11049                { echo "$as_me:$LINENO: result: $ac_res" >&5
11050 echo "${ECHO_T}$ac_res" >&6; }
11051 if test `eval echo '${'$as_ac_var'}'` = yes; then
11052   cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057 done
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11087                   stdio.h unistd.h
11088 do
11089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 fi
11096 ac_res=`eval echo '${'$as_ac_Header'}'`
11097                { echo "$as_me:$LINENO: result: $ac_res" >&5
11098 echo "${ECHO_T}$ac_res" >&6; }
11099 else
11100   # Is the header compilable?
11101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 $ac_includes_default
11110 #include <$ac_header>
11111 _ACEOF
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116   *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119   (eval "$ac_compile") 2>conftest.er1
11120   ac_status=$?
11121   grep -v '^ *+' conftest.er1 >conftest.err
11122   rm -f conftest.er1
11123   cat conftest.err >&5
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); } &&
11126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11127   { (case "(($ac_try" in
11128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129   *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132   (eval "$ac_try") 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; } &&
11136          { ac_try='test -s conftest.$ac_objext'
11137   { (case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142   (eval "$ac_try") 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; }; then
11146   ac_header_compiler=yes
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151         ac_header_compiler=no
11152 fi
11153
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11156 echo "${ECHO_T}$ac_header_compiler" >&6; }
11157
11158 # Is the header present?
11159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11161 cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h.  */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h.  */
11167 #include <$ac_header>
11168 _ACEOF
11169 if { (ac_try="$ac_cpp conftest.$ac_ext"
11170 case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11176   ac_status=$?
11177   grep -v '^ *+' conftest.er1 >conftest.err
11178   rm -f conftest.er1
11179   cat conftest.err >&5
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } >/dev/null; then
11182   if test -s conftest.err; then
11183     ac_cpp_err=$ac_c_preproc_warn_flag
11184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11185   else
11186     ac_cpp_err=
11187   fi
11188 else
11189   ac_cpp_err=yes
11190 fi
11191 if test -z "$ac_cpp_err"; then
11192   ac_header_preproc=yes
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197   ac_header_preproc=no
11198 fi
11199
11200 rm -f conftest.err conftest.$ac_ext
11201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11202 echo "${ECHO_T}$ac_header_preproc" >&6; }
11203
11204 # So?  What about this header?
11205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11206   yes:no: )
11207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11211     ac_header_preproc=yes
11212     ;;
11213   no:yes:* )
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11226     ( cat <<\_ASBOX
11227 ## ------------------------------------ ##
11228 ## Report this to http://llvm.org/bugs/ ##
11229 ## ------------------------------------ ##
11230 _ASBOX
11231      ) | sed "s/^/$as_me: WARNING:     /" >&2
11232     ;;
11233 esac
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239   eval "$as_ac_Header=\$ac_header_preproc"
11240 fi
11241 ac_res=`eval echo '${'$as_ac_Header'}'`
11242                { echo "$as_me:$LINENO: result: $ac_res" >&5
11243 echo "${ECHO_T}$ac_res" >&6; }
11244
11245 fi
11246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11247   cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11249 _ACEOF
11250
11251 fi
11252
11253 done
11254
11255
11256
11257
11258
11259 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11260 do
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 fi
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269                { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11271 else
11272   # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 $ac_includes_default
11282 #include <$ac_header>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_compile") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11299   { (case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_try") 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; } &&
11308          { ac_try='test -s conftest.$ac_objext'
11309   { (case "(($ac_try" in
11310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311   *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314   (eval "$ac_try") 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; }; then
11318   ac_header_compiler=yes
11319 else
11320   echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323         ac_header_compiler=no
11324 fi
11325
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11328 echo "${ECHO_T}$ac_header_compiler" >&6; }
11329
11330 # Is the header present?
11331 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339 #include <$ac_header>
11340 _ACEOF
11341 if { (ac_try="$ac_cpp conftest.$ac_ext"
11342 case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } >/dev/null; then
11354   if test -s conftest.err; then
11355     ac_cpp_err=$ac_c_preproc_warn_flag
11356     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11357   else
11358     ac_cpp_err=
11359   fi
11360 else
11361   ac_cpp_err=yes
11362 fi
11363 if test -z "$ac_cpp_err"; then
11364   ac_header_preproc=yes
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369   ac_header_preproc=no
11370 fi
11371
11372 rm -f conftest.err conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11374 echo "${ECHO_T}$ac_header_preproc" >&6; }
11375
11376 # So?  What about this header?
11377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11378   yes:no: )
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11383     ac_header_preproc=yes
11384     ;;
11385   no:yes:* )
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11389 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11393 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11398     ( cat <<\_ASBOX
11399 ## ------------------------------------ ##
11400 ## Report this to http://llvm.org/bugs/ ##
11401 ## ------------------------------------ ##
11402 _ASBOX
11403      ) | sed "s/^/$as_me: WARNING:     /" >&2
11404     ;;
11405 esac
11406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   eval "$as_ac_Header=\$ac_header_preproc"
11412 fi
11413 ac_res=`eval echo '${'$as_ac_Header'}'`
11414                { echo "$as_me:$LINENO: result: $ac_res" >&5
11415 echo "${ECHO_T}$ac_res" >&6; }
11416
11417 fi
11418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11419   cat >>confdefs.h <<_ACEOF
11420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 _ACEOF
11422
11423 fi
11424
11425 done
11426
11427
11428
11429 for ac_header in string.h strings.h
11430 do
11431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436   echo $ECHO_N "(cached) $ECHO_C" >&6
11437 fi
11438 ac_res=`eval echo '${'$as_ac_Header'}'`
11439                { echo "$as_me:$LINENO: result: $ac_res" >&5
11440 echo "${ECHO_T}$ac_res" >&6; }
11441 else
11442   # Is the header compilable?
11443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 $ac_includes_default
11452 #include <$ac_header>
11453 _ACEOF
11454 rm -f conftest.$ac_objext
11455 if { (ac_try="$ac_compile"
11456 case "(($ac_try" in
11457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458   *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461   (eval "$ac_compile") 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11469   { (case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474   (eval "$ac_try") 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; } &&
11478          { ac_try='test -s conftest.$ac_objext'
11479   { (case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484   (eval "$ac_try") 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; }; then
11488   ac_header_compiler=yes
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493         ac_header_compiler=no
11494 fi
11495
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498 echo "${ECHO_T}$ac_header_compiler" >&6; }
11499
11500 # Is the header present?
11501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h.  */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h.  */
11509 #include <$ac_header>
11510 _ACEOF
11511 if { (ac_try="$ac_cpp conftest.$ac_ext"
11512 case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } >/dev/null; then
11524   if test -s conftest.err; then
11525     ac_cpp_err=$ac_c_preproc_warn_flag
11526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11527   else
11528     ac_cpp_err=
11529   fi
11530 else
11531   ac_cpp_err=yes
11532 fi
11533 if test -z "$ac_cpp_err"; then
11534   ac_header_preproc=yes
11535 else
11536   echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539   ac_header_preproc=no
11540 fi
11541
11542 rm -f conftest.err conftest.$ac_ext
11543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11544 echo "${ECHO_T}$ac_header_preproc" >&6; }
11545
11546 # So?  What about this header?
11547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11548   yes:no: )
11549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11553     ac_header_preproc=yes
11554     ;;
11555   no:yes:* )
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11559 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11563 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11568     ( cat <<\_ASBOX
11569 ## ------------------------------------ ##
11570 ## Report this to http://llvm.org/bugs/ ##
11571 ## ------------------------------------ ##
11572 _ASBOX
11573      ) | sed "s/^/$as_me: WARNING:     /" >&2
11574     ;;
11575 esac
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   eval "$as_ac_Header=\$ac_header_preproc"
11582 fi
11583 ac_res=`eval echo '${'$as_ac_Header'}'`
11584                { echo "$as_me:$LINENO: result: $ac_res" >&5
11585 echo "${ECHO_T}$ac_res" >&6; }
11586
11587 fi
11588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11589   cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11591 _ACEOF
11592  break
11593 fi
11594
11595 done
11596
11597
11598
11599
11600 for ac_func in strchr index
11601 do
11602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11616 #define $ac_func innocuous_$ac_func
11617
11618 /* System header to define __stub macros and hopefully few prototypes,
11619     which can conflict with char $ac_func (); below.
11620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11621     <limits.h> exists even on freestanding compilers.  */
11622
11623 #ifdef __STDC__
11624 # include <limits.h>
11625 #else
11626 # include <assert.h>
11627 #endif
11628
11629 #undef $ac_func
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632    Use char because int might match the return type of a GCC
11633    builtin and then its argument prototype would still apply.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char $ac_func ();
11638 /* The GNU C library defines this for functions which it implements
11639     to always fail with ENOSYS.  Some functions are actually named
11640     something starting with __ and the normal name is an alias.  */
11641 #if defined __stub_$ac_func || defined __stub___$ac_func
11642 choke me
11643 #endif
11644
11645 int
11646 main ()
11647 {
11648 return $ac_func ();
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   eval "$as_ac_var=yes"
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692         eval "$as_ac_var=no"
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext \
11696       conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 ac_res=`eval echo '${'$as_ac_var'}'`
11699                { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702   cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11704 _ACEOF
11705  break
11706 fi
11707 done
11708
11709
11710
11711 for ac_func in strrchr rindex
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11727 #define $ac_func innocuous_$ac_func
11728
11729 /* System header to define __stub macros and hopefully few prototypes,
11730     which can conflict with char $ac_func (); below.
11731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732     <limits.h> exists even on freestanding compilers.  */
11733
11734 #ifdef __STDC__
11735 # include <limits.h>
11736 #else
11737 # include <assert.h>
11738 #endif
11739
11740 #undef $ac_func
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743    Use char because int might match the return type of a GCC
11744    builtin and then its argument prototype would still apply.  */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char $ac_func ();
11749 /* The GNU C library defines this for functions which it implements
11750     to always fail with ENOSYS.  Some functions are actually named
11751     something starting with __ and the normal name is an alias.  */
11752 #if defined __stub_$ac_func || defined __stub___$ac_func
11753 choke me
11754 #endif
11755
11756 int
11757 main ()
11758 {
11759 return $ac_func ();
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_link") 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11779   { (case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_try") 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_try") 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; }; then
11798   eval "$as_ac_var=yes"
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803         eval "$as_ac_var=no"
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext \
11807       conftest$ac_exeext conftest.$ac_ext
11808 fi
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810                { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 _ACEOF
11816  break
11817 fi
11818 done
11819
11820
11821
11822 for ac_func in memcpy bcopy
11823 do
11824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11838 #define $ac_func innocuous_$ac_func
11839
11840 /* System header to define __stub macros and hopefully few prototypes,
11841     which can conflict with char $ac_func (); below.
11842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11843     <limits.h> exists even on freestanding compilers.  */
11844
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850
11851 #undef $ac_func
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char $ac_func ();
11860 /* The GNU C library defines this for functions which it implements
11861     to always fail with ENOSYS.  Some functions are actually named
11862     something starting with __ and the normal name is an alias.  */
11863 #if defined __stub_$ac_func || defined __stub___$ac_func
11864 choke me
11865 #endif
11866
11867 int
11868 main ()
11869 {
11870 return $ac_func ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_link") 2>conftest.er1
11883   ac_status=$?
11884   grep -v '^ *+' conftest.er1 >conftest.err
11885   rm -f conftest.er1
11886   cat conftest.err >&5
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890   { (case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_try") 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905   (eval "$ac_try") 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; }; then
11909   eval "$as_ac_var=yes"
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914         eval "$as_ac_var=no"
11915 fi
11916
11917 rm -f core conftest.err conftest.$ac_objext \
11918       conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 ac_res=`eval echo '${'$as_ac_var'}'`
11921                { echo "$as_me:$LINENO: result: $ac_res" >&5
11922 echo "${ECHO_T}$ac_res" >&6; }
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924   cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11926 _ACEOF
11927  break
11928 fi
11929 done
11930
11931
11932
11933 for ac_func in memmove strcmp
11934 do
11935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11949 #define $ac_func innocuous_$ac_func
11950
11951 /* System header to define __stub macros and hopefully few prototypes,
11952     which can conflict with char $ac_func (); below.
11953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11954     <limits.h> exists even on freestanding compilers.  */
11955
11956 #ifdef __STDC__
11957 # include <limits.h>
11958 #else
11959 # include <assert.h>
11960 #endif
11961
11962 #undef $ac_func
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965    Use char because int might match the return type of a GCC
11966    builtin and then its argument prototype would still apply.  */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char $ac_func ();
11971 /* The GNU C library defines this for functions which it implements
11972     to always fail with ENOSYS.  Some functions are actually named
11973     something starting with __ and the normal name is an alias.  */
11974 #if defined __stub_$ac_func || defined __stub___$ac_func
11975 choke me
11976 #endif
11977
11978 int
11979 main ()
11980 {
11981 return $ac_func ();
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_link") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } &&
12000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001   { (case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_try") 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; } &&
12010          { ac_try='test -s conftest$ac_exeext'
12011   { (case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_try") 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025         eval "$as_ac_var=no"
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext \
12029       conftest$ac_exeext conftest.$ac_ext
12030 fi
12031 ac_res=`eval echo '${'$as_ac_var'}'`
12032                { echo "$as_me:$LINENO: result: $ac_res" >&5
12033 echo "${ECHO_T}$ac_res" >&6; }
12034 if test `eval echo '${'$as_ac_var'}'` = yes; then
12035   cat >>confdefs.h <<_ACEOF
12036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 _ACEOF
12038
12039 fi
12040 done
12041
12042
12043
12044
12045 for ac_func in closedir opendir readdir
12046 do
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12061 #define $ac_func innocuous_$ac_func
12062
12063 /* System header to define __stub macros and hopefully few prototypes,
12064     which can conflict with char $ac_func (); below.
12065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066     <limits.h> exists even on freestanding compilers.  */
12067
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073
12074 #undef $ac_func
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077    Use char because int might match the return type of a GCC
12078    builtin and then its argument prototype would still apply.  */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char $ac_func ();
12083 /* The GNU C library defines this for functions which it implements
12084     to always fail with ENOSYS.  Some functions are actually named
12085     something starting with __ and the normal name is an alias.  */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12087 choke me
12088 #endif
12089
12090 int
12091 main ()
12092 {
12093 return $ac_func ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102   *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105   (eval "$ac_link") 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113   { (case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_try") 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; } &&
12122          { ac_try='test -s conftest$ac_exeext'
12123   { (case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_try") 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; }; then
12132   eval "$as_ac_var=yes"
12133 else
12134   echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137         eval "$as_ac_var=no"
12138 fi
12139
12140 rm -f core conftest.err conftest.$ac_objext \
12141       conftest$ac_exeext conftest.$ac_ext
12142 fi
12143 ac_res=`eval echo '${'$as_ac_var'}'`
12144                { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147   cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149 _ACEOF
12150
12151 fi
12152 done
12153
12154
12155
12156 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12157 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12158
12159 ICC=no
12160 IXX=no
12161 case $CC in
12162   icc*|icpc*)
12163     ICC=yes
12164     IXX=yes
12165     ;;
12166    *)
12167     ;;
12168 esac
12169
12170 if test "$GCC" != "yes" && test "$ICC" != "yes"
12171 then
12172   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12173 echo "$as_me: error: gcc|icc required but not found" >&2;}
12174    { (exit 1); exit 1; }; }
12175 fi
12176
12177 if test "$GXX" != "yes" && test "$IXX" != "yes"
12178 then
12179   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12180 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12181    { (exit 1); exit 1; }; }
12182 fi
12183
12184 if test "$GCC" = "yes"
12185 then
12186   cat >conftest.$ac_ext <<_ACEOF
12187
12188   /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193
12194     #if !defined(__GNUC__) || __GNUC__ < 3
12195     #error Unsupported GCC version
12196     #endif
12197
12198
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (ac_try="$ac_compile"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_compile") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; } &&
12224          { ac_try='test -s conftest.$ac_objext'
12225   { (case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_try") 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   :
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12240 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12241    { (exit 1); exit 1; }; }
12242 fi
12243
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 fi
12246
12247 if test -z "$llvm_cv_gnu_make_command"
12248 then
12249   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12250 echo "$as_me: error: GNU Make required but not found" >&2;}
12251    { (exit 1); exit 1; }; }
12252 fi
12253
12254 { echo "$as_me:$LINENO: result: ok" >&5
12255 echo "${ECHO_T}ok" >&6; }
12256
12257 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12258 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12259 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12260
12261 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12262
12263 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12264
12265 if test "$GXX" = "yes"
12266 then
12267   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12268
12269         if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12270   then
12271     NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12272
12273   else
12274                     gxx_version=`$CXX -dumpversion`
12275     gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12276     gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12277     gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12278
12279     if    test "$gxx_version_major" -ge "4" \
12280        && test "$gxx_version_minor" -ge "7"; then
12281             NO_UNINITIALIZED=
12282     else
12283       NO_MAYBE_UNINITIALIZED=
12284       NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12285
12286     fi
12287   fi
12288 else
12289   NO_UNINITIALIZED=
12290   NO_MAYBE_UNINITIALIZED=
12291 fi
12292 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12293 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12294
12295
12296 # Check whether --with-python was given.
12297 if test "${with_python+set}" = set; then
12298   withval=$with_python; PYTHON="$withval"
12299 fi
12300
12301
12302 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12303   { echo "$as_me:$LINENO: checking for python" >&5
12304 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12305   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12306 echo "${ECHO_T}user defined: $with_python" >&6; }
12307 else
12308   if test -n "$PYTHON" ; then
12309     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12310 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12311   fi
12312
12313   # Extract the first word of "python python2 python26", so it can be a program name with args.
12314 set dummy python python2 python26; ac_word=$2
12315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12317 if test "${ac_cv_path_PYTHON+set}" = set; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   case $PYTHON in
12321   [\\/]* | ?:[\\/]*)
12322   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12323   ;;
12324   *)
12325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328   IFS=$as_save_IFS
12329   test -z "$as_dir" && as_dir=.
12330   for ac_exec_ext in '' $ac_executable_extensions; do
12331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12332     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12334     break 2
12335   fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12341 echo "${ECHO_T}not found" >&6; }
12342                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12343 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12344    { (exit 1); exit 1; }; }"
12345   ;;
12346 esac
12347 fi
12348 PYTHON=$ac_cv_path_PYTHON
12349 if test -n "$PYTHON"; then
12350   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12351 echo "${ECHO_T}$PYTHON" >&6; }
12352 else
12353   { echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6; }
12355 fi
12356
12357
12358 fi
12359
12360 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12361 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12362 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12363 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12364 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12365 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12366 if   test "$ac_python_version_major" -eq "2" \
12367    && test "$ac_python_version_minor" -ge "5" ; then
12368   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12369 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12370 else
12371   { echo "$as_me:$LINENO: result: not found" >&5
12372 echo "${ECHO_T}not found" >&6; }
12373   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12376 See \`config.log' for more details." >&2;}
12377    { (exit 1); exit 1; }; }
12378 fi
12379
12380
12381
12382 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12383 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12384 if test "${ac_cv_lib_m_sin+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-lm  $LIBS"
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char sin ();
12403 int
12404 main ()
12405 {
12406 return sin ();
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (ac_try="$ac_link"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_link") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest$ac_exeext'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_cv_lib_m_sin=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         ac_cv_lib_m_sin=no
12451 fi
12452
12453 rm -f core conftest.err conftest.$ac_objext \
12454       conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12458 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12459 if test $ac_cv_lib_m_sin = yes; then
12460   cat >>confdefs.h <<_ACEOF
12461 #define HAVE_LIBM 1
12462 _ACEOF
12463
12464   LIBS="-lm $LIBS"
12465
12466 fi
12467
12468 if test "$llvm_cv_os_type" = "MingW" ; then
12469
12470 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12471 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-limagehlp  $LIBS"
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484
12485 int
12486 main ()
12487 {
12488 return main ();
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500   (eval "$ac_link") 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_lib_imagehlp_main=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532         ac_cv_lib_imagehlp_main=no
12533 fi
12534
12535 rm -f core conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12540 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12541 if test $ac_cv_lib_imagehlp_main = yes; then
12542   cat >>confdefs.h <<_ACEOF
12543 #define HAVE_LIBIMAGEHLP 1
12544 _ACEOF
12545
12546   LIBS="-limagehlp $LIBS"
12547
12548 fi
12549
12550
12551 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12552 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12553 if test "${ac_cv_lib_psapi_main+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-lpsapi  $LIBS"
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h.  */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h.  */
12564
12565
12566 int
12567 main ()
12568 {
12569 return main ();
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578   *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581   (eval "$ac_link") 2>conftest.er1
12582   ac_status=$?
12583   grep -v '^ *+' conftest.er1 >conftest.err
12584   rm -f conftest.er1
12585   cat conftest.err >&5
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); } &&
12588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12589   { (case "(($ac_try" in
12590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591   *) ac_try_echo=$ac_try;;
12592 esac
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594   (eval "$ac_try") 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; } &&
12598          { ac_try='test -s conftest$ac_exeext'
12599   { (case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_try") 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   ac_cv_lib_psapi_main=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613         ac_cv_lib_psapi_main=no
12614 fi
12615
12616 rm -f core conftest.err conftest.$ac_objext \
12617       conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12621 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12622 if test $ac_cv_lib_psapi_main = yes; then
12623   cat >>confdefs.h <<_ACEOF
12624 #define HAVE_LIBPSAPI 1
12625 _ACEOF
12626
12627   LIBS="-lpsapi $LIBS"
12628
12629 fi
12630
12631 fi
12632
12633 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12634 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12635 if test "${ac_cv_search_dlopen+set}" = set; then
12636   echo $ECHO_N "(cached) $ECHO_C" >&6
12637 else
12638   ac_func_search_save_LIBS=$LIBS
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645
12646 /* Override any GCC internal prototype to avoid an error.
12647    Use char because int might match the return type of a GCC
12648    builtin and then its argument prototype would still apply.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char dlopen ();
12653 int
12654 main ()
12655 {
12656 return dlopen ();
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 for ac_lib in '' dl; do
12662   if test -z "$ac_lib"; then
12663     ac_res="none required"
12664   else
12665     ac_res=-l$ac_lib
12666     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12667   fi
12668   rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672   *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675   (eval "$ac_link") 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } &&
12682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12683   { (case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } &&
12692          { ac_try='test -s conftest$ac_exeext'
12693   { (case "(($ac_try" in
12694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695   *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698   (eval "$ac_try") 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; }; then
12702   ac_cv_search_dlopen=$ac_res
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707
12708 fi
12709
12710 rm -f core conftest.err conftest.$ac_objext \
12711       conftest$ac_exeext
12712   if test "${ac_cv_search_dlopen+set}" = set; then
12713   break
12714 fi
12715 done
12716 if test "${ac_cv_search_dlopen+set}" = set; then
12717   :
12718 else
12719   ac_cv_search_dlopen=no
12720 fi
12721 rm conftest.$ac_ext
12722 LIBS=$ac_func_search_save_LIBS
12723 fi
12724 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12725 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12726 ac_res=$ac_cv_search_dlopen
12727 if test "$ac_res" != no; then
12728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12729
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HAVE_DLOPEN 1
12732 _ACEOF
12733
12734 else
12735   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12736 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12737 fi
12738
12739
12740 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12741 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12742 if test "${ac_cv_search_clock_gettime+set}" = set; then
12743   echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745   ac_func_search_save_LIBS=$LIBS
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752
12753 /* Override any GCC internal prototype to avoid an error.
12754    Use char because int might match the return type of a GCC
12755    builtin and then its argument prototype would still apply.  */
12756 #ifdef __cplusplus
12757 extern "C"
12758 #endif
12759 char clock_gettime ();
12760 int
12761 main ()
12762 {
12763 return clock_gettime ();
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 for ac_lib in '' rt; do
12769   if test -z "$ac_lib"; then
12770     ac_res="none required"
12771   else
12772     ac_res=-l$ac_lib
12773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12774   fi
12775   rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779   *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782   (eval "$ac_link") 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } &&
12789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790   { (case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_try") 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; } &&
12799          { ac_try='test -s conftest$ac_exeext'
12800   { (case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_try") 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; }; then
12809   ac_cv_search_clock_gettime=$ac_res
12810 else
12811   echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814
12815 fi
12816
12817 rm -f core conftest.err conftest.$ac_objext \
12818       conftest$ac_exeext
12819   if test "${ac_cv_search_clock_gettime+set}" = set; then
12820   break
12821 fi
12822 done
12823 if test "${ac_cv_search_clock_gettime+set}" = set; then
12824   :
12825 else
12826   ac_cv_search_clock_gettime=no
12827 fi
12828 rm conftest.$ac_ext
12829 LIBS=$ac_func_search_save_LIBS
12830 fi
12831 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12832 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12833 ac_res=$ac_cv_search_clock_gettime
12834 if test "$ac_res" != no; then
12835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12836
12837 fi
12838
12839
12840 if test "$llvm_cv_enable_libffi" = "yes" ; then
12841   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12842 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12843 if test "${ac_cv_search_ffi_call+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   ac_func_search_save_LIBS=$LIBS
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853
12854 /* Override any GCC internal prototype to avoid an error.
12855    Use char because int might match the return type of a GCC
12856    builtin and then its argument prototype would still apply.  */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char ffi_call ();
12861 int
12862 main ()
12863 {
12864 return ffi_call ();
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 for ac_lib in '' ffi; do
12870   if test -z "$ac_lib"; then
12871     ac_res="none required"
12872   else
12873     ac_res=-l$ac_lib
12874     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12875   fi
12876   rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (ac_try="$ac_link"
12878 case "(($ac_try" in
12879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880   *) ac_try_echo=$ac_try;;
12881 esac
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883   (eval "$ac_link") 2>conftest.er1
12884   ac_status=$?
12885   grep -v '^ *+' conftest.er1 >conftest.err
12886   rm -f conftest.er1
12887   cat conftest.err >&5
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } &&
12890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12891   { (case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_try") 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; } &&
12900          { ac_try='test -s conftest$ac_exeext'
12901   { (case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_try") 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_search_ffi_call=$ac_res
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915
12916 fi
12917
12918 rm -f core conftest.err conftest.$ac_objext \
12919       conftest$ac_exeext
12920   if test "${ac_cv_search_ffi_call+set}" = set; then
12921   break
12922 fi
12923 done
12924 if test "${ac_cv_search_ffi_call+set}" = set; then
12925   :
12926 else
12927   ac_cv_search_ffi_call=no
12928 fi
12929 rm conftest.$ac_ext
12930 LIBS=$ac_func_search_save_LIBS
12931 fi
12932 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12933 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12934 ac_res=$ac_cv_search_ffi_call
12935 if test "$ac_res" != no; then
12936   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FFI_CALL 1
12940 _ACEOF
12941
12942 else
12943   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12944 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12945    { (exit 1); exit 1; }; }
12946 fi
12947
12948 fi
12949
12950 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12951 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_mallinfo+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962
12963 /* Override any GCC internal prototype to avoid an error.
12964    Use char because int might match the return type of a GCC
12965    builtin and then its argument prototype would still apply.  */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char mallinfo ();
12970 int
12971 main ()
12972 {
12973 return mallinfo ();
12974   ;
12975   return 0;
12976 }
12977 _ACEOF
12978 for ac_lib in '' malloc; do
12979   if test -z "$ac_lib"; then
12980     ac_res="none required"
12981   else
12982     ac_res=-l$ac_lib
12983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12984   fi
12985   rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_link") 2>conftest.er1
12993   ac_status=$?
12994   grep -v '^ *+' conftest.er1 >conftest.err
12995   rm -f conftest.er1
12996   cat conftest.err >&5
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); } &&
12999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000   { (case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_try") 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; } &&
13009          { ac_try='test -s conftest$ac_exeext'
13010   { (case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_try") 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_search_mallinfo=$ac_res
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024
13025 fi
13026
13027 rm -f core conftest.err conftest.$ac_objext \
13028       conftest$ac_exeext
13029   if test "${ac_cv_search_mallinfo+set}" = set; then
13030   break
13031 fi
13032 done
13033 if test "${ac_cv_search_mallinfo+set}" = set; then
13034   :
13035 else
13036   ac_cv_search_mallinfo=no
13037 fi
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13040 fi
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13042 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13043 ac_res=$ac_cv_search_mallinfo
13044 if test "$ac_res" != no; then
13045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_MALLINFO 1
13049 _ACEOF
13050
13051 fi
13052
13053
13054 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13055
13056 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13057 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13058 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13059   echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061   ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lpthread  $LIBS"
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h.  */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h.  */
13069
13070 /* Override any GCC internal prototype to avoid an error.
13071    Use char because int might match the return type of a GCC
13072    builtin and then its argument prototype would still apply.  */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 char pthread_mutex_init ();
13077 int
13078 main ()
13079 {
13080 return pthread_mutex_init ();
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_link") 2>conftest.er1
13093   ac_status=$?
13094   grep -v '^ *+' conftest.er1 >conftest.err
13095   rm -f conftest.er1
13096   cat conftest.err >&5
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } &&
13099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100   { (case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105   (eval "$ac_try") 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; } &&
13109          { ac_try='test -s conftest$ac_exeext'
13110   { (case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_try") 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   ac_cv_lib_pthread_pthread_mutex_init=yes
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124         ac_cv_lib_pthread_pthread_mutex_init=no
13125 fi
13126
13127 rm -f core conftest.err conftest.$ac_objext \
13128       conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13130 fi
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13132 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13133 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13134   cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBPTHREAD 1
13136 _ACEOF
13137
13138   LIBS="-lpthread $LIBS"
13139
13140 fi
13141
13142   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13143 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13144 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   ac_func_search_save_LIBS=$LIBS
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154
13155 /* Override any GCC internal prototype to avoid an error.
13156    Use char because int might match the return type of a GCC
13157    builtin and then its argument prototype would still apply.  */
13158 #ifdef __cplusplus
13159 extern "C"
13160 #endif
13161 char pthread_mutex_lock ();
13162 int
13163 main ()
13164 {
13165 return pthread_mutex_lock ();
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 for ac_lib in '' pthread; do
13171   if test -z "$ac_lib"; then
13172     ac_res="none required"
13173   else
13174     ac_res=-l$ac_lib
13175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13176   fi
13177   rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } &&
13191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13192   { (case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_try") 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; } &&
13201          { ac_try='test -s conftest$ac_exeext'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   ac_cv_search_pthread_mutex_lock=$ac_res
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext \
13220       conftest$ac_exeext
13221   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13222   break
13223 fi
13224 done
13225 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13226   :
13227 else
13228   ac_cv_search_pthread_mutex_lock=no
13229 fi
13230 rm conftest.$ac_ext
13231 LIBS=$ac_func_search_save_LIBS
13232 fi
13233 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13234 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13235 ac_res=$ac_cv_search_pthread_mutex_lock
13236 if test "$ac_res" != no; then
13237   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13238
13239 cat >>confdefs.h <<\_ACEOF
13240 #define HAVE_PTHREAD_MUTEX_LOCK 1
13241 _ACEOF
13242
13243 fi
13244
13245   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13246 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13247 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   ac_func_search_save_LIBS=$LIBS
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259    Use char because int might match the return type of a GCC
13260    builtin and then its argument prototype would still apply.  */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char pthread_rwlock_init ();
13265 int
13266 main ()
13267 {
13268 return pthread_rwlock_init ();
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 for ac_lib in '' pthread; do
13274   if test -z "$ac_lib"; then
13275     ac_res="none required"
13276   else
13277     ac_res=-l$ac_lib
13278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13279   fi
13280   rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_link") 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295   { (case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_try") 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; } &&
13304          { ac_try='test -s conftest$ac_exeext'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_cv_search_pthread_rwlock_init=$ac_res
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319
13320 fi
13321
13322 rm -f core conftest.err conftest.$ac_objext \
13323       conftest$ac_exeext
13324   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13325   break
13326 fi
13327 done
13328 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13329   :
13330 else
13331   ac_cv_search_pthread_rwlock_init=no
13332 fi
13333 rm conftest.$ac_ext
13334 LIBS=$ac_func_search_save_LIBS
13335 fi
13336 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13337 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13338 ac_res=$ac_cv_search_pthread_rwlock_init
13339 if test "$ac_res" != no; then
13340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13341
13342 cat >>confdefs.h <<\_ACEOF
13343 #define HAVE_PTHREAD_RWLOCK_INIT 1
13344 _ACEOF
13345
13346 fi
13347
13348   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13349 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13350 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   ac_func_search_save_LIBS=$LIBS
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h.  */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h.  */
13360
13361 /* Override any GCC internal prototype to avoid an error.
13362    Use char because int might match the return type of a GCC
13363    builtin and then its argument prototype would still apply.  */
13364 #ifdef __cplusplus
13365 extern "C"
13366 #endif
13367 char pthread_getspecific ();
13368 int
13369 main ()
13370 {
13371 return pthread_getspecific ();
13372   ;
13373   return 0;
13374 }
13375 _ACEOF
13376 for ac_lib in '' pthread; do
13377   if test -z "$ac_lib"; then
13378     ac_res="none required"
13379   else
13380     ac_res=-l$ac_lib
13381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13382   fi
13383   rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_link") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } &&
13397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398   { (case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_try") 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; } &&
13407          { ac_try='test -s conftest$ac_exeext'
13408   { (case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_try") 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; }; then
13417   ac_cv_search_pthread_getspecific=$ac_res
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422
13423 fi
13424
13425 rm -f core conftest.err conftest.$ac_objext \
13426       conftest$ac_exeext
13427   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13428   break
13429 fi
13430 done
13431 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13432   :
13433 else
13434   ac_cv_search_pthread_getspecific=no
13435 fi
13436 rm conftest.$ac_ext
13437 LIBS=$ac_func_search_save_LIBS
13438 fi
13439 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13440 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13441 ac_res=$ac_cv_search_pthread_getspecific
13442 if test "$ac_res" != no; then
13443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13444
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_PTHREAD_GETSPECIFIC 1
13447 _ACEOF
13448
13449 fi
13450
13451 fi
13452
13453
13454 # Check whether --with-udis86 was given.
13455 if test "${with_udis86+set}" = set; then
13456   withval=$with_udis86;
13457       USE_UDIS86=1
13458
13459       case "$withval" in
13460         /usr/lib|yes) ;;
13461         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13462       esac
13463
13464 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13465 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13466 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ludis86  $LIBS"
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477
13478 /* Override any GCC internal prototype to avoid an error.
13479    Use char because int might match the return type of a GCC
13480    builtin and then its argument prototype would still apply.  */
13481 #ifdef __cplusplus
13482 extern "C"
13483 #endif
13484 char ud_init ();
13485 int
13486 main ()
13487 {
13488 return ud_init ();
13489   ;
13490   return 0;
13491 }
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497   *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500   (eval "$ac_link") 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508   { (case "(($ac_try" in
13509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510   *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513   (eval "$ac_try") 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; } &&
13517          { ac_try='test -s conftest$ac_exeext'
13518   { (case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_try") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_cv_lib_udis86_ud_init=yes
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532         ac_cv_lib_udis86_ud_init=no
13533 fi
13534
13535 rm -f core conftest.err conftest.$ac_objext \
13536       conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13538 fi
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13540 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13541 if test $ac_cv_lib_udis86_ud_init = yes; then
13542   cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBUDIS86 1
13544 _ACEOF
13545
13546   LIBS="-ludis86 $LIBS"
13547
13548 else
13549
13550         echo "Error! You need to have libudis86 around."
13551         exit -1
13552
13553 fi
13554
13555
13556 else
13557   USE_UDIS86=0
13558
13559 fi
13560
13561
13562 cat >>confdefs.h <<_ACEOF
13563 #define USE_UDIS86 $USE_UDIS86
13564 _ACEOF
13565
13566
13567
13568 # Check whether --with-oprofile was given.
13569 if test "${with_oprofile+set}" = set; then
13570   withval=$with_oprofile;
13571       USE_OPROFILE=1
13572
13573       case "$withval" in
13574         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13575         no) llvm_cv_oppath=
13576             USE_OPROFILE=0
13577  ;;
13578         *) llvm_cv_oppath="${withval}/lib/oprofile"
13579            CPPFLAGS="-I${withval}/include";;
13580       esac
13581       case $llvm_cv_os_type in
13582         Linux)
13583           if test -n "$llvm_cv_oppath" ; then
13584             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13585                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13586 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13587 if test "${ac_cv_search_bfd_init+set}" = set; then
13588   echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590   ac_func_search_save_LIBS=$LIBS
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597
13598 /* Override any GCC internal prototype to avoid an error.
13599    Use char because int might match the return type of a GCC
13600    builtin and then its argument prototype would still apply.  */
13601 #ifdef __cplusplus
13602 extern "C"
13603 #endif
13604 char bfd_init ();
13605 int
13606 main ()
13607 {
13608 return bfd_init ();
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 for ac_lib in '' bfd; do
13614   if test -z "$ac_lib"; then
13615     ac_res="none required"
13616   else
13617     ac_res=-l$ac_lib
13618     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13619   fi
13620   rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_link") 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } &&
13634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635   { (case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_try") 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; } &&
13644          { ac_try='test -s conftest$ac_exeext'
13645   { (case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_try") 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_search_bfd_init=$ac_res
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext \
13663       conftest$ac_exeext
13664   if test "${ac_cv_search_bfd_init+set}" = set; then
13665   break
13666 fi
13667 done
13668 if test "${ac_cv_search_bfd_init+set}" = set; then
13669   :
13670 else
13671   ac_cv_search_bfd_init=no
13672 fi
13673 rm conftest.$ac_ext
13674 LIBS=$ac_func_search_save_LIBS
13675 fi
13676 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13677 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13678 ac_res=$ac_cv_search_bfd_init
13679 if test "$ac_res" != no; then
13680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13681
13682 fi
13683
13684             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13685 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13686 if test "${ac_cv_search_op_open_agent+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   ac_func_search_save_LIBS=$LIBS
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h.  */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h.  */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698    Use char because int might match the return type of a GCC
13699    builtin and then its argument prototype would still apply.  */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char op_open_agent ();
13704 int
13705 main ()
13706 {
13707 return op_open_agent ();
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 for ac_lib in '' opagent; do
13713   if test -z "$ac_lib"; then
13714     ac_res="none required"
13715   else
13716     ac_res=-l$ac_lib
13717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13718   fi
13719   rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (ac_try="$ac_link"
13721 case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_link") 2>conftest.er1
13727   ac_status=$?
13728   grep -v '^ *+' conftest.er1 >conftest.err
13729   rm -f conftest.er1
13730   cat conftest.err >&5
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); } &&
13733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734   { (case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_try") 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; } &&
13743          { ac_try='test -s conftest$ac_exeext'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_cv_search_op_open_agent=$ac_res
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758
13759 fi
13760
13761 rm -f core conftest.err conftest.$ac_objext \
13762       conftest$ac_exeext
13763   if test "${ac_cv_search_op_open_agent+set}" = set; then
13764   break
13765 fi
13766 done
13767 if test "${ac_cv_search_op_open_agent+set}" = set; then
13768   :
13769 else
13770   ac_cv_search_op_open_agent=no
13771 fi
13772 rm conftest.$ac_ext
13773 LIBS=$ac_func_search_save_LIBS
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13776 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13777 ac_res=$ac_cv_search_op_open_agent
13778 if test "$ac_res" != no; then
13779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13780
13781 else
13782
13783               echo "Error! You need to have libopagent around."
13784               exit -1
13785
13786 fi
13787
13788             if test "${ac_cv_header_opagent_h+set}" = set; then
13789   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13790 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13791 if test "${ac_cv_header_opagent_h+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 fi
13794 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13796 else
13797   # Is the header compilable?
13798 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13799 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806 $ac_includes_default
13807 #include <opagent.h>
13808 _ACEOF
13809 rm -f conftest.$ac_objext
13810 if { (ac_try="$ac_compile"
13811 case "(($ac_try" in
13812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813   *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816   (eval "$ac_compile") 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13824   { (case "(($ac_try" in
13825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826   *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829   (eval "$ac_try") 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; } &&
13833          { ac_try='test -s conftest.$ac_objext'
13834   { (case "(($ac_try" in
13835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836   *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839   (eval "$ac_try") 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; }; then
13843   ac_header_compiler=yes
13844 else
13845   echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848         ac_header_compiler=no
13849 fi
13850
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13853 echo "${ECHO_T}$ac_header_compiler" >&6; }
13854
13855 # Is the header present?
13856 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13857 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864 #include <opagent.h>
13865 _ACEOF
13866 if { (ac_try="$ac_cpp conftest.$ac_ext"
13867 case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } >/dev/null; then
13879   if test -s conftest.err; then
13880     ac_cpp_err=$ac_c_preproc_warn_flag
13881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13882   else
13883     ac_cpp_err=
13884   fi
13885 else
13886   ac_cpp_err=yes
13887 fi
13888 if test -z "$ac_cpp_err"; then
13889   ac_header_preproc=yes
13890 else
13891   echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894   ac_header_preproc=no
13895 fi
13896
13897 rm -f conftest.err conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 echo "${ECHO_T}$ac_header_preproc" >&6; }
13900
13901 # So?  What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13903   yes:no: )
13904     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13907 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13908     ac_header_preproc=yes
13909     ;;
13910   no:yes:* )
13911     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13912 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13913     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13914 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13915     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13916 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13917     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13918 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13919     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13920 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13921     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13922 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13923     ( cat <<\_ASBOX
13924 ## ------------------------------------ ##
13925 ## Report this to http://llvm.org/bugs/ ##
13926 ## ------------------------------------ ##
13927 _ASBOX
13928      ) | sed "s/^/$as_me: WARNING:     /" >&2
13929     ;;
13930 esac
13931 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13932 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13933 if test "${ac_cv_header_opagent_h+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   ac_cv_header_opagent_h=$ac_header_preproc
13937 fi
13938 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13939 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13940
13941 fi
13942 if test $ac_cv_header_opagent_h = yes; then
13943   :
13944 else
13945
13946               echo "Error! You need to have opagent.h around."
13947               exit -1
13948
13949 fi
13950
13951
13952           fi ;;
13953         *)
13954           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13955 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13956    { (exit 1); exit 1; }; } ;;
13957       esac
13958
13959 else
13960
13961       USE_OPROFILE=0
13962
13963
13964 fi
13965
13966
13967 cat >>confdefs.h <<_ACEOF
13968 #define LLVM_USE_OPROFILE $USE_OPROFILE
13969 _ACEOF
13970
13971
13972
13973 # Check whether --with-intel-jitevents was given.
13974 if test "${with_intel_jitevents+set}" = set; then
13975   withval=$with_intel_jitevents;
13976        case "$withval" in
13977           yes) USE_INTEL_JITEVENTS=1
13978 ;;
13979           no)  USE_INTEL_JITEVENTS=0
13980 ;;
13981           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13982 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13983    { (exit 1); exit 1; }; };;
13984        esac
13985
13986       case $llvm_cv_os_type in
13987         Linux|Win32|Cygwin|MingW) ;;
13988         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13989 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13990    { (exit 1); exit 1; }; };;
13991       esac
13992
13993       case "$llvm_cv_target_arch" in
13994         x86|x86_64) ;;
13995         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13996 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13997    { (exit 1); exit 1; }; };;
13998       esac
13999
14000 else
14001
14002       USE_INTEL_JITEVENTS=0
14003
14004
14005 fi
14006
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14010 _ACEOF
14011
14012
14013 for ac_prog in xml2-config
14014 do
14015   # Extract the first word of "$ac_prog", so it can be a program name with args.
14016 set dummy $ac_prog; ac_word=$2
14017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14019 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   if test -n "$XML2CONFIG"; then
14023   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14024 else
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14027 do
14028   IFS=$as_save_IFS
14029   test -z "$as_dir" && as_dir=.
14030   for ac_exec_ext in '' $ac_executable_extensions; do
14031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14032     ac_cv_prog_XML2CONFIG="$ac_prog"
14033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14034     break 2
14035   fi
14036 done
14037 done
14038 IFS=$as_save_IFS
14039
14040 fi
14041 fi
14042 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14043 if test -n "$XML2CONFIG"; then
14044   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14045 echo "${ECHO_T}$XML2CONFIG" >&6; }
14046 else
14047   { echo "$as_me:$LINENO: result: no" >&5
14048 echo "${ECHO_T}no" >&6; }
14049 fi
14050
14051
14052   test -n "$XML2CONFIG" && break
14053 done
14054
14055
14056 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14057 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14058 if test "x$XML2CONFIG" = "x"; then
14059  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14060 echo "${ECHO_T}xml2-config not found" >&6; }
14061 else
14062  LIBXML2_INC=`$XML2CONFIG --cflags`
14063  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14064 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14065  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14066 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lxml2  $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h.  */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h.  */
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080    Use char because int might match the return type of a GCC
14081    builtin and then its argument prototype would still apply.  */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char xmlReadFile ();
14086 int
14087 main ()
14088 {
14089 return xmlReadFile ();
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098   *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101   (eval "$ac_link") 2>conftest.er1
14102   ac_status=$?
14103   grep -v '^ *+' conftest.er1 >conftest.err
14104   rm -f conftest.er1
14105   cat conftest.err >&5
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); } &&
14108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109   { (case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_try") 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; } &&
14118          { ac_try='test -s conftest$ac_exeext'
14119   { (case "(($ac_try" in
14120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121   *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124   (eval "$ac_try") 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); }; }; then
14128   ac_cv_lib_xml2_xmlReadFile=yes
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133         ac_cv_lib_xml2_xmlReadFile=no
14134 fi
14135
14136 rm -f core conftest.err conftest.$ac_objext \
14137       conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14139 fi
14140 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14141 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14142 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14143
14144 cat >>confdefs.h <<\_ACEOF
14145 #define CLANG_HAVE_LIBXML 1
14146 _ACEOF
14147
14148                                 LIBXML2_LIBS="-lxml2"
14149 fi
14150
14151 fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161 ac_header_dirent=no
14162 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14163   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14164 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14165 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175 #include <sys/types.h>
14176 #include <$ac_hdr>
14177
14178 int
14179 main ()
14180 {
14181 if ((DIR *) 0)
14182 return 0;
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_compile") 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest.$ac_objext'
14212   { (case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_try") 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   eval "$as_ac_Header=yes"
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226         eval "$as_ac_Header=no"
14227 fi
14228
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230 fi
14231 ac_res=`eval echo '${'$as_ac_Header'}'`
14232                { echo "$as_me:$LINENO: result: $ac_res" >&5
14233 echo "${ECHO_T}$ac_res" >&6; }
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235   cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14237 _ACEOF
14238
14239 ac_header_dirent=$ac_hdr; break
14240 fi
14241
14242 done
14243 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14244 if test $ac_header_dirent = dirent.h; then
14245   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14247 if test "${ac_cv_search_opendir+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250   ac_func_search_save_LIBS=$LIBS
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257
14258 /* Override any GCC internal prototype to avoid an error.
14259    Use char because int might match the return type of a GCC
14260    builtin and then its argument prototype would still apply.  */
14261 #ifdef __cplusplus
14262 extern "C"
14263 #endif
14264 char opendir ();
14265 int
14266 main ()
14267 {
14268 return opendir ();
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 for ac_lib in '' dir; do
14274   if test -z "$ac_lib"; then
14275     ac_res="none required"
14276   else
14277     ac_res=-l$ac_lib
14278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14279   fi
14280   rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_link") 2>conftest.er1
14288   ac_status=$?
14289   grep -v '^ *+' conftest.er1 >conftest.err
14290   rm -f conftest.er1
14291   cat conftest.err >&5
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); } &&
14294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295   { (case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_try") 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; } &&
14304          { ac_try='test -s conftest$ac_exeext'
14305   { (case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_try") 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; }; then
14314   ac_cv_search_opendir=$ac_res
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319
14320 fi
14321
14322 rm -f core conftest.err conftest.$ac_objext \
14323       conftest$ac_exeext
14324   if test "${ac_cv_search_opendir+set}" = set; then
14325   break
14326 fi
14327 done
14328 if test "${ac_cv_search_opendir+set}" = set; then
14329   :
14330 else
14331   ac_cv_search_opendir=no
14332 fi
14333 rm conftest.$ac_ext
14334 LIBS=$ac_func_search_save_LIBS
14335 fi
14336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14338 ac_res=$ac_cv_search_opendir
14339 if test "$ac_res" != no; then
14340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14341
14342 fi
14343
14344 else
14345   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14347 if test "${ac_cv_search_opendir+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   ac_func_search_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357
14358 /* Override any GCC internal prototype to avoid an error.
14359    Use char because int might match the return type of a GCC
14360    builtin and then its argument prototype would still apply.  */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char opendir ();
14365 int
14366 main ()
14367 {
14368 return opendir ();
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 for ac_lib in '' x; do
14374   if test -z "$ac_lib"; then
14375     ac_res="none required"
14376   else
14377     ac_res=-l$ac_lib
14378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14379   fi
14380   rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384   *) ac_try_echo=$ac_try;;
14385 esac
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387   (eval "$ac_link") 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; } &&
14404          { ac_try='test -s conftest$ac_exeext'
14405   { (case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_try") 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }; then
14414   ac_cv_search_opendir=$ac_res
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419
14420 fi
14421
14422 rm -f core conftest.err conftest.$ac_objext \
14423       conftest$ac_exeext
14424   if test "${ac_cv_search_opendir+set}" = set; then
14425   break
14426 fi
14427 done
14428 if test "${ac_cv_search_opendir+set}" = set; then
14429   :
14430 else
14431   ac_cv_search_opendir=no
14432 fi
14433 rm conftest.$ac_ext
14434 LIBS=$ac_func_search_save_LIBS
14435 fi
14436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14438 ac_res=$ac_cv_search_opendir
14439 if test "$ac_res" != no; then
14440   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14441
14442 fi
14443
14444 fi
14445
14446 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14447 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14448 if test "${ac_cv_header_mmap_anon+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451    ac_ext=c
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14456
14457   cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <sys/mman.h>
14464 #include <unistd.h>
14465 #include <fcntl.h>
14466 int
14467 main ()
14468 {
14469 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (ac_try="$ac_compile"
14476 case "(($ac_try" in
14477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478   *) ac_try_echo=$ac_try;;
14479 esac
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481   (eval "$ac_compile") 2>conftest.er1
14482   ac_status=$?
14483   grep -v '^ *+' conftest.er1 >conftest.err
14484   rm -f conftest.er1
14485   cat conftest.err >&5
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } &&
14488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14489   { (case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_try") 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; } &&
14498          { ac_try='test -s conftest.$ac_objext'
14499   { (case "(($ac_try" in
14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501   *) ac_try_echo=$ac_try;;
14502 esac
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504   (eval "$ac_try") 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; }; then
14508   ac_cv_header_mmap_anon=yes
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513         ac_cv_header_mmap_anon=no
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517   ac_ext=c
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14522
14523
14524 fi
14525 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14526 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14527 if test "$ac_cv_header_mmap_anon" = yes; then
14528
14529 cat >>confdefs.h <<\_ACEOF
14530 #define HAVE_MMAP_ANONYMOUS 1
14531 _ACEOF
14532
14533 fi
14534
14535 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14536 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_stat_broken+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 #include <sys/types.h>
14547 #include <sys/stat.h>
14548
14549 #if defined S_ISBLK && defined S_IFDIR
14550 # if S_ISBLK (S_IFDIR)
14551 You lose.
14552 # endif
14553 #endif
14554
14555 #if defined S_ISBLK && defined S_IFCHR
14556 # if S_ISBLK (S_IFCHR)
14557 You lose.
14558 # endif
14559 #endif
14560
14561 #if defined S_ISLNK && defined S_IFREG
14562 # if S_ISLNK (S_IFREG)
14563 You lose.
14564 # endif
14565 #endif
14566
14567 #if defined S_ISSOCK && defined S_IFREG
14568 # if S_ISSOCK (S_IFREG)
14569 You lose.
14570 # endif
14571 #endif
14572
14573 _ACEOF
14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14575   $EGREP "You lose" >/dev/null 2>&1; then
14576   ac_cv_header_stat_broken=yes
14577 else
14578   ac_cv_header_stat_broken=no
14579 fi
14580 rm -f conftest*
14581
14582 fi
14583 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14584 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14585 if test $ac_cv_header_stat_broken = yes; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define STAT_MACROS_BROKEN 1
14589 _ACEOF
14590
14591 fi
14592
14593 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14596   echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598   cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 #include <sys/types.h>
14605 #include <sys/wait.h>
14606 #ifndef WEXITSTATUS
14607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14608 #endif
14609 #ifndef WIFEXITED
14610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14611 #endif
14612
14613 int
14614 main ()
14615 {
14616   int s;
14617   wait (&s);
14618   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_compile") 2>conftest.er1
14631   ac_status=$?
14632   grep -v '^ *+' conftest.er1 >conftest.err
14633   rm -f conftest.er1
14634   cat conftest.err >&5
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; } &&
14647          { ac_try='test -s conftest.$ac_objext'
14648   { (case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_try") 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; }; then
14657   ac_cv_header_sys_wait_h=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         ac_cv_header_sys_wait_h=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 fi
14667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14668 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14669 if test $ac_cv_header_sys_wait_h = yes; then
14670
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_SYS_WAIT_H 1
14673 _ACEOF
14674
14675 fi
14676
14677 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14679 if test "${ac_cv_header_time+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688 #include <sys/types.h>
14689 #include <sys/time.h>
14690 #include <time.h>
14691
14692 int
14693 main ()
14694 {
14695 if ((struct tm *) 0)
14696 return 0;
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705   *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708   (eval "$ac_compile") 2>conftest.er1
14709   ac_status=$?
14710   grep -v '^ *+' conftest.er1 >conftest.err
14711   rm -f conftest.er1
14712   cat conftest.err >&5
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); } &&
14715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14716   { (case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_try") 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_try") 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; }; then
14735   ac_cv_header_time=yes
14736 else
14737   echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740         ac_cv_header_time=no
14741 fi
14742
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 fi
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14746 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14747 if test $ac_cv_header_time = yes; then
14748
14749 cat >>confdefs.h <<\_ACEOF
14750 #define TIME_WITH_SYS_TIME 1
14751 _ACEOF
14752
14753 fi
14754
14755
14756
14757
14758
14759
14760
14761
14762 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14763 do
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 fi
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772                { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14774 else
14775   # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784 $ac_includes_default
14785 #include <$ac_header>
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_compile") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802   { (case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; } &&
14811          { ac_try='test -s conftest.$ac_objext'
14812   { (case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_try") 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821   ac_header_compiler=yes
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826         ac_header_compiler=no
14827 fi
14828
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14832
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 #include <$ac_header>
14843 _ACEOF
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14851   ac_status=$?
14852   grep -v '^ *+' conftest.er1 >conftest.err
14853   rm -f conftest.er1
14854   cat conftest.err >&5
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } >/dev/null; then
14857   if test -s conftest.err; then
14858     ac_cpp_err=$ac_c_preproc_warn_flag
14859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14860   else
14861     ac_cpp_err=
14862   fi
14863 else
14864   ac_cpp_err=yes
14865 fi
14866 if test -z "$ac_cpp_err"; then
14867   ac_header_preproc=yes
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872   ac_header_preproc=no
14873 fi
14874
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14878
14879 # So?  What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881   yes:no: )
14882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886     ac_header_preproc=yes
14887     ;;
14888   no:yes:* )
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14901     ( cat <<\_ASBOX
14902 ## ------------------------------------ ##
14903 ## Report this to http://llvm.org/bugs/ ##
14904 ## ------------------------------------ ##
14905 _ASBOX
14906      ) | sed "s/^/$as_me: WARNING:     /" >&2
14907     ;;
14908 esac
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   eval "$as_ac_Header=\$ac_header_preproc"
14915 fi
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917                { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919
14920 fi
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922   cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14924 _ACEOF
14925
14926 fi
14927
14928 done
14929
14930
14931
14932
14933
14934
14935
14936 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14937 do
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 fi
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946                { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 else
14949   # Is the header compilable?
14950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 $ac_includes_default
14959 #include <$ac_header>
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_compile") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976   { (case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_try") 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; } &&
14985          { ac_try='test -s conftest.$ac_objext'
14986   { (case "(($ac_try" in
14987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988   *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991   (eval "$ac_try") 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995   ac_header_compiler=yes
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000         ac_header_compiler=no
15001 fi
15002
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6; }
15006
15007 # Is the header present?
15008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 #include <$ac_header>
15017 _ACEOF
15018 if { (ac_try="$ac_cpp conftest.$ac_ext"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } >/dev/null; then
15031   if test -s conftest.err; then
15032     ac_cpp_err=$ac_c_preproc_warn_flag
15033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15034   else
15035     ac_cpp_err=
15036   fi
15037 else
15038   ac_cpp_err=yes
15039 fi
15040 if test -z "$ac_cpp_err"; then
15041   ac_header_preproc=yes
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046   ac_header_preproc=no
15047 fi
15048
15049 rm -f conftest.err conftest.$ac_ext
15050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 echo "${ECHO_T}$ac_header_preproc" >&6; }
15052
15053 # So?  What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15055   yes:no: )
15056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060     ac_header_preproc=yes
15061     ;;
15062   no:yes:* )
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15075     ( cat <<\_ASBOX
15076 ## ------------------------------------ ##
15077 ## Report this to http://llvm.org/bugs/ ##
15078 ## ------------------------------------ ##
15079 _ASBOX
15080      ) | sed "s/^/$as_me: WARNING:     /" >&2
15081     ;;
15082 esac
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086   echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088   eval "$as_ac_Header=\$ac_header_preproc"
15089 fi
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091                { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15093
15094 fi
15095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15096   cat >>confdefs.h <<_ACEOF
15097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15098 _ACEOF
15099
15100 fi
15101
15102 done
15103
15104
15105
15106 for ac_header in utime.h windows.h
15107 do
15108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 fi
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116                { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118 else
15119   # Is the header compilable?
15120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128 $ac_includes_default
15129 #include <$ac_header>
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_compile") 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } &&
15145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146   { (case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151   (eval "$ac_try") 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; } &&
15155          { ac_try='test -s conftest.$ac_objext'
15156   { (case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_try") 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   ac_header_compiler=yes
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170         ac_header_compiler=no
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15175 echo "${ECHO_T}$ac_header_compiler" >&6; }
15176
15177 # Is the header present?
15178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186 #include <$ac_header>
15187 _ACEOF
15188 if { (ac_try="$ac_cpp conftest.$ac_ext"
15189 case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } >/dev/null; then
15201   if test -s conftest.err; then
15202     ac_cpp_err=$ac_c_preproc_warn_flag
15203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15204   else
15205     ac_cpp_err=
15206   fi
15207 else
15208   ac_cpp_err=yes
15209 fi
15210 if test -z "$ac_cpp_err"; then
15211   ac_header_preproc=yes
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216   ac_header_preproc=no
15217 fi
15218
15219 rm -f conftest.err conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6; }
15222
15223 # So?  What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225   yes:no: )
15226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230     ac_header_preproc=yes
15231     ;;
15232   no:yes:* )
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245     ( cat <<\_ASBOX
15246 ## ------------------------------------ ##
15247 ## Report this to http://llvm.org/bugs/ ##
15248 ## ------------------------------------ ##
15249 _ASBOX
15250      ) | sed "s/^/$as_me: WARNING:     /" >&2
15251     ;;
15252 esac
15253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258   eval "$as_ac_Header=\$ac_header_preproc"
15259 fi
15260 ac_res=`eval echo '${'$as_ac_Header'}'`
15261                { echo "$as_me:$LINENO: result: $ac_res" >&5
15262 echo "${ECHO_T}$ac_res" >&6; }
15263
15264 fi
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266   cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15268 _ACEOF
15269
15270 fi
15271
15272 done
15273
15274
15275
15276
15277
15278
15279 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15280 do
15281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 fi
15288 ac_res=`eval echo '${'$as_ac_Header'}'`
15289                { echo "$as_me:$LINENO: result: $ac_res" >&5
15290 echo "${ECHO_T}$ac_res" >&6; }
15291 else
15292   # Is the header compilable?
15293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301 $ac_includes_default
15302 #include <$ac_header>
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_compile") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15319   { (case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_try") 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; } &&
15328          { ac_try='test -s conftest.$ac_objext'
15329   { (case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334   (eval "$ac_try") 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_header_compiler=yes
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343         ac_header_compiler=no
15344 fi
15345
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15348 echo "${ECHO_T}$ac_header_compiler" >&6; }
15349
15350 # Is the header present?
15351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359 #include <$ac_header>
15360 _ACEOF
15361 if { (ac_try="$ac_cpp conftest.$ac_ext"
15362 case "(($ac_try" in
15363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364   *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15368   ac_status=$?
15369   grep -v '^ *+' conftest.er1 >conftest.err
15370   rm -f conftest.er1
15371   cat conftest.err >&5
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } >/dev/null; then
15374   if test -s conftest.err; then
15375     ac_cpp_err=$ac_c_preproc_warn_flag
15376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15377   else
15378     ac_cpp_err=
15379   fi
15380 else
15381   ac_cpp_err=yes
15382 fi
15383 if test -z "$ac_cpp_err"; then
15384   ac_header_preproc=yes
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389   ac_header_preproc=no
15390 fi
15391
15392 rm -f conftest.err conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15394 echo "${ECHO_T}$ac_header_preproc" >&6; }
15395
15396 # So?  What about this header?
15397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15398   yes:no: )
15399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15403     ac_header_preproc=yes
15404     ;;
15405   no:yes:* )
15406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15418     ( cat <<\_ASBOX
15419 ## ------------------------------------ ##
15420 ## Report this to http://llvm.org/bugs/ ##
15421 ## ------------------------------------ ##
15422 _ASBOX
15423      ) | sed "s/^/$as_me: WARNING:     /" >&2
15424     ;;
15425 esac
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429   echo $ECHO_N "(cached) $ECHO_C" >&6
15430 else
15431   eval "$as_ac_Header=\$ac_header_preproc"
15432 fi
15433 ac_res=`eval echo '${'$as_ac_Header'}'`
15434                { echo "$as_me:$LINENO: result: $ac_res" >&5
15435 echo "${ECHO_T}$ac_res" >&6; }
15436
15437 fi
15438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15439   cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 _ACEOF
15442
15443 fi
15444
15445 done
15446
15447
15448
15449
15450
15451 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15452 do
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461                { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463 else
15464   # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h.  */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h.  */
15473 $ac_includes_default
15474 #include <$ac_header>
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_compile") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } &&
15490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; } &&
15500          { ac_try='test -s conftest.$ac_objext'
15501   { (case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_try") 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510   ac_header_compiler=yes
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15514
15515         ac_header_compiler=no
15516 fi
15517
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520 echo "${ECHO_T}$ac_header_compiler" >&6; }
15521
15522 # Is the header present?
15523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 #include <$ac_header>
15532 _ACEOF
15533 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } >/dev/null; then
15546   if test -s conftest.err; then
15547     ac_cpp_err=$ac_c_preproc_warn_flag
15548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15549   else
15550     ac_cpp_err=
15551   fi
15552 else
15553   ac_cpp_err=yes
15554 fi
15555 if test -z "$ac_cpp_err"; then
15556   ac_header_preproc=yes
15557 else
15558   echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561   ac_header_preproc=no
15562 fi
15563
15564 rm -f conftest.err conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6; }
15567
15568 # So?  What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15570   yes:no: )
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575     ac_header_preproc=yes
15576     ;;
15577   no:yes:* )
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15590     ( cat <<\_ASBOX
15591 ## ------------------------------------ ##
15592 ## Report this to http://llvm.org/bugs/ ##
15593 ## ------------------------------------ ##
15594 _ASBOX
15595      ) | sed "s/^/$as_me: WARNING:     /" >&2
15596     ;;
15597 esac
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601   echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603   eval "$as_ac_Header=\$ac_header_preproc"
15604 fi
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606                { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608
15609 fi
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611   cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 _ACEOF
15614
15615 fi
15616
15617 done
15618
15619
15620 for ac_header in valgrind/valgrind.h
15621 do
15622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 fi
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630                { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15632 else
15633   # Is the header compilable?
15634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 $ac_includes_default
15643 #include <$ac_header>
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652   (eval "$ac_compile") 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660   { (case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_try") 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_try") 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_header_compiler=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         ac_header_compiler=no
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15689 echo "${ECHO_T}$ac_header_compiler" >&6; }
15690
15691 # Is the header present?
15692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700 #include <$ac_header>
15701 _ACEOF
15702 if { (ac_try="$ac_cpp conftest.$ac_ext"
15703 case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } >/dev/null; then
15715   if test -s conftest.err; then
15716     ac_cpp_err=$ac_c_preproc_warn_flag
15717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15718   else
15719     ac_cpp_err=
15720   fi
15721 else
15722   ac_cpp_err=yes
15723 fi
15724 if test -z "$ac_cpp_err"; then
15725   ac_header_preproc=yes
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730   ac_header_preproc=no
15731 fi
15732
15733 rm -f conftest.err conftest.$ac_ext
15734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6; }
15736
15737 # So?  What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739   yes:no: )
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15744     ac_header_preproc=yes
15745     ;;
15746   no:yes:* )
15747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15759     ( cat <<\_ASBOX
15760 ## ------------------------------------ ##
15761 ## Report this to http://llvm.org/bugs/ ##
15762 ## ------------------------------------ ##
15763 _ASBOX
15764      ) | sed "s/^/$as_me: WARNING:     /" >&2
15765     ;;
15766 esac
15767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   eval "$as_ac_Header=\$ac_header_preproc"
15773 fi
15774 ac_res=`eval echo '${'$as_ac_Header'}'`
15775                { echo "$as_me:$LINENO: result: $ac_res" >&5
15776 echo "${ECHO_T}$ac_res" >&6; }
15777
15778 fi
15779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15780   cat >>confdefs.h <<_ACEOF
15781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15782 _ACEOF
15783
15784 fi
15785
15786 done
15787
15788
15789 for ac_header in fenv.h
15790 do
15791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796   echo $ECHO_N "(cached) $ECHO_C" >&6
15797 fi
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799                { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15801 else
15802   # Is the header compilable?
15803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 $ac_includes_default
15812 #include <$ac_header>
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (ac_try="$ac_compile"
15816 case "(($ac_try" in
15817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818   *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821   (eval "$ac_compile") 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15829   { (case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_try") 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; } &&
15838          { ac_try='test -s conftest.$ac_objext'
15839   { (case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_try") 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; }; then
15848   ac_header_compiler=yes
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853         ac_header_compiler=no
15854 fi
15855
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858 echo "${ECHO_T}$ac_header_compiler" >&6; }
15859
15860 # Is the header present?
15861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h.  */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h.  */
15869 #include <$ac_header>
15870 _ACEOF
15871 if { (ac_try="$ac_cpp conftest.$ac_ext"
15872 case "(($ac_try" in
15873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874   *) ac_try_echo=$ac_try;;
15875 esac
15876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15878   ac_status=$?
15879   grep -v '^ *+' conftest.er1 >conftest.err
15880   rm -f conftest.er1
15881   cat conftest.err >&5
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); } >/dev/null; then
15884   if test -s conftest.err; then
15885     ac_cpp_err=$ac_c_preproc_warn_flag
15886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15887   else
15888     ac_cpp_err=
15889   fi
15890 else
15891   ac_cpp_err=yes
15892 fi
15893 if test -z "$ac_cpp_err"; then
15894   ac_header_preproc=yes
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15898
15899   ac_header_preproc=no
15900 fi
15901
15902 rm -f conftest.err conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15904 echo "${ECHO_T}$ac_header_preproc" >&6; }
15905
15906 # So?  What about this header?
15907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15908   yes:no: )
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15913     ac_header_preproc=yes
15914     ;;
15915   no:yes:* )
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15928     ( cat <<\_ASBOX
15929 ## ------------------------------------ ##
15930 ## Report this to http://llvm.org/bugs/ ##
15931 ## ------------------------------------ ##
15932 _ASBOX
15933      ) | sed "s/^/$as_me: WARNING:     /" >&2
15934     ;;
15935 esac
15936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941   eval "$as_ac_Header=\$ac_header_preproc"
15942 fi
15943 ac_res=`eval echo '${'$as_ac_Header'}'`
15944                { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15946
15947 fi
15948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15949   cat >>confdefs.h <<_ACEOF
15950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15951 _ACEOF
15952
15953 fi
15954
15955 done
15956
15957 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15958
15959 for ac_header in pthread.h
15960 do
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 fi
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969                { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15971 else
15972   # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 $ac_includes_default
15982 #include <$ac_header>
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_compile") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999   { (case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_try") 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; } &&
16008          { ac_try='test -s conftest.$ac_objext'
16009   { (case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_header_compiler=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023         ac_header_compiler=no
16024 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6; }
16029
16030 # Is the header present?
16031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 #include <$ac_header>
16040 _ACEOF
16041 if { (ac_try="$ac_cpp conftest.$ac_ext"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } >/dev/null; then
16054   if test -s conftest.err; then
16055     ac_cpp_err=$ac_c_preproc_warn_flag
16056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16057   else
16058     ac_cpp_err=
16059   fi
16060 else
16061   ac_cpp_err=yes
16062 fi
16063 if test -z "$ac_cpp_err"; then
16064   ac_header_preproc=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069   ac_header_preproc=no
16070 fi
16071
16072 rm -f conftest.err conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074 echo "${ECHO_T}$ac_header_preproc" >&6; }
16075
16076 # So?  What about this header?
16077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16078   yes:no: )
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083     ac_header_preproc=yes
16084     ;;
16085   no:yes:* )
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16098     ( cat <<\_ASBOX
16099 ## ------------------------------------ ##
16100 ## Report this to http://llvm.org/bugs/ ##
16101 ## ------------------------------------ ##
16102 _ASBOX
16103      ) | sed "s/^/$as_me: WARNING:     /" >&2
16104     ;;
16105 esac
16106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   eval "$as_ac_Header=\$ac_header_preproc"
16112 fi
16113 ac_res=`eval echo '${'$as_ac_Header'}'`
16114                { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16116
16117 fi
16118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16119   cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16121 _ACEOF
16122  HAVE_PTHREAD=1
16123
16124 else
16125   HAVE_PTHREAD=0
16126
16127 fi
16128
16129 done
16130
16131 else
16132   HAVE_PTHREAD=0
16133
16134 fi
16135
16136 if test "$llvm_cv_enable_libffi" = "yes" ; then
16137
16138
16139 for ac_header in ffi.h ffi/ffi.h
16140 do
16141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146   echo $ECHO_N "(cached) $ECHO_C" >&6
16147 fi
16148 ac_res=`eval echo '${'$as_ac_Header'}'`
16149                { echo "$as_me:$LINENO: result: $ac_res" >&5
16150 echo "${ECHO_T}$ac_res" >&6; }
16151 else
16152   # Is the header compilable?
16153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 $ac_includes_default
16162 #include <$ac_header>
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_compile") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } &&
16178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179   { (case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_try") 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest.$ac_objext'
16189   { (case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_try") 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ac_header_compiler=yes
16199 else
16200   echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203         ac_header_compiler=no
16204 fi
16205
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208 echo "${ECHO_T}$ac_header_compiler" >&6; }
16209
16210 # Is the header present?
16211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 #include <$ac_header>
16220 _ACEOF
16221 if { (ac_try="$ac_cpp conftest.$ac_ext"
16222 case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16228   ac_status=$?
16229   grep -v '^ *+' conftest.er1 >conftest.err
16230   rm -f conftest.er1
16231   cat conftest.err >&5
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); } >/dev/null; then
16234   if test -s conftest.err; then
16235     ac_cpp_err=$ac_c_preproc_warn_flag
16236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16237   else
16238     ac_cpp_err=
16239   fi
16240 else
16241   ac_cpp_err=yes
16242 fi
16243 if test -z "$ac_cpp_err"; then
16244   ac_header_preproc=yes
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249   ac_header_preproc=no
16250 fi
16251
16252 rm -f conftest.err conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6; }
16255
16256 # So?  What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258   yes:no: )
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263     ac_header_preproc=yes
16264     ;;
16265   no:yes:* )
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16278     ( cat <<\_ASBOX
16279 ## ------------------------------------ ##
16280 ## Report this to http://llvm.org/bugs/ ##
16281 ## ------------------------------------ ##
16282 _ASBOX
16283      ) | sed "s/^/$as_me: WARNING:     /" >&2
16284     ;;
16285 esac
16286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289   echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291   eval "$as_ac_Header=\$ac_header_preproc"
16292 fi
16293 ac_res=`eval echo '${'$as_ac_Header'}'`
16294                { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16296
16297 fi
16298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299   cat >>confdefs.h <<_ACEOF
16300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16301 _ACEOF
16302
16303 fi
16304
16305 done
16306
16307 fi
16308
16309
16310 for ac_header in CrashReporterClient.h
16311 do
16312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 fi
16319 ac_res=`eval echo '${'$as_ac_Header'}'`
16320                { echo "$as_me:$LINENO: result: $ac_res" >&5
16321 echo "${ECHO_T}$ac_res" >&6; }
16322 else
16323   # Is the header compilable?
16324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16326 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332 $ac_includes_default
16333 #include <$ac_header>
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (ac_try="$ac_compile"
16337 case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_compile") 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; } &&
16359          { ac_try='test -s conftest.$ac_objext'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   ac_header_compiler=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374         ac_header_compiler=no
16375 fi
16376
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379 echo "${ECHO_T}$ac_header_compiler" >&6; }
16380
16381 # Is the header present?
16382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 #include <$ac_header>
16391 _ACEOF
16392 if { (ac_try="$ac_cpp conftest.$ac_ext"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } >/dev/null; then
16405   if test -s conftest.err; then
16406     ac_cpp_err=$ac_c_preproc_warn_flag
16407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16408   else
16409     ac_cpp_err=
16410   fi
16411 else
16412   ac_cpp_err=yes
16413 fi
16414 if test -z "$ac_cpp_err"; then
16415   ac_header_preproc=yes
16416 else
16417   echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420   ac_header_preproc=no
16421 fi
16422
16423 rm -f conftest.err conftest.$ac_ext
16424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16425 echo "${ECHO_T}$ac_header_preproc" >&6; }
16426
16427 # So?  What about this header?
16428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16429   yes:no: )
16430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16434     ac_header_preproc=yes
16435     ;;
16436   no:yes:* )
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16449     ( cat <<\_ASBOX
16450 ## ------------------------------------ ##
16451 ## Report this to http://llvm.org/bugs/ ##
16452 ## ------------------------------------ ##
16453 _ASBOX
16454      ) | sed "s/^/$as_me: WARNING:     /" >&2
16455     ;;
16456 esac
16457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462   eval "$as_ac_Header=\$ac_header_preproc"
16463 fi
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465                { echo "$as_me:$LINENO: result: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16467
16468 fi
16469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16470   cat >>confdefs.h <<_ACEOF
16471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16472 _ACEOF
16473
16474 fi
16475
16476 done
16477
16478
16479 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16480 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16482
16483   /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488
16489     extern const char *__crashreporter_info__;
16490     int main() {
16491       __crashreporter_info__ = "test";
16492       return 0;
16493     }
16494
16495
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_link") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } &&
16511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512   { (case "(($ac_try" in
16513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514   *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517   (eval "$ac_try") 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; } &&
16521          { ac_try='test -s conftest$ac_exeext'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531
16532   { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16534
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_CRASHREPORTER_INFO 1
16537 _ACEOF
16538
16539
16540 else
16541   echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544
16545   { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_CRASHREPORTER_INFO 0
16550 _ACEOF
16551
16552
16553 fi
16554
16555 rm -f core conftest.err conftest.$ac_objext \
16556       conftest$ac_exeext conftest.$ac_ext
16557
16558
16559
16560   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16561 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16562 if test "${ac_cv_huge_val_sanity+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565
16566     ac_ext=cpp
16567 ac_cpp='$CXXCPP $CPPFLAGS'
16568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16571
16572     ac_save_CXXFLAGS=$CXXFLAGS
16573     CXXFLAGS="$CXXFLAGS -pedantic"
16574     if test "$cross_compiling" = yes; then
16575   ac_cv_huge_val_sanity=yes
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583 #include <math.h>
16584 int
16585 main ()
16586 {
16587 double x = HUGE_VAL; return x != x;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_link") 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603   { (case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608   (eval "$ac_try") 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_cv_huge_val_sanity=yes
16613 else
16614   echo "$as_me: program exited with status $ac_status" >&5
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ( exit $ac_status )
16619 ac_cv_huge_val_sanity=no
16620 fi
16621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16622 fi
16623
16624
16625     CXXFLAGS=$ac_save_CXXFLAGS
16626     ac_ext=c
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631
16632
16633 fi
16634 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16635 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16636   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16637
16638
16639 { echo "$as_me:$LINENO: checking for pid_t" >&5
16640 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16641 if test "${ac_cv_type_pid_t+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650 $ac_includes_default
16651 typedef pid_t ac__type_new_;
16652 int
16653 main ()
16654 {
16655 if ((ac__type_new_ *) 0)
16656   return 0;
16657 if (sizeof (ac__type_new_))
16658   return 0;
16659   ;
16660   return 0;
16661 }
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_compile") 2>conftest.er1
16671   ac_status=$?
16672   grep -v '^ *+' conftest.er1 >conftest.err
16673   rm -f conftest.er1
16674   cat conftest.err >&5
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } &&
16677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16678   { (case "(($ac_try" in
16679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680   *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683   (eval "$ac_try") 2>&5
16684   ac_status=$?
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); }; } &&
16687          { ac_try='test -s conftest.$ac_objext'
16688   { (case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_try") 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   ac_cv_type_pid_t=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702         ac_cv_type_pid_t=no
16703 fi
16704
16705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 fi
16707 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16708 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16709 if test $ac_cv_type_pid_t = yes; then
16710   :
16711 else
16712
16713 cat >>confdefs.h <<_ACEOF
16714 #define pid_t int
16715 _ACEOF
16716
16717 fi
16718
16719 { echo "$as_me:$LINENO: checking for size_t" >&5
16720 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16721 if test "${ac_cv_type_size_t+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 $ac_includes_default
16731 typedef size_t ac__type_new_;
16732 int
16733 main ()
16734 {
16735 if ((ac__type_new_ *) 0)
16736   return 0;
16737 if (sizeof (ac__type_new_))
16738   return 0;
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747   *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750   (eval "$ac_compile") 2>conftest.er1
16751   ac_status=$?
16752   grep -v '^ *+' conftest.er1 >conftest.err
16753   rm -f conftest.er1
16754   cat conftest.err >&5
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); } &&
16757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758   { (case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763   (eval "$ac_try") 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; } &&
16767          { ac_try='test -s conftest.$ac_objext'
16768   { (case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_try") 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; }; then
16777   ac_cv_type_size_t=yes
16778 else
16779   echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782         ac_cv_type_size_t=no
16783 fi
16784
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 fi
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16789 if test $ac_cv_type_size_t = yes; then
16790   :
16791 else
16792
16793 cat >>confdefs.h <<_ACEOF
16794 #define size_t unsigned int
16795 _ACEOF
16796
16797 fi
16798
16799
16800 cat >>confdefs.h <<_ACEOF
16801 #define RETSIGTYPE void
16802 _ACEOF
16803
16804 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16806 if test "${ac_cv_struct_tm+set}" = set; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809   cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 #include <sys/types.h>
16816 #include <time.h>
16817
16818 int
16819 main ()
16820 {
16821 struct tm *tp; tp->tm_sec;
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; } &&
16850          { ac_try='test -s conftest.$ac_objext'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_cv_struct_tm=time.h
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865         ac_cv_struct_tm=sys/time.h
16866 fi
16867
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 fi
16870 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16871 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16872 if test $ac_cv_struct_tm = sys/time.h; then
16873
16874 cat >>confdefs.h <<\_ACEOF
16875 #define TM_IN_SYS_TIME 1
16876 _ACEOF
16877
16878 fi
16879
16880 { echo "$as_me:$LINENO: checking for int64_t" >&5
16881 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16882 if test "${ac_cv_type_int64_t+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 $ac_includes_default
16892 typedef int64_t ac__type_new_;
16893 int
16894 main ()
16895 {
16896 if ((ac__type_new_ *) 0)
16897   return 0;
16898 if (sizeof (ac__type_new_))
16899   return 0;
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 rm -f conftest.$ac_objext
16905 if { (ac_try="$ac_compile"
16906 case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_compile") 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; } &&
16928          { ac_try='test -s conftest.$ac_objext'
16929   { (case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_try") 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); }; }; then
16938   ac_cv_type_int64_t=yes
16939 else
16940   echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16942
16943         ac_cv_type_int64_t=no
16944 fi
16945
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 fi
16948 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16949 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16950 if test $ac_cv_type_int64_t = yes; then
16951
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_INT64_T 1
16954 _ACEOF
16955
16956
16957 else
16958   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16959 echo "$as_me: error: Type int64_t required but not found" >&2;}
16960    { (exit 1); exit 1; }; }
16961 fi
16962
16963 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16964 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16965 if test "${ac_cv_type_uint64_t+set}" = set; then
16966   echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968   cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 $ac_includes_default
16975 typedef uint64_t ac__type_new_;
16976 int
16977 main ()
16978 {
16979 if ((ac__type_new_ *) 0)
16980   return 0;
16981 if (sizeof (ac__type_new_))
16982   return 0;
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest.$ac_objext
16988 if { (ac_try="$ac_compile"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_compile") 2>conftest.er1
16995   ac_status=$?
16996   grep -v '^ *+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } &&
17001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002   { (case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; } &&
17011          { ac_try='test -s conftest.$ac_objext'
17012   { (case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017   (eval "$ac_try") 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   ac_cv_type_uint64_t=yes
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         ac_cv_type_uint64_t=no
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 fi
17031 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17032 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17033 if test $ac_cv_type_uint64_t = yes; then
17034
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_UINT64_T 1
17037 _ACEOF
17038
17039
17040 else
17041   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17042 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17043 if test "${ac_cv_type_u_int64_t+set}" = set; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046   cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052 $ac_includes_default
17053 typedef u_int64_t ac__type_new_;
17054 int
17055 main ()
17056 {
17057 if ((ac__type_new_ *) 0)
17058   return 0;
17059 if (sizeof (ac__type_new_))
17060   return 0;
17061   ;
17062   return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_compile") 2>conftest.er1
17073   ac_status=$?
17074   grep -v '^ *+' conftest.er1 >conftest.err
17075   rm -f conftest.er1
17076   cat conftest.err >&5
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); } &&
17079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17080   { (case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085   (eval "$ac_try") 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); }; } &&
17089          { ac_try='test -s conftest.$ac_objext'
17090   { (case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_try") 2>&5
17096   ac_status=$?
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); }; }; then
17099   ac_cv_type_u_int64_t=yes
17100 else
17101   echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17103
17104         ac_cv_type_u_int64_t=no
17105 fi
17106
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108 fi
17109 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17110 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17111 if test $ac_cv_type_u_int64_t = yes; then
17112
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_U_INT64_T 1
17115 _ACEOF
17116
17117
17118 else
17119   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17120 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17121    { (exit 1); exit 1; }; }
17122 fi
17123
17124 fi
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17136 do
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143   cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h.  */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h.  */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17151 #define $ac_func innocuous_$ac_func
17152
17153 /* System header to define __stub macros and hopefully few prototypes,
17154     which can conflict with char $ac_func (); below.
17155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156     <limits.h> exists even on freestanding compilers.  */
17157
17158 #ifdef __STDC__
17159 # include <limits.h>
17160 #else
17161 # include <assert.h>
17162 #endif
17163
17164 #undef $ac_func
17165
17166 /* Override any GCC internal prototype to avoid an error.
17167    Use char because int might match the return type of a GCC
17168    builtin and then its argument prototype would still apply.  */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char $ac_func ();
17173 /* The GNU C library defines this for functions which it implements
17174     to always fail with ENOSYS.  Some functions are actually named
17175     something starting with __ and the normal name is an alias.  */
17176 #if defined __stub_$ac_func || defined __stub___$ac_func
17177 choke me
17178 #endif
17179
17180 int
17181 main ()
17182 {
17183 return $ac_func ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_link") 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17203   { (case "(($ac_try" in
17204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205   *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208   (eval "$ac_try") 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest$ac_exeext'
17213   { (case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_try") 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); }; }; then
17222   eval "$as_ac_var=yes"
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         eval "$as_ac_var=no"
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext \
17231       conftest$ac_exeext conftest.$ac_ext
17232 fi
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234                { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237   cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 fi
17242 done
17243
17244
17245
17246
17247
17248 for ac_func in powf fmodf strtof round
17249 do
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256   cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17264 #define $ac_func innocuous_$ac_func
17265
17266 /* System header to define __stub macros and hopefully few prototypes,
17267     which can conflict with char $ac_func (); below.
17268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269     <limits.h> exists even on freestanding compilers.  */
17270
17271 #ifdef __STDC__
17272 # include <limits.h>
17273 #else
17274 # include <assert.h>
17275 #endif
17276
17277 #undef $ac_func
17278
17279 /* Override any GCC internal prototype to avoid an error.
17280    Use char because int might match the return type of a GCC
17281    builtin and then its argument prototype would still apply.  */
17282 #ifdef __cplusplus
17283 extern "C"
17284 #endif
17285 char $ac_func ();
17286 /* The GNU C library defines this for functions which it implements
17287     to always fail with ENOSYS.  Some functions are actually named
17288     something starting with __ and the normal name is an alias.  */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17290 choke me
17291 #endif
17292
17293 int
17294 main ()
17295 {
17296 return $ac_func ();
17297   ;
17298   return 0;
17299 }
17300 _ACEOF
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305   *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308   (eval "$ac_link") 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316   { (case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_try") 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; } &&
17325          { ac_try='test -s conftest$ac_exeext'
17326   { (case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_try") 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335   eval "$as_ac_var=yes"
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340         eval "$as_ac_var=no"
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext \
17344       conftest$ac_exeext conftest.$ac_ext
17345 fi
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347                { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350   cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 _ACEOF
17353
17354 fi
17355 done
17356
17357
17358
17359
17360
17361
17362 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17363 do
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17378 #define $ac_func innocuous_$ac_func
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381     which can conflict with char $ac_func (); below.
17382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383     <limits.h> exists even on freestanding compilers.  */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef $ac_func
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394    Use char because int might match the return type of a GCC
17395    builtin and then its argument prototype would still apply.  */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char $ac_func ();
17400 /* The GNU C library defines this for functions which it implements
17401     to always fail with ENOSYS.  Some functions are actually named
17402     something starting with __ and the normal name is an alias.  */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17404 choke me
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 return $ac_func ();
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_link") 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430   { (case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_try") 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; } &&
17439          { ac_try='test -s conftest$ac_exeext'
17440   { (case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_try") 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; }; then
17449   eval "$as_ac_var=yes"
17450 else
17451   echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454         eval "$as_ac_var=no"
17455 fi
17456
17457 rm -f core conftest.err conftest.$ac_objext \
17458       conftest$ac_exeext conftest.$ac_ext
17459 fi
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461                { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464   cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 _ACEOF
17467
17468 fi
17469 done
17470
17471
17472
17473
17474 for ac_func in isatty mkdtemp mkstemp
17475 do
17476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17490 #define $ac_func innocuous_$ac_func
17491
17492 /* System header to define __stub macros and hopefully few prototypes,
17493     which can conflict with char $ac_func (); below.
17494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495     <limits.h> exists even on freestanding compilers.  */
17496
17497 #ifdef __STDC__
17498 # include <limits.h>
17499 #else
17500 # include <assert.h>
17501 #endif
17502
17503 #undef $ac_func
17504
17505 /* Override any GCC internal prototype to avoid an error.
17506    Use char because int might match the return type of a GCC
17507    builtin and then its argument prototype would still apply.  */
17508 #ifdef __cplusplus
17509 extern "C"
17510 #endif
17511 char $ac_func ();
17512 /* The GNU C library defines this for functions which it implements
17513     to always fail with ENOSYS.  Some functions are actually named
17514     something starting with __ and the normal name is an alias.  */
17515 #if defined __stub_$ac_func || defined __stub___$ac_func
17516 choke me
17517 #endif
17518
17519 int
17520 main ()
17521 {
17522 return $ac_func ();
17523   ;
17524   return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (ac_try="$ac_link"
17529 case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534   (eval "$ac_link") 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542   { (case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_try") 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; } &&
17551          { ac_try='test -s conftest$ac_exeext'
17552   { (case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_try") 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; }; then
17561   eval "$as_ac_var=yes"
17562 else
17563   echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566         eval "$as_ac_var=no"
17567 fi
17568
17569 rm -f core conftest.err conftest.$ac_objext \
17570       conftest$ac_exeext conftest.$ac_ext
17571 fi
17572 ac_res=`eval echo '${'$as_ac_var'}'`
17573                { echo "$as_me:$LINENO: result: $ac_res" >&5
17574 echo "${ECHO_T}$ac_res" >&6; }
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576   cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 _ACEOF
17579
17580 fi
17581 done
17582
17583
17584
17585
17586
17587
17588
17589
17590 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17591 do
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598   cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17606 #define $ac_func innocuous_$ac_func
17607
17608 /* System header to define __stub macros and hopefully few prototypes,
17609     which can conflict with char $ac_func (); below.
17610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611     <limits.h> exists even on freestanding compilers.  */
17612
17613 #ifdef __STDC__
17614 # include <limits.h>
17615 #else
17616 # include <assert.h>
17617 #endif
17618
17619 #undef $ac_func
17620
17621 /* Override any GCC internal prototype to avoid an error.
17622    Use char because int might match the return type of a GCC
17623    builtin and then its argument prototype would still apply.  */
17624 #ifdef __cplusplus
17625 extern "C"
17626 #endif
17627 char $ac_func ();
17628 /* The GNU C library defines this for functions which it implements
17629     to always fail with ENOSYS.  Some functions are actually named
17630     something starting with __ and the normal name is an alias.  */
17631 #if defined __stub_$ac_func || defined __stub___$ac_func
17632 choke me
17633 #endif
17634
17635 int
17636 main ()
17637 {
17638 return $ac_func ();
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_link") 2>conftest.er1
17651   ac_status=$?
17652   grep -v '^ *+' conftest.er1 >conftest.err
17653   rm -f conftest.er1
17654   cat conftest.err >&5
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } &&
17657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658   { (case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_try") 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; } &&
17667          { ac_try='test -s conftest$ac_exeext'
17668   { (case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_try") 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   eval "$as_ac_var=yes"
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682         eval "$as_ac_var=no"
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext \
17686       conftest$ac_exeext conftest.$ac_ext
17687 fi
17688 ac_res=`eval echo '${'$as_ac_var'}'`
17689                { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692   cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17694 _ACEOF
17695
17696 fi
17697 done
17698
17699
17700
17701
17702
17703 for ac_func in strerror strerror_r setenv arc4random
17704 do
17705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h.  */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h.  */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17719 #define $ac_func innocuous_$ac_func
17720
17721 /* System header to define __stub macros and hopefully few prototypes,
17722     which can conflict with char $ac_func (); below.
17723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724     <limits.h> exists even on freestanding compilers.  */
17725
17726 #ifdef __STDC__
17727 # include <limits.h>
17728 #else
17729 # include <assert.h>
17730 #endif
17731
17732 #undef $ac_func
17733
17734 /* Override any GCC internal prototype to avoid an error.
17735    Use char because int might match the return type of a GCC
17736    builtin and then its argument prototype would still apply.  */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 char $ac_func ();
17741 /* The GNU C library defines this for functions which it implements
17742     to always fail with ENOSYS.  Some functions are actually named
17743     something starting with __ and the normal name is an alias.  */
17744 #if defined __stub_$ac_func || defined __stub___$ac_func
17745 choke me
17746 #endif
17747
17748 int
17749 main ()
17750 {
17751 return $ac_func ();
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (ac_try="$ac_link"
17758 case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_link") 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17771   { (case "(($ac_try" in
17772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773   *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776   (eval "$ac_try") 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest$ac_exeext'
17781   { (case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_try") 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; }; then
17790   eval "$as_ac_var=yes"
17791 else
17792   echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17794
17795         eval "$as_ac_var=no"
17796 fi
17797
17798 rm -f core conftest.err conftest.$ac_objext \
17799       conftest$ac_exeext conftest.$ac_ext
17800 fi
17801 ac_res=`eval echo '${'$as_ac_var'}'`
17802                { echo "$as_me:$LINENO: result: $ac_res" >&5
17803 echo "${ECHO_T}$ac_res" >&6; }
17804 if test `eval echo '${'$as_ac_var'}'` = yes; then
17805   cat >>confdefs.h <<_ACEOF
17806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17807 _ACEOF
17808
17809 fi
17810 done
17811
17812
17813
17814
17815
17816 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17817 do
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822   echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17832 #define $ac_func innocuous_$ac_func
17833
17834 /* System header to define __stub macros and hopefully few prototypes,
17835     which can conflict with char $ac_func (); below.
17836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837     <limits.h> exists even on freestanding compilers.  */
17838
17839 #ifdef __STDC__
17840 # include <limits.h>
17841 #else
17842 # include <assert.h>
17843 #endif
17844
17845 #undef $ac_func
17846
17847 /* Override any GCC internal prototype to avoid an error.
17848    Use char because int might match the return type of a GCC
17849    builtin and then its argument prototype would still apply.  */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 char $ac_func ();
17854 /* The GNU C library defines this for functions which it implements
17855     to always fail with ENOSYS.  Some functions are actually named
17856     something starting with __ and the normal name is an alias.  */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17858 choke me
17859 #endif
17860
17861 int
17862 main ()
17863 {
17864 return $ac_func ();
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_link") 2>conftest.er1
17877   ac_status=$?
17878   grep -v '^ *+' conftest.er1 >conftest.err
17879   rm -f conftest.er1
17880   cat conftest.err >&5
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); } &&
17883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884   { (case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_try") 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_try") 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; }; then
17903   eval "$as_ac_var=yes"
17904 else
17905   echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908         eval "$as_ac_var=no"
17909 fi
17910
17911 rm -f core conftest.err conftest.$ac_objext \
17912       conftest$ac_exeext conftest.$ac_ext
17913 fi
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915                { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918   cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17920 _ACEOF
17921
17922 fi
17923 done
17924
17925
17926
17927
17928
17929
17930 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17931 do
17932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938   cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17946 #define $ac_func innocuous_$ac_func
17947
17948 /* System header to define __stub macros and hopefully few prototypes,
17949     which can conflict with char $ac_func (); below.
17950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17951     <limits.h> exists even on freestanding compilers.  */
17952
17953 #ifdef __STDC__
17954 # include <limits.h>
17955 #else
17956 # include <assert.h>
17957 #endif
17958
17959 #undef $ac_func
17960
17961 /* Override any GCC internal prototype to avoid an error.
17962    Use char because int might match the return type of a GCC
17963    builtin and then its argument prototype would still apply.  */
17964 #ifdef __cplusplus
17965 extern "C"
17966 #endif
17967 char $ac_func ();
17968 /* The GNU C library defines this for functions which it implements
17969     to always fail with ENOSYS.  Some functions are actually named
17970     something starting with __ and the normal name is an alias.  */
17971 #if defined __stub_$ac_func || defined __stub___$ac_func
17972 choke me
17973 #endif
17974
17975 int
17976 main ()
17977 {
17978 return $ac_func ();
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_link") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998   { (case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_try") 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; } &&
18007          { ac_try='test -s conftest$ac_exeext'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   eval "$as_ac_var=yes"
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         eval "$as_ac_var=no"
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext \
18026       conftest$ac_exeext conftest.$ac_ext
18027 fi
18028 ac_res=`eval echo '${'$as_ac_var'}'`
18029                { echo "$as_me:$LINENO: result: $ac_res" >&5
18030 echo "${ECHO_T}$ac_res" >&6; }
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032   cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18034 _ACEOF
18035
18036 fi
18037 done
18038
18039 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18040 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18041 if test "${llvm_cv_c_printf_a+set}" = set; then
18042   echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044   ac_ext=c
18045 ac_cpp='$CPP $CPPFLAGS'
18046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18049
18050  if test "$cross_compiling" = yes; then
18051   llvmac_cv_c_printf_a=no
18052 else
18053   cat >conftest.$ac_ext <<_ACEOF
18054
18055   /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060
18061 #include <stdio.h>
18062 #include <stdlib.h>
18063
18064 int
18065 main ()
18066 {
18067
18068 volatile double A, B;
18069 char Buffer[100];
18070 A = 1;
18071 A /= 10.0;
18072 sprintf(Buffer, "%a", A);
18073 B = atof(Buffer);
18074 if (A != B)
18075   return (1);
18076 if (A != 0x1.999999999999ap-4)
18077   return (1);
18078 return (0);
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest$ac_exeext
18084 if { (ac_try="$ac_link"
18085 case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_link") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; }; then
18103   llvm_cv_c_printf_a=yes
18104 else
18105   echo "$as_me: program exited with status $ac_status" >&5
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 ( exit $ac_status )
18110 llvmac_cv_c_printf_a=no
18111 fi
18112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18113 fi
18114
18115
18116  ac_ext=c
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18121
18122 fi
18123 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18124 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18125  if test "$llvm_cv_c_printf_a" = "yes"; then
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_PRINTF_A 1
18129 _ACEOF
18130
18131  fi
18132
18133
18134
18135   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18136 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18137 if test "${ac_cv_func_rand48+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140
18141     ac_ext=cpp
18142 ac_cpp='$CXXCPP $CPPFLAGS'
18143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18146
18147     cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 #include <stdlib.h>
18154 int
18155 main ()
18156 {
18157 srand48(0);lrand48();drand48();
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_compile") 2>conftest.er1
18170   ac_status=$?
18171   grep -v '^ *+' conftest.er1 >conftest.err
18172   rm -f conftest.er1
18173   cat conftest.err >&5
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } &&
18176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177   { (case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_try") 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest.$ac_objext'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; }; then
18196   ac_cv_func_rand48=yes
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         ac_cv_func_rand48=no
18202 fi
18203
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205     ac_ext=c
18206 ac_cpp='$CPP $CPPFLAGS'
18207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18210
18211
18212 fi
18213 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18214 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18215
18216 if test "$ac_cv_func_rand48" = "yes" ; then
18217
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_RAND48 1
18220 _ACEOF
18221
18222 fi
18223
18224
18225 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18226 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18227 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230   cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236 $ac_includes_default
18237 int
18238 main ()
18239 {
18240 #ifndef strerror_s
18241   char *p = (char *) strerror_s;
18242   return !p;
18243 #endif
18244
18245   ;
18246   return 0;
18247 }
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_compile") 2>conftest.er1
18257   ac_status=$?
18258   grep -v '^ *+' conftest.er1 >conftest.err
18259   rm -f conftest.er1
18260   cat conftest.err >&5
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264   { (case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_try") 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }; } &&
18273          { ac_try='test -s conftest.$ac_objext'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_have_decl_strerror_s=yes
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288         ac_cv_have_decl_strerror_s=no
18289 fi
18290
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 fi
18293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18294 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18295 if test $ac_cv_have_decl_strerror_s = yes; then
18296
18297 cat >>confdefs.h <<_ACEOF
18298 #define HAVE_DECL_STRERROR_S 1
18299 _ACEOF
18300
18301
18302 else
18303   cat >>confdefs.h <<_ACEOF
18304 #define HAVE_DECL_STRERROR_S 0
18305 _ACEOF
18306
18307
18308 fi
18309
18310
18311
18312 if test "$llvm_cv_os_type" = "MingW" ; then
18313   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18314 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18316   echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318   ac_check_lib_save_LIBS=$LIBS
18319 LIBS="-lgcc  $LIBS"
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326
18327 /* Override any GCC internal prototype to avoid an error.
18328    Use char because int might match the return type of a GCC
18329    builtin and then its argument prototype would still apply.  */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char _alloca ();
18334 int
18335 main ()
18336 {
18337 return _alloca ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_link") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } &&
18356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357   { (case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_try") 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; } &&
18366          { ac_try='test -s conftest$ac_exeext'
18367   { (case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_try") 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_cv_lib_gcc__alloca=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381         ac_cv_lib_gcc__alloca=no
18382 fi
18383
18384 rm -f core conftest.err conftest.$ac_objext \
18385       conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18387 fi
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18390 if test $ac_cv_lib_gcc__alloca = yes; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE__ALLOCA 1
18394 _ACEOF
18395
18396 fi
18397
18398   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18399 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lgcc  $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char __alloca ();
18419 int
18420 main ()
18421 {
18422 return __alloca ();
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   ac_cv_lib_gcc___alloca=yes
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466         ac_cv_lib_gcc___alloca=no
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext \
18470       conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18472 fi
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18475 if test $ac_cv_lib_gcc___alloca = yes; then
18476
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___ALLOCA 1
18479 _ACEOF
18480
18481 fi
18482
18483   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18484 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   ac_check_lib_save_LIBS=$LIBS
18489 LIBS="-lgcc  $LIBS"
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h.  */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h.  */
18496
18497 /* Override any GCC internal prototype to avoid an error.
18498    Use char because int might match the return type of a GCC
18499    builtin and then its argument prototype would still apply.  */
18500 #ifdef __cplusplus
18501 extern "C"
18502 #endif
18503 char __chkstk ();
18504 int
18505 main ()
18506 {
18507 return __chkstk ();
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_link") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } &&
18526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527   { (case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_try") 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; } &&
18536          { ac_try='test -s conftest$ac_exeext'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; }; then
18546   ac_cv_lib_gcc___chkstk=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_cv_lib_gcc___chkstk=no
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext \
18555       conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18560 if test $ac_cv_lib_gcc___chkstk = yes; then
18561
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___CHKSTK 1
18564 _ACEOF
18565
18566 fi
18567
18568   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18569 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18571   echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573   ac_check_lib_save_LIBS=$LIBS
18574 LIBS="-lgcc  $LIBS"
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581
18582 /* Override any GCC internal prototype to avoid an error.
18583    Use char because int might match the return type of a GCC
18584    builtin and then its argument prototype would still apply.  */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 char ___chkstk ();
18589 int
18590 main ()
18591 {
18592 return ___chkstk ();
18593   ;
18594   return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_link") 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } &&
18611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612   { (case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_try") 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; } &&
18621          { ac_try='test -s conftest$ac_exeext'
18622   { (case "(($ac_try" in
18623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624   *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627   (eval "$ac_try") 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_cv_lib_gcc____chkstk=yes
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636         ac_cv_lib_gcc____chkstk=no
18637 fi
18638
18639 rm -f core conftest.err conftest.$ac_objext \
18640       conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18645 if test $ac_cv_lib_gcc____chkstk = yes; then
18646
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE____CHKSTK 1
18649 _ACEOF
18650
18651 fi
18652
18653
18654   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18655 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18657   echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659   ac_check_lib_save_LIBS=$LIBS
18660 LIBS="-lgcc  $LIBS"
18661 cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 /* Override any GCC internal prototype to avoid an error.
18669    Use char because int might match the return type of a GCC
18670    builtin and then its argument prototype would still apply.  */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char __ashldi3 ();
18675 int
18676 main ()
18677 {
18678 return __ashldi3 ();
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_link") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698   { (case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_try") 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; } &&
18707          { ac_try='test -s conftest$ac_exeext'
18708   { (case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_try") 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   ac_cv_lib_gcc___ashldi3=yes
18718 else
18719   echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722         ac_cv_lib_gcc___ashldi3=no
18723 fi
18724
18725 rm -f core conftest.err conftest.$ac_objext \
18726       conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18728 fi
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18731 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18732
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___ASHLDI3 1
18735 _ACEOF
18736
18737 fi
18738
18739   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18740 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lgcc  $LIBS"
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 /* Override any GCC internal prototype to avoid an error.
18754    Use char because int might match the return type of a GCC
18755    builtin and then its argument prototype would still apply.  */
18756 #ifdef __cplusplus
18757 extern "C"
18758 #endif
18759 char __ashrdi3 ();
18760 int
18761 main ()
18762 {
18763 return __ashrdi3 ();
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   ac_cv_lib_gcc___ashrdi3=yes
18803 else
18804   echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807         ac_cv_lib_gcc___ashrdi3=no
18808 fi
18809
18810 rm -f core conftest.err conftest.$ac_objext \
18811       conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18813 fi
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18816 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___ASHRDI3 1
18820 _ACEOF
18821
18822 fi
18823
18824   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18825 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829   ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-lgcc  $LIBS"
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837
18838 /* Override any GCC internal prototype to avoid an error.
18839    Use char because int might match the return type of a GCC
18840    builtin and then its argument prototype would still apply.  */
18841 #ifdef __cplusplus
18842 extern "C"
18843 #endif
18844 char __divdi3 ();
18845 int
18846 main ()
18847 {
18848 return __divdi3 ();
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_link") 2>conftest.er1
18861   ac_status=$?
18862   grep -v '^ *+' conftest.er1 >conftest.err
18863   rm -f conftest.er1
18864   cat conftest.err >&5
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); } &&
18867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868   { (case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_try") 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; } &&
18877          { ac_try='test -s conftest$ac_exeext'
18878   { (case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_try") 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; }; then
18887   ac_cv_lib_gcc___divdi3=yes
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892         ac_cv_lib_gcc___divdi3=no
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext \
18896       conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18898 fi
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18901 if test $ac_cv_lib_gcc___divdi3 = yes; then
18902
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___DIVDI3 1
18905 _ACEOF
18906
18907 fi
18908
18909   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18910 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   ac_check_lib_save_LIBS=$LIBS
18915 LIBS="-lgcc  $LIBS"
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922
18923 /* Override any GCC internal prototype to avoid an error.
18924    Use char because int might match the return type of a GCC
18925    builtin and then its argument prototype would still apply.  */
18926 #ifdef __cplusplus
18927 extern "C"
18928 #endif
18929 char __fixdfdi ();
18930 int
18931 main ()
18932 {
18933 return __fixdfdi ();
18934   ;
18935   return 0;
18936 }
18937 _ACEOF
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_link") 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953   { (case "(($ac_try" in
18954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955   *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958   (eval "$ac_try") 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; } &&
18962          { ac_try='test -s conftest$ac_exeext'
18963   { (case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_try") 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; }; then
18972   ac_cv_lib_gcc___fixdfdi=yes
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977         ac_cv_lib_gcc___fixdfdi=no
18978 fi
18979
18980 rm -f core conftest.err conftest.$ac_objext \
18981       conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18983 fi
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18986 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18987
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___FIXDFDI 1
18990 _ACEOF
18991
18992 fi
18993
18994   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18995 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18997   echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999   ac_check_lib_save_LIBS=$LIBS
19000 LIBS="-lgcc  $LIBS"
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007
19008 /* Override any GCC internal prototype to avoid an error.
19009    Use char because int might match the return type of a GCC
19010    builtin and then its argument prototype would still apply.  */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 char __fixsfdi ();
19015 int
19016 main ()
19017 {
19018 return __fixsfdi ();
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_link") 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } &&
19037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038   { (case "(($ac_try" in
19039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040   *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043   (eval "$ac_try") 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; } &&
19047          { ac_try='test -s conftest$ac_exeext'
19048   { (case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_try") 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; }; then
19057   ac_cv_lib_gcc___fixsfdi=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         ac_cv_lib_gcc___fixsfdi=no
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext \
19066       conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19068 fi
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19071 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___FIXSFDI 1
19075 _ACEOF
19076
19077 fi
19078
19079   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19080 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   ac_check_lib_save_LIBS=$LIBS
19085 LIBS="-lgcc  $LIBS"
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094    Use char because int might match the return type of a GCC
19095    builtin and then its argument prototype would still apply.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char __floatdidf ();
19100 int
19101 main ()
19102 {
19103 return __floatdidf ();
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_link") 2>conftest.er1
19116   ac_status=$?
19117   grep -v '^ *+' conftest.er1 >conftest.err
19118   rm -f conftest.er1
19119   cat conftest.err >&5
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123   { (case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_try") 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; } &&
19132          { ac_try='test -s conftest$ac_exeext'
19133   { (case "(($ac_try" in
19134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135   *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_cv_lib_gcc___floatdidf=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147         ac_cv_lib_gcc___floatdidf=no
19148 fi
19149
19150 rm -f core conftest.err conftest.$ac_objext \
19151       conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19153 fi
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19156 if test $ac_cv_lib_gcc___floatdidf = yes; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___FLOATDIDF 1
19160 _ACEOF
19161
19162 fi
19163
19164   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19165 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-lgcc  $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char __lshrdi3 ();
19185 int
19186 main ()
19187 {
19188 return __lshrdi3 ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_link") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; } &&
19217          { ac_try='test -s conftest$ac_exeext'
19218   { (case "(($ac_try" in
19219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220   *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223   (eval "$ac_try") 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_lib_gcc___lshrdi3=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232         ac_cv_lib_gcc___lshrdi3=no
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext \
19236       conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19238 fi
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19241 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19242
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___LSHRDI3 1
19245 _ACEOF
19246
19247 fi
19248
19249   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19250 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19252   echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254   ac_check_lib_save_LIBS=$LIBS
19255 LIBS="-lgcc  $LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262
19263 /* Override any GCC internal prototype to avoid an error.
19264    Use char because int might match the return type of a GCC
19265    builtin and then its argument prototype would still apply.  */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 char __moddi3 ();
19270 int
19271 main ()
19272 {
19273 return __moddi3 ();
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_link") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest$ac_exeext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_lib_gcc___moddi3=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_lib_gcc___moddi3=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext \
19321       conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19323 fi
19324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19325 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19326 if test $ac_cv_lib_gcc___moddi3 = yes; then
19327
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE___MODDI3 1
19330 _ACEOF
19331
19332 fi
19333
19334   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19335 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19337   echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339   ac_check_lib_save_LIBS=$LIBS
19340 LIBS="-lgcc  $LIBS"
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347
19348 /* Override any GCC internal prototype to avoid an error.
19349    Use char because int might match the return type of a GCC
19350    builtin and then its argument prototype would still apply.  */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char __udivdi3 ();
19355 int
19356 main ()
19357 {
19358 return __udivdi3 ();
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_link") 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest$ac_exeext'
19388   { (case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_try") 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   ac_cv_lib_gcc___udivdi3=yes
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402         ac_cv_lib_gcc___udivdi3=no
19403 fi
19404
19405 rm -f core conftest.err conftest.$ac_objext \
19406       conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19408 fi
19409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19410 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19411 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19412
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE___UDIVDI3 1
19415 _ACEOF
19416
19417 fi
19418
19419   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19420 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lgcc  $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433 /* Override any GCC internal prototype to avoid an error.
19434    Use char because int might match the return type of a GCC
19435    builtin and then its argument prototype would still apply.  */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 char __umoddi3 ();
19440 int
19441 main ()
19442 {
19443 return __umoddi3 ();
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452   *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455   (eval "$ac_link") 2>conftest.er1
19456   ac_status=$?
19457   grep -v '^ *+' conftest.er1 >conftest.err
19458   rm -f conftest.er1
19459   cat conftest.err >&5
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } &&
19462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463   { (case "(($ac_try" in
19464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465   *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468   (eval "$ac_try") 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; } &&
19472          { ac_try='test -s conftest$ac_exeext'
19473   { (case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478   (eval "$ac_try") 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_cv_lib_gcc___umoddi3=yes
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487         ac_cv_lib_gcc___umoddi3=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext \
19491       conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19493 fi
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19495 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19496 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19497
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE___UMODDI3 1
19500 _ACEOF
19501
19502 fi
19503
19504
19505   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19506 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19507 if test "${ac_cv_lib_gcc___main+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lgcc  $LIBS"
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518
19519 /* Override any GCC internal prototype to avoid an error.
19520    Use char because int might match the return type of a GCC
19521    builtin and then its argument prototype would still apply.  */
19522 #ifdef __cplusplus
19523 extern "C"
19524 #endif
19525 char __main ();
19526 int
19527 main ()
19528 {
19529 return __main ();
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541   (eval "$ac_link") 2>conftest.er1
19542   ac_status=$?
19543   grep -v '^ *+' conftest.er1 >conftest.err
19544   rm -f conftest.er1
19545   cat conftest.err >&5
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); } &&
19548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19558          { ac_try='test -s conftest$ac_exeext'
19559   { (case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_try") 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_cv_lib_gcc___main=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573         ac_cv_lib_gcc___main=no
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19579 fi
19580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19581 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19582 if test $ac_cv_lib_gcc___main = yes; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE___MAIN 1
19586 _ACEOF
19587
19588 fi
19589
19590   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19591 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19592 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-lgcc  $LIBS"
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603
19604 /* Override any GCC internal prototype to avoid an error.
19605    Use char because int might match the return type of a GCC
19606    builtin and then its argument prototype would still apply.  */
19607 #ifdef __cplusplus
19608 extern "C"
19609 #endif
19610 char __cmpdi2 ();
19611 int
19612 main ()
19613 {
19614 return __cmpdi2 ();
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_link") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19643          { ac_try='test -s conftest$ac_exeext'
19644   { (case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_try") 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; }; then
19653   ac_cv_lib_gcc___cmpdi2=yes
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658         ac_cv_lib_gcc___cmpdi2=no
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext \
19662       conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19664 fi
19665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19666 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19667 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE___CMPDI2 1
19671 _ACEOF
19672
19673 fi
19674
19675 fi
19676
19677 if test "$llvm_cv_os_type" = "MingW" ; then
19678   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19679 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19680   cat >conftest.$ac_ext <<_ACEOF
19681
19682   /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688     #include <windows.h>
19689     #include <imagehlp.h>
19690     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19691     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19692
19693
19694 _ACEOF
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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
19730   { echo "$as_me:$LINENO: result: yes" >&5
19731 echo "${ECHO_T}yes" >&6; }
19732   llvm_cv_win32_elmcb_pcstr="PCSTR"
19733
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738
19739   { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741   llvm_cv_win32_elmcb_pcstr="PSTR"
19742
19743 fi
19744
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746
19747 cat >>confdefs.h <<_ACEOF
19748 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19749 _ACEOF
19750
19751 fi
19752
19753
19754
19755   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760
19761     ac_ext=cpp
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
19767     cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 #include <math.h>
19774 int
19775 main ()
19776 {
19777 float f; isnan(f);
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797   { (case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_try") 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; } &&
19806          { ac_try='test -s conftest.$ac_objext'
19807   { (case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_try") 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_cv_func_isnan_in_math_h=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821         ac_cv_func_isnan_in_math_h=no
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825     ac_ext=c
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831
19832 fi
19833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19835
19836
19837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19838
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_ISNAN_IN_MATH_H 1
19841 _ACEOF
19842
19843 fi
19844
19845
19846   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19847 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19848 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851
19852     ac_ext=cpp
19853 ac_cpp='$CXXCPP $CPPFLAGS'
19854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19857
19858     cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 #include <cmath>
19865 int
19866 main ()
19867 {
19868 float f; isnan(f);
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_compile") 2>conftest.er1
19881   ac_status=$?
19882   grep -v '^ *+' conftest.er1 >conftest.err
19883   rm -f conftest.er1
19884   cat conftest.err >&5
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } &&
19887          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19888   { (case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_try") 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; } &&
19897          { ac_try='test -s conftest.$ac_objext'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ac_cv_func_isnan_in_cmath=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912         ac_cv_func_isnan_in_cmath=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916     ac_ext=c
19917 ac_cpp='$CPP $CPPFLAGS'
19918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921
19922
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19925 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19926
19927 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19928
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_ISNAN_IN_CMATH 1
19931 _ACEOF
19932
19933 fi
19934
19935
19936   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19937 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19938 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941
19942     ac_ext=cpp
19943 ac_cpp='$CXXCPP $CPPFLAGS'
19944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19947
19948     cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <cmath>
19955 int
19956 main ()
19957 {
19958 float f; std::isnan(f);
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19971   ac_status=$?
19972   grep -v '^ *+' conftest.er1 >conftest.err
19973   rm -f conftest.er1
19974   cat conftest.err >&5
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); } &&
19977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19978   { (case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_try") 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest.$ac_objext'
19988   { (case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_try") 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; }; then
19997   ac_cv_func_std_isnan_in_cmath=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         ac_cv_func_std_isnan_in_cmath=no
20003 fi
20004
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006     ac_ext=c
20007 ac_cpp='$CPP $CPPFLAGS'
20008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20011
20012
20013 fi
20014 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20015 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20016
20017 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20018
20019 cat >>confdefs.h <<\_ACEOF
20020 #define HAVE_STD_ISNAN_IN_CMATH 1
20021 _ACEOF
20022
20023 fi
20024
20025
20026
20027
20028   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20029 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20030 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033
20034     ac_ext=cpp
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20039
20040     cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 #include <math.h>
20047 int
20048 main ()
20049 {
20050 float f; isinf(f);
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (ac_try="$ac_compile"
20057 case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_compile") 2>conftest.er1
20063   ac_status=$?
20064   grep -v '^ *+' conftest.er1 >conftest.err
20065   rm -f conftest.er1
20066   cat conftest.err >&5
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); } &&
20069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20070   { (case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_try") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; } &&
20079          { ac_try='test -s conftest.$ac_objext'
20080   { (case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_try") 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_func_isinf_in_math_h=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094         ac_cv_func_isinf_in_math_h=no
20095 fi
20096
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098     ac_ext=c
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103
20104
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20108
20109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_MATH_H 1
20113 _ACEOF
20114
20115 fi
20116
20117
20118   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123
20124     ac_ext=cpp
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20129
20130     cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 #include <cmath>
20137 int
20138 main ()
20139 {
20140 float f; isinf(f);
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_compile") 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } &&
20159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20160   { (case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_try") 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; } &&
20169          { ac_try='test -s conftest.$ac_objext'
20170   { (case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_try") 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; }; then
20179   ac_cv_func_isinf_in_cmath=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         ac_cv_func_isinf_in_cmath=no
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188     ac_ext=c
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20193
20194
20195 fi
20196 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20197 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20198
20199 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20200
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_ISINF_IN_CMATH 1
20203 _ACEOF
20204
20205 fi
20206
20207
20208   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20209 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213
20214     ac_ext=cpp
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20219
20220     cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 #include <cmath>
20227 int
20228 main ()
20229 {
20230 float f; std::isinf(f);
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_compile") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } &&
20249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20250   { (case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_try") 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; } &&
20259          { ac_try='test -s conftest.$ac_objext'
20260   { (case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_try") 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_cv_func_std_isinf_in_cmath=yes
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274         ac_cv_func_std_isinf_in_cmath=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278     ac_ext=c
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284
20285 fi
20286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20287 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20288
20289 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define HAVE_STD_ISINF_IN_CMATH 1
20293 _ACEOF
20294
20295 fi
20296
20297
20298   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303
20304     ac_ext=cpp
20305 ac_cpp='$CXXCPP $CPPFLAGS'
20306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20309
20310     cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 #include <ieeefp.h>
20317 int
20318 main ()
20319 {
20320 float f; finite(f);
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext
20326 if { (ac_try="$ac_compile"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_compile") 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } &&
20339          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20340   { (case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_try") 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; } &&
20349          { ac_try='test -s conftest.$ac_objext'
20350   { (case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_try") 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_func_finite_in_ieeefp_h=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364         ac_cv_func_finite_in_ieeefp_h=no
20365 fi
20366
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368     ac_ext=c
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
20374
20375 fi
20376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20378
20379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20380
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_FINITE_IN_IEEEFP_H 1
20383 _ACEOF
20384
20385 fi
20386
20387
20388
20389 if test "$llvm_cv_platform_type" = "Unix" ; then
20390
20391
20392 for ac_header in stdlib.h unistd.h
20393 do
20394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 fi
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402                { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20404 else
20405   # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 $ac_includes_default
20415 #include <$ac_header>
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_compile") 2>conftest.er1
20425   ac_status=$?
20426   grep -v '^ *+' conftest.er1 >conftest.err
20427   rm -f conftest.er1
20428   cat conftest.err >&5
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } &&
20431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432   { (case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_try") 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; } &&
20441          { ac_try='test -s conftest.$ac_objext'
20442   { (case "(($ac_try" in
20443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444   *) ac_try_echo=$ac_try;;
20445 esac
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447   (eval "$ac_try") 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; }; then
20451   ac_header_compiler=yes
20452 else
20453   echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456         ac_header_compiler=no
20457 fi
20458
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20461 echo "${ECHO_T}$ac_header_compiler" >&6; }
20462
20463 # Is the header present?
20464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h.  */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h.  */
20472 #include <$ac_header>
20473 _ACEOF
20474 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } >/dev/null; then
20487   if test -s conftest.err; then
20488     ac_cpp_err=$ac_c_preproc_warn_flag
20489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20490   else
20491     ac_cpp_err=
20492   fi
20493 else
20494   ac_cpp_err=yes
20495 fi
20496 if test -z "$ac_cpp_err"; then
20497   ac_header_preproc=yes
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502   ac_header_preproc=no
20503 fi
20504
20505 rm -f conftest.err conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507 echo "${ECHO_T}$ac_header_preproc" >&6; }
20508
20509 # So?  What about this header?
20510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20511   yes:no: )
20512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20516     ac_header_preproc=yes
20517     ;;
20518   no:yes:* )
20519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20531     ( cat <<\_ASBOX
20532 ## ------------------------------------ ##
20533 ## Report this to http://llvm.org/bugs/ ##
20534 ## ------------------------------------ ##
20535 _ASBOX
20536      ) | sed "s/^/$as_me: WARNING:     /" >&2
20537     ;;
20538 esac
20539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542   echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544   eval "$as_ac_Header=\$ac_header_preproc"
20545 fi
20546 ac_res=`eval echo '${'$as_ac_Header'}'`
20547                { echo "$as_me:$LINENO: result: $ac_res" >&5
20548 echo "${ECHO_T}$ac_res" >&6; }
20549
20550 fi
20551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20552   cat >>confdefs.h <<_ACEOF
20553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20554 _ACEOF
20555
20556 fi
20557
20558 done
20559
20560
20561 for ac_func in getpagesize
20562 do
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20577 #define $ac_func innocuous_$ac_func
20578
20579 /* System header to define __stub macros and hopefully few prototypes,
20580     which can conflict with char $ac_func (); below.
20581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582     <limits.h> exists even on freestanding compilers.  */
20583
20584 #ifdef __STDC__
20585 # include <limits.h>
20586 #else
20587 # include <assert.h>
20588 #endif
20589
20590 #undef $ac_func
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593    Use char because int might match the return type of a GCC
20594    builtin and then its argument prototype would still apply.  */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 char $ac_func ();
20599 /* The GNU C library defines this for functions which it implements
20600     to always fail with ENOSYS.  Some functions are actually named
20601     something starting with __ and the normal name is an alias.  */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20603 choke me
20604 #endif
20605
20606 int
20607 main ()
20608 {
20609 return $ac_func ();
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_link") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } &&
20628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20629   { (case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_try") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; } &&
20638          { ac_try='test -s conftest$ac_exeext'
20639   { (case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_try") 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; }; then
20648   eval "$as_ac_var=yes"
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653         eval "$as_ac_var=no"
20654 fi
20655
20656 rm -f core conftest.err conftest.$ac_objext \
20657       conftest$ac_exeext conftest.$ac_ext
20658 fi
20659 ac_res=`eval echo '${'$as_ac_var'}'`
20660                { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 if test `eval echo '${'$as_ac_var'}'` = yes; then
20663   cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20665 _ACEOF
20666
20667 fi
20668 done
20669
20670 { echo "$as_me:$LINENO: checking for working mmap" >&5
20671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675   if test "$cross_compiling" = yes; then
20676   ac_cv_func_mmap_fixed_mapped=no
20677 else
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 $ac_includes_default
20685 /* malloc might have been renamed as rpl_malloc. */
20686 #undef malloc
20687
20688 /* Thanks to Mike Haertel and Jim Avera for this test.
20689    Here is a matrix of mmap possibilities:
20690         mmap private not fixed
20691         mmap private fixed at somewhere currently unmapped
20692         mmap private fixed at somewhere already mapped
20693         mmap shared not fixed
20694         mmap shared fixed at somewhere currently unmapped
20695         mmap shared fixed at somewhere already mapped
20696    For private mappings, we should verify that changes cannot be read()
20697    back from the file, nor mmap's back from the file at a different
20698    address.  (There have been systems where private was not correctly
20699    implemented like the infamous i386 svr4.0, and systems where the
20700    VM page cache was not coherent with the file system buffer cache
20701    like early versions of FreeBSD and possibly contemporary NetBSD.)
20702    For shared mappings, we should conversely verify that changes get
20703    propagated back to all the places they're supposed to be.
20704
20705    Grep wants private fixed already mapped.
20706    The main things grep needs to know about mmap are:
20707    * does it exist and is it safe to write into the mmap'd area
20708    * how to use it (BSD variants)  */
20709
20710 #include <fcntl.h>
20711 #include <sys/mman.h>
20712
20713 #if !STDC_HEADERS && !HAVE_STDLIB_H
20714 char *malloc ();
20715 #endif
20716
20717 /* This mess was copied from the GNU getpagesize.h.  */
20718 #if !HAVE_GETPAGESIZE
20719 /* Assume that all systems that can run configure have sys/param.h.  */
20720 # if !HAVE_SYS_PARAM_H
20721 #  define HAVE_SYS_PARAM_H 1
20722 # endif
20723
20724 # ifdef _SC_PAGESIZE
20725 #  define getpagesize() sysconf(_SC_PAGESIZE)
20726 # else /* no _SC_PAGESIZE */
20727 #  if HAVE_SYS_PARAM_H
20728 #   include <sys/param.h>
20729 #   ifdef EXEC_PAGESIZE
20730 #    define getpagesize() EXEC_PAGESIZE
20731 #   else /* no EXEC_PAGESIZE */
20732 #    ifdef NBPG
20733 #     define getpagesize() NBPG * CLSIZE
20734 #     ifndef CLSIZE
20735 #      define CLSIZE 1
20736 #     endif /* no CLSIZE */
20737 #    else /* no NBPG */
20738 #     ifdef NBPC
20739 #      define getpagesize() NBPC
20740 #     else /* no NBPC */
20741 #      ifdef PAGESIZE
20742 #       define getpagesize() PAGESIZE
20743 #      endif /* PAGESIZE */
20744 #     endif /* no NBPC */
20745 #    endif /* no NBPG */
20746 #   endif /* no EXEC_PAGESIZE */
20747 #  else /* no HAVE_SYS_PARAM_H */
20748 #   define getpagesize() 8192   /* punt totally */
20749 #  endif /* no HAVE_SYS_PARAM_H */
20750 # endif /* no _SC_PAGESIZE */
20751
20752 #endif /* no HAVE_GETPAGESIZE */
20753
20754 int
20755 main ()
20756 {
20757   char *data, *data2, *data3;
20758   int i, pagesize;
20759   int fd;
20760
20761   pagesize = getpagesize ();
20762
20763   /* First, make a file with some known garbage in it. */
20764   data = (char *) malloc (pagesize);
20765   if (!data)
20766     return 1;
20767   for (i = 0; i < pagesize; ++i)
20768     *(data + i) = rand ();
20769   umask (0);
20770   fd = creat ("conftest.mmap", 0600);
20771   if (fd < 0)
20772     return 1;
20773   if (write (fd, data, pagesize) != pagesize)
20774     return 1;
20775   close (fd);
20776
20777   /* Next, try to mmap the file at a fixed address which already has
20778      something else allocated at it.  If we can, also make sure that
20779      we see the same garbage.  */
20780   fd = open ("conftest.mmap", O_RDWR);
20781   if (fd < 0)
20782     return 1;
20783   data2 = (char *) malloc (2 * pagesize);
20784   if (!data2)
20785     return 1;
20786   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20787   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20788                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20789     return 1;
20790   for (i = 0; i < pagesize; ++i)
20791     if (*(data + i) != *(data2 + i))
20792       return 1;
20793
20794   /* Finally, make sure that changes to the mapped area do not
20795      percolate back to the file as seen by read().  (This is a bug on
20796      some variants of i386 svr4.0.)  */
20797   for (i = 0; i < pagesize; ++i)
20798     *(data2 + i) = *(data2 + i) + 1;
20799   data3 = (char *) malloc (pagesize);
20800   if (!data3)
20801     return 1;
20802   if (read (fd, data3, pagesize) != pagesize)
20803     return 1;
20804   for (i = 0; i < pagesize; ++i)
20805     if (*(data + i) != *(data3 + i))
20806       return 1;
20807   close (fd);
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_link") 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20822   { (case "(($ac_try" in
20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824   *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827   (eval "$ac_try") 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; }; then
20831   ac_cv_func_mmap_fixed_mapped=yes
20832 else
20833   echo "$as_me: program exited with status $ac_status" >&5
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ( exit $ac_status )
20838 ac_cv_func_mmap_fixed_mapped=no
20839 fi
20840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841 fi
20842
20843
20844 fi
20845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_MMAP 1
20851 _ACEOF
20852
20853 fi
20854 rm -f conftest.mmap
20855
20856   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20858 if test "${ac_cv_func_mmap_file+set}" = set; then
20859   echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861    ac_ext=c
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866
20867   if test "$cross_compiling" = yes; then
20868   ac_cv_func_mmap_file=no
20869 else
20870   cat >conftest.$ac_ext <<_ACEOF
20871
20872     /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877
20878 #include <sys/types.h>
20879 #include <sys/mman.h>
20880 #include <fcntl.h>
20881
20882 int
20883 main ()
20884 {
20885
20886   int fd;
20887   fd = creat ("foo",0777);
20888   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20889   unlink ("foo");
20890   return (fd != (int) MAP_FAILED);
20891   ;
20892   return 0;
20893 }
20894 _ACEOF
20895 rm -f conftest$ac_exeext
20896 if { (ac_try="$ac_link"
20897 case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_link") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20906   { (case "(($ac_try" in
20907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908   *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911   (eval "$ac_try") 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); }; }; then
20915   ac_cv_func_mmap_file=yes
20916 else
20917   echo "$as_me: program exited with status $ac_status" >&5
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 ( exit $ac_status )
20922 ac_cv_func_mmap_file=no
20923 fi
20924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20925 fi
20926
20927
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_mmap_file" >&5
20937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20938 if test "$ac_cv_func_mmap_file" = yes; then
20939
20940 cat >>confdefs.h <<\_ACEOF
20941 #define HAVE_MMAP_FILE
20942 _ACEOF
20943
20944    MMAP_FILE=yes
20945
20946 fi
20947
20948   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20951   echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953   if test "$llvm_cv_os_type" = "Interix" ; then
20954    ac_cv_need_dev_zero_for_mmap=yes
20955  else
20956    ac_cv_need_dev_zero_for_mmap=no
20957  fi
20958
20959 fi
20960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20963
20964 cat >>confdefs.h <<\_ACEOF
20965 #define NEED_DEV_ZERO_FOR_MMAP 1
20966 _ACEOF
20967
20968 fi
20969
20970   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20971   then
20972     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20974   fi
20975   if test "$ac_cv_func_mmap_file" = "no"
20976   then
20977     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20979   fi
20980 fi
20981
20982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20984 ac_ext=cpp
20985 ac_cpp='$CXXCPP $CPPFLAGS'
20986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20989
20990 cat >conftest.$ac_ext <<_ACEOF
20991
20992   /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997
20998     int main() {
20999       volatile unsigned long val = 1;
21000       __sync_synchronize();
21001       __sync_val_compare_and_swap(&val, 1, 0);
21002       __sync_add_and_fetch(&val, 1);
21003       __sync_sub_and_fetch(&val, 1);
21004       return 0;
21005     }
21006
21007
21008 _ACEOF
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_link") 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21024   { (case "(($ac_try" in
21025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026   *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029   (eval "$ac_try") 2>&5
21030   ac_status=$?
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); }; } &&
21033          { ac_try='test -s conftest$ac_exeext'
21034   { (case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_try") 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043
21044   { echo "$as_me:$LINENO: result: yes" >&5
21045 echo "${ECHO_T}yes" >&6; }
21046
21047 cat >>confdefs.h <<\_ACEOF
21048 #define LLVM_HAS_ATOMICS 1
21049 _ACEOF
21050
21051
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056
21057   { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21059
21060 cat >>confdefs.h <<\_ACEOF
21061 #define LLVM_HAS_ATOMICS 0
21062 _ACEOF
21063
21064   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21066
21067 fi
21068
21069 rm -f core conftest.err conftest.$ac_objext \
21070       conftest$ac_exeext conftest.$ac_ext
21071 ac_ext=c
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21076
21077
21078
21079 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21080   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21081 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21082 if test "${llvm_cv_linux_mixed+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085    ac_ext=c
21086 ac_cpp='$CPP $CPPFLAGS'
21087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #ifndef __x86_64__
21098        error: Not x86-64 even if uname says so!
21099       #endif
21100
21101 int
21102 main ()
21103 {
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } &&
21123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21124   { (case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_try") 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); }; } &&
21133          { ac_try='test -s conftest.$ac_objext'
21134   { (case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139   (eval "$ac_try") 2>&5
21140   ac_status=$?
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); }; }; then
21143   llvm_cv_linux_mixed=no
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148         llvm_cv_linux_mixed=yes
21149 fi
21150
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152   ac_ext=c
21153 ac_cpp='$CPP $CPPFLAGS'
21154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21157
21158
21159 fi
21160 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21161 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21162
21163   if test "$llvm_cv_linux_mixed" = "yes"; then
21164     llvm_cv_target_arch="x86"
21165     ARCH="x86"
21166   fi
21167 fi
21168
21169
21170 for ac_func in __dso_handle
21171 do
21172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178   cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21186 #define $ac_func innocuous_$ac_func
21187
21188 /* System header to define __stub macros and hopefully few prototypes,
21189     which can conflict with char $ac_func (); below.
21190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191     <limits.h> exists even on freestanding compilers.  */
21192
21193 #ifdef __STDC__
21194 # include <limits.h>
21195 #else
21196 # include <assert.h>
21197 #endif
21198
21199 #undef $ac_func
21200
21201 /* Override any GCC internal prototype to avoid an error.
21202    Use char because int might match the return type of a GCC
21203    builtin and then its argument prototype would still apply.  */
21204 #ifdef __cplusplus
21205 extern "C"
21206 #endif
21207 char $ac_func ();
21208 /* The GNU C library defines this for functions which it implements
21209     to always fail with ENOSYS.  Some functions are actually named
21210     something starting with __ and the normal name is an alias.  */
21211 #if defined __stub_$ac_func || defined __stub___$ac_func
21212 choke me
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218 return $ac_func ();
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227   *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230   (eval "$ac_link") 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238   { (case "(($ac_try" in
21239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240   *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243   (eval "$ac_try") 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; } &&
21247          { ac_try='test -s conftest$ac_exeext'
21248   { (case "(($ac_try" in
21249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250   *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253   (eval "$ac_try") 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; }; then
21257   eval "$as_ac_var=yes"
21258 else
21259   echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262         eval "$as_ac_var=no"
21263 fi
21264
21265 rm -f core conftest.err conftest.$ac_objext \
21266       conftest$ac_exeext conftest.$ac_ext
21267 fi
21268 ac_res=`eval echo '${'$as_ac_var'}'`
21269                { echo "$as_me:$LINENO: result: $ac_res" >&5
21270 echo "${ECHO_T}$ac_res" >&6; }
21271 if test `eval echo '${'$as_ac_var'}'` = yes; then
21272   cat >>confdefs.h <<_ACEOF
21273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21274 _ACEOF
21275
21276 fi
21277 done
21278
21279
21280 SHLIBEXT=$libltdl_cv_shlibext
21281
21282
21283 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21284
21285
21286 if test "${prefix}" = "NONE" ; then
21287   prefix="/usr/local"
21288 fi
21289 eval LLVM_PREFIX="${prefix}";
21290 eval LLVM_BINDIR="${prefix}/bin";
21291 eval LLVM_LIBDIR="${prefix}/lib";
21292 eval LLVM_DATADIR="${prefix}/share/llvm";
21293 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21294 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21295 eval LLVM_INCLUDEDIR="${prefix}/include";
21296 eval LLVM_INFODIR="${prefix}/info";
21297 eval LLVM_MANDIR="${prefix}/man";
21298 LLVM_CONFIGTIME=`date`
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21311   LLVM_CONFIGTIME="(timestamp not enabled)"
21312 fi
21313
21314
21315 cat >>confdefs.h <<_ACEOF
21316 #define LLVM_PREFIX "$LLVM_PREFIX"
21317 _ACEOF
21318
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define LLVM_BINDIR "$LLVM_BINDIR"
21322 _ACEOF
21323
21324
21325 cat >>confdefs.h <<_ACEOF
21326 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21327 _ACEOF
21328
21329
21330 cat >>confdefs.h <<_ACEOF
21331 #define LLVM_DATADIR "$LLVM_DATADIR"
21332 _ACEOF
21333
21334
21335 cat >>confdefs.h <<_ACEOF
21336 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21337 _ACEOF
21338
21339
21340 cat >>confdefs.h <<_ACEOF
21341 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21342 _ACEOF
21343
21344
21345 cat >>confdefs.h <<_ACEOF
21346 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21347 _ACEOF
21348
21349
21350 cat >>confdefs.h <<_ACEOF
21351 #define LLVM_INFODIR "$LLVM_INFODIR"
21352 _ACEOF
21353
21354
21355 cat >>confdefs.h <<_ACEOF
21356 #define LLVM_MANDIR "$LLVM_MANDIR"
21357 _ACEOF
21358
21359
21360 cat >>confdefs.h <<_ACEOF
21361 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21362 _ACEOF
21363
21364
21365 cat >>confdefs.h <<_ACEOF
21366 #define LLVM_HOSTTRIPLE "$host"
21367 _ACEOF
21368
21369
21370 cat >>confdefs.h <<_ACEOF
21371 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21372 _ACEOF
21373
21374
21375 if test "$BINDINGS_TO_BUILD" = auto ; then
21376   BINDINGS_TO_BUILD=""
21377   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21378     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21379   fi
21380 fi
21381 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21382
21383
21384 ALL_BINDINGS=ocaml
21385
21386
21387 binding_prereqs_failed=0
21388 for a_binding in $BINDINGS_TO_BUILD ; do
21389   case "$a_binding" in
21390   ocaml)
21391     if test "x$OCAMLC" = x ; then
21392       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21393 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21394       binding_prereqs_failed=1
21395     fi
21396     if test "x$OCAMLDEP" = x ; then
21397       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21398 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21399       binding_prereqs_failed=1
21400     fi
21401     if test "x$OCAMLOPT" = x ; then
21402       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21403 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21404           fi
21405     if test "x$with_ocaml_libdir" != xauto ; then
21406       OCAML_LIBDIR=$with_ocaml_libdir
21407
21408     else
21409       ocaml_stdlib="`"$OCAMLC" -where`"
21410       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21411       then
21412         # ocaml stdlib is beneath our prefix; use stdlib
21413         OCAML_LIBDIR=$ocaml_stdlib
21414
21415       else
21416         # ocaml stdlib is outside our prefix; use libdir/ocaml
21417         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21418
21419       fi
21420     fi
21421     ;;
21422   esac
21423 done
21424 if test "$binding_prereqs_failed" = 1 ; then
21425   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21426 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21427    { (exit 1); exit 1; }; }
21428 fi
21429
21430 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21431 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21432 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21433   echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435    ac_ext=cpp
21436 ac_cpp='$CXXCPP $CPPFLAGS'
21437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21440
21441   oldcxxflags="$CXXFLAGS"
21442   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21450 int
21451 main ()
21452 {
21453 X<int>().f();
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
21460 case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_compile") 2>conftest.er1
21466   ac_status=$?
21467   grep -v '^ *+' conftest.er1 >conftest.err
21468   rm -f conftest.er1
21469   cat conftest.err >&5
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } &&
21472          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21473   { (case "(($ac_try" in
21474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475   *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478   (eval "$ac_try") 2>&5
21479   ac_status=$?
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); }; } &&
21482          { ac_try='test -s conftest.$ac_objext'
21483   { (case "(($ac_try" in
21484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485   *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488   (eval "$ac_try") 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); }; }; then
21492   llvm_cv_cxx_visibility_inlines_hidden=yes
21493 else
21494   echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21496
21497         llvm_cv_cxx_visibility_inlines_hidden=no
21498 fi
21499
21500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501   CXXFLAGS="$oldcxxflags"
21502   ac_ext=c
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507
21508
21509 fi
21510 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21511 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21512 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21513   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21514
21515 else
21516   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21517
21518 fi
21519
21520
21521 if test "$llvm_cv_link_use_r" = "yes" ; then
21522   RPATH="-Wl,-R"
21523 else
21524   RPATH="-Wl,-rpath"
21525 fi
21526
21527
21528 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21529   RDYNAMIC="-Wl,-export-dynamic"
21530 else
21531   RDYNAMIC=""
21532 fi
21533
21534
21535
21536 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21537
21538
21539
21540
21541
21542
21543 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21544
21545 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21546
21547 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21548
21549 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21550
21551 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21552
21553
21554 ac_config_files="$ac_config_files Makefile.config"
21555
21556
21557 ac_config_files="$ac_config_files llvm.spec"
21558
21559
21560 ac_config_files="$ac_config_files docs/doxygen.cfg"
21561
21562
21563 if test "${clang_src_root}" = ""; then
21564   clang_src_root="$srcdir/tools/clang"
21565 fi
21566 if test -f ${clang_src_root}/README.txt; then
21567     configh="include/clang/Config/config.h"
21568   doxy="docs/doxygen.cfg"
21569   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21570
21571   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21572
21573 fi
21574
21575 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21576
21577
21578 test "x$program_prefix" = "xNONE" && program_prefix=""
21579
21580
21581
21582 ac_config_commands="$ac_config_commands setup"
21583
21584 ac_config_commands="$ac_config_commands Makefile"
21585
21586
21587 ac_config_commands="$ac_config_commands Makefile.common"
21588
21589
21590 ac_config_commands="$ac_config_commands examples/Makefile"
21591
21592
21593 ac_config_commands="$ac_config_commands lib/Makefile"
21594
21595
21596 ac_config_commands="$ac_config_commands runtime/Makefile"
21597
21598
21599 ac_config_commands="$ac_config_commands test/Makefile"
21600
21601
21602 ac_config_commands="$ac_config_commands test/Makefile.tests"
21603
21604
21605 ac_config_commands="$ac_config_commands unittests/Makefile"
21606
21607
21608 ac_config_commands="$ac_config_commands tools/Makefile"
21609
21610
21611 ac_config_commands="$ac_config_commands utils/Makefile"
21612
21613
21614 ac_config_commands="$ac_config_commands projects/Makefile"
21615
21616
21617 ac_config_commands="$ac_config_commands bindings/Makefile"
21618
21619
21620 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21621
21622
21623
21624 cat >confcache <<\_ACEOF
21625 # This file is a shell script that caches the results of configure
21626 # tests run on this system so they can be shared between configure
21627 # scripts and configure runs, see configure's option --config-cache.
21628 # It is not useful on other systems.  If it contains results you don't
21629 # want to keep, you may remove or edit it.
21630 #
21631 # config.status only pays attention to the cache file if you give it
21632 # the --recheck option to rerun configure.
21633 #
21634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21636 # following values.
21637
21638 _ACEOF
21639
21640 # The following way of writing the cache mishandles newlines in values,
21641 # but we know of no workaround that is simple, portable, and efficient.
21642 # So, we kill variables containing newlines.
21643 # Ultrix sh set writes to stderr and can't be redirected directly,
21644 # and sets the high bit in the cache file unless we assign to the vars.
21645 (
21646   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21647     eval ac_val=\$$ac_var
21648     case $ac_val in #(
21649     *${as_nl}*)
21650       case $ac_var in #(
21651       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21653       esac
21654       case $ac_var in #(
21655       _ | IFS | as_nl) ;; #(
21656       *) $as_unset $ac_var ;;
21657       esac ;;
21658     esac
21659   done
21660
21661   (set) 2>&1 |
21662     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21663     *${as_nl}ac_space=\ *)
21664       # `set' does not quote correctly, so add quotes (double-quote
21665       # substitution turns \\\\ into \\, and sed turns \\ into \).
21666       sed -n \
21667         "s/'/'\\\\''/g;
21668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21669       ;; #(
21670     *)
21671       # `set' quotes correctly as required by POSIX, so do not add quotes.
21672       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21673       ;;
21674     esac |
21675     sort
21676 ) |
21677   sed '
21678      /^ac_cv_env_/b end
21679      t clear
21680      :clear
21681      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21682      t end
21683      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21684      :end' >>confcache
21685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21686   if test -w "$cache_file"; then
21687     test "x$cache_file" != "x/dev/null" &&
21688       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21689 echo "$as_me: updating cache $cache_file" >&6;}
21690     cat confcache >$cache_file
21691   else
21692     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21693 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21694   fi
21695 fi
21696 rm -f confcache
21697
21698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21699 # Let make expand exec_prefix.
21700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21701
21702 DEFS=-DHAVE_CONFIG_H
21703
21704 ac_libobjs=
21705 ac_ltlibobjs=
21706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21707   # 1. Remove the extension, and $U if already installed.
21708   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21709   ac_i=`echo "$ac_i" | sed "$ac_script"`
21710   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21711   #    will be set to the directory where LIBOBJS objects are built.
21712   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21713   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21714 done
21715 LIBOBJS=$ac_libobjs
21716
21717 LTLIBOBJS=$ac_ltlibobjs
21718
21719
21720 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21721   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21722 Usually this means the macro was only invoked conditionally." >&5
21723 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21724 Usually this means the macro was only invoked conditionally." >&2;}
21725    { (exit 1); exit 1; }; }
21726 fi
21727 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21728   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21729 Usually this means the macro was only invoked conditionally." >&5
21730 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21731 Usually this means the macro was only invoked conditionally." >&2;}
21732    { (exit 1); exit 1; }; }
21733 fi
21734
21735 : ${CONFIG_STATUS=./config.status}
21736 ac_clean_files_save=$ac_clean_files
21737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21740 cat >$CONFIG_STATUS <<_ACEOF
21741 #! $SHELL
21742 # Generated by $as_me.
21743 # Run this file to recreate the current configuration.
21744 # Compiler output produced by configure, useful for debugging
21745 # configure, is in config.log if it exists.
21746
21747 debug=false
21748 ac_cs_recheck=false
21749 ac_cs_silent=false
21750 SHELL=\${CONFIG_SHELL-$SHELL}
21751 _ACEOF
21752
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 ## --------------------- ##
21755 ## M4sh Initialization.  ##
21756 ## --------------------- ##
21757
21758 # Be Bourne compatible
21759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21760   emulate sh
21761   NULLCMD=:
21762   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21763   # is contrary to our usage.  Disable this feature.
21764   alias -g '${1+"$@"}'='"$@"'
21765   setopt NO_GLOB_SUBST
21766 else
21767   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21768 fi
21769 BIN_SH=xpg4; export BIN_SH # for Tru64
21770 DUALCASE=1; export DUALCASE # for MKS sh
21771
21772
21773 # PATH needs CR
21774 # Avoid depending upon Character Ranges.
21775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21778 as_cr_digits='0123456789'
21779 as_cr_alnum=$as_cr_Letters$as_cr_digits
21780
21781 # The user is always right.
21782 if test "${PATH_SEPARATOR+set}" != set; then
21783   echo "#! /bin/sh" >conf$$.sh
21784   echo  "exit 0"   >>conf$$.sh
21785   chmod +x conf$$.sh
21786   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21787     PATH_SEPARATOR=';'
21788   else
21789     PATH_SEPARATOR=:
21790   fi
21791   rm -f conf$$.sh
21792 fi
21793
21794 # Support unset when possible.
21795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21796   as_unset=unset
21797 else
21798   as_unset=false
21799 fi
21800
21801
21802 # IFS
21803 # We need space, tab and new line, in precisely that order.  Quoting is
21804 # there to prevent editors from complaining about space-tab.
21805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21806 # splitting by setting IFS to empty value.)
21807 as_nl='
21808 '
21809 IFS=" ""        $as_nl"
21810
21811 # Find who we are.  Look in the path if we contain no directory separator.
21812 case $0 in
21813   *[\\/]* ) as_myself=$0 ;;
21814   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21816 do
21817   IFS=$as_save_IFS
21818   test -z "$as_dir" && as_dir=.
21819   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21820 done
21821 IFS=$as_save_IFS
21822
21823      ;;
21824 esac
21825 # We did not find ourselves, most probably we were run as `sh COMMAND'
21826 # in which case we are not to be found in the path.
21827 if test "x$as_myself" = x; then
21828   as_myself=$0
21829 fi
21830 if test ! -f "$as_myself"; then
21831   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21832   { (exit 1); exit 1; }
21833 fi
21834
21835 # Work around bugs in pre-3.0 UWIN ksh.
21836 for as_var in ENV MAIL MAILPATH
21837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21838 done
21839 PS1='$ '
21840 PS2='> '
21841 PS4='+ '
21842
21843 # NLS nuisances.
21844 for as_var in \
21845   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21846   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21847   LC_TELEPHONE LC_TIME
21848 do
21849   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21850     eval $as_var=C; export $as_var
21851   else
21852     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21853   fi
21854 done
21855
21856 # Required to use basename.
21857 if expr a : '\(a\)' >/dev/null 2>&1 &&
21858    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21859   as_expr=expr
21860 else
21861   as_expr=false
21862 fi
21863
21864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21865   as_basename=basename
21866 else
21867   as_basename=false
21868 fi
21869
21870
21871 # Name of the executable.
21872 as_me=`$as_basename -- "$0" ||
21873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21874          X"$0" : 'X\(//\)$' \| \
21875          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21876 echo X/"$0" |
21877     sed '/^.*\/\([^/][^/]*\)\/*$/{
21878             s//\1/
21879             q
21880           }
21881           /^X\/\(\/\/\)$/{
21882             s//\1/
21883             q
21884           }
21885           /^X\/\(\/\).*/{
21886             s//\1/
21887             q
21888           }
21889           s/.*/./; q'`
21890
21891 # CDPATH.
21892 $as_unset CDPATH
21893
21894
21895
21896   as_lineno_1=$LINENO
21897   as_lineno_2=$LINENO
21898   test "x$as_lineno_1" != "x$as_lineno_2" &&
21899   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21900
21901   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21902   # uniformly replaced by the line number.  The first 'sed' inserts a
21903   # line-number line after each line using $LINENO; the second 'sed'
21904   # does the real work.  The second script uses 'N' to pair each
21905   # line-number line with the line containing $LINENO, and appends
21906   # trailing '-' during substitution so that $LINENO is not a special
21907   # case at line end.
21908   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21909   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21910   # E. McMahon (1931-1989) for sed's syntax.  :-)
21911   sed -n '
21912     p
21913     /[$]LINENO/=
21914   ' <$as_myself |
21915     sed '
21916       s/[$]LINENO.*/&-/
21917       t lineno
21918       b
21919       :lineno
21920       N
21921       :loop
21922       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21923       t loop
21924       s/-\n.*//
21925     ' >$as_me.lineno &&
21926   chmod +x "$as_me.lineno" ||
21927     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21928    { (exit 1); exit 1; }; }
21929
21930   # Don't try to exec as it changes $[0], causing all sort of problems
21931   # (the dirname of $[0] is not the place where we might find the
21932   # original and so on.  Autoconf is especially sensitive to this).
21933   . "./$as_me.lineno"
21934   # Exit status is that of the last command.
21935   exit
21936 }
21937
21938
21939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21940   as_dirname=dirname
21941 else
21942   as_dirname=false
21943 fi
21944
21945 ECHO_C= ECHO_N= ECHO_T=
21946 case `echo -n x` in
21947 -n*)
21948   case `echo 'x\c'` in
21949   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21950   *)   ECHO_C='\c';;
21951   esac;;
21952 *)
21953   ECHO_N='-n';;
21954 esac
21955
21956 if expr a : '\(a\)' >/dev/null 2>&1 &&
21957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21958   as_expr=expr
21959 else
21960   as_expr=false
21961 fi
21962
21963 rm -f conf$$ conf$$.exe conf$$.file
21964 if test -d conf$$.dir; then
21965   rm -f conf$$.dir/conf$$.file
21966 else
21967   rm -f conf$$.dir
21968   mkdir conf$$.dir
21969 fi
21970 echo >conf$$.file
21971 if ln -s conf$$.file conf$$ 2>/dev/null; then
21972   as_ln_s='ln -s'
21973   # ... but there are two gotchas:
21974   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21975   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21976   # In both cases, we have to default to `cp -p'.
21977   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21978     as_ln_s='cp -p'
21979 elif ln conf$$.file conf$$ 2>/dev/null; then
21980   as_ln_s=ln
21981 else
21982   as_ln_s='cp -p'
21983 fi
21984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21985 rmdir conf$$.dir 2>/dev/null
21986
21987 if mkdir -p . 2>/dev/null; then
21988   as_mkdir_p=:
21989 else
21990   test -d ./-p && rmdir ./-p
21991   as_mkdir_p=false
21992 fi
21993
21994 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21995 # systems may use methods other than mode bits to determine executability.
21996 cat >conf$$.file <<_ASEOF
21997 #! /bin/sh
21998 exit 0
21999 _ASEOF
22000 chmod +x conf$$.file
22001 if test -x conf$$.file >/dev/null 2>&1; then
22002   as_executable_p="test -x"
22003 else
22004   as_executable_p=:
22005 fi
22006 rm -f conf$$.file
22007
22008 # Sed expression to map a string onto a valid CPP name.
22009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22010
22011 # Sed expression to map a string onto a valid variable name.
22012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22013
22014
22015 exec 6>&1
22016
22017 # Save the log message, to keep $[0] and so on meaningful, and to
22018 # report actual input values of CONFIG_FILES etc. instead of their
22019 # values after options handling.
22020 ac_log="
22021 This file was extended by LLVM $as_me 3.3svn, which was
22022 generated by GNU Autoconf 2.60.  Invocation command line was
22023
22024   CONFIG_FILES    = $CONFIG_FILES
22025   CONFIG_HEADERS  = $CONFIG_HEADERS
22026   CONFIG_LINKS    = $CONFIG_LINKS
22027   CONFIG_COMMANDS = $CONFIG_COMMANDS
22028   $ $0 $@
22029
22030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22031 "
22032
22033 _ACEOF
22034
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 # Files that config.status was made for.
22037 config_files="$ac_config_files"
22038 config_headers="$ac_config_headers"
22039 config_commands="$ac_config_commands"
22040
22041 _ACEOF
22042
22043 cat >>$CONFIG_STATUS <<\_ACEOF
22044 ac_cs_usage="\
22045 \`$as_me' instantiates files from templates according to the
22046 current configuration.
22047
22048 Usage: $0 [OPTIONS] [FILE]...
22049
22050   -h, --help       print this help, then exit
22051   -V, --version    print version number, then exit
22052   -q, --quiet      do not print progress messages
22053   -d, --debug      don't remove temporary files
22054       --recheck    update $as_me by reconfiguring in the same conditions
22055   --file=FILE[:TEMPLATE]
22056                    instantiate the configuration file FILE
22057   --header=FILE[:TEMPLATE]
22058                    instantiate the configuration header FILE
22059
22060 Configuration files:
22061 $config_files
22062
22063 Configuration headers:
22064 $config_headers
22065
22066 Configuration commands:
22067 $config_commands
22068
22069 Report bugs to <bug-autoconf@gnu.org>."
22070
22071 _ACEOF
22072 cat >>$CONFIG_STATUS <<_ACEOF
22073 ac_cs_version="\\
22074 LLVM config.status 3.3svn
22075 configured by $0, generated by GNU Autoconf 2.60,
22076   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22077
22078 Copyright (C) 2006 Free Software Foundation, Inc.
22079 This config.status script is free software; the Free Software Foundation
22080 gives unlimited permission to copy, distribute and modify it."
22081
22082 ac_pwd='$ac_pwd'
22083 srcdir='$srcdir'
22084 INSTALL='$INSTALL'
22085 _ACEOF
22086
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 # If no file are specified by the user, then we need to provide default
22089 # value.  By we need to know if files were specified by the user.
22090 ac_need_defaults=:
22091 while test $# != 0
22092 do
22093   case $1 in
22094   --*=*)
22095     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22096     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22097     ac_shift=:
22098     ;;
22099   *)
22100     ac_option=$1
22101     ac_optarg=$2
22102     ac_shift=shift
22103     ;;
22104   esac
22105
22106   case $ac_option in
22107   # Handling of the options.
22108   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22109     ac_cs_recheck=: ;;
22110   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22111     echo "$ac_cs_version"; exit ;;
22112   --debug | --debu | --deb | --de | --d | -d )
22113     debug=: ;;
22114   --file | --fil | --fi | --f )
22115     $ac_shift
22116     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22117     ac_need_defaults=false;;
22118   --header | --heade | --head | --hea )
22119     $ac_shift
22120     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22121     ac_need_defaults=false;;
22122   --he | --h)
22123     # Conflict between --help and --header
22124     { echo "$as_me: error: ambiguous option: $1
22125 Try \`$0 --help' for more information." >&2
22126    { (exit 1); exit 1; }; };;
22127   --help | --hel | -h )
22128     echo "$ac_cs_usage"; exit ;;
22129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22130   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22131     ac_cs_silent=: ;;
22132
22133   # This is an error.
22134   -*) { echo "$as_me: error: unrecognized option: $1
22135 Try \`$0 --help' for more information." >&2
22136    { (exit 1); exit 1; }; } ;;
22137
22138   *) ac_config_targets="$ac_config_targets $1"
22139      ac_need_defaults=false ;;
22140
22141   esac
22142   shift
22143 done
22144
22145 ac_configure_extra_args=
22146
22147 if $ac_cs_silent; then
22148   exec 6>/dev/null
22149   ac_configure_extra_args="$ac_configure_extra_args --silent"
22150 fi
22151
22152 _ACEOF
22153 cat >>$CONFIG_STATUS <<_ACEOF
22154 if \$ac_cs_recheck; then
22155   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22156   CONFIG_SHELL=$SHELL
22157   export CONFIG_SHELL
22158   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22159 fi
22160
22161 _ACEOF
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 exec 5>>config.log
22164 {
22165   echo
22166   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22167 ## Running $as_me. ##
22168 _ASBOX
22169   echo "$ac_log"
22170 } >&5
22171
22172 _ACEOF
22173 cat >>$CONFIG_STATUS <<_ACEOF
22174 #
22175 # INIT-COMMANDS
22176 #
22177 llvm_src="${srcdir}"
22178
22179 _ACEOF
22180
22181 cat >>$CONFIG_STATUS <<\_ACEOF
22182
22183 # Handling of arguments.
22184 for ac_config_target in $ac_config_targets
22185 do
22186   case $ac_config_target in
22187     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22188     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22189     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22190     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22191     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22192     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22193     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22194     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22195     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22196     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22197     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22198     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22199     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22200     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22201     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22202     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22203     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22204     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22205     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22206     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22207     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22208     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22209     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22210     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22211     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22212     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22213     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22214
22215   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22217    { (exit 1); exit 1; }; };;
22218   esac
22219 done
22220
22221
22222 # If the user did not use the arguments to specify the items to instantiate,
22223 # then the envvar interface is used.  Set only those that are not.
22224 # We use the long form for the default assignment because of an extremely
22225 # bizarre bug on SunOS 4.1.3.
22226 if $ac_need_defaults; then
22227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22228   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22230 fi
22231
22232 # Have a temporary directory for convenience.  Make it in the build tree
22233 # simply because there is no reason against having it here, and in addition,
22234 # creating and moving files from /tmp can sometimes cause problems.
22235 # Hook for its removal unless debugging.
22236 # Note that there is a small window in which the directory will not be cleaned:
22237 # after its creation but before its name has been assigned to `$tmp'.
22238 $debug ||
22239 {
22240   tmp=
22241   trap 'exit_status=$?
22242   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22243 ' 0
22244   trap '{ (exit 1); exit 1; }' 1 2 13 15
22245 }
22246 # Create a (secure) tmp directory for tmp files.
22247
22248 {
22249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22250   test -n "$tmp" && test -d "$tmp"
22251 }  ||
22252 {
22253   tmp=./conf$$-$RANDOM
22254   (umask 077 && mkdir "$tmp")
22255 } ||
22256 {
22257    echo "$me: cannot create a temporary directory in ." >&2
22258    { (exit 1); exit 1; }
22259 }
22260
22261 #
22262 # Set up the sed scripts for CONFIG_FILES section.
22263 #
22264
22265 # No need to generate the scripts if there are no CONFIG_FILES.
22266 # This happens for instance when ./config.status config.h
22267 if test -n "$CONFIG_FILES"; then
22268
22269 _ACEOF
22270
22271
22272
22273 ac_delim='%!_!# '
22274 for ac_last_try in false false false false false :; do
22275   cat >conf$$subs.sed <<_ACEOF
22276 SHELL!$SHELL$ac_delim
22277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22283 exec_prefix!$exec_prefix$ac_delim
22284 prefix!$prefix$ac_delim
22285 program_transform_name!$program_transform_name$ac_delim
22286 bindir!$bindir$ac_delim
22287 sbindir!$sbindir$ac_delim
22288 libexecdir!$libexecdir$ac_delim
22289 datarootdir!$datarootdir$ac_delim
22290 datadir!$datadir$ac_delim
22291 sysconfdir!$sysconfdir$ac_delim
22292 sharedstatedir!$sharedstatedir$ac_delim
22293 localstatedir!$localstatedir$ac_delim
22294 includedir!$includedir$ac_delim
22295 oldincludedir!$oldincludedir$ac_delim
22296 docdir!$docdir$ac_delim
22297 infodir!$infodir$ac_delim
22298 htmldir!$htmldir$ac_delim
22299 dvidir!$dvidir$ac_delim
22300 pdfdir!$pdfdir$ac_delim
22301 psdir!$psdir$ac_delim
22302 libdir!$libdir$ac_delim
22303 localedir!$localedir$ac_delim
22304 mandir!$mandir$ac_delim
22305 DEFS!$DEFS$ac_delim
22306 ECHO_C!$ECHO_C$ac_delim
22307 ECHO_N!$ECHO_N$ac_delim
22308 ECHO_T!$ECHO_T$ac_delim
22309 LIBS!$LIBS$ac_delim
22310 build_alias!$build_alias$ac_delim
22311 host_alias!$host_alias$ac_delim
22312 target_alias!$target_alias$ac_delim
22313 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22314 CC!$CC$ac_delim
22315 CFLAGS!$CFLAGS$ac_delim
22316 LDFLAGS!$LDFLAGS$ac_delim
22317 CPPFLAGS!$CPPFLAGS$ac_delim
22318 ac_ct_CC!$ac_ct_CC$ac_delim
22319 EXEEXT!$EXEEXT$ac_delim
22320 OBJEXT!$OBJEXT$ac_delim
22321 CXX!$CXX$ac_delim
22322 CXXFLAGS!$CXXFLAGS$ac_delim
22323 ac_ct_CXX!$ac_ct_CXX$ac_delim
22324 CPP!$CPP$ac_delim
22325 subdirs!$subdirs$ac_delim
22326 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22327 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22328 build!$build$ac_delim
22329 build_cpu!$build_cpu$ac_delim
22330 build_vendor!$build_vendor$ac_delim
22331 build_os!$build_os$ac_delim
22332 host!$host$ac_delim
22333 host_cpu!$host_cpu$ac_delim
22334 host_vendor!$host_vendor$ac_delim
22335 host_os!$host_os$ac_delim
22336 target!$target$ac_delim
22337 target_cpu!$target_cpu$ac_delim
22338 target_vendor!$target_vendor$ac_delim
22339 target_os!$target_os$ac_delim
22340 OS!$OS$ac_delim
22341 HOST_OS!$HOST_OS$ac_delim
22342 TARGET_OS!$TARGET_OS$ac_delim
22343 LINKALL!$LINKALL$ac_delim
22344 NOLINKALL!$NOLINKALL$ac_delim
22345 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22346 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22347 ARCH!$ARCH$ac_delim
22348 HOST_ARCH!$HOST_ARCH$ac_delim
22349 ENDIAN!$ENDIAN$ac_delim
22350 GREP!$GREP$ac_delim
22351 EGREP!$EGREP$ac_delim
22352 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22353 BUILD_CC!$BUILD_CC$ac_delim
22354 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22355 BUILD_CXX!$BUILD_CXX$ac_delim
22356 CVSBUILD!$CVSBUILD$ac_delim
22357 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22358 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22359 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22360 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22361 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22362 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22363 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22364 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22365 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22366 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22367 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22368 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22369 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22370 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22371 JIT!$JIT$ac_delim
22372 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22373 _ACEOF
22374
22375   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22376     break
22377   elif $ac_last_try; then
22378     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22380    { (exit 1); exit 1; }; }
22381   else
22382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22383   fi
22384 done
22385
22386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22387 if test -n "$ac_eof"; then
22388   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22389   ac_eof=`expr $ac_eof + 1`
22390 fi
22391
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22395 _ACEOF
22396 sed '
22397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22398 s/^/s,@/; s/!/@,|#_!!_#|/
22399 :n
22400 t n
22401 s/'"$ac_delim"'$/,g/; t
22402 s/$/\\/; p
22403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22404 ' >>$CONFIG_STATUS <conf$$subs.sed
22405 rm -f conf$$subs.sed
22406 cat >>$CONFIG_STATUS <<_ACEOF
22407 CEOF$ac_eof
22408 _ACEOF
22409
22410
22411 ac_delim='%!_!# '
22412 for ac_last_try in false false false false false :; do
22413   cat >conf$$subs.sed <<_ACEOF
22414 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22415 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22416 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22417 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22418 ENABLE_PIC!$ENABLE_PIC$ac_delim
22419 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22420 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22421 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22422 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22423 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22424 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22425 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22426 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22427 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22428 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22429 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22430 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22431 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22432 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22433 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22434 NM!$NM$ac_delim
22435 ifGNUmake!$ifGNUmake$ac_delim
22436 LN_S!$LN_S$ac_delim
22437 CMP!$CMP$ac_delim
22438 CP!$CP$ac_delim
22439 DATE!$DATE$ac_delim
22440 FIND!$FIND$ac_delim
22441 MKDIR!$MKDIR$ac_delim
22442 MV!$MV$ac_delim
22443 RANLIB!$RANLIB$ac_delim
22444 AR!$AR$ac_delim
22445 RM!$RM$ac_delim
22446 SED!$SED$ac_delim
22447 TAR!$TAR$ac_delim
22448 BINPWD!$BINPWD$ac_delim
22449 GRAPHVIZ!$GRAPHVIZ$ac_delim
22450 DOT!$DOT$ac_delim
22451 FDP!$FDP$ac_delim
22452 NEATO!$NEATO$ac_delim
22453 TWOPI!$TWOPI$ac_delim
22454 CIRCO!$CIRCO$ac_delim
22455 GV!$GV$ac_delim
22456 DOTTY!$DOTTY$ac_delim
22457 XDOT_PY!$XDOT_PY$ac_delim
22458 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22459 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22460 INSTALL_DATA!$INSTALL_DATA$ac_delim
22461 BZIP2!$BZIP2$ac_delim
22462 CAT!$CAT$ac_delim
22463 DOXYGEN!$DOXYGEN$ac_delim
22464 GROFF!$GROFF$ac_delim
22465 GZIPBIN!$GZIPBIN$ac_delim
22466 PDFROFF!$PDFROFF$ac_delim
22467 ZIP!$ZIP$ac_delim
22468 OCAMLC!$OCAMLC$ac_delim
22469 OCAMLOPT!$OCAMLOPT$ac_delim
22470 OCAMLDEP!$OCAMLDEP$ac_delim
22471 OCAMLDOC!$OCAMLDOC$ac_delim
22472 GAS!$GAS$ac_delim
22473 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22474 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22475 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22476 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22477 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22478 LIBADD_DL!$LIBADD_DL$ac_delim
22479 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22480 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22481 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22482 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22483 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22484 PYTHON!$PYTHON$ac_delim
22485 USE_UDIS86!$USE_UDIS86$ac_delim
22486 USE_OPROFILE!$USE_OPROFILE$ac_delim
22487 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22488 XML2CONFIG!$XML2CONFIG$ac_delim
22489 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22490 LIBXML2_INC!$LIBXML2_INC$ac_delim
22491 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22492 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22493 MMAP_FILE!$MMAP_FILE$ac_delim
22494 SHLIBEXT!$SHLIBEXT$ac_delim
22495 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22496 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22497 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22498 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22499 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22500 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22501 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22502 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22503 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22504 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22505 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22506 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22507 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22508 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22509 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22510 RPATH!$RPATH$ac_delim
22511 _ACEOF
22512
22513   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22514     break
22515   elif $ac_last_try; then
22516     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22517 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22518    { (exit 1); exit 1; }; }
22519   else
22520     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22521   fi
22522 done
22523
22524 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22525 if test -n "$ac_eof"; then
22526   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22527   ac_eof=`expr $ac_eof + 1`
22528 fi
22529
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22533 _ACEOF
22534 sed '
22535 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22536 s/^/s,@/; s/!/@,|#_!!_#|/
22537 :n
22538 t n
22539 s/'"$ac_delim"'$/,g/; t
22540 s/$/\\/; p
22541 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22542 ' >>$CONFIG_STATUS <conf$$subs.sed
22543 rm -f conf$$subs.sed
22544 cat >>$CONFIG_STATUS <<_ACEOF
22545 CEOF$ac_eof
22546 _ACEOF
22547
22548
22549 ac_delim='%!_!# '
22550 for ac_last_try in false false false false false :; do
22551   cat >conf$$subs.sed <<_ACEOF
22552 RDYNAMIC!$RDYNAMIC$ac_delim
22553 program_prefix!$program_prefix$ac_delim
22554 LIBOBJS!$LIBOBJS$ac_delim
22555 LTLIBOBJS!$LTLIBOBJS$ac_delim
22556 _ACEOF
22557
22558   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22559     break
22560   elif $ac_last_try; then
22561     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22563    { (exit 1); exit 1; }; }
22564   else
22565     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22566   fi
22567 done
22568
22569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22570 if test -n "$ac_eof"; then
22571   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22572   ac_eof=`expr $ac_eof + 1`
22573 fi
22574
22575 cat >>$CONFIG_STATUS <<_ACEOF
22576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22578 _ACEOF
22579 sed '
22580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22581 s/^/s,@/; s/!/@,|#_!!_#|/
22582 :n
22583 t n
22584 s/'"$ac_delim"'$/,g/; t
22585 s/$/\\/; p
22586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22587 ' >>$CONFIG_STATUS <conf$$subs.sed
22588 rm -f conf$$subs.sed
22589 cat >>$CONFIG_STATUS <<_ACEOF
22590 :end
22591 s/|#_!!_#|//g
22592 CEOF$ac_eof
22593 _ACEOF
22594
22595
22596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22598 # trailing colons and then remove the whole line if VPATH becomes empty
22599 # (actually we leave an empty line to preserve line numbers).
22600 if test "x$srcdir" = x.; then
22601   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22602 s/:*\$(srcdir):*/:/
22603 s/:*\${srcdir}:*/:/
22604 s/:*@srcdir@:*/:/
22605 s/^\([^=]*=[     ]*\):*/\1/
22606 s/:*$//
22607 s/^[^=]*=[       ]*$//
22608 }'
22609 fi
22610
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22612 fi # test -n "$CONFIG_FILES"
22613
22614
22615 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22616 do
22617   case $ac_tag in
22618   :[FHLC]) ac_mode=$ac_tag; continue;;
22619   esac
22620   case $ac_mode$ac_tag in
22621   :[FHL]*:*);;
22622   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22624    { (exit 1); exit 1; }; };;
22625   :[FH]-) ac_tag=-:-;;
22626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22627   esac
22628   ac_save_IFS=$IFS
22629   IFS=:
22630   set x $ac_tag
22631   IFS=$ac_save_IFS
22632   shift
22633   ac_file=$1
22634   shift
22635
22636   case $ac_mode in
22637   :L) ac_source=$1;;
22638   :[FH])
22639     ac_file_inputs=
22640     for ac_f
22641     do
22642       case $ac_f in
22643       -) ac_f="$tmp/stdin";;
22644       *) # Look for the file first in the build tree, then in the source tree
22645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22646          # because $ac_f cannot contain `:'.
22647          test -f "$ac_f" ||
22648            case $ac_f in
22649            [\\/$]*) false;;
22650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22651            esac ||
22652            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22654    { (exit 1); exit 1; }; };;
22655       esac
22656       ac_file_inputs="$ac_file_inputs $ac_f"
22657     done
22658
22659     # Let's still pretend it is `configure' which instantiates (i.e., don't
22660     # use $as_me), people would be surprised to read:
22661     #    /* config.h.  Generated by config.status.  */
22662     configure_input="Generated from "`IFS=:
22663           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22664     if test x"$ac_file" != x-; then
22665       configure_input="$ac_file.  $configure_input"
22666       { echo "$as_me:$LINENO: creating $ac_file" >&5
22667 echo "$as_me: creating $ac_file" >&6;}
22668     fi
22669
22670     case $ac_tag in
22671     *:-:* | *:-) cat >"$tmp/stdin";;
22672     esac
22673     ;;
22674   esac
22675
22676   ac_dir=`$as_dirname -- "$ac_file" ||
22677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22678          X"$ac_file" : 'X\(//\)[^/]' \| \
22679          X"$ac_file" : 'X\(//\)$' \| \
22680          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22681 echo X"$ac_file" |
22682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22683             s//\1/
22684             q
22685           }
22686           /^X\(\/\/\)[^/].*/{
22687             s//\1/
22688             q
22689           }
22690           /^X\(\/\/\)$/{
22691             s//\1/
22692             q
22693           }
22694           /^X\(\/\).*/{
22695             s//\1/
22696             q
22697           }
22698           s/.*/./; q'`
22699   { as_dir="$ac_dir"
22700   case $as_dir in #(
22701   -*) as_dir=./$as_dir;;
22702   esac
22703   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22704     as_dirs=
22705     while :; do
22706       case $as_dir in #(
22707       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22708       *) as_qdir=$as_dir;;
22709       esac
22710       as_dirs="'$as_qdir' $as_dirs"
22711       as_dir=`$as_dirname -- "$as_dir" ||
22712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713          X"$as_dir" : 'X\(//\)[^/]' \| \
22714          X"$as_dir" : 'X\(//\)$' \| \
22715          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22716 echo X"$as_dir" |
22717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22718             s//\1/
22719             q
22720           }
22721           /^X\(\/\/\)[^/].*/{
22722             s//\1/
22723             q
22724           }
22725           /^X\(\/\/\)$/{
22726             s//\1/
22727             q
22728           }
22729           /^X\(\/\).*/{
22730             s//\1/
22731             q
22732           }
22733           s/.*/./; q'`
22734       test -d "$as_dir" && break
22735     done
22736     test -z "$as_dirs" || eval "mkdir $as_dirs"
22737   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22739    { (exit 1); exit 1; }; }; }
22740   ac_builddir=.
22741
22742 case "$ac_dir" in
22743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22744 *)
22745   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22746   # A ".." for each directory in $ac_dir_suffix.
22747   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22748   case $ac_top_builddir_sub in
22749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22751   esac ;;
22752 esac
22753 ac_abs_top_builddir=$ac_pwd
22754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22755 # for backward compatibility:
22756 ac_top_builddir=$ac_top_build_prefix
22757
22758 case $srcdir in
22759   .)  # We are building in place.
22760     ac_srcdir=.
22761     ac_top_srcdir=$ac_top_builddir_sub
22762     ac_abs_top_srcdir=$ac_pwd ;;
22763   [\\/]* | ?:[\\/]* )  # Absolute name.
22764     ac_srcdir=$srcdir$ac_dir_suffix;
22765     ac_top_srcdir=$srcdir
22766     ac_abs_top_srcdir=$srcdir ;;
22767   *) # Relative name.
22768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22769     ac_top_srcdir=$ac_top_build_prefix$srcdir
22770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22771 esac
22772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22773
22774
22775   case $ac_mode in
22776   :F)
22777   #
22778   # CONFIG_FILE
22779   #
22780
22781   case $INSTALL in
22782   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22783   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22784   esac
22785 _ACEOF
22786
22787 cat >>$CONFIG_STATUS <<\_ACEOF
22788 # If the template does not know about datarootdir, expand it.
22789 # FIXME: This hack should be removed a few years after 2.60.
22790 ac_datarootdir_hack=; ac_datarootdir_seen=
22791
22792 case `sed -n '/datarootdir/ {
22793   p
22794   q
22795 }
22796 /@datadir@/p
22797 /@docdir@/p
22798 /@infodir@/p
22799 /@localedir@/p
22800 /@mandir@/p
22801 ' $ac_file_inputs` in
22802 *datarootdir*) ac_datarootdir_seen=yes;;
22803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22804   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22806 _ACEOF
22807 cat >>$CONFIG_STATUS <<_ACEOF
22808   ac_datarootdir_hack='
22809   s&@datadir@&$datadir&g
22810   s&@docdir@&$docdir&g
22811   s&@infodir@&$infodir&g
22812   s&@localedir@&$localedir&g
22813   s&@mandir@&$mandir&g
22814     s&\\\${datarootdir}&$datarootdir&g' ;;
22815 esac
22816 _ACEOF
22817
22818 # Neutralize VPATH when `$srcdir' = `.'.
22819 # Shell code in configure.ac might set extrasub.
22820 # FIXME: do we really want to maintain this feature?
22821 cat >>$CONFIG_STATUS <<_ACEOF
22822   sed "$ac_vpsub
22823 $extrasub
22824 _ACEOF
22825 cat >>$CONFIG_STATUS <<\_ACEOF
22826 :t
22827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22828 s&@configure_input@&$configure_input&;t t
22829 s&@top_builddir@&$ac_top_builddir_sub&;t t
22830 s&@srcdir@&$ac_srcdir&;t t
22831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22832 s&@top_srcdir@&$ac_top_srcdir&;t t
22833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22834 s&@builddir@&$ac_builddir&;t t
22835 s&@abs_builddir@&$ac_abs_builddir&;t t
22836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22837 s&@INSTALL@&$ac_INSTALL&;t t
22838 $ac_datarootdir_hack
22839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22840
22841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22842   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22843   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22844   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22845 which seems to be undefined.  Please make sure it is defined." >&5
22846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22847 which seems to be undefined.  Please make sure it is defined." >&2;}
22848
22849   rm -f "$tmp/stdin"
22850   case $ac_file in
22851   -) cat "$tmp/out"; rm -f "$tmp/out";;
22852   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22853   esac
22854  ;;
22855   :H)
22856   #
22857   # CONFIG_HEADER
22858   #
22859 _ACEOF
22860
22861 # Transform confdefs.h into a sed script `conftest.defines', that
22862 # substitutes the proper values into config.h.in to produce config.h.
22863 rm -f conftest.defines conftest.tail
22864 # First, append a space to every undef/define line, to ease matching.
22865 echo 's/$/ /' >conftest.defines
22866 # Then, protect against being on the right side of a sed subst, or in
22867 # an unquoted here document, in config.status.  If some macros were
22868 # called several times there might be several #defines for the same
22869 # symbol, which is useless.  But do not sort them, since the last
22870 # AC_DEFINE must be honored.
22871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22874 # PARAMS is the parameter list in the macro definition--in most cases, it's
22875 # just an empty string.
22876 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22877 ac_dB='\\)[      (].*,\\1define\\2'
22878 ac_dC=' '
22879 ac_dD=' ,'
22880
22881 uniq confdefs.h |
22882   sed -n '
22883         t rset
22884         :rset
22885         s/^[     ]*#[    ]*define[       ][      ]*//
22886         t ok
22887         d
22888         :ok
22889         s/[\\&,]/\\&/g
22890         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22891         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22892   ' >>conftest.defines
22893
22894 # Remove the space that was appended to ease matching.
22895 # Then replace #undef with comments.  This is necessary, for
22896 # example, in the case of _POSIX_SOURCE, which is predefined and required
22897 # on some systems where configure will not decide to define it.
22898 # (The regexp can be short, since the line contains either #define or #undef.)
22899 echo 's/ $//
22900 s,^[     #]*u.*,/* & */,' >>conftest.defines
22901
22902 # Break up conftest.defines:
22903 ac_max_sed_lines=50
22904
22905 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22906 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22907 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22908 # et cetera.
22909 ac_in='$ac_file_inputs'
22910 ac_out='"$tmp/out1"'
22911 ac_nxt='"$tmp/out2"'
22912
22913 while :
22914 do
22915   # Write a here document:
22916     cat >>$CONFIG_STATUS <<_ACEOF
22917     # First, check the format of the line:
22918     cat >"\$tmp/defines.sed" <<\\CEOF
22919 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22920 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22921 b
22922 :def
22923 _ACEOF
22924   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22925   echo 'CEOF
22926     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22927   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22928   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22929   grep . conftest.tail >/dev/null || break
22930   rm -f conftest.defines
22931   mv conftest.tail conftest.defines
22932 done
22933 rm -f conftest.defines conftest.tail
22934
22935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22936 cat >>$CONFIG_STATUS <<\_ACEOF
22937   if test x"$ac_file" != x-; then
22938     echo "/* $configure_input  */" >"$tmp/config.h"
22939     cat "$ac_result" >>"$tmp/config.h"
22940     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22941       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22942 echo "$as_me: $ac_file is unchanged" >&6;}
22943     else
22944       rm -f $ac_file
22945       mv "$tmp/config.h" $ac_file
22946     fi
22947   else
22948     echo "/* $configure_input  */"
22949     cat "$ac_result"
22950   fi
22951   rm -f "$tmp/out12"
22952  ;;
22953
22954   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22955 echo "$as_me: executing $ac_file commands" >&6;}
22956  ;;
22957   esac
22958
22959
22960   case $ac_file$ac_mode in
22961     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22962    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22963     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22964    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22965     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22966    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22967     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22968    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22969     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22970    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22971     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22972    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22973     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22974    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22975     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22976    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22977     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22978    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22979     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22980    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22981     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22982    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22983     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22984    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22985     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22986    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22987
22988   esac
22989 done # for ac_tag
22990
22991
22992 { (exit 0); exit 0; }
22993 _ACEOF
22994 chmod +x $CONFIG_STATUS
22995 ac_clean_files=$ac_clean_files_save
22996
22997
22998 # configure is writing to config.log, and then calls config.status.
22999 # config.status does its own redirection, appending to config.log.
23000 # Unfortunately, on DOS this fails, as config.log is still kept open
23001 # by configure, so config.status won't be able to write to it; its
23002 # output is simply discarded.  So we exec the FD to /dev/null,
23003 # effectively closing config.log, so it can be properly (re)opened and
23004 # appended to by config.status.  When coming back to configure, we
23005 # need to make the FD available again.
23006 if test "$no_create" != yes; then
23007   ac_cs_success=:
23008   ac_config_status_args=
23009   test "$silent" = yes &&
23010     ac_config_status_args="$ac_config_status_args --quiet"
23011   exec 5>/dev/null
23012   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23013   exec 5>>config.log
23014   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23015   # would make configure fail if this is the last instruction.
23016   $ac_cs_success || { (exit 1); exit 1; }
23017 fi
23018
23019 #
23020 # CONFIG_SUBDIRS section.
23021 #
23022 if test "$no_recursion" != yes; then
23023
23024   # Remove --cache-file and --srcdir arguments so they do not pile up.
23025   ac_sub_configure_args=
23026   ac_prev=
23027   eval "set x $ac_configure_args"
23028   shift
23029   for ac_arg
23030   do
23031     if test -n "$ac_prev"; then
23032       ac_prev=
23033       continue
23034     fi
23035     case $ac_arg in
23036     -cache-file | --cache-file | --cache-fil | --cache-fi \
23037     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23038       ac_prev=cache_file ;;
23039     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23040     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23041     | --c=*)
23042       ;;
23043     --config-cache | -C)
23044       ;;
23045     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23046       ac_prev=srcdir ;;
23047     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23048       ;;
23049     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23050       ac_prev=prefix ;;
23051     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23052       ;;
23053     *)
23054       case $ac_arg in
23055       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23056       esac
23057       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23058     esac
23059   done
23060
23061   # Always prepend --prefix to ensure using the same prefix
23062   # in subdir configurations.
23063   ac_arg="--prefix=$prefix"
23064   case $ac_arg in
23065   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23066   esac
23067   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23068
23069   ac_popdir=`pwd`
23070   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23071
23072     # Do not complain, so a configure script can configure whichever
23073     # parts of a large source tree are present.
23074     test -d "$srcdir/$ac_dir" || continue
23075
23076     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23077     echo "$as_me:$LINENO: $ac_msg" >&5
23078     echo "$ac_msg" >&6
23079     { as_dir="$ac_dir"
23080   case $as_dir in #(
23081   -*) as_dir=./$as_dir;;
23082   esac
23083   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23084     as_dirs=
23085     while :; do
23086       case $as_dir in #(
23087       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23088       *) as_qdir=$as_dir;;
23089       esac
23090       as_dirs="'$as_qdir' $as_dirs"
23091       as_dir=`$as_dirname -- "$as_dir" ||
23092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23093          X"$as_dir" : 'X\(//\)[^/]' \| \
23094          X"$as_dir" : 'X\(//\)$' \| \
23095          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23096 echo X"$as_dir" |
23097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23098             s//\1/
23099             q
23100           }
23101           /^X\(\/\/\)[^/].*/{
23102             s//\1/
23103             q
23104           }
23105           /^X\(\/\/\)$/{
23106             s//\1/
23107             q
23108           }
23109           /^X\(\/\).*/{
23110             s//\1/
23111             q
23112           }
23113           s/.*/./; q'`
23114       test -d "$as_dir" && break
23115     done
23116     test -z "$as_dirs" || eval "mkdir $as_dirs"
23117   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23118 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23119    { (exit 1); exit 1; }; }; }
23120     ac_builddir=.
23121
23122 case "$ac_dir" in
23123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23124 *)
23125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23126   # A ".." for each directory in $ac_dir_suffix.
23127   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23128   case $ac_top_builddir_sub in
23129   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23130   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23131   esac ;;
23132 esac
23133 ac_abs_top_builddir=$ac_pwd
23134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23135 # for backward compatibility:
23136 ac_top_builddir=$ac_top_build_prefix
23137
23138 case $srcdir in
23139   .)  # We are building in place.
23140     ac_srcdir=.
23141     ac_top_srcdir=$ac_top_builddir_sub
23142     ac_abs_top_srcdir=$ac_pwd ;;
23143   [\\/]* | ?:[\\/]* )  # Absolute name.
23144     ac_srcdir=$srcdir$ac_dir_suffix;
23145     ac_top_srcdir=$srcdir
23146     ac_abs_top_srcdir=$srcdir ;;
23147   *) # Relative name.
23148     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23149     ac_top_srcdir=$ac_top_build_prefix$srcdir
23150     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23151 esac
23152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23153
23154
23155     cd "$ac_dir"
23156
23157     # Check for guested configure; otherwise get Cygnus style configure.
23158     if test -f "$ac_srcdir/configure.gnu"; then
23159       ac_sub_configure=$ac_srcdir/configure.gnu
23160     elif test -f "$ac_srcdir/configure"; then
23161       ac_sub_configure=$ac_srcdir/configure
23162     elif test -f "$ac_srcdir/configure.in"; then
23163       # This should be Cygnus configure.
23164       ac_sub_configure=$ac_aux_dir/configure
23165     else
23166       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23168       ac_sub_configure=
23169     fi
23170
23171     # The recursion is here.
23172     if test -n "$ac_sub_configure"; then
23173       # Make the cache file name correct relative to the subdirectory.
23174       case $cache_file in
23175       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23176       *) # Relative name.
23177         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23178       esac
23179
23180       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23181 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23182       # The eval makes quoting arguments work.
23183       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23184            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23185         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23186 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23187    { (exit 1); exit 1; }; }
23188     fi
23189
23190     cd "$ac_popdir"
23191   done
23192 fi
23193