This patch adds a new NVPTX back-end to LLVM which supports code generation for NVIDI...
[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.2svn.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/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 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 INTERNAL_PREFIX
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
771 HAVE_PTHREAD
772 HUGE_VAL_SANITY
773 MMAP_FILE
774 SHLIBEXT
775 SHLIBPATH_VAR
776 LLVM_PREFIX
777 LLVM_BINDIR
778 LLVM_LIBDIR
779 LLVM_DATADIR
780 LLVM_DOCSDIR
781 LLVM_ETCDIR
782 LLVM_INCLUDEDIR
783 LLVM_INFODIR
784 LLVM_MANDIR
785 LLVM_CONFIGTIME
786 BINDINGS_TO_BUILD
787 ALL_BINDINGS
788 OCAML_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
790 RPATH
791 RDYNAMIC
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 CPP'
806 ac_subdirs_all='projects/llvm-gcc
807 projects/test-suite
808 projects/llvm-test
809 projects/poolalloc
810 projects/llvm-poolalloc
811 projects/sample
812 projects/privbracket
813 projects/llvm-stacker
814 projects/llvm-reopt
815 projects/llvm-java
816 projects/llvm-tv
817 projects/safecode
818 projects/llvm-kernel
819 tools/polly'
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945    { (exit 1); exit 1; }; }
946     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947     eval enable_$ac_feature=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package| sed 's/-/_/g'`
1144     eval with_$ac_package=\$ac_optarg ;;
1145
1146   -without-* | --without-*)
1147     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175    { (exit 1); exit 1; }; }
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183    { (exit 1); exit 1; }; }
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   { echo "$as_me: error: missing argument to $ac_option" >&2
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 # Be sure to have absolute directory names.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216    { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   { echo "$as_me: error: Working directory cannot be determined" >&2
1247    { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   { echo "$as_me: error: pwd does not report name of working directory" >&2
1250    { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$0" : 'X\(//\)[^/]' \| \
1260          X"$0" : 'X\(//\)$' \| \
1261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295    { (exit 1); exit 1; }; }
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR           user executables [EPREFIX/bin]
1356   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR       program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR           object code libraries [EPREFIX/lib]
1362   --includedir=DIR       C header files [PREFIX/include]
1363   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR          info documentation [DATAROOTDIR/info]
1367   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR           man documentation [DATAROOTDIR/man]
1369   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1370   --htmldir=DIR          html documentation [DOCDIR]
1371   --dvidir=DIR           dvi documentation [DOCDIR]
1372   --pdfdir=DIR           pdf documentation [DOCDIR]
1373   --psdir=DIR            ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-polly          Use polly if available (default is YES)
1395   --enable-libcpp         Use libc++ if available (default is NO)
1396   --enable-optimized      Compile with optimizations enabled (default is NO)
1397   --enable-profiling      Compile with profiling enabled (default is NO)
1398   --enable-assertions     Compile with assertion checks enabled (default is
1399                           YES)
1400   --enable-expensive-checks
1401                           Compile with expensive debug checks enabled (default
1402                           is NO)
1403   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1404                           NO)
1405   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1406                           optimization is on and YES if it's off)
1407   --enable-jit            Enable Just In Time Compiling (default is YES)
1408   --enable-docs           Build documents (default is YES)
1409   --enable-doxygen        Build doxygen documentation (default is NO)
1410   --enable-threads        Use threads if available (default is YES)
1411   --enable-pthreads       Use pthreads if available (default is YES)
1412   --enable-pic            Build LLVM with Position Independent Code (default
1413                           is YES)
1414   --enable-shared         Build a shared library and link tools against it
1415                           (default is NO)
1416   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1417                           Win32 DLL (default is NO)
1418   --enable-timestamps     Enable embedding timestamp information in build
1419                           (default is YES)
1420   --enable-targets        Build specific host targets: all or
1421                           target1,target2,... Valid targets are: host, x86,
1422                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423                           xcore, msp430, ptx, nvptx, and cpp (default=all)
1424   --enable-bindings       Build specific language bindings:
1425                           all,auto,none,{binding-name} (default=auto)
1426   --enable-libffi         Check for the presence of libffi (default is NO)
1427   --enable-ltdl-install   install libltdl
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-optimize-option  Select the compiler options to use for optimized
1433                           builds
1434   --with-extra-options    Specify additional options to compile LLVM with
1435   --with-extra-ld-options Specify additional options to link LLVM with
1436   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1437                           is stdlib)
1438   --with-clang-srcdir     Directory to the out-of-tree Clang source
1439   --with-clang-resource-dir
1440                           Relative directory from the Clang binary for
1441                           resource files
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-gcc-toolchain    Directory where gcc is installed.
1445   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1446   --with-binutils-include Specify path to binutils/include/ containing
1447                           plugin-api.h file for gold plugin.
1448   --with-bug-report-url   Specify the URL where bug reports should be
1449                           submitted (default=http://llvm.org/bugs/)
1450   --with-internal-prefix  Installation directory for internal files
1451   --with-tclinclude       directory where tcl headers are
1452   --with-udis86=<path>    Use udis86 external x86 disassembler library
1453   --with-oprofile=<prefix>
1454                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1455   --with-intel-jitevents=<vtune-amplifier-dir>
1456                           Specify location of run-time support library for
1457                           Intel JIT API
1458                           (default=/opt/intel/vtune_amplifier_xe_2011)
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466               you have headers in a nonstandard directory <include dir>
1467   CXX         C++ compiler command
1468   CXXFLAGS    C++ compiler flags
1469   CPP         C preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <http://llvm.org/bugs/>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" || continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 LLVM configure 3.2svn
1536 generated by GNU Autoconf 2.60
1537
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542
1543 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1544 _ACEOF
1545   exit
1546 fi
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1550
1551 It was created by LLVM $as_me 3.2svn, which was
1552 generated by GNU Autoconf 2.60.  Invocation command line was
1553
1554   $ $0 $@
1555
1556 _ACEOF
1557 exec 5>>config.log
1558 {
1559 cat <<_ASUNAME
1560 ## --------- ##
1561 ## Platform. ##
1562 ## --------- ##
1563
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1572
1573 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1574 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1577 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1578 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1579 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1580
1581 _ASUNAME
1582
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586   IFS=$as_save_IFS
1587   test -z "$as_dir" && as_dir=.
1588   echo "PATH: $as_dir"
1589 done
1590 IFS=$as_save_IFS
1591
1592 } >&5
1593
1594 cat >&5 <<_ACEOF
1595
1596
1597 ## ----------- ##
1598 ## Core tests. ##
1599 ## ----------- ##
1600
1601 _ACEOF
1602
1603
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_configure_args=
1610 ac_configure_args0=
1611 ac_configure_args1=
1612 ac_must_keep_next=false
1613 for ac_pass in 1 2
1614 do
1615   for ac_arg
1616   do
1617     case $ac_arg in
1618     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620     | -silent | --silent | --silen | --sile | --sil)
1621       continue ;;
1622     *\'*)
1623       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624     esac
1625     case $ac_pass in
1626     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627     2)
1628       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629       if test $ac_must_keep_next = true; then
1630         ac_must_keep_next=false # Got value, back to normal.
1631       else
1632         case $ac_arg in
1633           *=* | --config-cache | -C | -disable-* | --disable-* \
1634           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636           | -with-* | --with-* | -without-* | --without-* | --x)
1637             case "$ac_configure_args0 " in
1638               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639             esac
1640             ;;
1641           -* ) ac_must_keep_next=true ;;
1642         esac
1643       fi
1644       ac_configure_args="$ac_configure_args '$ac_arg'"
1645       ;;
1646     esac
1647   done
1648 done
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log.  We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658   # Save into config.log some information that might help in debugging.
1659   {
1660     echo
1661
1662     cat <<\_ASBOX
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1666 _ASBOX
1667     echo
1668     # The following way of writing the cache mishandles newlines in values,
1669 (
1670   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671     eval ac_val=\$$ac_var
1672     case $ac_val in #(
1673     *${as_nl}*)
1674       case $ac_var in #(
1675       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677       esac
1678       case $ac_var in #(
1679       _ | IFS | as_nl) ;; #(
1680       *) $as_unset $ac_var ;;
1681       esac ;;
1682     esac
1683   done
1684   (set) 2>&1 |
1685     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686     *${as_nl}ac_space=\ *)
1687       sed -n \
1688         "s/'\''/'\''\\\\'\'''\''/g;
1689           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690       ;; #(
1691     *)
1692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1693       ;;
1694     esac |
1695     sort
1696 )
1697     echo
1698
1699     cat <<\_ASBOX
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1703 _ASBOX
1704     echo
1705     for ac_var in $ac_subst_vars
1706     do
1707       eval ac_val=\$$ac_var
1708       case $ac_val in
1709       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710       esac
1711       echo "$ac_var='\''$ac_val'\''"
1712     done | sort
1713     echo
1714
1715     if test -n "$ac_subst_files"; then
1716       cat <<\_ASBOX
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1720 _ASBOX
1721       echo
1722       for ac_var in $ac_subst_files
1723       do
1724         eval ac_val=\$$ac_var
1725         case $ac_val in
1726         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727         esac
1728         echo "$ac_var='\''$ac_val'\''"
1729       done | sort
1730       echo
1731     fi
1732
1733     if test -s confdefs.h; then
1734       cat <<\_ASBOX
1735 ## ----------- ##
1736 ## confdefs.h. ##
1737 ## ----------- ##
1738 _ASBOX
1739       echo
1740       cat confdefs.h
1741       echo
1742     fi
1743     test "$ac_signal" != 0 &&
1744       echo "$as_me: caught signal $ac_signal"
1745     echo "$as_me: exit $exit_status"
1746   } >&5
1747   rm -f core *.core core.conftest.* &&
1748     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749     exit $exit_status
1750 ' 0
1751 for ac_signal in 1 2 13 15; do
1752   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 done
1754 ac_signal=0
1755
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1758
1759 # Predefined preprocessor variables.
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 _ACEOF
1784
1785
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789   set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 else
1793   set x "$ac_default_prefix/share/config.site" \
1794         "$ac_default_prefix/etc/config.site"
1795 fi
1796 shift
1797 for ac_site_file
1798 do
1799   if test -r "$ac_site_file"; then
1800     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802     sed 's/^/| /' "$ac_site_file" >&5
1803     . "$ac_site_file"
1804   fi
1805 done
1806
1807 if test -r "$cache_file"; then
1808   # Some versions of bash will fail to source /dev/null (special
1809   # files actually), so we avoid doing that.
1810   if test -f "$cache_file"; then
1811     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1813     case $cache_file in
1814       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815       *)                      . "./$cache_file";;
1816     esac
1817   fi
1818 else
1819   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1821   >$cache_file
1822 fi
1823
1824 # Check that the precious variables saved in the cache have kept the same
1825 # value.
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829   eval ac_new_set=\$ac_env_${ac_var}_set
1830   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831   eval ac_new_val=\$ac_env_${ac_var}_value
1832   case $ac_old_set,$ac_new_set in
1833     set,)
1834       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836       ac_cache_corrupted=: ;;
1837     ,set)
1838       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,);;
1842     *)
1843       if test "x$ac_old_val" != "x$ac_new_val"; then
1844         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1847 echo "$as_me:   former value:  $ac_old_val" >&2;}
1848         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1849 echo "$as_me:   current value: $ac_new_val" >&2;}
1850         ac_cache_corrupted=:
1851       fi;;
1852   esac
1853   # Pass precious variables to config.status.
1854   if test "$ac_new_set" = set; then
1855     case $ac_new_val in
1856     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857     *) ac_arg=$ac_var=$ac_new_val ;;
1858     esac
1859     case " $ac_configure_args " in
1860       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1861       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862     esac
1863   fi
1864 done
1865 if $ac_cache_corrupted; then
1866   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870    { (exit 1); exit 1; }; }
1871 fi
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897 ac_ext=c
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MAJOR 3
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<\_ACEOF
1911 #define LLVM_VERSION_MINOR 2
1912 _ACEOF
1913
1914
1915 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1916
1917
1918
1919
1920
1921
1922
1923 ac_aux_dir=
1924 for ac_dir in autoconf "$srcdir"/autoconf; do
1925   if test -f "$ac_dir/install-sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install-sh -c"
1928     break
1929   elif test -f "$ac_dir/install.sh"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/install.sh -c"
1932     break
1933   elif test -f "$ac_dir/shtool"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/shtool install -c"
1936     break
1937   fi
1938 done
1939 if test -z "$ac_aux_dir"; then
1940   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1941 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 # These three variables are undocumented and unsupported,
1946 # and are intended to be withdrawn in a future Autoconf release.
1947 # They can cause serious problems if a builder's source tree is in a directory
1948 # whose full name contains unusual characters.
1949 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1950 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1951 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1952
1953
1954
1955 if test ${srcdir} != "." ; then
1956   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1957     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1958 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1959    { (exit 1); exit 1; }; }
1960   fi
1961 fi
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 if test -n "$ac_tool_prefix"; then
1969   for ac_prog in clang llvm-gcc gcc
1970   do
1971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1988     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994 IFS=$as_save_IFS
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2002 else
2003   { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2005 fi
2006
2007
2008     test -n "$CC" && break
2009   done
2010 fi
2011 if test -z "$CC"; then
2012   ac_ct_CC=$CC
2013   for ac_prog in clang llvm-gcc gcc
2014 do
2015   # Extract the first word of "$ac_prog", so it can be a program name with args.
2016 set dummy $ac_prog; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   if test -n "$ac_ct_CC"; then
2023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028   IFS=$as_save_IFS
2029   test -z "$as_dir" && as_dir=.
2030   for ac_exec_ext in '' $ac_executable_extensions; do
2031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2032     ac_cv_prog_ac_ct_CC="$ac_prog"
2033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034     break 2
2035   fi
2036 done
2037 done
2038 IFS=$as_save_IFS
2039
2040 fi
2041 fi
2042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043 if test -n "$ac_ct_CC"; then
2044   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045 echo "${ECHO_T}$ac_ct_CC" >&6; }
2046 else
2047   { echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6; }
2049 fi
2050
2051
2052   test -n "$ac_ct_CC" && break
2053 done
2054
2055   if test "x$ac_ct_CC" = x; then
2056     CC=""
2057   else
2058     case $cross_compiling:$ac_tool_warned in
2059 yes:)
2060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet.  If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&5
2063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet.  If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2066 ac_tool_warned=yes ;;
2067 esac
2068     CC=$ac_ct_CC
2069   fi
2070 fi
2071
2072
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077    { (exit 1); exit 1; }; }
2078
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO: checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (ac_try="$ac_compiler --version >&5"
2083 case "(($ac_try" in
2084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085   *) ac_try_echo=$ac_try;;
2086 esac
2087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2088   (eval "$ac_compiler --version >&5") 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (ac_try="$ac_compiler -v >&5"
2093 case "(($ac_try" in
2094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095   *) ac_try_echo=$ac_try;;
2096 esac
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098   (eval "$ac_compiler -v >&5") 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112
2113 cat >conftest.$ac_ext <<_ACEOF
2114 /* confdefs.h.  */
2115 _ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h.  */
2119
2120 int
2121 main ()
2122 {
2123
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 ac_clean_files_save=$ac_clean_files
2129 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2130 # Try to create an executable without -o first, disregard a.out.
2131 # It will help us diagnose broken compilers, and finding out an intuition
2132 # of exeext.
2133 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2134 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2135 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136 #
2137 # List of possible output files, starting from the most likely.
2138 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2139 # only as a last resort.  b.out is created by i960 compilers.
2140 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2141 #
2142 # The IRIX 6 linker writes into existing files which may not be
2143 # executable, retaining their permissions.  Remove them first so a
2144 # subsequent execution test works.
2145 ac_rmfiles=
2146 for ac_file in $ac_files
2147 do
2148   case $ac_file in
2149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2150     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2151   esac
2152 done
2153 rm -f $ac_rmfiles
2154
2155 if { (ac_try="$ac_link_default"
2156 case "(($ac_try" in
2157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158   *) ac_try_echo=$ac_try;;
2159 esac
2160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161   (eval "$ac_link_default") 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; then
2165   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2167 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2168 # so that the user can short-circuit this test for compilers unknown to
2169 # Autoconf.
2170 for ac_file in $ac_files
2171 do
2172   test -f "$ac_file" || continue
2173   case $ac_file in
2174     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2175         ;;
2176     [ab].out )
2177         # We found the default executable, but exeext='' is most
2178         # certainly right.
2179         break;;
2180     *.* )
2181         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2182         then :; else
2183            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         fi
2185         # We set ac_cv_exeext here because the later test for it is not
2186         # safe: cross compilers may not add the suffix if given an `-o'
2187         # argument, so we may need to know it at that point already.
2188         # Even if this section looks crufty: it has the advantage of
2189         # actually working.
2190         break;;
2191     * )
2192         break;;
2193   esac
2194 done
2195 test "$ac_cv_exeext" = no && ac_cv_exeext=
2196
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205    { (exit 77); exit 77; }; }
2206 fi
2207
2208 ac_exeext=$ac_cv_exeext
2209 { echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6; }
2211
2212 # Check that the compiler produces executables we can run.  If not, either
2213 # the compiler is broken, or we cross compile.
2214 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217 # If not cross compiling, check that we can run a simple program.
2218 if test "$cross_compiling" != yes; then
2219   if { ac_try='./$ac_file'
2220   { (case "(($ac_try" in
2221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222   *) ac_try_echo=$ac_try;;
2223 esac
2224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2225   (eval "$ac_try") 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }; }; then
2229     cross_compiling=no
2230   else
2231     if test "$cross_compiling" = maybe; then
2232         cross_compiling=yes
2233     else
2234         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240    { (exit 1); exit 1; }; }
2241     fi
2242   fi
2243 fi
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2246
2247 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248 ac_clean_files=$ac_clean_files_save
2249 # Check that the compiler produces executables we can run.  If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2253 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6; }
2255
2256 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2258 if { (ac_try="$ac_link"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264   (eval "$ac_link") 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 # `rm'.
2272 for ac_file in conftest.exe conftest conftest.*; do
2273   test -f "$ac_file" || continue
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2276     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277           break;;
2278     * ) break;;
2279   esac
2280 done
2281 else
2282   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2292
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2298 if test "${ac_cv_objext+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (ac_try="$ac_compile"
2318 case "(($ac_try" in
2319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320   *) ac_try_echo=$ac_try;;
2321 esac
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323   (eval "$ac_compile") 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; then
2327   for ac_file in conftest.o conftest.obj conftest.*; do
2328   test -f "$ac_file" || continue;
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2331     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332        break;;
2333   esac
2334 done
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 fi
2348 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6; }
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367 #ifndef __GNUC__
2368        choke me
2369 #endif
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (ac_try="$ac_compile"
2377 case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382   (eval "$ac_compile") 2>conftest.er1
2383   ac_status=$?
2384   grep -v '^ *+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); } &&
2389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2390   { (case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_try") 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_try") 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   ac_compiler_gnu=yes
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414         ac_compiler_gnu=no
2415 fi
2416
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420 fi
2421 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   ac_save_c_werror_flag=$ac_c_werror_flag
2432    ac_c_werror_flag=yes
2433    ac_cv_prog_cc_g=no
2434    CFLAGS="-g"
2435    cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441
2442 int
2443 main ()
2444 {
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.$ac_objext
2451 if { (ac_try="$ac_compile"
2452 case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_compile") 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2465   { (case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_try") 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; } &&
2474          { ac_try='test -s conftest.$ac_objext'
2475   { (case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480   (eval "$ac_try") 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   ac_cv_prog_cc_g=yes
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489         CFLAGS=""
2490       cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496
2497 int
2498 main ()
2499 {
2500
2501   ;
2502   return 0;
2503 }
2504 _ACEOF
2505 rm -f conftest.$ac_objext
2506 if { (ac_try="$ac_compile"
2507 case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_compile") 2>conftest.er1
2513   ac_status=$?
2514   grep -v '^ *+' conftest.er1 >conftest.err
2515   rm -f conftest.er1
2516   cat conftest.err >&5
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2520   { (case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_try") 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_try") 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   :
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544         ac_c_werror_flag=$ac_save_c_werror_flag
2545          CFLAGS="-g"
2546          cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 int
2554 main ()
2555 {
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } &&
2575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576   { (case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_try") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_try") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595   ac_cv_prog_cc_g=yes
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600
2601 fi
2602
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 fi
2605
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610    ac_c_werror_flag=$ac_save_c_werror_flag
2611 fi
2612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2614 if test "$ac_test_CFLAGS" = set; then
2615   CFLAGS=$ac_save_CFLAGS
2616 elif test $ac_cv_prog_cc_g = yes; then
2617   if test "$GCC" = yes; then
2618     CFLAGS="-g -O2"
2619   else
2620     CFLAGS="-g"
2621   fi
2622 else
2623   if test "$GCC" = yes; then
2624     CFLAGS="-O2"
2625   else
2626     CFLAGS=
2627   fi
2628 fi
2629 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2630 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_cc_c89+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   ac_cv_prog_cc_c89=no
2635 ac_save_CC=$CC
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642 #include <stdarg.h>
2643 #include <stdio.h>
2644 #include <sys/types.h>
2645 #include <sys/stat.h>
2646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2647 struct buf { int x; };
2648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2649 static char *e (p, i)
2650      char **p;
2651      int i;
2652 {
2653   return p[i];
2654 }
2655 static char *f (char * (*g) (char **, int), char **p, ...)
2656 {
2657   char *s;
2658   va_list v;
2659   va_start (v,p);
2660   s = g (p, va_arg (v,int));
2661   va_end (v);
2662   return s;
2663 }
2664
2665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2666    function prototypes and stuff, but not '\xHH' hex character constants.
2667    These don't provoke an error unfortunately, instead are silently treated
2668    as 'x'.  The following induces an error, until -std is added to get
2669    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2670    array size at least.  It's necessary to write '\x00'==0 to get something
2671    that's true only with -std.  */
2672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673
2674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2675    inside strings and character constants.  */
2676 #define FOO(x) 'x'
2677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678
2679 int test (int i, double x);
2680 struct s1 {int (*f) (int a);};
2681 struct s2 {int (*f) (double a);};
2682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683 int argc;
2684 char **argv;
2685 int
2686 main ()
2687 {
2688 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2694         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 do
2696   CC="$ac_save_CC $ac_arg"
2697   rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712   { (case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_try") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_cv_prog_cc_c89=$ac_arg
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext
2740   test "x$ac_cv_prog_cc_c89" != "xno" && break
2741 done
2742 rm -f conftest.$ac_ext
2743 CC=$ac_save_CC
2744
2745 fi
2746 # AC_CACHE_VAL
2747 case "x$ac_cv_prog_cc_c89" in
2748   x)
2749     { echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6; } ;;
2751   xno)
2752     { echo "$as_me:$LINENO: result: unsupported" >&5
2753 echo "${ECHO_T}unsupported" >&6; } ;;
2754   *)
2755     CC="$CC $ac_cv_prog_cc_c89"
2756     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2758 esac
2759
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766
2767 ac_ext=cpp
2768 ac_cpp='$CXXCPP $CPPFLAGS'
2769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772 if test -z "$CXX"; then
2773   if test -n "$CCC"; then
2774     CXX=$CCC
2775   else
2776     if test -n "$ac_tool_prefix"; then
2777   for ac_prog in clang++ llvm-g++ g++
2778   do
2779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CXX+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$CXX"; then
2787   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794   for ac_exec_ext in '' $ac_executable_extensions; do
2795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2796     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 CXX=$ac_cv_prog_CXX
2807 if test -n "$CXX"; then
2808   { echo "$as_me:$LINENO: result: $CXX" >&5
2809 echo "${ECHO_T}$CXX" >&6; }
2810 else
2811   { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2814
2815
2816     test -n "$CXX" && break
2817   done
2818 fi
2819 if test -z "$CXX"; then
2820   ac_ct_CXX=$CXX
2821   for ac_prog in clang++ llvm-g++ g++
2822 do
2823   # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   if test -n "$ac_ct_CXX"; then
2831   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836   IFS=$as_save_IFS
2837   test -z "$as_dir" && as_dir=.
2838   for ac_exec_ext in '' $ac_executable_extensions; do
2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2840     ac_cv_prog_ac_ct_CXX="$ac_prog"
2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2851 if test -n "$ac_ct_CXX"; then
2852   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2853 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2854 else
2855   { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2858
2859
2860   test -n "$ac_ct_CXX" && break
2861 done
2862
2863   if test "x$ac_ct_CXX" = x; then
2864     CXX="g++"
2865   else
2866     case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet.  If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet.  If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876     CXX=$ac_ct_CXX
2877   fi
2878 fi
2879
2880   fi
2881 fi
2882 # Provide some information about the compiler.
2883 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2884 ac_compiler=`set X $ac_compile; echo $2`
2885 { (ac_try="$ac_compiler --version >&5"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_compiler --version >&5") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }
2895 { (ac_try="$ac_compiler -v >&5"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_compiler -v >&5") 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }
2905 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931 #ifndef __GNUC__
2932        choke me
2933 #endif
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compile") 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2954   { (case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_try") 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; } &&
2963          { ac_try='test -s conftest.$ac_objext'
2964   { (case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_try") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   ac_compiler_gnu=yes
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978         ac_compiler_gnu=no
2979 fi
2980
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2983
2984 fi
2985 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2986 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2987 GXX=`test $ac_compiler_gnu = yes && echo yes`
2988 ac_test_CXXFLAGS=${CXXFLAGS+set}
2989 ac_save_CXXFLAGS=$CXXFLAGS
2990 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2991 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2992 if test "${ac_cv_prog_cxx_g+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2996    ac_cxx_werror_flag=yes
2997    ac_cv_prog_cxx_g=no
2998    CXXFLAGS="-g"
2999    cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005
3006 int
3007 main ()
3008 {
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_compile") 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3029   { (case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_try") 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest.$ac_objext'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; }; then
3048   ac_cv_prog_cxx_g=yes
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053         CXXFLAGS=""
3054       cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060
3061 int
3062 main ()
3063 {
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3084   { (case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_try") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; } &&
3093          { ac_try='test -s conftest.$ac_objext'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   :
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3109          CXXFLAGS="-g"
3110          cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   ac_cv_prog_cxx_g=yes
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164
3165 fi
3166
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 fi
3169
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175 fi
3176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3177 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3178 if test "$ac_test_CXXFLAGS" = set; then
3179   CXXFLAGS=$ac_save_CXXFLAGS
3180 elif test $ac_cv_prog_cxx_g = yes; then
3181   if test "$GXX" = yes; then
3182     CXXFLAGS="-g -O2"
3183   else
3184     CXXFLAGS="-g"
3185   fi
3186 else
3187   if test "$GXX" = yes; then
3188     CXXFLAGS="-O2"
3189   else
3190     CXXFLAGS=
3191   fi
3192 fi
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3205 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3206 # On Suns, sometimes $CPP names a directory.
3207 if test -n "$CPP" && test -d "$CPP"; then
3208   CPP=
3209 fi
3210 if test -z "$CPP"; then
3211   if test "${ac_cv_prog_CPP+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214       # Double quotes because CPP needs to be expanded
3215     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216     do
3217       ac_preproc_ok=false
3218 for ac_c_preproc_warn_flag in '' yes
3219 do
3220   # Use a header file that comes with gcc, so configuring glibc
3221   # with a fresh cross-compiler works.
3222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223   # <limits.h> exists even on freestanding compilers.
3224   # On the NeXT, cc -E runs the code through the compiler's parser,
3225   # not just through cpp. "Syntax error" is here to catch this case.
3226   cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h.  */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h.  */
3232 #ifdef __STDC__
3233 # include <limits.h>
3234 #else
3235 # include <assert.h>
3236 #endif
3237                      Syntax error
3238 _ACEOF
3239 if { (ac_try="$ac_cpp conftest.$ac_ext"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } >/dev/null; then
3252   if test -s conftest.err; then
3253     ac_cpp_err=$ac_c_preproc_warn_flag
3254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255   else
3256     ac_cpp_err=
3257   fi
3258 else
3259   ac_cpp_err=yes
3260 fi
3261 if test -z "$ac_cpp_err"; then
3262   :
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267   # Broken: fails on valid input.
3268 continue
3269 fi
3270
3271 rm -f conftest.err conftest.$ac_ext
3272
3273   # OK, works on sane cases.  Now check whether nonexistent headers
3274   # can be detected and how.
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 #include <ac_nonexistent.h>
3282 _ACEOF
3283 if { (ac_try="$ac_cpp conftest.$ac_ext"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } >/dev/null; then
3296   if test -s conftest.err; then
3297     ac_cpp_err=$ac_c_preproc_warn_flag
3298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299   else
3300     ac_cpp_err=
3301   fi
3302 else
3303   ac_cpp_err=yes
3304 fi
3305 if test -z "$ac_cpp_err"; then
3306   # Broken: success on invalid input.
3307 continue
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312   # Passes both tests.
3313 ac_preproc_ok=:
3314 break
3315 fi
3316
3317 rm -f conftest.err conftest.$ac_ext
3318
3319 done
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3323   break
3324 fi
3325
3326     done
3327     ac_cv_prog_CPP=$CPP
3328
3329 fi
3330   CPP=$ac_cv_prog_CPP
3331 else
3332   ac_cv_prog_CPP=$CPP
3333 fi
3334 { echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6; }
3336 ac_preproc_ok=false
3337 for ac_c_preproc_warn_flag in '' yes
3338 do
3339   # Use a header file that comes with gcc, so configuring glibc
3340   # with a fresh cross-compiler works.
3341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342   # <limits.h> exists even on freestanding compilers.
3343   # On the NeXT, cc -E runs the code through the compiler's parser,
3344   # not just through cpp. "Syntax error" is here to catch this case.
3345   cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #ifdef __STDC__
3352 # include <limits.h>
3353 #else
3354 # include <assert.h>
3355 #endif
3356                      Syntax error
3357 _ACEOF
3358 if { (ac_try="$ac_cpp conftest.$ac_ext"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3365   ac_status=$?
3366   grep -v '^ *+' conftest.er1 >conftest.err
3367   rm -f conftest.er1
3368   cat conftest.err >&5
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); } >/dev/null; then
3371   if test -s conftest.err; then
3372     ac_cpp_err=$ac_c_preproc_warn_flag
3373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3374   else
3375     ac_cpp_err=
3376   fi
3377 else
3378   ac_cpp_err=yes
3379 fi
3380 if test -z "$ac_cpp_err"; then
3381   :
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386   # Broken: fails on valid input.
3387 continue
3388 fi
3389
3390 rm -f conftest.err conftest.$ac_ext
3391
3392   # OK, works on sane cases.  Now check whether nonexistent headers
3393   # can be detected and how.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 #include <ac_nonexistent.h>
3401 _ACEOF
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } >/dev/null; then
3415   if test -s conftest.err; then
3416     ac_cpp_err=$ac_c_preproc_warn_flag
3417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418   else
3419     ac_cpp_err=
3420   fi
3421 else
3422   ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425   # Broken: success on invalid input.
3426 continue
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431   # Passes both tests.
3432 ac_preproc_ok=:
3433 break
3434 fi
3435
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3442   :
3443 else
3444   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }
3449 fi
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458
3459
3460 if test -d ${srcdir}/projects/llvm-gcc ; then
3461   subdirs="$subdirs projects/llvm-gcc"
3462
3463 fi
3464
3465 if test -d ${srcdir}/projects/test-suite ; then
3466   subdirs="$subdirs projects/test-suite"
3467
3468 fi
3469
3470 if test -d ${srcdir}/projects/llvm-test ; then
3471   subdirs="$subdirs projects/llvm-test"
3472
3473 fi
3474
3475 if test -d ${srcdir}/projects/poolalloc ; then
3476   subdirs="$subdirs projects/poolalloc"
3477
3478 fi
3479
3480 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3481   subdirs="$subdirs projects/llvm-poolalloc"
3482
3483 fi
3484
3485 for i in `ls ${srcdir}/projects`
3486 do
3487   if test -d ${srcdir}/projects/${i} ; then
3488     case ${i} in
3489       sample)       subdirs="$subdirs projects/sample"
3490     ;;
3491       privbracket)  subdirs="$subdirs projects/privbracket"
3492  ;;
3493       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3494  ;;
3495       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3496 ;;
3497       llvm-java)    subdirs="$subdirs projects/llvm-java"
3498  ;;
3499       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3500    ;;
3501       safecode)     subdirs="$subdirs projects/safecode"
3502  ;;
3503       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3504  ;;
3505       compiler-rt)       ;;
3506       llvm-gcc)       ;;
3507       test-suite)     ;;
3508       llvm-test)      ;;
3509       poolalloc)      ;;
3510       llvm-poolalloc) ;;
3511       *)
3512         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3513 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3514         ;;
3515     esac
3516   fi
3517 done
3518
3519 # Check whether --enable-polly was given.
3520 if test "${enable_polly+set}" = set; then
3521   enableval=$enable_polly;
3522 else
3523   enableval=default
3524 fi
3525
3526 case "$enableval" in
3527   yes) ENABLE_POLLY=1
3528  ;;
3529   no)  ENABLE_POLLY=0
3530  ;;
3531   default) ENABLE_POLLY=1
3532  ;;
3533   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3534 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3535    { (exit 1); exit 1; }; } ;;
3536 esac
3537
3538
3539 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3540   LLVM_HAS_POLLY=1
3541
3542   subdirs="$subdirs tools/polly"
3543
3544 fi
3545
3546
3547 # Make sure we can run config.sub.
3548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3550 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3551    { (exit 1); exit 1; }; }
3552
3553 { echo "$as_me:$LINENO: checking build system type" >&5
3554 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3555 if test "${ac_cv_build+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_build_alias=$build_alias
3559 test "x$ac_build_alias" = x &&
3560   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561 test "x$ac_build_alias" = x &&
3562   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3564    { (exit 1); exit 1; }; }
3565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3566   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3567 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3568    { (exit 1); exit 1; }; }
3569
3570 fi
3571 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3572 echo "${ECHO_T}$ac_cv_build" >&6; }
3573 case $ac_cv_build in
3574 *-*-*) ;;
3575 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3576 echo "$as_me: error: invalid value of canonical build" >&2;}
3577    { (exit 1); exit 1; }; };;
3578 esac
3579 build=$ac_cv_build
3580 ac_save_IFS=$IFS; IFS='-'
3581 set x $ac_cv_build
3582 shift
3583 build_cpu=$1
3584 build_vendor=$2
3585 shift; shift
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3588 build_os=$*
3589 IFS=$ac_save_IFS
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591
3592
3593 { echo "$as_me:$LINENO: checking host system type" >&5
3594 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3595 if test "${ac_cv_host+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   if test "x$host_alias" = x; then
3599   ac_cv_host=$ac_cv_build
3600 else
3601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3603 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3604    { (exit 1); exit 1; }; }
3605 fi
3606
3607 fi
3608 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3609 echo "${ECHO_T}$ac_cv_host" >&6; }
3610 case $ac_cv_host in
3611 *-*-*) ;;
3612 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3613 echo "$as_me: error: invalid value of canonical host" >&2;}
3614    { (exit 1); exit 1; }; };;
3615 esac
3616 host=$ac_cv_host
3617 ac_save_IFS=$IFS; IFS='-'
3618 set x $ac_cv_host
3619 shift
3620 host_cpu=$1
3621 host_vendor=$2
3622 shift; shift
3623 # Remember, the first character of IFS is used to create $*,
3624 # except with old shells:
3625 host_os=$*
3626 IFS=$ac_save_IFS
3627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628
3629
3630 { echo "$as_me:$LINENO: checking target system type" >&5
3631 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3632 if test "${ac_cv_target+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   if test "x$target_alias" = x; then
3636   ac_cv_target=$ac_cv_host
3637 else
3638   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3639     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3640 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643
3644 fi
3645 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3646 echo "${ECHO_T}$ac_cv_target" >&6; }
3647 case $ac_cv_target in
3648 *-*-*) ;;
3649 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3650 echo "$as_me: error: invalid value of canonical target" >&2;}
3651    { (exit 1); exit 1; }; };;
3652 esac
3653 target=$ac_cv_target
3654 ac_save_IFS=$IFS; IFS='-'
3655 set x $ac_cv_target
3656 shift
3657 target_cpu=$1
3658 target_vendor=$2
3659 shift; shift
3660 # Remember, the first character of IFS is used to create $*,
3661 # except with old shells:
3662 target_os=$*
3663 IFS=$ac_save_IFS
3664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3665
3666
3667 # The aliases save the names the user supplied, while $host etc.
3668 # will get canonicalized.
3669 test -n "$target_alias" &&
3670   test "$program_prefix$program_suffix$program_transform_name" = \
3671     NONENONEs,x,x, &&
3672   program_prefix=${target_alias}-
3673
3674 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3675 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3676 if test "${llvm_cv_os_type+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   case $host in
3680   *-*-aix*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="AIX"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-irix*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="IRIX"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-cygwin*)
3691     llvm_cv_link_all_option="-Wl,--whole-archive"
3692     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693     llvm_cv_os_type="Cygwin"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-darwin*)
3696     llvm_cv_link_all_option="-Wl,-all_load"
3697     llvm_cv_no_link_all_option="-Wl,-noall_load"
3698     llvm_cv_os_type="Darwin"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-minix*)
3701     llvm_cv_link_all_option="-Wl,-all_load"
3702     llvm_cv_no_link_all_option="-Wl,-noall_load"
3703     llvm_cv_os_type="Minix"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-freebsd* | *-*-kfreebsd-gnu)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="FreeBSD"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-*-openbsd*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="OpenBSD"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-*-netbsd*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="NetBSD"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-*-dragonfly*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="DragonFly"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-*-hpux*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="HP-UX"
3729     llvm_cv_platform_type="Unix" ;;
3730   *-*-interix*)
3731     llvm_cv_link_all_option="-Wl,--whole-archive"
3732     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733     llvm_cv_os_type="Interix"
3734     llvm_cv_platform_type="Unix" ;;
3735   *-*-linux*)
3736     llvm_cv_link_all_option="-Wl,--whole-archive"
3737     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738     llvm_cv_os_type="Linux"
3739     llvm_cv_platform_type="Unix" ;;
3740   *-*-gnu*)
3741     llvm_cv_link_all_option="-Wl,--whole-archive"
3742     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743     llvm_cv_os_type="GNU"
3744     llvm_cv_platform_type="Unix" ;;
3745   *-*-solaris*)
3746     llvm_cv_link_all_option="-Wl,-z,allextract"
3747     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3748     llvm_cv_os_type="SunOS"
3749     llvm_cv_platform_type="Unix" ;;
3750   *-*-auroraux*)
3751     llvm_cv_link_all_option="-Wl,-z,allextract"
3752     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3753     llvm_cv_os_type="AuroraUX"
3754     llvm_cv_platform_type="Unix" ;;
3755   *-*-win32*)
3756     llvm_cv_link_all_option="-Wl,--whole-archive"
3757     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758     llvm_cv_os_type="Win32"
3759     llvm_cv_platform_type="Win32" ;;
3760   *-*-mingw*)
3761     llvm_cv_link_all_option="-Wl,--whole-archive"
3762     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763     llvm_cv_os_type="MingW"
3764     llvm_cv_platform_type="Win32" ;;
3765   *-*-haiku*)
3766     llvm_cv_link_all_option="-Wl,--whole-archive"
3767     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768     llvm_cv_os_type="Haiku"
3769     llvm_cv_platform_type="Unix" ;;
3770   *-unknown-eabi*)
3771     llvm_cv_link_all_option="-Wl,--whole-archive"
3772     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773     llvm_cv_os_type="Freestanding"
3774     llvm_cv_platform_type="Unix" ;;
3775   *-unknown-elf*)
3776     llvm_cv_link_all_option="-Wl,--whole-archive"
3777     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778     llvm_cv_os_type="Freestanding"
3779     llvm_cv_platform_type="Unix" ;;
3780   *)
3781     llvm_cv_link_all_option=""
3782     llvm_cv_no_link_all_option=""
3783     llvm_cv_os_type="Unknown"
3784     llvm_cv_platform_type="Unknown" ;;
3785 esac
3786 fi
3787 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3789
3790 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3791 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3792 if test "${llvm_cv_target_os_type+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   case $target in
3796   *-*-aix*)
3797     llvm_cv_target_os_type="AIX" ;;
3798   *-*-irix*)
3799     llvm_cv_target_os_type="IRIX" ;;
3800   *-*-cygwin*)
3801     llvm_cv_target_os_type="Cygwin" ;;
3802   *-*-darwin*)
3803     llvm_cv_target_os_type="Darwin" ;;
3804   *-*-minix*)
3805     llvm_cv_target_os_type="Minix" ;;
3806   *-*-freebsd* | *-*-kfreebsd-gnu)
3807     llvm_cv_target_os_type="FreeBSD" ;;
3808   *-*-openbsd*)
3809     llvm_cv_target_os_type="OpenBSD" ;;
3810   *-*-netbsd*)
3811     llvm_cv_target_os_type="NetBSD" ;;
3812   *-*-dragonfly*)
3813     llvm_cv_target_os_type="DragonFly" ;;
3814   *-*-hpux*)
3815     llvm_cv_target_os_type="HP-UX" ;;
3816   *-*-interix*)
3817     llvm_cv_target_os_type="Interix" ;;
3818   *-*-linux*)
3819     llvm_cv_target_os_type="Linux" ;;
3820   *-*-gnu*)
3821     llvm_cv_target_os_type="GNU" ;;
3822   *-*-solaris*)
3823     llvm_cv_target_os_type="SunOS" ;;
3824   *-*-auroraux*)
3825     llvm_cv_target_os_type="AuroraUX" ;;
3826   *-*-win32*)
3827     llvm_cv_target_os_type="Win32" ;;
3828   *-*-mingw*)
3829     llvm_cv_target_os_type="MingW" ;;
3830   *-*-haiku*)
3831     llvm_cv_target_os_type="Haiku" ;;
3832   *-*-rtems*)
3833     llvm_cv_target_os_type="RTEMS" ;;
3834   *-*-nacl*)
3835     llvm_cv_target_os_type="NativeClient" ;;
3836   *-unknown-eabi*)
3837     llvm_cv_target_os_type="Freestanding" ;;
3838   *)
3839     llvm_cv_target_os_type="Unknown" ;;
3840 esac
3841 fi
3842 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844
3845 if test "$llvm_cv_os_type" = "Unknown" ; then
3846   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848    { (exit 1); exit 1; }; }
3849 fi
3850
3851 OS=$llvm_cv_os_type
3852
3853 HOST_OS=$llvm_cv_os_type
3854
3855 TARGET_OS=$llvm_cv_target_os_type
3856
3857
3858 LINKALL=$llvm_cv_link_all_option
3859
3860 NOLINKALL=$llvm_cv_no_link_all_option
3861
3862
3863 case $llvm_cv_platform_type in
3864   Unix)
3865
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_UNIX 1
3868 _ACEOF
3869
3870     LLVM_ON_UNIX=1
3871
3872     LLVM_ON_WIN32=0
3873
3874     ;;
3875   Win32)
3876
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_WIN32 1
3879 _ACEOF
3880
3881     LLVM_ON_UNIX=0
3882
3883     LLVM_ON_WIN32=1
3884
3885     ;;
3886 esac
3887
3888 { echo "$as_me:$LINENO: checking target architecture" >&5
3889 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890 if test "${llvm_cv_target_arch+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   case $target in
3894   i?86-*)                 llvm_cv_target_arch="x86" ;;
3895   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3896   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3897   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3898   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3899   mips-*)                 llvm_cv_target_arch="Mips" ;;
3900   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3901   xcore-*)                llvm_cv_target_arch="XCore" ;;
3902   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3903   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3904   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3905   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3906   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3907   *)                      llvm_cv_target_arch="Unknown" ;;
3908 esac
3909 fi
3910 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912
3913 if test "$llvm_cv_target_arch" = "Unknown" ; then
3914   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916 fi
3917
3918 case "$llvm_cv_target_arch" in
3919     x86)     LLVM_NATIVE_ARCH="X86" ;;
3920     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3921     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922 esac
3923
3924 ARCH=$llvm_cv_target_arch
3925
3926
3927
3928
3929 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3930 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   # Extract the first word of "grep ggrep" to use in msg output
3935 if test -z "$GREP"; then
3936 set dummy grep ggrep; ac_prog_name=$2
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   ac_path_GREP_found=false
3941 # Loop through the user's path and test for each of PROGNAME-LIST
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 do
3945   IFS=$as_save_IFS
3946   test -z "$as_dir" && as_dir=.
3947   for ac_prog in grep ggrep; do
3948   for ac_exec_ext in '' $ac_executable_extensions; do
3949     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3950     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3951     # Check for GNU ac_path_GREP and select it if it is found.
3952   # Check for GNU $ac_path_GREP
3953 case `"$ac_path_GREP" --version 2>&1` in
3954 *GNU*)
3955   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956 *)
3957   ac_count=0
3958   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3959   while :
3960   do
3961     cat "conftest.in" "conftest.in" >"conftest.tmp"
3962     mv "conftest.tmp" "conftest.in"
3963     cp "conftest.in" "conftest.nl"
3964     echo 'GREP' >> "conftest.nl"
3965     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967     ac_count=`expr $ac_count + 1`
3968     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3969       # Best one so far, save it but keep looking for a better one
3970       ac_cv_path_GREP="$ac_path_GREP"
3971       ac_path_GREP_max=$ac_count
3972     fi
3973     # 10*(2^10) chars as input seems more than enough
3974     test $ac_count -gt 10 && break
3975   done
3976   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977 esac
3978
3979
3980     $ac_path_GREP_found && break 3
3981   done
3982 done
3983
3984 done
3985 IFS=$as_save_IFS
3986
3987
3988 fi
3989
3990 GREP="$ac_cv_path_GREP"
3991 if test -z "$GREP"; then
3992   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3993 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3994    { (exit 1); exit 1; }; }
3995 fi
3996
3997 else
3998   ac_cv_path_GREP=$GREP
3999 fi
4000
4001
4002 fi
4003 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4004 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4005  GREP="$ac_cv_path_GREP"
4006
4007
4008 { echo "$as_me:$LINENO: checking for egrep" >&5
4009 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4010 if test "${ac_cv_path_EGREP+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4014    then ac_cv_path_EGREP="$GREP -E"
4015    else
4016      # Extract the first word of "egrep" to use in msg output
4017 if test -z "$EGREP"; then
4018 set dummy egrep; ac_prog_name=$2
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   ac_path_EGREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026 do
4027   IFS=$as_save_IFS
4028   test -z "$as_dir" && as_dir=.
4029   for ac_prog in egrep; do
4030   for ac_exec_ext in '' $ac_executable_extensions; do
4031     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4032     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4033     # Check for GNU ac_path_EGREP and select it if it is found.
4034   # Check for GNU $ac_path_EGREP
4035 case `"$ac_path_EGREP" --version 2>&1` in
4036 *GNU*)
4037   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038 *)
4039   ac_count=0
4040   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4041   while :
4042   do
4043     cat "conftest.in" "conftest.in" >"conftest.tmp"
4044     mv "conftest.tmp" "conftest.in"
4045     cp "conftest.in" "conftest.nl"
4046     echo 'EGREP' >> "conftest.nl"
4047     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049     ac_count=`expr $ac_count + 1`
4050     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051       # Best one so far, save it but keep looking for a better one
4052       ac_cv_path_EGREP="$ac_path_EGREP"
4053       ac_path_EGREP_max=$ac_count
4054     fi
4055     # 10*(2^10) chars as input seems more than enough
4056     test $ac_count -gt 10 && break
4057   done
4058   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 esac
4060
4061
4062     $ac_path_EGREP_found && break 3
4063   done
4064 done
4065
4066 done
4067 IFS=$as_save_IFS
4068
4069
4070 fi
4071
4072 EGREP="$ac_cv_path_EGREP"
4073 if test -z "$EGREP"; then
4074   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076    { (exit 1); exit 1; }; }
4077 fi
4078
4079 else
4080   ac_cv_path_EGREP=$EGREP
4081 fi
4082
4083
4084    fi
4085 fi
4086 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4087 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4088  EGREP="$ac_cv_path_EGREP"
4089
4090
4091 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <stdlib.h>
4103 #include <stdarg.h>
4104 #include <string.h>
4105 #include <float.h>
4106
4107 int
4108 main ()
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (ac_try="$ac_compile"
4117 case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122   (eval "$ac_compile") 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4130   { (case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_try") 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; } &&
4139          { ac_try='test -s conftest.$ac_objext'
4140   { (case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_try") 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; }; then
4149   ac_cv_header_stdc=yes
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154         ac_cv_header_stdc=no
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <string.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "memchr" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <stdlib.h>
4189
4190 _ACEOF
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192   $EGREP "free" >/dev/null 2>&1; then
4193   :
4194 else
4195   ac_cv_header_stdc=no
4196 fi
4197 rm -f conftest*
4198
4199 fi
4200
4201 if test $ac_cv_header_stdc = yes; then
4202   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4203   if test "$cross_compiling" = yes; then
4204   :
4205 else
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <ctype.h>
4213 #include <stdlib.h>
4214 #if ((' ' & 0x0FF) == 0x020)
4215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217 #else
4218 # define ISLOWER(c) \
4219                    (('a' <= (c) && (c) <= 'i') \
4220                      || ('j' <= (c) && (c) <= 'r') \
4221                      || ('s' <= (c) && (c) <= 'z'))
4222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4223 #endif
4224
4225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4226 int
4227 main ()
4228 {
4229   int i;
4230   for (i = 0; i < 256; i++)
4231     if (XOR (islower (i), ISLOWER (i))
4232         || toupper (i) != TOUPPER (i))
4233       return 2;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest$ac_exeext
4238 if { (ac_try="$ac_link"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_link") 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248   { (case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253   (eval "$ac_try") 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; }; then
4257   :
4258 else
4259   echo "$as_me: program exited with status $ac_status" >&5
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 ( exit $ac_status )
4264 ac_cv_header_stdc=no
4265 fi
4266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4267 fi
4268
4269
4270 fi
4271 fi
4272 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4274 if test $ac_cv_header_stdc = yes; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define STDC_HEADERS 1
4278 _ACEOF
4279
4280 fi
4281
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293                   inttypes.h stdint.h unistd.h
4294 do
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 $ac_includes_default
4308
4309 #include <$ac_header>
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (ac_try="$ac_compile"
4313 case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_compile") 2>conftest.er1
4319   ac_status=$?
4320   grep -v '^ *+' conftest.er1 >conftest.err
4321   rm -f conftest.er1
4322   cat conftest.err >&5
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); } &&
4325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326   { (case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; } &&
4335          { ac_try='test -s conftest.$ac_objext'
4336   { (case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_try") 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }; }; then
4345   eval "$as_ac_Header=yes"
4346 else
4347   echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350         eval "$as_ac_Header=no"
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 ac_res=`eval echo '${'$as_ac_Header'}'`
4356                { echo "$as_me:$LINENO: result: $ac_res" >&5
4357 echo "${ECHO_T}$ac_res" >&6; }
4358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4359   cat >>confdefs.h <<_ACEOF
4360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361 _ACEOF
4362
4363 fi
4364
4365 done
4366
4367
4368 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4369 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4370 if test "${ac_cv_c_bigendian+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   # See if sys/param.h defines the BYTE_ORDER macro.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4382
4383 int
4384 main ()
4385 {
4386 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4387  bogus endian macros
4388 #endif
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   # It does; now see whether it defined to BIG_ENDIAN or not.
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435 #include <sys/types.h>
4436 #include <sys/param.h>
4437
4438 int
4439 main ()
4440 {
4441 #if BYTE_ORDER != BIG_ENDIAN
4442  not big endian
4443 #endif
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (ac_try="$ac_compile"
4451 case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456   (eval "$ac_compile") 2>conftest.er1
4457   ac_status=$?
4458   grep -v '^ *+' conftest.er1 >conftest.err
4459   rm -f conftest.er1
4460   cat conftest.err >&5
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4464   { (case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469   (eval "$ac_try") 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; } &&
4473          { ac_try='test -s conftest.$ac_objext'
4474   { (case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; }; then
4483   ac_cv_c_bigendian=yes
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488         ac_cv_c_bigendian=no
4489 fi
4490
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496         # It does not; compile a test program.
4497 if test "$cross_compiling" = yes; then
4498   # try to guess the endianness by grepping values into an object file
4499   ac_cv_c_bigendian=unknown
4500   cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4507 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4508 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4509 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4510 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4511 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4512 int
4513 main ()
4514 {
4515  _ascii (); _ebcdic ();
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 rm -f conftest.$ac_objext
4521 if { (ac_try="$ac_compile"
4522 case "(($ac_try" in
4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524   *) ac_try_echo=$ac_try;;
4525 esac
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527   (eval "$ac_compile") 2>conftest.er1
4528   ac_status=$?
4529   grep -v '^ *+' conftest.er1 >conftest.err
4530   rm -f conftest.er1
4531   cat conftest.err >&5
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4535   { (case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_try") 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; } &&
4544          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4554   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4555   ac_cv_c_bigendian=yes
4556 fi
4557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4558   if test "$ac_cv_c_bigendian" = unknown; then
4559     ac_cv_c_bigendian=no
4560   else
4561     # finding both strings is unlikely to happen, but who knows?
4562     ac_cv_c_bigendian=unknown
4563   fi
4564 fi
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 else
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 $ac_includes_default
4581 int
4582 main ()
4583 {
4584
4585   /* Are we little or big endian?  From Harbison&Steele.  */
4586   union
4587   {
4588     long int l;
4589     char c[sizeof (long int)];
4590   } u;
4591   u.l = 1;
4592   return u.c[sizeof (long int) - 1] == 1;
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
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_link") 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609   { (case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_try") 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_cv_c_bigendian=no
4619 else
4620   echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ( exit $ac_status )
4625 ac_cv_c_bigendian=yes
4626 fi
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4628 fi
4629
4630
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4636 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4637 case $ac_cv_c_bigendian in
4638   yes)
4639     ENDIAN=big
4640  ;;
4641   no)
4642     ENDIAN=little
4643  ;;
4644   *)
4645     { { echo "$as_me:$LINENO: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4647 echo "$as_me: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4649    { (exit 1); exit 1; }; } ;;
4650 esac
4651
4652
4653 if test "$cross_compiling" = yes; then
4654   LLVM_CROSS_COMPILING=1
4655
4656
4657 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4658 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4659 if test "${ac_cv_build_exeext+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4663   ac_cv_build_exeext=.exe
4664 else
4665   ac_build_prefix=${build_alias}-
4666
4667   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4668 set dummy ${ac_build_prefix}gcc; ac_word=$2
4669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   if test -n "$BUILD_CC"; then
4675   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682   for ac_exec_ext in '' $ac_executable_extensions; do
4683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4684     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689 done
4690 IFS=$as_save_IFS
4691
4692 fi
4693 fi
4694 BUILD_CC=$ac_cv_prog_BUILD_CC
4695 if test -n "$BUILD_CC"; then
4696   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4697 echo "${ECHO_T}$BUILD_CC" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 fi
4702
4703
4704   if test -z "$BUILD_CC"; then
4705      # Extract the first word of "gcc", so it can be a program name with args.
4706 set dummy gcc; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   if test -n "$BUILD_CC"; then
4713   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720   for ac_exec_ext in '' $ac_executable_extensions; do
4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4722     ac_cv_prog_BUILD_CC="gcc"
4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724     break 2
4725   fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi
4731 fi
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742      if test -z "$BUILD_CC"; then
4743        # Extract the first word of "cc", so it can be a program name with args.
4744 set dummy cc; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   if test -n "$BUILD_CC"; then
4751   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4752 else
4753   ac_prog_rejected=no
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759   for ac_exec_ext in '' $ac_executable_extensions; do
4760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4761     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762        ac_prog_rejected=yes
4763        continue
4764      fi
4765     ac_cv_prog_BUILD_CC="cc"
4766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773 if test $ac_prog_rejected = yes; then
4774   # We found a bogon in the path, so make sure we never use it.
4775   set dummy $ac_cv_prog_BUILD_CC
4776   shift
4777   if test $# != 0; then
4778     # We chose a different compiler from the bogus one.
4779     # However, it has the same basename, so the bogon will be chosen
4780     # first if we set BUILD_CC to just the basename; use the full file name.
4781     shift
4782     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4783   fi
4784 fi
4785 fi
4786 fi
4787 BUILD_CC=$ac_cv_prog_BUILD_CC
4788 if test -n "$BUILD_CC"; then
4789   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4790 echo "${ECHO_T}$BUILD_CC" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797      fi
4798   fi
4799   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4800 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4801    { (exit 1); exit 1; }; }
4802   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4803   rm -f conftest*
4804   echo 'int main () { return 0; }' > conftest.$ac_ext
4805   ac_cv_build_exeext=
4806   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4807   (eval $ac_build_link) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; then
4811     for file in conftest.*; do
4812       case $file in
4813       *.c | *.o | *.obj | *.dSYM) ;;
4814       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4815       esac
4816     done
4817   else
4818     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4819 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4820    { (exit 1); exit 1; }; }
4821   fi
4822   rm -f conftest*
4823   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4824 fi
4825 fi
4826
4827 BUILD_EXEEXT=""
4828 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4829 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4830 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4831 ac_build_exeext=$BUILD_EXEEXT
4832
4833   ac_build_prefix=${build_alias}-
4834   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4835 set dummy ${ac_build_prefix}g++; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   if test -n "$BUILD_CXX"; then
4842   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4851     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857 IFS=$as_save_IFS
4858
4859 fi
4860 fi
4861 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4862 if test -n "$BUILD_CXX"; then
4863   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4864 echo "${ECHO_T}$BUILD_CXX" >&6; }
4865 else
4866   { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4868 fi
4869
4870
4871   if test -z "$BUILD_CXX"; then
4872      # Extract the first word of "g++", so it can be a program name with args.
4873 set dummy g++; ac_word=$2
4874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4876 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   if test -n "$BUILD_CXX"; then
4880   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885   IFS=$as_save_IFS
4886   test -z "$as_dir" && as_dir=.
4887   for ac_exec_ext in '' $ac_executable_extensions; do
4888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4889     ac_cv_prog_BUILD_CXX="g++"
4890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891     break 2
4892   fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909      if test -z "$BUILD_CXX"; then
4910        # Extract the first word of "c++", so it can be a program name with args.
4911 set dummy c++; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   if test -n "$BUILD_CXX"; then
4918   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4919 else
4920   ac_prog_rejected=no
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_exec_ext in '' $ac_executable_extensions; do
4927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4928     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4929        ac_prog_rejected=yes
4930        continue
4931      fi
4932     ac_cv_prog_BUILD_CXX="c++"
4933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 if test $ac_prog_rejected = yes; then
4941   # We found a bogon in the path, so make sure we never use it.
4942   set dummy $ac_cv_prog_BUILD_CXX
4943   shift
4944   if test $# != 0; then
4945     # We chose a different compiler from the bogus one.
4946     # However, it has the same basename, so the bogon will be chosen
4947     # first if we set BUILD_CXX to just the basename; use the full file name.
4948     shift
4949     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4950   fi
4951 fi
4952 fi
4953 fi
4954 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4955 if test -n "$BUILD_CXX"; then
4956   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4957 echo "${ECHO_T}$BUILD_CXX" >&6; }
4958 else
4959   { echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6; }
4961 fi
4962
4963
4964      fi
4965   fi
4966 else
4967   LLVM_CROSS_COMPILING=0
4968
4969 fi
4970
4971 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4972   cvsbuild="yes"
4973   optimize="no"
4974   CVSBUILD=CVSBUILD=1
4975
4976 else
4977   cvsbuild="no"
4978   optimize="yes"
4979 fi
4980
4981
4982 # Check whether --enable-libcpp was given.
4983 if test "${enable_libcpp+set}" = set; then
4984   enableval=$enable_libcpp;
4985 else
4986   enableval=default
4987 fi
4988
4989 case "$enableval" in
4990   yes) ENABLE_LIBCPP=1
4991  ;;
4992   no)  ENABLE_LIBCPP=0
4993  ;;
4994   default) ENABLE_LIBCPP=0
4995 ;;
4996   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4997 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4998    { (exit 1); exit 1; }; } ;;
4999 esac
5000
5001 # Check whether --enable-optimized was given.
5002 if test "${enable_optimized+set}" = set; then
5003   enableval=$enable_optimized;
5004 else
5005   enableval=$optimize
5006 fi
5007
5008 if test ${enableval} = "no" ; then
5009   ENABLE_OPTIMIZED=
5010
5011 else
5012   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5013
5014 fi
5015
5016 # Check whether --enable-profiling was given.
5017 if test "${enable_profiling+set}" = set; then
5018   enableval=$enable_profiling;
5019 else
5020   enableval="no"
5021 fi
5022
5023 if test ${enableval} = "no" ; then
5024   ENABLE_PROFILING=
5025
5026 else
5027   ENABLE_PROFILING=ENABLE_PROFILING=1
5028
5029 fi
5030
5031 # Check whether --enable-assertions was given.
5032 if test "${enable_assertions+set}" = set; then
5033   enableval=$enable_assertions;
5034 else
5035   enableval="yes"
5036 fi
5037
5038 if test ${enableval} = "yes" ; then
5039   DISABLE_ASSERTIONS=
5040
5041 else
5042   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5043
5044 fi
5045
5046 # Check whether --enable-expensive-checks was given.
5047 if test "${enable_expensive_checks+set}" = set; then
5048   enableval=$enable_expensive_checks;
5049 else
5050   enableval="no"
5051 fi
5052
5053 if test ${enableval} = "yes" ; then
5054   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5055
5056   EXPENSIVE_CHECKS=yes
5057
5058 else
5059   ENABLE_EXPENSIVE_CHECKS=
5060
5061   EXPENSIVE_CHECKS=no
5062
5063 fi
5064
5065 # Check whether --enable-debug-runtime was given.
5066 if test "${enable_debug_runtime+set}" = set; then
5067   enableval=$enable_debug_runtime;
5068 else
5069   enableval=no
5070 fi
5071
5072 if test ${enableval} = "no" ; then
5073   DEBUG_RUNTIME=
5074
5075 else
5076   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5077
5078 fi
5079
5080 # Check whether --enable-debug-symbols was given.
5081 if test "${enable_debug_symbols+set}" = set; then
5082   enableval=$enable_debug_symbols;
5083 else
5084   enableval=no
5085 fi
5086
5087 if test ${enableval} = "no" ; then
5088   DEBUG_SYMBOLS=
5089
5090 else
5091   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5092
5093 fi
5094
5095 # Check whether --enable-jit was given.
5096 if test "${enable_jit+set}" = set; then
5097   enableval=$enable_jit;
5098 else
5099   enableval=default
5100 fi
5101
5102 if test ${enableval} = "no"
5103 then
5104   JIT=
5105
5106 else
5107   case "$llvm_cv_target_arch" in
5108     x86)         TARGET_HAS_JIT=1
5109  ;;
5110     Sparc)       TARGET_HAS_JIT=0
5111  ;;
5112     PowerPC)     TARGET_HAS_JIT=1
5113  ;;
5114     x86_64)      TARGET_HAS_JIT=1
5115  ;;
5116     ARM)         TARGET_HAS_JIT=1
5117  ;;
5118     Mips)        TARGET_HAS_JIT=1
5119  ;;
5120     XCore)       TARGET_HAS_JIT=0
5121  ;;
5122     MSP430)      TARGET_HAS_JIT=0
5123  ;;
5124     Hexagon)     TARGET_HAS_JIT=0
5125  ;;
5126     MBlaze)      TARGET_HAS_JIT=0
5127  ;;
5128     PTX)         TARGET_HAS_JIT=0
5129  ;;
5130     NVPTX)       TARGET_HAS_JIT=0
5131  ;;
5132     *)           TARGET_HAS_JIT=0
5133  ;;
5134   esac
5135 fi
5136
5137 # Check whether --enable-docs was given.
5138 if test "${enable_docs+set}" = set; then
5139   enableval=$enable_docs;
5140 else
5141   enableval=default
5142 fi
5143
5144 case "$enableval" in
5145   yes) ENABLE_DOCS=1
5146  ;;
5147   no)  ENABLE_DOCS=0
5148  ;;
5149   default) ENABLE_DOCS=1
5150  ;;
5151   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5153    { (exit 1); exit 1; }; } ;;
5154 esac
5155
5156 # Check whether --enable-doxygen was given.
5157 if test "${enable_doxygen+set}" = set; then
5158   enableval=$enable_doxygen;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_DOXYGEN=1
5165  ;;
5166   no)  ENABLE_DOXYGEN=0
5167  ;;
5168   default) ENABLE_DOXYGEN=0
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-threads was given.
5176 if test "${enable_threads+set}" = set; then
5177   enableval=$enable_threads;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) LLVM_ENABLE_THREADS=1
5184  ;;
5185   no)  LLVM_ENABLE_THREADS=0
5186  ;;
5187   default) LLVM_ENABLE_THREADS=1
5188  ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5196 _ACEOF
5197
5198
5199 # Check whether --enable-pthreads was given.
5200 if test "${enable_pthreads+set}" = set; then
5201   enableval=$enable_pthreads;
5202 else
5203   enableval=default
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_PTHREADS=1
5208  ;;
5209   no)  ENABLE_PTHREADS=0
5210  ;;
5211   default) ENABLE_PTHREADS=1
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-pic was given.
5219 if test "${enable_pic+set}" = set; then
5220   enableval=$enable_pic;
5221 else
5222   enableval=default
5223 fi
5224
5225 case "$enableval" in
5226   yes) ENABLE_PIC=1
5227  ;;
5228   no)  ENABLE_PIC=0
5229  ;;
5230   default) ENABLE_PIC=1
5231  ;;
5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5234    { (exit 1); exit 1; }; } ;;
5235 esac
5236
5237 cat >>confdefs.h <<_ACEOF
5238 #define ENABLE_PIC $ENABLE_PIC
5239 _ACEOF
5240
5241
5242 # Check whether --enable-shared was given.
5243 if test "${enable_shared+set}" = set; then
5244   enableval=$enable_shared;
5245 else
5246   enableval=default
5247 fi
5248
5249 case "$enableval" in
5250   yes) ENABLE_SHARED=1
5251  ;;
5252   no)  ENABLE_SHARED=0
5253  ;;
5254   default) ENABLE_SHARED=0
5255  ;;
5256   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5258    { (exit 1); exit 1; }; } ;;
5259 esac
5260
5261 # Check whether --enable-embed-stdcxx was given.
5262 if test "${enable_embed_stdcxx+set}" = set; then
5263   enableval=$enable_embed_stdcxx;
5264 else
5265   enableval=default
5266 fi
5267
5268 case "$enableval" in
5269   yes) ENABLE_EMBED_STDCXX=1
5270  ;;
5271   no)  ENABLE_EMBED_STDCXX=0
5272  ;;
5273   default) ENABLE_EMBED_STDCXX=0
5274  ;;
5275   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278 esac
5279
5280 # Check whether --enable-timestamps was given.
5281 if test "${enable_timestamps+set}" = set; then
5282   enableval=$enable_timestamps;
5283 else
5284   enableval=default
5285 fi
5286
5287 case "$enableval" in
5288   yes) ENABLE_TIMESTAMPS=1
5289  ;;
5290   no)  ENABLE_TIMESTAMPS=0
5291  ;;
5292   default) ENABLE_TIMESTAMPS=1
5293  ;;
5294   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5296    { (exit 1); exit 1; }; } ;;
5297 esac
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5301 _ACEOF
5302
5303
5304 TARGETS_TO_BUILD=""
5305 # Check whether --enable-targets was given.
5306 if test "${enable_targets+set}" = set; then
5307   enableval=$enable_targets;
5308 else
5309   enableval=all
5310 fi
5311
5312 if test "$enableval" = host-only ; then
5313   enableval=host
5314 fi
5315 case "$enableval" in
5316   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5317   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5318       case "$a_target" in
5319         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5320         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5322         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5323         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5324         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5325         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5326         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5327         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5328         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5329         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5330         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5333         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5334         host) case "$llvm_cv_target_arch" in
5335             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5342             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5343             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5345             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5346             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5347             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5348             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5349 echo "$as_me: error: Can not set target to build" >&2;}
5350    { (exit 1); exit 1; }; } ;;
5351           esac ;;
5352         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5353 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5354    { (exit 1); exit 1; }; } ;;
5355       esac
5356   done
5357   ;;
5358 esac
5359 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5360
5361
5362 for a_target in $TARGETS_TO_BUILD; do
5363   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5367 _ACEOF
5368
5369     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5370     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5371     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5372     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5373     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5374       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5375     fi
5376     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5377       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5378     fi
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5387 _ACEOF
5388
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5392 _ACEOF
5393
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5397 _ACEOF
5398
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400
5401 cat >>confdefs.h <<_ACEOF
5402 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5403 _ACEOF
5404
5405     fi
5406     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5410 _ACEOF
5411
5412     fi
5413   fi
5414 done
5415
5416 LLVM_ENUM_TARGETS=""
5417 LLVM_ENUM_ASM_PRINTERS=""
5418 LLVM_ENUM_ASM_PARSERS=""
5419 LLVM_ENUM_DISASSEMBLERS=""
5420 for target_to_build in $TARGETS_TO_BUILD; do
5421   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5423     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5424   fi
5425   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5426     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5427   fi
5428   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5429     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5430   fi
5431 done
5432
5433
5434
5435
5436
5437
5438 # Check whether --with-optimize-option was given.
5439 if test "${with_optimize_option+set}" = set; then
5440   withval=$with_optimize_option;
5441 else
5442   withval=default
5443 fi
5444
5445 { echo "$as_me:$LINENO: checking optimization flags" >&5
5446 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5447 case "$withval" in
5448   default)
5449     case "$llvm_cv_os_type" in
5450     FreeBSD) optimize_option=-O2 ;;
5451     MingW) optimize_option=-O2 ;;
5452     *)     optimize_option=-O3 ;;
5453     esac ;;
5454   *) optimize_option="$withval" ;;
5455 esac
5456 OPTIMIZE_OPTION=$optimize_option
5457
5458 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5459 echo "${ECHO_T}$optimize_option" >&6; }
5460
5461
5462 # Check whether --with-extra-options was given.
5463 if test "${with_extra_options+set}" = set; then
5464   withval=$with_extra_options;
5465 else
5466   withval=default
5467 fi
5468
5469 case "$withval" in
5470   default) EXTRA_OPTIONS= ;;
5471   *) EXTRA_OPTIONS=$withval ;;
5472 esac
5473 EXTRA_OPTIONS=$EXTRA_OPTIONS
5474
5475
5476
5477 # Check whether --with-extra-ld-options was given.
5478 if test "${with_extra_ld_options+set}" = set; then
5479   withval=$with_extra_ld_options;
5480 else
5481   withval=default
5482 fi
5483
5484 case "$withval" in
5485   default) EXTRA_LD_OPTIONS= ;;
5486   *) EXTRA_LD_OPTIONS=$withval ;;
5487 esac
5488 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5489
5490
5491 # Check whether --enable-bindings was given.
5492 if test "${enable_bindings+set}" = set; then
5493   enableval=$enable_bindings;
5494 else
5495   enableval=default
5496 fi
5497
5498 BINDINGS_TO_BUILD=""
5499 case "$enableval" in
5500   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5501   all ) BINDINGS_TO_BUILD="ocaml" ;;
5502   none | no) BINDINGS_TO_BUILD="" ;;
5503   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5504       case "$a_binding" in
5505         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5506         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5507 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509       esac
5510   done
5511   ;;
5512 esac
5513
5514
5515 # Check whether --with-ocaml-libdir was given.
5516 if test "${with_ocaml_libdir+set}" = set; then
5517   withval=$with_ocaml_libdir;
5518 else
5519   withval=auto
5520 fi
5521
5522 case "$withval" in
5523   auto) with_ocaml_libdir="$withval" ;;
5524   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5525   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5526 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5527    { (exit 1); exit 1; }; } ;;
5528 esac
5529
5530
5531 # Check whether --with-clang-srcdir was given.
5532 if test "${with_clang_srcdir+set}" = set; then
5533   withval=$with_clang_srcdir;
5534 else
5535   withval="-"
5536 fi
5537
5538 case "$withval" in
5539   -) clang_src_root="" ;;
5540   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5541   *) clang_src_root="$ac_pwd/$withval" ;;
5542 esac
5543 CLANG_SRC_ROOT=$clang_src_root
5544
5545
5546
5547 # Check whether --with-clang-resource-dir was given.
5548 if test "${with_clang_resource_dir+set}" = set; then
5549   withval=$with_clang_resource_dir;
5550 else
5551   withval=""
5552 fi
5553
5554
5555 cat >>confdefs.h <<_ACEOF
5556 #define CLANG_RESOURCE_DIR "$withval"
5557 _ACEOF
5558
5559
5560
5561 # Check whether --with-c-include-dirs was given.
5562 if test "${with_c_include_dirs+set}" = set; then
5563   withval=$with_c_include_dirs;
5564 else
5565   withval=""
5566 fi
5567
5568
5569 cat >>confdefs.h <<_ACEOF
5570 #define C_INCLUDE_DIRS "$withval"
5571 _ACEOF
5572
5573
5574 # Clang normally uses the system c++ headers and libraries. With this option,
5575 # clang will use the ones provided by a gcc installation instead. This option should
5576 # be passed the same value that was used with --prefix when configuring gcc.
5577
5578 # Check whether --with-gcc-toolchain was given.
5579 if test "${with_gcc_toolchain+set}" = set; then
5580   withval=$with_gcc_toolchain;
5581 else
5582   withval=""
5583 fi
5584
5585
5586 cat >>confdefs.h <<_ACEOF
5587 #define GCC_INSTALL_PREFIX "$withval"
5588 _ACEOF
5589
5590
5591
5592 # Check whether --with-default-sysroot was given.
5593 if test "${with_default_sysroot+set}" = set; then
5594   withval=$with_default_sysroot;
5595 else
5596   withval=""
5597 fi
5598
5599
5600 cat >>confdefs.h <<_ACEOF
5601 #define DEFAULT_SYSROOT "$withval"
5602 _ACEOF
5603
5604
5605
5606 # Check whether --with-binutils-include was given.
5607 if test "${with_binutils_include+set}" = set; then
5608   withval=$with_binutils_include;
5609 else
5610   withval=default
5611 fi
5612
5613 case "$withval" in
5614   default) WITH_BINUTILS_INCDIR=default ;;
5615   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5616   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5617 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5618    { (exit 1); exit 1; }; } ;;
5619 esac
5620 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5621   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5622
5623   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5624      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5625      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5626 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5627    { (exit 1); exit 1; }; };
5628   fi
5629 fi
5630
5631
5632 # Check whether --with-bug-report-url was given.
5633 if test "${with_bug_report_url+set}" = set; then
5634   withval=$with_bug_report_url;
5635 else
5636   withval="http://llvm.org/bugs/"
5637 fi
5638
5639
5640 cat >>confdefs.h <<_ACEOF
5641 #define BUG_REPORT_URL "$withval"
5642 _ACEOF
5643
5644
5645 # Check whether --enable-libffi was given.
5646 if test "${enable_libffi+set}" = set; then
5647   enableval=$enable_libffi; case "$enableval" in
5648     yes) llvm_cv_enable_libffi="yes" ;;
5649     no)  llvm_cv_enable_libffi="no"  ;;
5650     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5651 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5652    { (exit 1); exit 1; }; } ;;
5653   esac
5654 else
5655   llvm_cv_enable_libffi=no
5656 fi
5657
5658
5659
5660 # Check whether --with-internal-prefix was given.
5661 if test "${with_internal_prefix+set}" = set; then
5662   withval=$with_internal_prefix;
5663 else
5664   withval=""
5665 fi
5666
5667 INTERNAL_PREFIX=$withval
5668
5669
5670
5671 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5672 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5673 if test "${lt_cv_path_NM+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   if test -n "$NM"; then
5677   # Let the user override the test.
5678   lt_cv_path_NM="$NM"
5679 else
5680   lt_nm_to_check="${ac_tool_prefix}nm"
5681   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5682     lt_nm_to_check="$lt_nm_to_check nm"
5683   fi
5684   for lt_tmp_nm in $lt_nm_to_check; do
5685     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5687       IFS="$lt_save_ifs"
5688       test -z "$ac_dir" && ac_dir=.
5689       tmp_nm="$ac_dir/$lt_tmp_nm"
5690       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5691         # Check to see if the nm accepts a BSD-compat flag.
5692         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5693         #   nm: unknown option "B" ignored
5694         # Tru64's nm complains that /dev/null is an invalid object file
5695         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5696         */dev/null* | *'Invalid file or object type'*)
5697           lt_cv_path_NM="$tmp_nm -B"
5698           break
5699           ;;
5700         *)
5701           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5702           */dev/null*)
5703             lt_cv_path_NM="$tmp_nm -p"
5704             break
5705             ;;
5706           *)
5707             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708             continue # so that we can try to find one that supports BSD flags
5709             ;;
5710           esac
5711           ;;
5712         esac
5713       fi
5714     done
5715     IFS="$lt_save_ifs"
5716   done
5717   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5718 fi
5719 fi
5720 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5721 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5722 NM="$lt_cv_path_NM"
5723
5724
5725
5726 { echo "$as_me:$LINENO: checking for GNU make" >&5
5727 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5728 if test "${llvm_cv_gnu_make_command+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   llvm_cv_gnu_make_command=''
5732  for a in "$MAKE" make gmake gnumake ; do
5733   if test -z "$a" ; then continue ; fi ;
5734   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5735   then
5736    llvm_cv_gnu_make_command=$a ;
5737    break;
5738   fi
5739  done
5740 fi
5741 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5742 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5743  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5744    ifGNUmake='' ;
5745  else
5746    ifGNUmake='#' ;
5747    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5748 echo "${ECHO_T}\"Not found\"" >&6; };
5749  fi
5750
5751
5752 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5753 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5754 LN_S=$as_ln_s
5755 if test "$LN_S" = "ln -s"; then
5756   { echo "$as_me:$LINENO: result: yes" >&5
5757 echo "${ECHO_T}yes" >&6; }
5758 else
5759   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5760 echo "${ECHO_T}no, using $LN_S" >&6; }
5761 fi
5762
5763 # Extract the first word of "cmp", so it can be a program name with args.
5764 set dummy cmp; ac_word=$2
5765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5767 if test "${ac_cv_path_CMP+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   case $CMP in
5771   [\\/]* | ?:[\\/]*)
5772   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5773   ;;
5774   *)
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5791   ;;
5792 esac
5793 fi
5794 CMP=$ac_cv_path_CMP
5795 if test -n "$CMP"; then
5796   { echo "$as_me:$LINENO: result: $CMP" >&5
5797 echo "${ECHO_T}$CMP" >&6; }
5798 else
5799   { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5801 fi
5802
5803
5804 # Extract the first word of "cp", so it can be a program name with args.
5805 set dummy cp; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_path_CP+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   case $CP in
5812   [\\/]* | ?:[\\/]*)
5813   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5814   ;;
5815   *)
5816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5832   ;;
5833 esac
5834 fi
5835 CP=$ac_cv_path_CP
5836 if test -n "$CP"; then
5837   { echo "$as_me:$LINENO: result: $CP" >&5
5838 echo "${ECHO_T}$CP" >&6; }
5839 else
5840   { echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6; }
5842 fi
5843
5844
5845 # Extract the first word of "date", so it can be a program name with args.
5846 set dummy date; ac_word=$2
5847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5849 if test "${ac_cv_path_DATE+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   case $DATE in
5853   [\\/]* | ?:[\\/]*)
5854   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5855   ;;
5856   *)
5857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5873   ;;
5874 esac
5875 fi
5876 DATE=$ac_cv_path_DATE
5877 if test -n "$DATE"; then
5878   { echo "$as_me:$LINENO: result: $DATE" >&5
5879 echo "${ECHO_T}$DATE" >&6; }
5880 else
5881   { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5883 fi
5884
5885
5886 # Extract the first word of "find", so it can be a program name with args.
5887 set dummy find; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_path_FIND+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   case $FIND in
5894   [\\/]* | ?:[\\/]*)
5895   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5896   ;;
5897   *)
5898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5905     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911 IFS=$as_save_IFS
5912
5913   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5914   ;;
5915 esac
5916 fi
5917 FIND=$ac_cv_path_FIND
5918 if test -n "$FIND"; then
5919   { echo "$as_me:$LINENO: result: $FIND" >&5
5920 echo "${ECHO_T}$FIND" >&6; }
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926
5927 # Extract the first word of "grep", so it can be a program name with args.
5928 set dummy grep; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_path_GREP+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   case $GREP in
5935   [\\/]* | ?:[\\/]*)
5936   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5937   ;;
5938   *)
5939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5946     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5955   ;;
5956 esac
5957 fi
5958 GREP=$ac_cv_path_GREP
5959 if test -n "$GREP"; then
5960   { echo "$as_me:$LINENO: result: $GREP" >&5
5961 echo "${ECHO_T}$GREP" >&6; }
5962 else
5963   { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5965 fi
5966
5967
5968 # Extract the first word of "mkdir", so it can be a program name with args.
5969 set dummy mkdir; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_path_MKDIR+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $MKDIR in
5976   [\\/]* | ?:[\\/]*)
5977   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5978   ;;
5979   *)
5980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985   for ac_exec_ext in '' $ac_executable_extensions; do
5986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5987     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5996   ;;
5997 esac
5998 fi
5999 MKDIR=$ac_cv_path_MKDIR
6000 if test -n "$MKDIR"; then
6001   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6002 echo "${ECHO_T}$MKDIR" >&6; }
6003 else
6004   { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6006 fi
6007
6008
6009 # Extract the first word of "mv", so it can be a program name with args.
6010 set dummy mv; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_MV+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   case $MV in
6017   [\\/]* | ?:[\\/]*)
6018   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6019   ;;
6020   *)
6021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026   for ac_exec_ext in '' $ac_executable_extensions; do
6027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6028     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6037   ;;
6038 esac
6039 fi
6040 MV=$ac_cv_path_MV
6041 if test -n "$MV"; then
6042   { echo "$as_me:$LINENO: result: $MV" >&5
6043 echo "${ECHO_T}$MV" >&6; }
6044 else
6045   { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6047 fi
6048
6049
6050 if test -n "$ac_tool_prefix"; then
6051   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_RANLIB+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if test -n "$RANLIB"; then
6059   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 RANLIB=$ac_cv_prog_RANLIB
6079 if test -n "$RANLIB"; then
6080   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6081 echo "${ECHO_T}$RANLIB" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6085 fi
6086
6087
6088 fi
6089 if test -z "$ac_cv_prog_RANLIB"; then
6090   ac_ct_RANLIB=$RANLIB
6091   # Extract the first word of "ranlib", so it can be a program name with args.
6092 set dummy ranlib; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   if test -n "$ac_ct_RANLIB"; then
6099   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106   for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_ac_ct_RANLIB="ranlib"
6109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119 if test -n "$ac_ct_RANLIB"; then
6120   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6121 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127   if test "x$ac_ct_RANLIB" = x; then
6128     RANLIB=":"
6129   else
6130     case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet.  If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140     RANLIB=$ac_ct_RANLIB
6141   fi
6142 else
6143   RANLIB="$ac_cv_prog_RANLIB"
6144 fi
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ar; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_AR+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   if test -n "$AR"; then
6155   ac_cv_prog_AR="$AR" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_AR="${ac_tool_prefix}ar"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 AR=$ac_cv_prog_AR
6175 if test -n "$AR"; then
6176   { echo "$as_me:$LINENO: result: $AR" >&5
6177 echo "${ECHO_T}$AR" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_AR"; then
6186   ac_ct_AR=$AR
6187   # Extract the first word of "ar", so it can be a program name with args.
6188 set dummy ar; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$ac_ct_AR"; then
6195   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_ac_ct_AR="ar"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6215 if test -n "$ac_ct_AR"; then
6216   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6217 echo "${ECHO_T}$ac_ct_AR" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_AR" = x; then
6224     AR="false"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet.  If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet.  If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     AR=$ac_ct_AR
6237   fi
6238 else
6239   AR="$ac_cv_prog_AR"
6240 fi
6241
6242 # Extract the first word of "rm", so it can be a program name with args.
6243 set dummy rm; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_path_RM+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   case $RM in
6250   [\\/]* | ?:[\\/]*)
6251   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6252   ;;
6253   *)
6254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6270   ;;
6271 esac
6272 fi
6273 RM=$ac_cv_path_RM
6274 if test -n "$RM"; then
6275   { echo "$as_me:$LINENO: result: $RM" >&5
6276 echo "${ECHO_T}$RM" >&6; }
6277 else
6278   { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6280 fi
6281
6282
6283 # Extract the first word of "sed", so it can be a program name with args.
6284 set dummy sed; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_path_SED+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   case $SED in
6291   [\\/]* | ?:[\\/]*)
6292   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6293   ;;
6294   *)
6295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6311   ;;
6312 esac
6313 fi
6314 SED=$ac_cv_path_SED
6315 if test -n "$SED"; then
6316   { echo "$as_me:$LINENO: result: $SED" >&5
6317 echo "${ECHO_T}$SED" >&6; }
6318 else
6319   { echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6; }
6321 fi
6322
6323
6324 # Extract the first word of "tar", so it can be a program name with args.
6325 set dummy tar; ac_word=$2
6326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328 if test "${ac_cv_path_TAR+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   case $TAR in
6332   [\\/]* | ?:[\\/]*)
6333   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6334   ;;
6335   *)
6336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339   IFS=$as_save_IFS
6340   test -z "$as_dir" && as_dir=.
6341   for ac_exec_ext in '' $ac_executable_extensions; do
6342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6343     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345     break 2
6346   fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6352   ;;
6353 esac
6354 fi
6355 TAR=$ac_cv_path_TAR
6356 if test -n "$TAR"; then
6357   { echo "$as_me:$LINENO: result: $TAR" >&5
6358 echo "${ECHO_T}$TAR" >&6; }
6359 else
6360   { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6362 fi
6363
6364
6365 # Extract the first word of "pwd", so it can be a program name with args.
6366 set dummy pwd; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_path_BINPWD+set}" = set; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372   case $BINPWD in
6373   [\\/]* | ?:[\\/]*)
6374   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6375   ;;
6376   *)
6377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380   IFS=$as_save_IFS
6381   test -z "$as_dir" && as_dir=.
6382   for ac_exec_ext in '' $ac_executable_extensions; do
6383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386     break 2
6387   fi
6388 done
6389 done
6390 IFS=$as_save_IFS
6391
6392   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6393   ;;
6394 esac
6395 fi
6396 BINPWD=$ac_cv_path_BINPWD
6397 if test -n "$BINPWD"; then
6398   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6399 echo "${ECHO_T}$BINPWD" >&6; }
6400 else
6401   { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6403 fi
6404
6405
6406
6407 # Extract the first word of "Graphviz", so it can be a program name with args.
6408 set dummy Graphviz; ac_word=$2
6409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   case $GRAPHVIZ in
6415   [\\/]* | ?:[\\/]*)
6416   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6417   ;;
6418   *)
6419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424   for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6435   ;;
6436 esac
6437 fi
6438 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6439 if test -n "$GRAPHVIZ"; then
6440   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6441 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6442 else
6443   { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6445 fi
6446
6447
6448 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6449
6450 cat >>confdefs.h <<\_ACEOF
6451 #define HAVE_GRAPHVIZ 1
6452 _ACEOF
6453
6454     if test "$llvm_cv_os_type" = "MingW" ; then
6455     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456   fi
6457
6458 cat >>confdefs.h <<_ACEOF
6459 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6460 _ACEOF
6461
6462 fi
6463 # Extract the first word of "dot", so it can be a program name with args.
6464 set dummy dot; ac_word=$2
6465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467 if test "${ac_cv_path_DOT+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   case $DOT in
6471   [\\/]* | ?:[\\/]*)
6472   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6473   ;;
6474   *)
6475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6491   ;;
6492 esac
6493 fi
6494 DOT=$ac_cv_path_DOT
6495 if test -n "$DOT"; then
6496   { echo "$as_me:$LINENO: result: $DOT" >&5
6497 echo "${ECHO_T}$DOT" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6501 fi
6502
6503
6504 if test "$DOT" != "echo dot" ; then
6505
6506 cat >>confdefs.h <<\_ACEOF
6507 #define HAVE_DOT 1
6508 _ACEOF
6509
6510     if test "$llvm_cv_os_type" = "MingW" ; then
6511     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512   fi
6513
6514 cat >>confdefs.h <<_ACEOF
6515 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6516 _ACEOF
6517
6518 fi
6519 # Extract the first word of "fdp", so it can be a program name with args.
6520 set dummy fdp; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_path_FDP+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   case $FDP in
6527   [\\/]* | ?:[\\/]*)
6528   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6529   ;;
6530   *)
6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6547   ;;
6548 esac
6549 fi
6550 FDP=$ac_cv_path_FDP
6551 if test -n "$FDP"; then
6552   { echo "$as_me:$LINENO: result: $FDP" >&5
6553 echo "${ECHO_T}$FDP" >&6; }
6554 else
6555   { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6557 fi
6558
6559
6560 if test "$FDP" != "echo fdp" ; then
6561
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_FDP 1
6564 _ACEOF
6565
6566     if test "$llvm_cv_os_type" = "MingW" ; then
6567     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568   fi
6569
6570 cat >>confdefs.h <<_ACEOF
6571 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6572 _ACEOF
6573
6574 fi
6575 # Extract the first word of "neato", so it can be a program name with args.
6576 set dummy neato; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_path_NEATO+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   case $NEATO in
6583   [\\/]* | ?:[\\/]*)
6584   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6585   ;;
6586   *)
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592   for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6603   ;;
6604 esac
6605 fi
6606 NEATO=$ac_cv_path_NEATO
6607 if test -n "$NEATO"; then
6608   { echo "$as_me:$LINENO: result: $NEATO" >&5
6609 echo "${ECHO_T}$NEATO" >&6; }
6610 else
6611   { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6613 fi
6614
6615
6616 if test "$NEATO" != "echo neato" ; then
6617
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_NEATO 1
6620 _ACEOF
6621
6622     if test "$llvm_cv_os_type" = "MingW" ; then
6623     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624   fi
6625
6626 cat >>confdefs.h <<_ACEOF
6627 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6628 _ACEOF
6629
6630 fi
6631 # Extract the first word of "twopi", so it can be a program name with args.
6632 set dummy twopi; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_TWOPI+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   case $TWOPI in
6639   [\\/]* | ?:[\\/]*)
6640   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6641   ;;
6642   *)
6643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6659   ;;
6660 esac
6661 fi
6662 TWOPI=$ac_cv_path_TWOPI
6663 if test -n "$TWOPI"; then
6664   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6665 echo "${ECHO_T}$TWOPI" >&6; }
6666 else
6667   { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6669 fi
6670
6671
6672 if test "$TWOPI" != "echo twopi" ; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_TWOPI 1
6676 _ACEOF
6677
6678     if test "$llvm_cv_os_type" = "MingW" ; then
6679     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680   fi
6681
6682 cat >>confdefs.h <<_ACEOF
6683 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6684 _ACEOF
6685
6686 fi
6687 # Extract the first word of "circo", so it can be a program name with args.
6688 set dummy circo; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_CIRCO+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   case $CIRCO in
6695   [\\/]* | ?:[\\/]*)
6696   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6697   ;;
6698   *)
6699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6715   ;;
6716 esac
6717 fi
6718 CIRCO=$ac_cv_path_CIRCO
6719 if test -n "$CIRCO"; then
6720   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6721 echo "${ECHO_T}$CIRCO" >&6; }
6722 else
6723   { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6725 fi
6726
6727
6728 if test "$CIRCO" != "echo circo" ; then
6729
6730 cat >>confdefs.h <<\_ACEOF
6731 #define HAVE_CIRCO 1
6732 _ACEOF
6733
6734     if test "$llvm_cv_os_type" = "MingW" ; then
6735     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736   fi
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6740 _ACEOF
6741
6742 fi
6743 for ac_prog in gv gsview32
6744 do
6745   # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_GV+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   case $GV in
6753   [\\/]* | ?:[\\/]*)
6754   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6755   ;;
6756   *)
6757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772   ;;
6773 esac
6774 fi
6775 GV=$ac_cv_path_GV
6776 if test -n "$GV"; then
6777   { echo "$as_me:$LINENO: result: $GV" >&5
6778 echo "${ECHO_T}$GV" >&6; }
6779 else
6780   { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784
6785   test -n "$GV" && break
6786 done
6787 test -n "$GV" || GV="echo gv"
6788
6789 if test "$GV" != "echo gv" ; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_GV 1
6793 _ACEOF
6794
6795     if test "$llvm_cv_os_type" = "MingW" ; then
6796     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797   fi
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_GV "$GV${EXEEXT}"
6801 _ACEOF
6802
6803 fi
6804 # Extract the first word of "dotty", so it can be a program name with args.
6805 set dummy dotty; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_DOTTY+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   case $DOTTY in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6832   ;;
6833 esac
6834 fi
6835 DOTTY=$ac_cv_path_DOTTY
6836 if test -n "$DOTTY"; then
6837   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6838 echo "${ECHO_T}$DOTTY" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844
6845 if test "$DOTTY" != "echo dotty" ; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define HAVE_DOTTY 1
6849 _ACEOF
6850
6851     if test "$llvm_cv_os_type" = "MingW" ; then
6852     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853   fi
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6857 _ACEOF
6858
6859 fi
6860 # Extract the first word of "xdot.py", so it can be a program name with args.
6861 set dummy xdot.py; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   case $XDOT_PY in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6888   ;;
6889 esac
6890 fi
6891 XDOT_PY=$ac_cv_path_XDOT_PY
6892 if test -n "$XDOT_PY"; then
6893   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6894 echo "${ECHO_T}$XDOT_PY" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901 if test "$XDOT_PY" != "echo xdot.py" ; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_XDOT_PY 1
6905 _ACEOF
6906
6907     if test "$llvm_cv_os_type" = "MingW" ; then
6908     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909   fi
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6913 _ACEOF
6914
6915 fi
6916
6917 # Find a good install program.  We prefer a C program (faster),
6918 # so one script is as good as another.  But avoid the broken or
6919 # incompatible versions:
6920 # SysV /etc/install, /usr/sbin/install
6921 # SunOS /usr/etc/install
6922 # IRIX /sbin/install
6923 # AIX /bin/install
6924 # AmigaOS /C/install, which installs bootblocks on floppy discs
6925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6928 # OS/2's system install, which has a completely different semantic
6929 # ./install, which can be erroneously created by make from ./install.sh.
6930 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6932 if test -z "$INSTALL"; then
6933 if test "${ac_cv_path_install+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   # Account for people who put trailing slashes in PATH elements.
6942 case $as_dir/ in
6943   ./ | .// | /cC/* | \
6944   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6945   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6946   /usr/ucb/* ) ;;
6947   *)
6948     # OSF1 and SCO ODT 3.0 have their own names for install.
6949     # Don't use installbsd from OSF since it installs stuff as root
6950     # by default.
6951     for ac_prog in ginstall scoinst install; do
6952       for ac_exec_ext in '' $ac_executable_extensions; do
6953         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6954           if test $ac_prog = install &&
6955             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956             # AIX install.  It has an incompatible calling convention.
6957             :
6958           elif test $ac_prog = install &&
6959             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960             # program-specific install script used by HP pwplus--don't use.
6961             :
6962           else
6963             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6964             break 3
6965           fi
6966         fi
6967       done
6968     done
6969     ;;
6970 esac
6971 done
6972 IFS=$as_save_IFS
6973
6974
6975 fi
6976   if test "${ac_cv_path_install+set}" = set; then
6977     INSTALL=$ac_cv_path_install
6978   else
6979     # As a last resort, use the slow shell script.  Don't cache a
6980     # value for INSTALL within a source directory, because that will
6981     # break other packages using the cache if that directory is
6982     # removed, or if the value is a relative name.
6983     INSTALL=$ac_install_sh
6984   fi
6985 fi
6986 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6987 echo "${ECHO_T}$INSTALL" >&6; }
6988
6989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6990 # It thinks the first close brace ends the variable substitution.
6991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6992
6993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6994
6995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6996
6997 case "$INSTALL" in
6998  [\\/$]* | ?:[\\/]* ) ;;
6999  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7000 esac
7001
7002 # Extract the first word of "bzip2", so it can be a program name with args.
7003 set dummy bzip2; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_BZIP2+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   case $BZIP2 in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029   ;;
7030 esac
7031 fi
7032 BZIP2=$ac_cv_path_BZIP2
7033 if test -n "$BZIP2"; then
7034   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7035 echo "${ECHO_T}$BZIP2" >&6; }
7036 else
7037   { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7039 fi
7040
7041
7042 # Extract the first word of "cat", so it can be a program name with args.
7043 set dummy cat; 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_CAT+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   case $CAT in
7050   [\\/]* | ?:[\\/]*)
7051   ac_cv_path_CAT="$CAT" # 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_CAT="$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 CAT=$ac_cv_path_CAT
7073 if test -n "$CAT"; then
7074   { echo "$as_me:$LINENO: result: $CAT" >&5
7075 echo "${ECHO_T}$CAT" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 # Extract the first word of "doxygen", so it can be a program name with args.
7083 set dummy doxygen; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   case $DOXYGEN in
7090   [\\/]* | ?:[\\/]*)
7091   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7092   ;;
7093   *)
7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109   ;;
7110 esac
7111 fi
7112 DOXYGEN=$ac_cv_path_DOXYGEN
7113 if test -n "$DOXYGEN"; then
7114   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7115 echo "${ECHO_T}$DOXYGEN" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 # Extract the first word of "groff", so it can be a program name with args.
7123 set dummy groff; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GROFF+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $GROFF in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 GROFF=$ac_cv_path_GROFF
7153 if test -n "$GROFF"; then
7154   { echo "$as_me:$LINENO: result: $GROFF" >&5
7155 echo "${ECHO_T}$GROFF" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "gzip", so it can be a program name with args.
7163 set dummy gzip; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $GZIPBIN in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 GZIPBIN=$ac_cv_path_GZIPBIN
7193 if test -n "$GZIPBIN"; then
7194   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7195 echo "${ECHO_T}$GZIPBIN" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "pod2html", so it can be a program name with args.
7203 set dummy pod2html; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_POD2HTML+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $POD2HTML in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 POD2HTML=$ac_cv_path_POD2HTML
7233 if test -n "$POD2HTML"; then
7234   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7235 echo "${ECHO_T}$POD2HTML" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 # Extract the first word of "pod2man", so it can be a program name with args.
7243 set dummy pod2man; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_POD2MAN+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $POD2MAN in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   ;;
7270 esac
7271 fi
7272 POD2MAN=$ac_cv_path_POD2MAN
7273 if test -n "$POD2MAN"; then
7274   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7275 echo "${ECHO_T}$POD2MAN" >&6; }
7276 else
7277   { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279 fi
7280
7281
7282 # Extract the first word of "pdfroff", so it can be a program name with args.
7283 set dummy pdfroff; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_PDFROFF+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $PDFROFF in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   ;;
7310 esac
7311 fi
7312 PDFROFF=$ac_cv_path_PDFROFF
7313 if test -n "$PDFROFF"; then
7314   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7315 echo "${ECHO_T}$PDFROFF" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 # Extract the first word of "runtest", so it can be a program name with args.
7323 set dummy runtest; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_RUNTEST+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   case $RUNTEST in
7330   [\\/]* | ?:[\\/]*)
7331   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7332   ;;
7333   *)
7334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349   ;;
7350 esac
7351 fi
7352 RUNTEST=$ac_cv_path_RUNTEST
7353 if test -n "$RUNTEST"; then
7354   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7355 echo "${ECHO_T}$RUNTEST" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362
7363 no_itcl=true
7364 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7365 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7366
7367 # Check whether --with-tclinclude was given.
7368 if test "${with_tclinclude+set}" = set; then
7369   withval=$with_tclinclude; with_tclinclude=${withval}
7370 else
7371   with_tclinclude=''
7372 fi
7373
7374 if test "${ac_cv_path_tclsh+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377
7378 if test x"${with_tclinclude}" != x ; then
7379   if test -f ${with_tclinclude}/tclsh ; then
7380     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7381   elif test -f ${with_tclinclude}/src/tclsh ; then
7382     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7383   else
7384     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7385 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7386    { (exit 1); exit 1; }; }
7387   fi
7388 fi
7389 fi
7390
7391
7392 if test x"${ac_cv_path_tclsh}" = x ; then
7393   { echo "$as_me:$LINENO: result: none" >&5
7394 echo "${ECHO_T}none" >&6; }
7395   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7396 do
7397   # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_path_TCLSH+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   case $TCLSH in
7405   [\\/]* | ?:[\\/]*)
7406   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7407   ;;
7408   *)
7409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414   for ac_exec_ext in '' $ac_executable_extensions; do
7415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7416     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421 done
7422 IFS=$as_save_IFS
7423
7424   ;;
7425 esac
7426 fi
7427 TCLSH=$ac_cv_path_TCLSH
7428 if test -n "$TCLSH"; then
7429   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7430 echo "${ECHO_T}$TCLSH" >&6; }
7431 else
7432   { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7434 fi
7435
7436
7437   test -n "$TCLSH" && break
7438 done
7439
7440   if test x"${TCLSH}" = x ; then
7441     ac_cv_path_tclsh='';
7442   else
7443     ac_cv_path_tclsh="${TCLSH}";
7444   fi
7445 else
7446   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7447 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7448   TCLSH="${ac_cv_path_tclsh}"
7449
7450 fi
7451
7452 # Extract the first word of "zip", so it can be a program name with args.
7453 set dummy zip; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_ZIP+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   case $ZIP in
7460   [\\/]* | ?:[\\/]*)
7461   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7462   ;;
7463   *)
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479   ;;
7480 esac
7481 fi
7482 ZIP=$ac_cv_path_ZIP
7483 if test -n "$ZIP"; then
7484   { echo "$as_me:$LINENO: result: $ZIP" >&5
7485 echo "${ECHO_T}$ZIP" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491
7492 for ac_prog in ocamlc
7493 do
7494   # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_OCAMLC+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   case $OCAMLC in
7502   [\\/]* | ?:[\\/]*)
7503   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521   ;;
7522 esac
7523 fi
7524 OCAMLC=$ac_cv_path_OCAMLC
7525 if test -n "$OCAMLC"; then
7526   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7527 echo "${ECHO_T}$OCAMLC" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534   test -n "$OCAMLC" && break
7535 done
7536
7537 for ac_prog in ocamlopt
7538 do
7539   # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; 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_OCAMLOPT+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   case $OCAMLOPT in
7547   [\\/]* | ?:[\\/]*)
7548   ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$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 OCAMLOPT=$ac_cv_path_OCAMLOPT
7570 if test -n "$OCAMLOPT"; then
7571   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7572 echo "${ECHO_T}$OCAMLOPT" >&6; }
7573 else
7574   { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576 fi
7577
7578
7579   test -n "$OCAMLOPT" && break
7580 done
7581
7582 for ac_prog in ocamldep
7583 do
7584   # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   case $OCAMLDEP in
7592   [\\/]* | ?:[\\/]*)
7593   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7594   ;;
7595   *)
7596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611   ;;
7612 esac
7613 fi
7614 OCAMLDEP=$ac_cv_path_OCAMLDEP
7615 if test -n "$OCAMLDEP"; then
7616   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7617 echo "${ECHO_T}$OCAMLDEP" >&6; }
7618 else
7619   { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7621 fi
7622
7623
7624   test -n "$OCAMLDEP" && break
7625 done
7626
7627 for ac_prog in ocamldoc
7628 do
7629   # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   case $OCAMLDOC in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646   for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656   ;;
7657 esac
7658 fi
7659 OCAMLDOC=$ac_cv_path_OCAMLDOC
7660 if test -n "$OCAMLDOC"; then
7661   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7662 echo "${ECHO_T}$OCAMLDOC" >&6; }
7663 else
7664   { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7666 fi
7667
7668
7669   test -n "$OCAMLDOC" && break
7670 done
7671
7672 for ac_prog in gas as
7673 do
7674   # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_GAS+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   case $GAS in
7682   [\\/]* | ?:[\\/]*)
7683   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7684   ;;
7685   *)
7686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701   ;;
7702 esac
7703 fi
7704 GAS=$ac_cv_path_GAS
7705 if test -n "$GAS"; then
7706   { echo "$as_me:$LINENO: result: $GAS" >&5
7707 echo "${ECHO_T}$GAS" >&6; }
7708 else
7709   { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7711 fi
7712
7713
7714   test -n "$GAS" && break
7715 done
7716
7717
7718 { echo "$as_me:$LINENO: checking for linker version" >&5
7719 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7720 if test "${llvm_cv_link_version+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723
7724    version_string="$(ld -v 2>&1 | head -1)"
7725
7726    # Check for ld64.
7727    if (echo "$version_string" | grep -q "ld64"); then
7728      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7729    else
7730      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7731    fi
7732
7733 fi
7734 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7735 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7736
7737 cat >>confdefs.h <<_ACEOF
7738 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7739 _ACEOF
7740
7741
7742
7743 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7744 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7745 if test "${llvm_cv_link_use_r+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748    ac_ext=c
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754   oldcflags="$CFLAGS"
7755   CFLAGS="$CFLAGS -Wl,-R."
7756   cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762
7763 int
7764 main ()
7765 {
7766
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (ac_try="$ac_link"
7773 case "(($ac_try" in
7774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775   *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778   (eval "$ac_link") 2>conftest.er1
7779   ac_status=$?
7780   grep -v '^ *+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786   { (case "(($ac_try" in
7787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788   *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791   (eval "$ac_try") 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); }; } &&
7795          { ac_try='test -s conftest$ac_exeext'
7796   { (case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_try") 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   llvm_cv_link_use_r=yes
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810         llvm_cv_link_use_r=no
7811 fi
7812
7813 rm -f core conftest.err conftest.$ac_objext \
7814       conftest$ac_exeext conftest.$ac_ext
7815   CFLAGS="$oldcflags"
7816   ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823 fi
7824 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7825 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7826 if test "$llvm_cv_link_use_r" = yes ; then
7827
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_LINK_R 1
7830 _ACEOF
7831
7832   fi
7833
7834
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840    ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846   oldcflags="$CFLAGS"
7847   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7848   cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854
7855 int
7856 main ()
7857 {
7858
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7865 case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_link") 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } &&
7877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878   { (case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_try") 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; } &&
7887          { ac_try='test -s conftest$ac_exeext'
7888   { (case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893   (eval "$ac_try") 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   llvm_cv_link_use_export_dynamic=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902         llvm_cv_link_use_export_dynamic=no
7903 fi
7904
7905 rm -f core conftest.err conftest.$ac_objext \
7906       conftest$ac_exeext conftest.$ac_ext
7907   CFLAGS="$oldcflags"
7908   ac_ext=c
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915 fi
7916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7917 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7918 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LINK_EXPORT_DYNAMIC 1
7922 _ACEOF
7923
7924   fi
7925
7926
7927 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7928 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7929 if test "${llvm_cv_link_use_version_script+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932    ac_ext=c
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938   oldcflags="$CFLAGS"
7939
7940   # The following code is from the autoconf manual,
7941   # "11.13: Limitations of Usual Tools".
7942   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7943   # Use mktemp if possible; otherwise fall back on mkdir,
7944   # with $RANDOM to make collisions less likely.
7945   : ${TMPDIR=/tmp}
7946   {
7947     tmp=`
7948       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7949     ` &&
7950     test -n "$tmp" && test -d "$tmp"
7951   } || {
7952     tmp=$TMPDIR/foo$$-$RANDOM
7953     (umask 077 && mkdir "$tmp")
7954   } || exit $?
7955
7956   echo "{" > "$tmp/export.map"
7957   echo "  global: main;" >> "$tmp/export.map"
7958   echo "  local: *;" >> "$tmp/export.map"
7959   echo "};" >> "$tmp/export.map"
7960
7961   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7962   cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_link") 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992   { (case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997   (eval "$ac_try") 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; } &&
8001          { ac_try='test -s conftest$ac_exeext'
8002   { (case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_try") 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   llvm_cv_link_use_version_script=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016         llvm_cv_link_use_version_script=no
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext \
8020       conftest$ac_exeext conftest.$ac_ext
8021   rm "$tmp/export.map"
8022   rmdir "$tmp"
8023   CFLAGS="$oldcflags"
8024   ac_ext=c
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030
8031 fi
8032 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8033 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8034 if test "$llvm_cv_link_use_version_script" = yes ; then
8035   HAVE_LINK_VERSION_SCRIPT=1
8036
8037   fi
8038
8039
8040
8041
8042 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8044 if test "${ac_cv_c_const+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053
8054 int
8055 main ()
8056 {
8057 /* FIXME: Include the comments suggested by Paul. */
8058 #ifndef __cplusplus
8059   /* Ultrix mips cc rejects this.  */
8060   typedef int charset[2];
8061   const charset x;
8062   /* SunOS 4.1.1 cc rejects this.  */
8063   char const *const *ccp;
8064   char **p;
8065   /* NEC SVR4.0.2 mips cc rejects this.  */
8066   struct point {int x, y;};
8067   static struct point const zero = {0,0};
8068   /* AIX XL C 1.02.0.0 rejects this.
8069      It does not let you subtract one const X* pointer from another in
8070      an arm of an if-expression whose if-part is not a constant
8071      expression */
8072   const char *g = "string";
8073   ccp = &g + (g ? g-g : 0);
8074   /* HPUX 7.0 cc rejects these. */
8075   ++ccp;
8076   p = (char**) ccp;
8077   ccp = (char const *const *) p;
8078   { /* SCO 3.2v4 cc rejects this.  */
8079     char *t;
8080     char const *s = 0 ? (char *) 0 : (char const *) 0;
8081
8082     *t++ = 0;
8083     if (s) return 0;
8084   }
8085   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8086     int x[] = {25, 17};
8087     const int *foo = &x[0];
8088     ++foo;
8089   }
8090   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8091     typedef const int *iptr;
8092     iptr p = 0;
8093     ++p;
8094   }
8095   { /* AIX XL C 1.02.0.0 rejects this saying
8096        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8097     struct s { int j; const int *ap[3]; };
8098     struct s *b; b->j = 5;
8099   }
8100   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8101     const int foo = 10;
8102     if (!foo) return 0;
8103   }
8104   return !x[0] && !zero.x;
8105 #endif
8106
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (ac_try="$ac_compile"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_compile") 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126   { (case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_try") 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest.$ac_objext'
8136   { (case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141   (eval "$ac_try") 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   ac_cv_c_const=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         ac_cv_c_const=no
8151 fi
8152
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8156 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8157 if test $ac_cv_c_const = no; then
8158
8159 cat >>confdefs.h <<\_ACEOF
8160 #define const
8161 _ACEOF
8162
8163 fi
8164
8165
8166
8167
8168
8169
8170 ac_header_dirent=no
8171 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8172   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8173 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8174 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184 #include <sys/types.h>
8185 #include <$ac_hdr>
8186
8187 int
8188 main ()
8189 {
8190 if ((DIR *) 0)
8191 return 0;
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8198 case "(($ac_try" in
8199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200   *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203   (eval "$ac_compile") 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211   { (case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_try") 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; } &&
8220          { ac_try='test -s conftest.$ac_objext'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_try") 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   eval "$as_ac_Header=yes"
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235         eval "$as_ac_Header=no"
8236 fi
8237
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 ac_res=`eval echo '${'$as_ac_Header'}'`
8241                { echo "$as_me:$LINENO: result: $ac_res" >&5
8242 echo "${ECHO_T}$ac_res" >&6; }
8243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8244   cat >>confdefs.h <<_ACEOF
8245 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8246 _ACEOF
8247
8248 ac_header_dirent=$ac_hdr; break
8249 fi
8250
8251 done
8252 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8253 if test $ac_header_dirent = dirent.h; then
8254   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8256 if test "${ac_cv_search_opendir+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_func_search_save_LIBS=$LIBS
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266
8267 /* Override any GCC internal prototype to avoid an error.
8268    Use char because int might match the return type of a GCC
8269    builtin and then its argument prototype would still apply.  */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 char opendir ();
8274 int
8275 main ()
8276 {
8277 return opendir ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 for ac_lib in '' dir; do
8283   if test -z "$ac_lib"; then
8284     ac_res="none required"
8285   else
8286     ac_res=-l$ac_lib
8287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8288   fi
8289   rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (ac_try="$ac_link"
8291 case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_link") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304   { (case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_try") 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; } &&
8313          { ac_try='test -s conftest$ac_exeext'
8314   { (case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_try") 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_search_opendir=$ac_res
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext \
8332       conftest$ac_exeext
8333   if test "${ac_cv_search_opendir+set}" = set; then
8334   break
8335 fi
8336 done
8337 if test "${ac_cv_search_opendir+set}" = set; then
8338   :
8339 else
8340   ac_cv_search_opendir=no
8341 fi
8342 rm conftest.$ac_ext
8343 LIBS=$ac_func_search_save_LIBS
8344 fi
8345 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8346 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8347 ac_res=$ac_cv_search_opendir
8348 if test "$ac_res" != no; then
8349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8350
8351 fi
8352
8353 else
8354   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8356 if test "${ac_cv_search_opendir+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   ac_func_search_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h.  */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h.  */
8366
8367 /* Override any GCC internal prototype to avoid an error.
8368    Use char because int might match the return type of a GCC
8369    builtin and then its argument prototype would still apply.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 char opendir ();
8374 int
8375 main ()
8376 {
8377 return opendir ();
8378   ;
8379   return 0;
8380 }
8381 _ACEOF
8382 for ac_lib in '' x; do
8383   if test -z "$ac_lib"; then
8384     ac_res="none required"
8385   else
8386     ac_res=-l$ac_lib
8387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8388   fi
8389   rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } &&
8403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404   { (case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_try") 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_try") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_cv_search_opendir=$ac_res
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428
8429 fi
8430
8431 rm -f core conftest.err conftest.$ac_objext \
8432       conftest$ac_exeext
8433   if test "${ac_cv_search_opendir+set}" = set; then
8434   break
8435 fi
8436 done
8437 if test "${ac_cv_search_opendir+set}" = set; then
8438   :
8439 else
8440   ac_cv_search_opendir=no
8441 fi
8442 rm conftest.$ac_ext
8443 LIBS=$ac_func_search_save_LIBS
8444 fi
8445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8447 ac_res=$ac_cv_search_opendir
8448 if test "$ac_res" != no; then
8449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8450
8451 fi
8452
8453 fi
8454
8455
8456 for ac_header in dlfcn.h
8457 do
8458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 fi
8465 ac_res=`eval echo '${'$as_ac_Header'}'`
8466                { echo "$as_me:$LINENO: result: $ac_res" >&5
8467 echo "${ECHO_T}$ac_res" >&6; }
8468 else
8469   # Is the header compilable?
8470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 $ac_includes_default
8479 #include <$ac_header>
8480 _ACEOF
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_compile") 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496   { (case "(($ac_try" in
8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498   *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501   (eval "$ac_try") 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; } &&
8505          { ac_try='test -s conftest.$ac_objext'
8506   { (case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_try") 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_header_compiler=yes
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520         ac_header_compiler=no
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8525 echo "${ECHO_T}$ac_header_compiler" >&6; }
8526
8527 # Is the header present?
8528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536 #include <$ac_header>
8537 _ACEOF
8538 if { (ac_try="$ac_cpp conftest.$ac_ext"
8539 case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } >/dev/null; then
8551   if test -s conftest.err; then
8552     ac_cpp_err=$ac_c_preproc_warn_flag
8553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8554   else
8555     ac_cpp_err=
8556   fi
8557 else
8558   ac_cpp_err=yes
8559 fi
8560 if test -z "$ac_cpp_err"; then
8561   ac_header_preproc=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566   ac_header_preproc=no
8567 fi
8568
8569 rm -f conftest.err conftest.$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571 echo "${ECHO_T}$ac_header_preproc" >&6; }
8572
8573 # So?  What about this header?
8574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575   yes:no: )
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580     ac_header_preproc=yes
8581     ;;
8582   no:yes:* )
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8595     ( cat <<\_ASBOX
8596 ## ------------------------------------ ##
8597 ## Report this to http://llvm.org/bugs/ ##
8598 ## ------------------------------------ ##
8599 _ASBOX
8600      ) | sed "s/^/$as_me: WARNING:     /" >&2
8601     ;;
8602 esac
8603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   eval "$as_ac_Header=\$ac_header_preproc"
8609 fi
8610 ac_res=`eval echo '${'$as_ac_Header'}'`
8611                { echo "$as_me:$LINENO: result: $ac_res" >&5
8612 echo "${ECHO_T}$ac_res" >&6; }
8613
8614 fi
8615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8616   cat >>confdefs.h <<_ACEOF
8617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8618 _ACEOF
8619
8620 fi
8621
8622 done
8623
8624 # Check whether --enable-ltdl-install was given.
8625 if test "${enable_ltdl_install+set}" = set; then
8626   enableval=$enable_ltdl_install;
8627 fi
8628
8629
8630
8631
8632 if test x"${enable_ltdl_install-no}" != xno; then
8633   INSTALL_LTDL_TRUE=
8634   INSTALL_LTDL_FALSE='#'
8635 else
8636   INSTALL_LTDL_TRUE='#'
8637   INSTALL_LTDL_FALSE=
8638 fi
8639
8640
8641
8642 if test x"${enable_ltdl_convenience-no}" != xno; then
8643   CONVENIENCE_LTDL_TRUE=
8644   CONVENIENCE_LTDL_FALSE='#'
8645 else
8646   CONVENIENCE_LTDL_TRUE='#'
8647   CONVENIENCE_LTDL_FALSE=
8648 fi
8649
8650
8651 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8653 library_names_spec=
8654 libname_spec='lib$name'
8655 soname_spec=
8656 shrext_cmds=".so"
8657 postinstall_cmds=
8658 postuninstall_cmds=
8659 finish_cmds=
8660 finish_eval=
8661 shlibpath_var=
8662 shlibpath_overrides_runpath=unknown
8663 version_type=none
8664 dynamic_linker="$host_os ld.so"
8665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8666 if test "$GCC" = yes; then
8667   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8668   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8669     # if the path contains ";" then we assume it to be the separator
8670     # otherwise default to the standard path separator (i.e. ":") - it is
8671     # assumed that no part of a normal pathname contains ";" but that should
8672     # okay in the real world where ";" in dirpaths is itself problematic.
8673     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8674   else
8675     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8676   fi
8677 else
8678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8679 fi
8680 need_lib_prefix=unknown
8681 hardcode_into_libs=no
8682
8683 # when you set need_version to no, make sure it does not cause -set_version
8684 # flags to be left without arguments
8685 need_version=unknown
8686
8687 case $host_os in
8688 aix3*)
8689   version_type=linux
8690   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8691   shlibpath_var=LIBPATH
8692
8693   # AIX 3 has no versioning support, so we append a major version to the name.
8694   soname_spec='${libname}${release}${shared_ext}$major'
8695   ;;
8696
8697 aix4* | aix5*)
8698   version_type=linux
8699   need_lib_prefix=no
8700   need_version=no
8701   hardcode_into_libs=yes
8702   if test "$host_cpu" = ia64; then
8703     # AIX 5 supports IA64
8704     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8705     shlibpath_var=LD_LIBRARY_PATH
8706   else
8707     # With GCC up to 2.95.x, collect2 would create an import file
8708     # for dependence libraries.  The import file would start with
8709     # the line `#! .'.  This would cause the generated library to
8710     # depend on `.', always an invalid library.  This was fixed in
8711     # development snapshots of GCC prior to 3.0.
8712     case $host_os in
8713       aix4 | aix4.[01] | aix4.[01].*)
8714       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8715            echo ' yes '
8716            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8717         :
8718       else
8719         can_build_shared=no
8720       fi
8721       ;;
8722     esac
8723     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8724     # soname into executable. Probably we can add versioning support to
8725     # collect2, so additional links can be useful in future.
8726     if test "$aix_use_runtimelinking" = yes; then
8727       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8728       # instead of lib<name>.a to let people know that these are not
8729       # typical AIX shared libraries.
8730       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731     else
8732       # We preserve .a as extension for shared libraries through AIX4.2
8733       # and later when we are not doing run time linking.
8734       library_names_spec='${libname}${release}.a $libname.a'
8735       soname_spec='${libname}${release}${shared_ext}$major'
8736     fi
8737     shlibpath_var=LIBPATH
8738   fi
8739   ;;
8740
8741 amigaos*)
8742   library_names_spec='$libname.ixlibrary $libname.a'
8743   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8744   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'
8745   ;;
8746
8747 beos*)
8748   library_names_spec='${libname}${shared_ext}'
8749   dynamic_linker="$host_os ld.so"
8750   shlibpath_var=LIBRARY_PATH
8751   ;;
8752
8753 bsdi[45]*)
8754   version_type=linux
8755   need_version=no
8756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757   soname_spec='${libname}${release}${shared_ext}$major'
8758   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8759   shlibpath_var=LD_LIBRARY_PATH
8760   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8761   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8762   # the default ld.so.conf also contains /usr/contrib/lib and
8763   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8764   # libtool to hard-code these into programs
8765   ;;
8766
8767 cygwin* | mingw* | pw32*)
8768   version_type=windows
8769   shrext_cmds=".dll"
8770   need_version=no
8771   need_lib_prefix=no
8772
8773   case $GCC,$host_os in
8774   yes,cygwin* | yes,mingw* | yes,pw32*)
8775     library_names_spec='$libname.dll.a'
8776     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8777     postinstall_cmds='base_file=`basename \${file}`~
8778       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8779       dldir=$destdir/`dirname \$dlpath`~
8780       test -d \$dldir || mkdir -p \$dldir~
8781       $install_prog $dir/$dlname \$dldir/$dlname~
8782       chmod a+x \$dldir/$dlname'
8783     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8784       dlpath=$dir/\$dldll~
8785        $rm \$dlpath'
8786     shlibpath_overrides_runpath=yes
8787
8788     case $host_os in
8789     cygwin*)
8790       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8791       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8793       ;;
8794     mingw*)
8795       # MinGW DLLs use traditional 'lib' prefix
8796       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8799         # It is most probably a Windows format PATH printed by
8800         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8801         # path with ; separators, and with drive letters. We can handle the
8802         # drive letters (cygwin fileutils understands them), so leave them,
8803         # especially as we might pass files found there to a mingw objdump,
8804         # which wouldn't understand a cygwinified path. Ahh.
8805         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8806       else
8807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8808       fi
8809       ;;
8810     pw32*)
8811       # pw32 DLLs use 'pw' prefix rather than 'lib'
8812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8813       ;;
8814     esac
8815     ;;
8816
8817   *)
8818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8819     ;;
8820   esac
8821   dynamic_linker='Win32 ld.exe'
8822   # FIXME: first we should search . and the directory the executable is in
8823   shlibpath_var=PATH
8824   ;;
8825
8826 darwin* | rhapsody*)
8827   dynamic_linker="$host_os dyld"
8828   version_type=darwin
8829   need_lib_prefix=no
8830   need_version=no
8831   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8832   soname_spec='${libname}${release}${major}$shared_ext'
8833   shlibpath_overrides_runpath=yes
8834   shlibpath_var=DYLD_LIBRARY_PATH
8835   shrext_cmds='.dylib'
8836   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8837   if test "$GCC" = yes; then
8838     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"`
8839   else
8840     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8841   fi
8842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8843   ;;
8844
8845 dgux*)
8846   version_type=linux
8847   need_lib_prefix=no
8848   need_version=no
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   shlibpath_var=LD_LIBRARY_PATH
8852   ;;
8853
8854 freebsd1.*)
8855   dynamic_linker=no
8856   ;;
8857
8858 kfreebsd*-gnu)
8859   version_type=linux
8860   need_lib_prefix=no
8861   need_version=no
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863   soname_spec='${libname}${release}${shared_ext}$major'
8864   shlibpath_var=LD_LIBRARY_PATH
8865   shlibpath_overrides_runpath=no
8866   hardcode_into_libs=yes
8867   dynamic_linker='GNU ld.so'
8868   ;;
8869
8870 freebsd* | dragonfly*)
8871   # DragonFly does not have aout.  When/if they implement a new
8872   # versioning mechanism, adjust this.
8873   if test -x /usr/bin/objformat; then
8874     objformat=`/usr/bin/objformat`
8875   else
8876     case $host_os in
8877     freebsd[123].*) objformat=aout ;;
8878     *) objformat=elf ;;
8879     esac
8880   fi
8881   version_type=freebsd-$objformat
8882   case $version_type in
8883     freebsd-elf*)
8884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8885       need_version=no
8886       need_lib_prefix=no
8887       ;;
8888     freebsd-*)
8889       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8890       need_version=yes
8891       ;;
8892   esac
8893   shlibpath_var=LD_LIBRARY_PATH
8894   case $host_os in
8895   freebsd2.*)
8896     shlibpath_overrides_runpath=yes
8897     ;;
8898   freebsd3.[01]* | freebsdelf3.[01]*)
8899     shlibpath_overrides_runpath=yes
8900     hardcode_into_libs=yes
8901     ;;
8902   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8903   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8904     shlibpath_overrides_runpath=no
8905     hardcode_into_libs=yes
8906     ;;
8907   freebsd*) # from 4.6 on
8908     shlibpath_overrides_runpath=yes
8909     hardcode_into_libs=yes
8910     ;;
8911   esac
8912   ;;
8913
8914 gnu*)
8915   version_type=linux
8916   need_lib_prefix=no
8917   need_version=no
8918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8919   soname_spec='${libname}${release}${shared_ext}$major'
8920   shlibpath_var=LD_LIBRARY_PATH
8921   hardcode_into_libs=yes
8922   ;;
8923
8924 hpux9* | hpux10* | hpux11*)
8925   # Give a soname corresponding to the major version so that dld.sl refuses to
8926   # link against other versions.
8927   version_type=sunos
8928   need_lib_prefix=no
8929   need_version=no
8930   case $host_cpu in
8931   ia64*)
8932     shrext_cmds='.so'
8933     hardcode_into_libs=yes
8934     dynamic_linker="$host_os dld.so"
8935     shlibpath_var=LD_LIBRARY_PATH
8936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938     soname_spec='${libname}${release}${shared_ext}$major'
8939     if test "X$HPUX_IA64_MODE" = X32; then
8940       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8941     else
8942       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8943     fi
8944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945     ;;
8946    hppa*64*)
8947      shrext_cmds='.sl'
8948      hardcode_into_libs=yes
8949      dynamic_linker="$host_os dld.sl"
8950      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8951      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953      soname_spec='${libname}${release}${shared_ext}$major'
8954      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8955      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8956      ;;
8957    *)
8958     shrext_cmds='.sl'
8959     dynamic_linker="$host_os dld.sl"
8960     shlibpath_var=SHLIB_PATH
8961     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963     soname_spec='${libname}${release}${shared_ext}$major'
8964     ;;
8965   esac
8966   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8967   postinstall_cmds='chmod 555 $lib'
8968   ;;
8969
8970 interix3*)
8971   version_type=linux
8972   need_lib_prefix=no
8973   need_version=no
8974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975   soname_spec='${libname}${release}${shared_ext}$major'
8976   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8977   shlibpath_var=LD_LIBRARY_PATH
8978   shlibpath_overrides_runpath=no
8979   hardcode_into_libs=yes
8980   ;;
8981
8982 irix5* | irix6* | nonstopux*)
8983   case $host_os in
8984     nonstopux*) version_type=nonstopux ;;
8985     *)
8986         if test "$lt_cv_prog_gnu_ld" = yes; then
8987                 version_type=linux
8988         else
8989                 version_type=irix
8990         fi ;;
8991   esac
8992   need_lib_prefix=no
8993   need_version=no
8994   soname_spec='${libname}${release}${shared_ext}$major'
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8996   case $host_os in
8997   irix5* | nonstopux*)
8998     libsuff= shlibsuff=
8999     ;;
9000   *)
9001     case $LD in # libtool.m4 will add one of these switches to LD
9002     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9003       libsuff= shlibsuff= libmagic=32-bit;;
9004     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9005       libsuff=32 shlibsuff=N32 libmagic=N32;;
9006     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9007       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9008     *) libsuff= shlibsuff= libmagic=never-match;;
9009     esac
9010     ;;
9011   esac
9012   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9013   shlibpath_overrides_runpath=no
9014   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9015   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9016   hardcode_into_libs=yes
9017   ;;
9018
9019 # No shared lib support for Linux oldld, aout, or coff.
9020 linux*oldld* | linux*aout* | linux*coff*)
9021   dynamic_linker=no
9022   ;;
9023
9024 # This must be Linux ELF.
9025 linux*)
9026   version_type=linux
9027   need_lib_prefix=no
9028   need_version=no
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   shlibpath_overrides_runpath=no
9034   # This implies no fast_install, which is unacceptable.
9035   # Some rework will be needed to allow for fast_install
9036   # before this can be enabled.
9037   hardcode_into_libs=yes
9038
9039   # Append ld.so.conf contents to the search path
9040   if test -f /etc/ld.so.conf; then
9041     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' ' '`
9042     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9043   fi
9044
9045   # We used to test for /lib/ld.so.1 and disable shared libraries on
9046   # powerpc, because MkLinux only supported shared libraries with the
9047   # GNU dynamic linker.  Since this was broken with cross compilers,
9048   # most powerpc-linux boxes support dynamic linking these days and
9049   # people can always --disable-shared, the test was removed, and we
9050   # assume the GNU/Linux dynamic linker is in use.
9051   dynamic_linker='GNU/Linux ld.so'
9052   ;;
9053
9054 knetbsd*-gnu)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=no
9062   hardcode_into_libs=yes
9063   dynamic_linker='GNU ld.so'
9064   ;;
9065
9066 netbsd*)
9067   version_type=sunos
9068   need_lib_prefix=no
9069   need_version=no
9070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073     dynamic_linker='NetBSD (a.out) ld.so'
9074   else
9075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076     soname_spec='${libname}${release}${shared_ext}$major'
9077     dynamic_linker='NetBSD ld.elf_so'
9078   fi
9079   shlibpath_var=LD_LIBRARY_PATH
9080   shlibpath_overrides_runpath=yes
9081   hardcode_into_libs=yes
9082   ;;
9083
9084 newsos6)
9085   version_type=linux
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   shlibpath_overrides_runpath=yes
9089   ;;
9090
9091 nto-qnx*)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=yes
9099   ;;
9100
9101 openbsd*)
9102   version_type=sunos
9103   sys_lib_dlsearch_path_spec="/usr/lib"
9104   need_lib_prefix=no
9105   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9106   case $host_os in
9107     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9108     *)                         need_version=no  ;;
9109   esac
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114     case $host_os in
9115       openbsd2.[89] | openbsd2.[89].*)
9116         shlibpath_overrides_runpath=no
9117         ;;
9118       *)
9119         shlibpath_overrides_runpath=yes
9120         ;;
9121       esac
9122   else
9123     shlibpath_overrides_runpath=yes
9124   fi
9125   ;;
9126
9127 os2*)
9128   libname_spec='$name'
9129   shrext_cmds=".dll"
9130   need_lib_prefix=no
9131   library_names_spec='$libname${shared_ext} $libname.a'
9132   dynamic_linker='OS/2 ld.exe'
9133   shlibpath_var=LIBPATH
9134   ;;
9135
9136 osf3* | osf4* | osf5*)
9137   version_type=osf
9138   need_lib_prefix=no
9139   need_version=no
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9144   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9145   ;;
9146
9147 solaris*)
9148   version_type=linux
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   shlibpath_overrides_runpath=yes
9155   hardcode_into_libs=yes
9156   # ldd complains unless libraries are executable
9157   postinstall_cmds='chmod +x $lib'
9158   ;;
9159
9160 sunos4*)
9161   version_type=sunos
9162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9164   shlibpath_var=LD_LIBRARY_PATH
9165   shlibpath_overrides_runpath=yes
9166   if test "$with_gnu_ld" = yes; then
9167     need_lib_prefix=no
9168   fi
9169   need_version=yes
9170   ;;
9171
9172 sysv4 | sysv4.3*)
9173   version_type=linux
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175   soname_spec='${libname}${release}${shared_ext}$major'
9176   shlibpath_var=LD_LIBRARY_PATH
9177   case $host_vendor in
9178     sni)
9179       shlibpath_overrides_runpath=no
9180       need_lib_prefix=no
9181       export_dynamic_flag_spec='${wl}-Blargedynsym'
9182       runpath_var=LD_RUN_PATH
9183       ;;
9184     siemens)
9185       need_lib_prefix=no
9186       ;;
9187     motorola)
9188       need_lib_prefix=no
9189       need_version=no
9190       shlibpath_overrides_runpath=no
9191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9192       ;;
9193   esac
9194   ;;
9195
9196 sysv4*MP*)
9197   if test -d /usr/nec ;then
9198     version_type=linux
9199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9200     soname_spec='$libname${shared_ext}.$major'
9201     shlibpath_var=LD_LIBRARY_PATH
9202   fi
9203   ;;
9204
9205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9206   version_type=freebsd-elf
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   hardcode_into_libs=yes
9213   if test "$with_gnu_ld" = yes; then
9214     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9215     shlibpath_overrides_runpath=no
9216   else
9217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9218     shlibpath_overrides_runpath=yes
9219     case $host_os in
9220       sco3.2v5*)
9221         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9222         ;;
9223     esac
9224   fi
9225   sys_lib_dlsearch_path_spec='/usr/lib'
9226   ;;
9227
9228 uts4*)
9229   version_type=linux
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   ;;
9234
9235 *)
9236   dynamic_linker=no
9237   ;;
9238 esac
9239 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9240 echo "${ECHO_T}$dynamic_linker" >&6; }
9241 test "$dynamic_linker" = no && can_build_shared=no
9242
9243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9244 if test "$GCC" = yes; then
9245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9246 fi
9247
9248
9249 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9250 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9251 if test "${libltdl_cv_shlibext+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254
9255 module=yes
9256 eval libltdl_cv_shlibext=$shrext_cmds
9257
9258 fi
9259 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9260 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9261 if test -n "$libltdl_cv_shlibext"; then
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9265 _ACEOF
9266
9267 fi
9268
9269
9270 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9271 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9272 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   libltdl_cv_shlibpath_var="$shlibpath_var"
9276 fi
9277 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9278 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9279 if test -n "$libltdl_cv_shlibpath_var"; then
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9283 _ACEOF
9284
9285 fi
9286
9287
9288 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9289 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9290 if test "${libltdl_cv_sys_search_path+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9294 fi
9295 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9296 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9297 if test -n "$libltdl_cv_sys_search_path"; then
9298   sys_search_path=
9299   for dir in $libltdl_cv_sys_search_path; do
9300     if test -z "$sys_search_path"; then
9301       sys_search_path="$dir"
9302     else
9303       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9304     fi
9305   done
9306
9307 cat >>confdefs.h <<_ACEOF
9308 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9309 _ACEOF
9310
9311 fi
9312
9313 { echo "$as_me:$LINENO: checking for objdir" >&5
9314 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9315 if test "${libltdl_cv_objdir+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   libltdl_cv_objdir="$objdir"
9319   if test -n "$objdir"; then
9320     :
9321   else
9322     rm -f .libs 2>/dev/null
9323     mkdir .libs 2>/dev/null
9324     if test -d .libs; then
9325       libltdl_cv_objdir=.libs
9326     else
9327       # MS-DOS does not allow filenames that begin with a dot.
9328       libltdl_cv_objdir=_libs
9329     fi
9330   rmdir .libs 2>/dev/null
9331   fi
9332
9333 fi
9334 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9335 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9336
9337 cat >>confdefs.h <<_ACEOF
9338 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9339 _ACEOF
9340
9341
9342
9343
9344
9345
9346 # Check for command to grab the raw symbol name followed by C symbol from nm.
9347 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9348 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9349 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352
9353 # These are sane defaults that work on at least a few old systems.
9354 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9355
9356 # Character class describing NM global symbol codes.
9357 symcode='[BCDEGRST]'
9358
9359 # Regexp to match symbols that can be accessed directly from C.
9360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9361
9362 # Transform an extracted symbol line into a proper C declaration
9363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9364
9365 # Transform an extracted symbol line into symbol name and symbol address
9366 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'"
9367
9368 # Define system-specific variables.
9369 case $host_os in
9370 aix*)
9371   symcode='[BCDT]'
9372   ;;
9373 cygwin* | mingw* | pw32*)
9374   symcode='[ABCDGISTW]'
9375   ;;
9376 hpux*) # Its linker distinguishes data from code symbols
9377   if test "$host_cpu" = ia64; then
9378     symcode='[ABCDEGRST]'
9379   fi
9380   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9381   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'"
9382   ;;
9383 linux*)
9384   if test "$host_cpu" = ia64; then
9385     symcode='[ABCDGIRSTW]'
9386     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9387     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'"
9388   fi
9389   ;;
9390 irix* | nonstopux*)
9391   symcode='[BCDEGRST]'
9392   ;;
9393 osf*)
9394   symcode='[BCDEGQRST]'
9395   ;;
9396 solaris*)
9397   symcode='[BDRT]'
9398   ;;
9399 sco3.2v5*)
9400   symcode='[DT]'
9401   ;;
9402 sysv4.2uw2*)
9403   symcode='[DT]'
9404   ;;
9405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9406   symcode='[ABDT]'
9407   ;;
9408 sysv4)
9409   symcode='[DFNSTU]'
9410   ;;
9411 esac
9412
9413 # Handle CRLF in mingw tool chain
9414 opt_cr=
9415 case $build_os in
9416 mingw*)
9417   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9418   ;;
9419 esac
9420
9421 # If we're using GNU nm, then use its standard symbol codes.
9422 case `$NM -V 2>&1` in
9423 *GNU* | *'with BFD'*)
9424   symcode='[ABCDGIRSTW]' ;;
9425 esac
9426
9427 # Try without a prefix undercore, then with it.
9428 for ac_symprfx in "" "_"; do
9429
9430   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9431   symxfrm="\\1 $ac_symprfx\\2 \\2"
9432
9433   # Write the raw and C identifiers.
9434   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9435
9436   # Check to see that the pipe works correctly.
9437   pipe_works=no
9438
9439   rm -f conftest*
9440   cat > conftest.$ac_ext <<EOF
9441 #ifdef __cplusplus
9442 extern "C" {
9443 #endif
9444 char nm_test_var;
9445 void nm_test_func(){}
9446 #ifdef __cplusplus
9447 }
9448 #endif
9449 int main(){nm_test_var='a';nm_test_func();return(0);}
9450 EOF
9451
9452   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453   (eval $ac_compile) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; then
9457     # Now try to grab the symbols.
9458     nlist=conftest.nm
9459     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9460   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } && test -s "$nlist"; then
9464       # Try sorting and uniquifying the output.
9465       if sort "$nlist" | uniq > "$nlist"T; then
9466         mv -f "$nlist"T "$nlist"
9467       else
9468         rm -f "$nlist"T
9469       fi
9470
9471       # Make sure that we snagged all the symbols we need.
9472       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9473         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9474           cat <<EOF > conftest.$ac_ext
9475 #ifdef __cplusplus
9476 extern "C" {
9477 #endif
9478
9479 EOF
9480           # Now generate the symbol file.
9481           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9482
9483           cat <<EOF >> conftest.$ac_ext
9484 #if defined (__STDC__) && __STDC__
9485 # define lt_ptr_t void *
9486 #else
9487 # define lt_ptr_t char *
9488 # define const
9489 #endif
9490
9491 /* The mapping between symbol names and symbols. */
9492 const struct {
9493   const char *name;
9494   lt_ptr_t address;
9495 }
9496 lt_preloaded_symbols[] =
9497 {
9498 EOF
9499           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9500           cat <<\EOF >> conftest.$ac_ext
9501   {0, (lt_ptr_t) 0}
9502 };
9503
9504 #ifdef __cplusplus
9505 }
9506 #endif
9507 EOF
9508           # Now try linking the two files.
9509           mv conftest.$ac_objext conftstm.$ac_objext
9510           lt_save_LIBS="$LIBS"
9511           lt_save_CFLAGS="$CFLAGS"
9512           LIBS="conftstm.$ac_objext"
9513           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9514           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515   (eval $ac_link) 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9519             pipe_works=yes
9520           fi
9521           LIBS="$lt_save_LIBS"
9522           CFLAGS="$lt_save_CFLAGS"
9523         else
9524           echo "cannot find nm_test_func in $nlist" >&5
9525         fi
9526       else
9527         echo "cannot find nm_test_var in $nlist" >&5
9528       fi
9529     else
9530       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9531     fi
9532   else
9533     echo "$progname: failed program was:" >&5
9534     cat conftest.$ac_ext >&5
9535   fi
9536   rm -f conftest* conftst*
9537
9538   # Do not use the global_symbol_pipe unless it works.
9539   if test "$pipe_works" = yes; then
9540     break
9541   else
9542     lt_cv_sys_global_symbol_pipe=
9543   fi
9544 done
9545
9546 fi
9547
9548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9549   lt_cv_sys_global_symbol_to_cdecl=
9550 fi
9551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9552   { echo "$as_me:$LINENO: result: failed" >&5
9553 echo "${ECHO_T}failed" >&6; }
9554 else
9555   { echo "$as_me:$LINENO: result: ok" >&5
9556 echo "${ECHO_T}ok" >&6; }
9557 fi
9558
9559
9560 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9561 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9562 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9563   echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9566     libltdl_cv_preloaded_symbols=yes
9567   else
9568     libltdl_cv_preloaded_symbols=no
9569   fi
9570
9571 fi
9572 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9573 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9574 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9575
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_PRELOADED_SYMBOLS 1
9578 _ACEOF
9579
9580 fi
9581
9582 LIBADD_DL=
9583
9584 ac_ext=c
9585 ac_cpp='$CPP $CPPFLAGS'
9586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589
9590
9591 { echo "$as_me:$LINENO: checking for shl_load" >&5
9592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9593 if test "${ac_cv_func_shl_load+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9604 #define shl_load innocuous_shl_load
9605
9606 /* System header to define __stub macros and hopefully few prototypes,
9607     which can conflict with char shl_load (); below.
9608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609     <limits.h> exists even on freestanding compilers.  */
9610
9611 #ifdef __STDC__
9612 # include <limits.h>
9613 #else
9614 # include <assert.h>
9615 #endif
9616
9617 #undef shl_load
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620    Use char because int might match the return type of a GCC
9621    builtin and then its argument prototype would still apply.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char shl_load ();
9626 /* The GNU C library defines this for functions which it implements
9627     to always fail with ENOSYS.  Some functions are actually named
9628     something starting with __ and the normal name is an alias.  */
9629 #if defined __stub_shl_load || defined __stub___shl_load
9630 choke me
9631 #endif
9632
9633 int
9634 main ()
9635 {
9636 return shl_load ();
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9643 case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_link") 2>conftest.er1
9649   ac_status=$?
9650   grep -v '^ *+' conftest.er1 >conftest.err
9651   rm -f conftest.er1
9652   cat conftest.err >&5
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); } &&
9655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656   { (case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_try") 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; } &&
9665          { ac_try='test -s conftest$ac_exeext'
9666   { (case "(($ac_try" in
9667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668   *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671   (eval "$ac_try") 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ac_cv_func_shl_load=yes
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         ac_cv_func_shl_load=no
9681 fi
9682
9683 rm -f core conftest.err conftest.$ac_objext \
9684       conftest$ac_exeext conftest.$ac_ext
9685 fi
9686 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9688 if test $ac_cv_func_shl_load = yes; then
9689
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_SHL_LOAD 1
9692 _ACEOF
9693
9694 else
9695   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   ac_check_lib_save_LIBS=$LIBS
9701 LIBS="-ldld  $LIBS"
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708
9709 /* Override any GCC internal prototype to avoid an error.
9710    Use char because int might match the return type of a GCC
9711    builtin and then its argument prototype would still apply.  */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 char shl_load ();
9716 int
9717 main ()
9718 {
9719 return shl_load ();
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9726 case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739   { (case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_try") 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; } &&
9748          { ac_try='test -s conftest$ac_exeext'
9749   { (case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_try") 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_cv_lib_dld_shl_load=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763         ac_cv_lib_dld_shl_load=no
9764 fi
9765
9766 rm -f core conftest.err conftest.$ac_objext \
9767       conftest$ac_exeext conftest.$ac_ext
9768 LIBS=$ac_check_lib_save_LIBS
9769 fi
9770 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9771 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9772 if test $ac_cv_lib_dld_shl_load = yes; then
9773
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_SHL_LOAD 1
9776 _ACEOF
9777
9778         LIBADD_DL="$LIBADD_DL -ldld"
9779 else
9780   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldl  $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793
9794 /* Override any GCC internal prototype to avoid an error.
9795    Use char because int might match the return type of a GCC
9796    builtin and then its argument prototype would still apply.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char dlopen ();
9801 int
9802 main ()
9803 {
9804 return dlopen ();
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_link") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824   { (case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_try") 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest$ac_exeext'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_cv_lib_dl_dlopen=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         ac_cv_lib_dl_dlopen=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext \
9852       conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9854 fi
9855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9857 if test $ac_cv_lib_dl_dlopen = yes; then
9858
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_LIBDL 1
9861 _ACEOF
9862
9863                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9864 else
9865   cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871 #if HAVE_DLFCN_H
9872 #  include <dlfcn.h>
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 dlopen(0, 0);
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9885 case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_link") 2>conftest.er1
9891   ac_status=$?
9892   grep -v '^ *+' conftest.er1 >conftest.err
9893   rm -f conftest.er1
9894   cat conftest.err >&5
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); } &&
9897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; } &&
9907          { ac_try='test -s conftest$ac_exeext'
9908   { (case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_try") 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; }; then
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_LIBDL 1
9920 _ACEOF
9921  libltdl_cv_func_dlopen="yes"
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9927 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9928 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9929   echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931   ac_check_lib_save_LIBS=$LIBS
9932 LIBS="-lsvld  $LIBS"
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char dlopen ();
9947 int
9948 main ()
9949 {
9950 return dlopen ();
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_link") 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970   { (case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_try") 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; } &&
9979          { ac_try='test -s conftest$ac_exeext'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_try") 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989   ac_cv_lib_svld_dlopen=yes
9990 else
9991   echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994         ac_cv_lib_svld_dlopen=no
9995 fi
9996
9997 rm -f core conftest.err conftest.$ac_objext \
9998       conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10002 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10003 if test $ac_cv_lib_svld_dlopen = yes; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_LIBDL 1
10007 _ACEOF
10008
10009                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10010 else
10011   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-ldld  $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char dld_link ();
10032 int
10033 main ()
10034 {
10035 return dld_link ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_link") 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055   { (case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_try") 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; } &&
10064          { ac_try='test -s conftest$ac_exeext'
10065   { (case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_try") 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_cv_lib_dld_dld_link=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_cv_lib_dld_dld_link=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10088 if test $ac_cv_lib_dld_dld_link = yes; then
10089
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_DLD 1
10092 _ACEOF
10093
10094                 LIBADD_DL="$LIBADD_DL -ldld"
10095 else
10096   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10097 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10098 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10109 #define _dyld_func_lookup innocuous__dyld_func_lookup
10110
10111 /* System header to define __stub macros and hopefully few prototypes,
10112     which can conflict with char _dyld_func_lookup (); below.
10113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10114     <limits.h> exists even on freestanding compilers.  */
10115
10116 #ifdef __STDC__
10117 # include <limits.h>
10118 #else
10119 # include <assert.h>
10120 #endif
10121
10122 #undef _dyld_func_lookup
10123
10124 /* Override any GCC internal prototype to avoid an error.
10125    Use char because int might match the return type of a GCC
10126    builtin and then its argument prototype would still apply.  */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char _dyld_func_lookup ();
10131 /* The GNU C library defines this for functions which it implements
10132     to always fail with ENOSYS.  Some functions are actually named
10133     something starting with __ and the normal name is an alias.  */
10134 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10135 choke me
10136 #endif
10137
10138 int
10139 main ()
10140 {
10141 return _dyld_func_lookup ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (ac_try="$ac_link"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_link") 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161   { (case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_try") 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; } &&
10170          { ac_try='test -s conftest$ac_exeext'
10171   { (case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_try") 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_func__dyld_func_lookup=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185         ac_cv_func__dyld_func_lookup=no
10186 fi
10187
10188 rm -f core conftest.err conftest.$ac_objext \
10189       conftest$ac_exeext conftest.$ac_ext
10190 fi
10191 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10192 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10193 if test $ac_cv_func__dyld_func_lookup = yes; then
10194
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_DYLD 1
10197 _ACEOF
10198
10199 fi
10200
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210 rm -f core conftest.err conftest.$ac_objext \
10211       conftest$ac_exeext conftest.$ac_ext
10212
10213 fi
10214
10215
10216 fi
10217
10218
10219 fi
10220
10221
10222 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10223 then
10224   lt_save_LIBS="$LIBS"
10225   LIBS="$LIBS $LIBADD_DL"
10226
10227 for ac_func in dlerror
10228 do
10229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10243 #define $ac_func innocuous_$ac_func
10244
10245 /* System header to define __stub macros and hopefully few prototypes,
10246     which can conflict with char $ac_func (); below.
10247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248     <limits.h> exists even on freestanding compilers.  */
10249
10250 #ifdef __STDC__
10251 # include <limits.h>
10252 #else
10253 # include <assert.h>
10254 #endif
10255
10256 #undef $ac_func
10257
10258 /* Override any GCC internal prototype to avoid an error.
10259    Use char because int might match the return type of a GCC
10260    builtin and then its argument prototype would still apply.  */
10261 #ifdef __cplusplus
10262 extern "C"
10263 #endif
10264 char $ac_func ();
10265 /* The GNU C library defines this for functions which it implements
10266     to always fail with ENOSYS.  Some functions are actually named
10267     something starting with __ and the normal name is an alias.  */
10268 #if defined __stub_$ac_func || defined __stub___$ac_func
10269 choke me
10270 #endif
10271
10272 int
10273 main ()
10274 {
10275 return $ac_func ();
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (ac_try="$ac_link"
10282 case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_link") 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10295   { (case "(($ac_try" in
10296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297   *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300   (eval "$ac_try") 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; } &&
10304          { ac_try='test -s conftest$ac_exeext'
10305   { (case "(($ac_try" in
10306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307   *) ac_try_echo=$ac_try;;
10308 esac
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310   (eval "$ac_try") 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   eval "$as_ac_var=yes"
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319         eval "$as_ac_var=no"
10320 fi
10321
10322 rm -f core conftest.err conftest.$ac_objext \
10323       conftest$ac_exeext conftest.$ac_ext
10324 fi
10325 ac_res=`eval echo '${'$as_ac_var'}'`
10326                { echo "$as_me:$LINENO: result: $ac_res" >&5
10327 echo "${ECHO_T}$ac_res" >&6; }
10328 if test `eval echo '${'$as_ac_var'}'` = yes; then
10329   cat >>confdefs.h <<_ACEOF
10330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10331 _ACEOF
10332
10333 fi
10334 done
10335
10336   LIBS="$lt_save_LIBS"
10337 fi
10338 ac_ext=c
10339 ac_cpp='$CPP $CPPFLAGS'
10340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343
10344
10345
10346 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10347 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10348 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351   ac_cv_sys_symbol_underscore=no
10352   cat > conftest.$ac_ext <<EOF
10353 void nm_test_func(){}
10354 int main(){nm_test_func;return 0;}
10355 EOF
10356   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; then
10361     # Now try to grab the symbols.
10362     ac_nlist=conftest.nm
10363     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10364   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && test -s "$ac_nlist"; then
10368       # See whether the symbols have a leading underscore.
10369       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10370         ac_cv_sys_symbol_underscore=yes
10371       else
10372         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10373           :
10374         else
10375           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10376         fi
10377       fi
10378     else
10379       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10380     fi
10381   else
10382     echo "configure: failed program was:" >&5
10383     cat conftest.c >&5
10384   fi
10385   rm -rf conftest*
10386
10387 fi
10388 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10389 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10390
10391
10392 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10393   if test x"$libltdl_cv_func_dlopen" = xyes ||
10394      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10395         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10396 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10397 if test "${libltdl_cv_need_uscore+set}" = set; then
10398   echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400   libltdl_cv_need_uscore=unknown
10401           save_LIBS="$LIBS"
10402           LIBS="$LIBS $LIBADD_DL"
10403           if test "$cross_compiling" = yes; then :
10404   libltdl_cv_need_uscore=cross
10405 else
10406   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10407   lt_status=$lt_dlunknown
10408   cat > conftest.$ac_ext <<EOF
10409 #line 10409 "configure"
10410 #include "confdefs.h"
10411
10412 #if HAVE_DLFCN_H
10413 #include <dlfcn.h>
10414 #endif
10415
10416 #include <stdio.h>
10417
10418 #ifdef RTLD_GLOBAL
10419 #  define LT_DLGLOBAL           RTLD_GLOBAL
10420 #else
10421 #  ifdef DL_GLOBAL
10422 #    define LT_DLGLOBAL         DL_GLOBAL
10423 #  else
10424 #    define LT_DLGLOBAL         0
10425 #  endif
10426 #endif
10427
10428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10429    find out it does not work in some platform. */
10430 #ifndef LT_DLLAZY_OR_NOW
10431 #  ifdef RTLD_LAZY
10432 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10433 #  else
10434 #    ifdef DL_LAZY
10435 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10436 #    else
10437 #      ifdef RTLD_NOW
10438 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10439 #      else
10440 #        ifdef DL_NOW
10441 #          define LT_DLLAZY_OR_NOW      DL_NOW
10442 #        else
10443 #          define LT_DLLAZY_OR_NOW      0
10444 #        endif
10445 #      endif
10446 #    endif
10447 #  endif
10448 #endif
10449
10450 #ifdef __cplusplus
10451 extern "C" void exit (int);
10452 #endif
10453
10454 void fnord() { int i=42;}
10455 int main ()
10456 {
10457   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10458   int status = $lt_dlunknown;
10459
10460   if (self)
10461     {
10462       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10463       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10464       /* dlclose (self); */
10465     }
10466   else
10467     puts (dlerror ());
10468
10469     exit (status);
10470 }
10471 EOF
10472   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473   (eval $ac_link) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10477     (./conftest; exit; ) >&5 2>/dev/null
10478     lt_status=$?
10479     case x$lt_status in
10480       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10481       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10482       x$lt_dlunknown|x*)  ;;
10483     esac
10484   else :
10485     # compilation failed
10486
10487   fi
10488 fi
10489 rm -fr conftest*
10490
10491           LIBS="$save_LIBS"
10492
10493 fi
10494 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10495 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10496   fi
10497 fi
10498
10499 if test x"$libltdl_cv_need_uscore" = xyes; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define NEED_USCORE 1
10503 _ACEOF
10504
10505 fi
10506
10507
10508 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10509 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10510 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513   # PORTME does your system automatically load deplibs for dlopen?
10514   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10515   # For now, we just catch OSes we know something about -- in the
10516   # future, we'll try test this programmatically.
10517   libltdl_cv_sys_dlopen_deplibs=unknown
10518   case "$host_os" in
10519   aix3*|aix4.1.*|aix4.2.*)
10520     # Unknown whether this is true for these versions of AIX, but
10521     # we want this `case' here to explicitly catch those versions.
10522     libltdl_cv_sys_dlopen_deplibs=unknown
10523     ;;
10524   aix[45]*)
10525     libltdl_cv_sys_dlopen_deplibs=yes
10526     ;;
10527   darwin*)
10528     # Assuming the user has installed a libdl from somewhere, this is true
10529     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10533     # GNU and its variants, using gnu ld.so (Glibc)
10534     libltdl_cv_sys_dlopen_deplibs=yes
10535     ;;
10536   hpux10*|hpux11*)
10537     libltdl_cv_sys_dlopen_deplibs=yes
10538     ;;
10539   interix*)
10540     libltdl_cv_sys_dlopen_deplibs=yes
10541     ;;
10542   irix[12345]*|irix6.[01]*)
10543     # Catch all versions of IRIX before 6.2, and indicate that we don't
10544     # know how it worked for any of those versions.
10545     libltdl_cv_sys_dlopen_deplibs=unknown
10546     ;;
10547   irix*)
10548     # The case above catches anything before 6.2, and it's known that
10549     # at 6.2 and later dlopen does load deplibs.
10550     libltdl_cv_sys_dlopen_deplibs=yes
10551     ;;
10552   netbsd*)
10553     libltdl_cv_sys_dlopen_deplibs=yes
10554     ;;
10555   openbsd*)
10556     libltdl_cv_sys_dlopen_deplibs=yes
10557     ;;
10558   osf[1234]*)
10559     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10560     # it did *not* use an RPATH in a shared library to find objects the
10561     # library depends on, so we explicitly say `no'.
10562     libltdl_cv_sys_dlopen_deplibs=no
10563     ;;
10564   osf5.0|osf5.0a|osf5.1)
10565     # dlopen *does* load deplibs and with the right loader patch applied
10566     # it even uses RPATH in a shared library to search for shared objects
10567     # that the library depends on, but there's no easy way to know if that
10568     # patch is installed.  Since this is the case, all we can really
10569     # say is unknown -- it depends on the patch being installed.  If
10570     # it is, this changes to `yes'.  Without it, it would be `no'.
10571     libltdl_cv_sys_dlopen_deplibs=unknown
10572     ;;
10573   osf*)
10574     # the two cases above should catch all versions of osf <= 5.1.  Read
10575     # the comments above for what we know about them.
10576     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10577     # is used to find them so we can finally say `yes'.
10578     libltdl_cv_sys_dlopen_deplibs=yes
10579     ;;
10580   solaris*)
10581     libltdl_cv_sys_dlopen_deplibs=yes
10582     ;;
10583   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10584     libltdl_cv_sys_dlopen_deplibs=yes
10585     ;;
10586   esac
10587
10588 fi
10589 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10590 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10591 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10592
10593 cat >>confdefs.h <<\_ACEOF
10594 #define LTDL_DLOPEN_DEPLIBS 1
10595 _ACEOF
10596
10597 fi
10598
10599
10600 for ac_header in argz.h
10601 do
10602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10604   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 fi
10609 ac_res=`eval echo '${'$as_ac_Header'}'`
10610                { echo "$as_me:$LINENO: result: $ac_res" >&5
10611 echo "${ECHO_T}$ac_res" >&6; }
10612 else
10613   # Is the header compilable?
10614 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 $ac_includes_default
10623 #include <$ac_header>
10624 _ACEOF
10625 rm -f conftest.$ac_objext
10626 if { (ac_try="$ac_compile"
10627 case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_compile") 2>conftest.er1
10633   ac_status=$?
10634   grep -v '^ *+' conftest.er1 >conftest.err
10635   rm -f conftest.er1
10636   cat conftest.err >&5
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640   { (case "(($ac_try" in
10641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642   *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645   (eval "$ac_try") 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; } &&
10649          { ac_try='test -s conftest.$ac_objext'
10650   { (case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_try") 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   ac_header_compiler=yes
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664         ac_header_compiler=no
10665 fi
10666
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669 echo "${ECHO_T}$ac_header_compiler" >&6; }
10670
10671 # Is the header present?
10672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 #include <$ac_header>
10681 _ACEOF
10682 if { (ac_try="$ac_cpp conftest.$ac_ext"
10683 case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10689   ac_status=$?
10690   grep -v '^ *+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } >/dev/null; then
10695   if test -s conftest.err; then
10696     ac_cpp_err=$ac_c_preproc_warn_flag
10697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10698   else
10699     ac_cpp_err=
10700   fi
10701 else
10702   ac_cpp_err=yes
10703 fi
10704 if test -z "$ac_cpp_err"; then
10705   ac_header_preproc=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710   ac_header_preproc=no
10711 fi
10712
10713 rm -f conftest.err conftest.$ac_ext
10714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10715 echo "${ECHO_T}$ac_header_preproc" >&6; }
10716
10717 # So?  What about this header?
10718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10719   yes:no: )
10720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10724     ac_header_preproc=yes
10725     ;;
10726   no:yes:* )
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10739     ( cat <<\_ASBOX
10740 ## ------------------------------------ ##
10741 ## Report this to http://llvm.org/bugs/ ##
10742 ## ------------------------------------ ##
10743 _ASBOX
10744      ) | sed "s/^/$as_me: WARNING:     /" >&2
10745     ;;
10746 esac
10747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   eval "$as_ac_Header=\$ac_header_preproc"
10753 fi
10754 ac_res=`eval echo '${'$as_ac_Header'}'`
10755                { echo "$as_me:$LINENO: result: $ac_res" >&5
10756 echo "${ECHO_T}$ac_res" >&6; }
10757
10758 fi
10759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10760   cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10762 _ACEOF
10763
10764 fi
10765
10766 done
10767
10768
10769 { echo "$as_me:$LINENO: checking for error_t" >&5
10770 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10771 if test "${ac_cv_type_error_t+set}" = set; then
10772   echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774   cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 #if HAVE_ARGZ_H
10781 #  include <argz.h>
10782 #endif
10783
10784 typedef error_t ac__type_new_;
10785 int
10786 main ()
10787 {
10788 if ((ac__type_new_ *) 0)
10789   return 0;
10790 if (sizeof (ac__type_new_))
10791   return 0;
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_compile") 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811   { (case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_try") 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; } &&
10820          { ac_try='test -s conftest.$ac_objext'
10821   { (case "(($ac_try" in
10822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823   *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826   (eval "$ac_try") 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_cv_type_error_t=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835         ac_cv_type_error_t=no
10836 fi
10837
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 fi
10840 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10841 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10842 if test $ac_cv_type_error_t = yes; then
10843
10844 cat >>confdefs.h <<_ACEOF
10845 #define HAVE_ERROR_T 1
10846 _ACEOF
10847
10848
10849 else
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define error_t int
10853 _ACEOF
10854
10855 fi
10856
10857
10858
10859
10860
10861
10862
10863 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10864 do
10865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10879 #define $ac_func innocuous_$ac_func
10880
10881 /* System header to define __stub macros and hopefully few prototypes,
10882     which can conflict with char $ac_func (); below.
10883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884     <limits.h> exists even on freestanding compilers.  */
10885
10886 #ifdef __STDC__
10887 # include <limits.h>
10888 #else
10889 # include <assert.h>
10890 #endif
10891
10892 #undef $ac_func
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895    Use char because int might match the return type of a GCC
10896    builtin and then its argument prototype would still apply.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char $ac_func ();
10901 /* The GNU C library defines this for functions which it implements
10902     to always fail with ENOSYS.  Some functions are actually named
10903     something starting with __ and the normal name is an alias.  */
10904 #if defined __stub_$ac_func || defined __stub___$ac_func
10905 choke me
10906 #endif
10907
10908 int
10909 main ()
10910 {
10911 return $ac_func ();
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_link") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest$ac_exeext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   eval "$as_ac_var=yes"
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         eval "$as_ac_var=no"
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext \
10959       conftest$ac_exeext conftest.$ac_ext
10960 fi
10961 ac_res=`eval echo '${'$as_ac_var'}'`
10962                { echo "$as_me:$LINENO: result: $ac_res" >&5
10963 echo "${ECHO_T}$ac_res" >&6; }
10964 if test `eval echo '${'$as_ac_var'}'` = yes; then
10965   cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970 done
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11000                   stdio.h unistd.h
11001 do
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 fi
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010                { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 else
11013   # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022 $ac_includes_default
11023 #include <$ac_header>
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_compile") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } &&
11039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; } &&
11049          { ac_try='test -s conftest.$ac_objext'
11050   { (case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_try") 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   ac_header_compiler=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064         ac_header_compiler=no
11065 fi
11066
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6; }
11070
11071 # Is the header present?
11072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <$ac_header>
11081 _ACEOF
11082 if { (ac_try="$ac_cpp conftest.$ac_ext"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } >/dev/null; then
11095   if test -s conftest.err; then
11096     ac_cpp_err=$ac_c_preproc_warn_flag
11097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11098   else
11099     ac_cpp_err=
11100   fi
11101 else
11102   ac_cpp_err=yes
11103 fi
11104 if test -z "$ac_cpp_err"; then
11105   ac_header_preproc=yes
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110   ac_header_preproc=no
11111 fi
11112
11113 rm -f conftest.err conftest.$ac_ext
11114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115 echo "${ECHO_T}$ac_header_preproc" >&6; }
11116
11117 # So?  What about this header?
11118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11119   yes:no: )
11120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124     ac_header_preproc=yes
11125     ;;
11126   no:yes:* )
11127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139     ( cat <<\_ASBOX
11140 ## ------------------------------------ ##
11141 ## Report this to http://llvm.org/bugs/ ##
11142 ## ------------------------------------ ##
11143 _ASBOX
11144      ) | sed "s/^/$as_me: WARNING:     /" >&2
11145     ;;
11146 esac
11147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   eval "$as_ac_Header=\$ac_header_preproc"
11153 fi
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155                { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11157
11158 fi
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160   cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11162 _ACEOF
11163
11164 fi
11165
11166 done
11167
11168
11169
11170
11171
11172 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11173 do
11174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 fi
11181 ac_res=`eval echo '${'$as_ac_Header'}'`
11182                { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11184 else
11185   # Is the header compilable?
11186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194 $ac_includes_default
11195 #include <$ac_header>
11196 _ACEOF
11197 rm -f conftest.$ac_objext
11198 if { (ac_try="$ac_compile"
11199 case "(($ac_try" in
11200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201   *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204   (eval "$ac_compile") 2>conftest.er1
11205   ac_status=$?
11206   grep -v '^ *+' conftest.er1 >conftest.err
11207   rm -f conftest.er1
11208   cat conftest.err >&5
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); } &&
11211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11212   { (case "(($ac_try" in
11213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214   *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217   (eval "$ac_try") 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; } &&
11221          { ac_try='test -s conftest.$ac_objext'
11222   { (case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_try") 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   ac_header_compiler=yes
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236         ac_header_compiler=no
11237 fi
11238
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6; }
11242
11243 # Is the header present?
11244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 #include <$ac_header>
11253 _ACEOF
11254 if { (ac_try="$ac_cpp conftest.$ac_ext"
11255 case "(($ac_try" in
11256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257   *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261   ac_status=$?
11262   grep -v '^ *+' conftest.er1 >conftest.err
11263   rm -f conftest.er1
11264   cat conftest.err >&5
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); } >/dev/null; then
11267   if test -s conftest.err; then
11268     ac_cpp_err=$ac_c_preproc_warn_flag
11269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11270   else
11271     ac_cpp_err=
11272   fi
11273 else
11274   ac_cpp_err=yes
11275 fi
11276 if test -z "$ac_cpp_err"; then
11277   ac_header_preproc=yes
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282   ac_header_preproc=no
11283 fi
11284
11285 rm -f conftest.err conftest.$ac_ext
11286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6; }
11288
11289 # So?  What about this header?
11290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11291   yes:no: )
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11296     ac_header_preproc=yes
11297     ;;
11298   no:yes:* )
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311     ( cat <<\_ASBOX
11312 ## ------------------------------------ ##
11313 ## Report this to http://llvm.org/bugs/ ##
11314 ## ------------------------------------ ##
11315 _ASBOX
11316      ) | sed "s/^/$as_me: WARNING:     /" >&2
11317     ;;
11318 esac
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   eval "$as_ac_Header=\$ac_header_preproc"
11325 fi
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327                { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11329
11330 fi
11331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11332   cat >>confdefs.h <<_ACEOF
11333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11334 _ACEOF
11335
11336 fi
11337
11338 done
11339
11340
11341
11342 for ac_header in string.h strings.h
11343 do
11344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 fi
11351 ac_res=`eval echo '${'$as_ac_Header'}'`
11352                { echo "$as_me:$LINENO: result: $ac_res" >&5
11353 echo "${ECHO_T}$ac_res" >&6; }
11354 else
11355   # Is the header compilable?
11356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h.  */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h.  */
11364 $ac_includes_default
11365 #include <$ac_header>
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (ac_try="$ac_compile"
11369 case "(($ac_try" in
11370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371   *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374   (eval "$ac_compile") 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } &&
11381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11382   { (case "(($ac_try" in
11383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384   *) ac_try_echo=$ac_try;;
11385 esac
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387   (eval "$ac_try") 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; } &&
11391          { ac_try='test -s conftest.$ac_objext'
11392   { (case "(($ac_try" in
11393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394   *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397   (eval "$ac_try") 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; }; then
11401   ac_header_compiler=yes
11402 else
11403   echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406         ac_header_compiler=no
11407 fi
11408
11409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11411 echo "${ECHO_T}$ac_header_compiler" >&6; }
11412
11413 # Is the header present?
11414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 #include <$ac_header>
11423 _ACEOF
11424 if { (ac_try="$ac_cpp conftest.$ac_ext"
11425 case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } >/dev/null; then
11437   if test -s conftest.err; then
11438     ac_cpp_err=$ac_c_preproc_warn_flag
11439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440   else
11441     ac_cpp_err=
11442   fi
11443 else
11444   ac_cpp_err=yes
11445 fi
11446 if test -z "$ac_cpp_err"; then
11447   ac_header_preproc=yes
11448 else
11449   echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11451
11452   ac_header_preproc=no
11453 fi
11454
11455 rm -f conftest.err conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457 echo "${ECHO_T}$ac_header_preproc" >&6; }
11458
11459 # So?  What about this header?
11460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461   yes:no: )
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466     ac_header_preproc=yes
11467     ;;
11468   no:yes:* )
11469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481     ( cat <<\_ASBOX
11482 ## ------------------------------------ ##
11483 ## Report this to http://llvm.org/bugs/ ##
11484 ## ------------------------------------ ##
11485 _ASBOX
11486      ) | sed "s/^/$as_me: WARNING:     /" >&2
11487     ;;
11488 esac
11489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   eval "$as_ac_Header=\$ac_header_preproc"
11495 fi
11496 ac_res=`eval echo '${'$as_ac_Header'}'`
11497                { echo "$as_me:$LINENO: result: $ac_res" >&5
11498 echo "${ECHO_T}$ac_res" >&6; }
11499
11500 fi
11501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502   cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504 _ACEOF
11505  break
11506 fi
11507
11508 done
11509
11510
11511
11512
11513 for ac_func in strchr index
11514 do
11515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h.  */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h.  */
11527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11529 #define $ac_func innocuous_$ac_func
11530
11531 /* System header to define __stub macros and hopefully few prototypes,
11532     which can conflict with char $ac_func (); below.
11533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534     <limits.h> exists even on freestanding compilers.  */
11535
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11541
11542 #undef $ac_func
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545    Use char because int might match the return type of a GCC
11546    builtin and then its argument prototype would still apply.  */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char $ac_func ();
11551 /* The GNU C library defines this for functions which it implements
11552     to always fail with ENOSYS.  Some functions are actually named
11553     something starting with __ and the normal name is an alias.  */
11554 #if defined __stub_$ac_func || defined __stub___$ac_func
11555 choke me
11556 #endif
11557
11558 int
11559 main ()
11560 {
11561 return $ac_func ();
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (ac_try="$ac_link"
11568 case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_link") 2>conftest.er1
11574   ac_status=$?
11575   grep -v '^ *+' conftest.er1 >conftest.err
11576   rm -f conftest.er1
11577   cat conftest.err >&5
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11581   { (case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586   (eval "$ac_try") 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; } &&
11590          { ac_try='test -s conftest$ac_exeext'
11591   { (case "(($ac_try" in
11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593   *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596   (eval "$ac_try") 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); }; }; then
11600   eval "$as_ac_var=yes"
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605         eval "$as_ac_var=no"
11606 fi
11607
11608 rm -f core conftest.err conftest.$ac_objext \
11609       conftest$ac_exeext conftest.$ac_ext
11610 fi
11611 ac_res=`eval echo '${'$as_ac_var'}'`
11612                { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 _ACEOF
11618  break
11619 fi
11620 done
11621
11622
11623
11624 for ac_func in strrchr rindex
11625 do
11626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11640 #define $ac_func innocuous_$ac_func
11641
11642 /* System header to define __stub macros and hopefully few prototypes,
11643     which can conflict with char $ac_func (); below.
11644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645     <limits.h> exists even on freestanding compilers.  */
11646
11647 #ifdef __STDC__
11648 # include <limits.h>
11649 #else
11650 # include <assert.h>
11651 #endif
11652
11653 #undef $ac_func
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656    Use char because int might match the return type of a GCC
11657    builtin and then its argument prototype would still apply.  */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char $ac_func ();
11662 /* The GNU C library defines this for functions which it implements
11663     to always fail with ENOSYS.  Some functions are actually named
11664     something starting with __ and the normal name is an alias.  */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11666 choke me
11667 #endif
11668
11669 int
11670 main ()
11671 {
11672 return $ac_func ();
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_link") 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } &&
11691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692   { (case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_try") 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest$ac_exeext'
11702   { (case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707   (eval "$ac_try") 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711   eval "$as_ac_var=yes"
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716         eval "$as_ac_var=no"
11717 fi
11718
11719 rm -f core conftest.err conftest.$ac_objext \
11720       conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723                { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726   cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11728 _ACEOF
11729  break
11730 fi
11731 done
11732
11733
11734
11735 for ac_func in memcpy bcopy
11736 do
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11751 #define $ac_func innocuous_$ac_func
11752
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func (); below.
11755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756     <limits.h> exists even on freestanding compilers.  */
11757
11758 #ifdef __STDC__
11759 # include <limits.h>
11760 #else
11761 # include <assert.h>
11762 #endif
11763
11764 #undef $ac_func
11765
11766 /* Override any GCC internal prototype to avoid an error.
11767    Use char because int might match the return type of a GCC
11768    builtin and then its argument prototype would still apply.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char $ac_func ();
11773 /* The GNU C library defines this for functions which it implements
11774     to always fail with ENOSYS.  Some functions are actually named
11775     something starting with __ and the normal name is an alias.  */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 choke me
11778 #endif
11779
11780 int
11781 main ()
11782 {
11783 return $ac_func ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_link") 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest$ac_exeext'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   eval "$as_ac_var=yes"
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         eval "$as_ac_var=no"
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext \
11831       conftest$ac_exeext conftest.$ac_ext
11832 fi
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834                { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837   cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839 _ACEOF
11840  break
11841 fi
11842 done
11843
11844
11845
11846 for ac_func in memmove strcmp
11847 do
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11862 #define $ac_func innocuous_$ac_func
11863
11864 /* System header to define __stub macros and hopefully few prototypes,
11865     which can conflict with char $ac_func (); below.
11866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867     <limits.h> exists even on freestanding compilers.  */
11868
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11874
11875 #undef $ac_func
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878    Use char because int might match the return type of a GCC
11879    builtin and then its argument prototype would still apply.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char $ac_func ();
11884 /* The GNU C library defines this for functions which it implements
11885     to always fail with ENOSYS.  Some functions are actually named
11886     something starting with __ and the normal name is an alias.  */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11888 choke me
11889 #endif
11890
11891 int
11892 main ()
11893 {
11894 return $ac_func ();
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_link") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914   { (case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_try") 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest$ac_exeext'
11924   { (case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_try") 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   eval "$as_ac_var=yes"
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938         eval "$as_ac_var=no"
11939 fi
11940
11941 rm -f core conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945                { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948   cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 _ACEOF
11951
11952 fi
11953 done
11954
11955
11956
11957
11958 for ac_func in closedir opendir readdir
11959 do
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11974 #define $ac_func innocuous_$ac_func
11975
11976 /* System header to define __stub macros and hopefully few prototypes,
11977     which can conflict with char $ac_func (); below.
11978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979     <limits.h> exists even on freestanding compilers.  */
11980
11981 #ifdef __STDC__
11982 # include <limits.h>
11983 #else
11984 # include <assert.h>
11985 #endif
11986
11987 #undef $ac_func
11988
11989 /* Override any GCC internal prototype to avoid an error.
11990    Use char because int might match the return type of a GCC
11991    builtin and then its argument prototype would still apply.  */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char $ac_func ();
11996 /* The GNU C library defines this for functions which it implements
11997     to always fail with ENOSYS.  Some functions are actually named
11998     something starting with __ and the normal name is an alias.  */
11999 #if defined __stub_$ac_func || defined __stub___$ac_func
12000 choke me
12001 #endif
12002
12003 int
12004 main ()
12005 {
12006 return $ac_func ();
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_link") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   eval "$as_ac_var=yes"
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050         eval "$as_ac_var=no"
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext \
12054       conftest$ac_exeext conftest.$ac_ext
12055 fi
12056 ac_res=`eval echo '${'$as_ac_var'}'`
12057                { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059 if test `eval echo '${'$as_ac_var'}'` = yes; then
12060   cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062 _ACEOF
12063
12064 fi
12065 done
12066
12067
12068
12069 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12070 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12071
12072 ICC=no
12073 IXX=no
12074 case $CC in
12075   icc*|icpc*)
12076     ICC=yes
12077     IXX=yes
12078     ;;
12079    *)
12080     ;;
12081 esac
12082
12083 if test "$GCC" != "yes" && test "$ICC" != "yes"
12084 then
12085   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12086 echo "$as_me: error: gcc|icc required but not found" >&2;}
12087    { (exit 1); exit 1; }; }
12088 fi
12089
12090 if test "$GXX" != "yes" && test "$IXX" != "yes"
12091 then
12092   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12093 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12094    { (exit 1); exit 1; }; }
12095 fi
12096
12097 if test "$GCC" = "yes"
12098 then
12099   cat >conftest.$ac_ext <<_ACEOF
12100 #if !defined(__GNUC__) || __GNUC__ < 3
12101 #error Unsupported GCC version
12102 #endif
12103
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_compile") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest.$ac_objext'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   :
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12145 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12146    { (exit 1); exit 1; }; }
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 fi
12151
12152 if test -z "$llvm_cv_gnu_make_command"
12153 then
12154   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12155 echo "$as_me: error: GNU Make required but not found" >&2;}
12156    { (exit 1); exit 1; }; }
12157 fi
12158
12159 { echo "$as_me:$LINENO: result: ok" >&5
12160 echo "${ECHO_T}ok" >&6; }
12161
12162 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12163 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12164 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12165
12166 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12167
12168 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12169
12170 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12171 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12172
12173
12174
12175 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12176 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_m_sin+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lm  $LIBS"
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190    Use char because int might match the return type of a GCC
12191    builtin and then its argument prototype would still apply.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char sin ();
12196 int
12197 main ()
12198 {
12199 return sin ();
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_link") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest$ac_exeext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_lib_m_sin=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243         ac_cv_lib_m_sin=no
12244 fi
12245
12246 rm -f core conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12251 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12252 if test $ac_cv_lib_m_sin = yes; then
12253   cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBM 1
12255 _ACEOF
12256
12257   LIBS="-lm $LIBS"
12258
12259 fi
12260
12261 if test "$llvm_cv_os_type" = "MingW" ; then
12262
12263 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12264 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12265 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-limagehlp  $LIBS"
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276
12277
12278 int
12279 main ()
12280 {
12281 return main ();
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_link") 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301   { (case "(($ac_try" in
12302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303   *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306   (eval "$ac_try") 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; } &&
12310          { ac_try='test -s conftest$ac_exeext'
12311   { (case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_try") 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_lib_imagehlp_main=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325         ac_cv_lib_imagehlp_main=no
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext \
12329       conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12331 fi
12332 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12333 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12334 if test $ac_cv_lib_imagehlp_main = yes; then
12335   cat >>confdefs.h <<_ACEOF
12336 #define HAVE_LIBIMAGEHLP 1
12337 _ACEOF
12338
12339   LIBS="-limagehlp $LIBS"
12340
12341 fi
12342
12343
12344 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12345 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12346 if test "${ac_cv_lib_psapi_main+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-lpsapi  $LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358
12359 int
12360 main ()
12361 {
12362 return main ();
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_link") 2>conftest.er1
12375   ac_status=$?
12376   grep -v '^ *+' conftest.er1 >conftest.err
12377   rm -f conftest.er1
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382   { (case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387   (eval "$ac_try") 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; } &&
12391          { ac_try='test -s conftest$ac_exeext'
12392   { (case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397   (eval "$ac_try") 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_lib_psapi_main=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406         ac_cv_lib_psapi_main=no
12407 fi
12408
12409 rm -f core conftest.err conftest.$ac_objext \
12410       conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12414 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12415 if test $ac_cv_lib_psapi_main = yes; then
12416   cat >>confdefs.h <<_ACEOF
12417 #define HAVE_LIBPSAPI 1
12418 _ACEOF
12419
12420   LIBS="-lpsapi $LIBS"
12421
12422 fi
12423
12424 fi
12425
12426 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12427 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12428 if test "${ac_cv_search_dlopen+set}" = set; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   ac_func_search_save_LIBS=$LIBS
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440    Use char because int might match the return type of a GCC
12441    builtin and then its argument prototype would still apply.  */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char dlopen ();
12446 int
12447 main ()
12448 {
12449 return dlopen ();
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 for ac_lib in '' dl; do
12455   if test -z "$ac_lib"; then
12456     ac_res="none required"
12457   else
12458     ac_res=-l$ac_lib
12459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12460   fi
12461   rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468   (eval "$ac_link") 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476   { (case "(($ac_try" in
12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478   *) ac_try_echo=$ac_try;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481   (eval "$ac_try") 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest$ac_exeext'
12486   { (case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_try") 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; }; then
12495   ac_cv_search_dlopen=$ac_res
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500
12501 fi
12502
12503 rm -f core conftest.err conftest.$ac_objext \
12504       conftest$ac_exeext
12505   if test "${ac_cv_search_dlopen+set}" = set; then
12506   break
12507 fi
12508 done
12509 if test "${ac_cv_search_dlopen+set}" = set; then
12510   :
12511 else
12512   ac_cv_search_dlopen=no
12513 fi
12514 rm conftest.$ac_ext
12515 LIBS=$ac_func_search_save_LIBS
12516 fi
12517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12518 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12519 ac_res=$ac_cv_search_dlopen
12520 if test "$ac_res" != no; then
12521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12522
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_DLOPEN 1
12525 _ACEOF
12526
12527 else
12528   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12529 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12530 fi
12531
12532
12533 if test "$llvm_cv_enable_libffi" = "yes" ; then
12534   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12535 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12536 if test "${ac_cv_search_ffi_call+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   ac_func_search_save_LIBS=$LIBS
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546
12547 /* Override any GCC internal prototype to avoid an error.
12548    Use char because int might match the return type of a GCC
12549    builtin and then its argument prototype would still apply.  */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 char ffi_call ();
12554 int
12555 main ()
12556 {
12557 return ffi_call ();
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 for ac_lib in '' ffi; do
12563   if test -z "$ac_lib"; then
12564     ac_res="none required"
12565   else
12566     ac_res=-l$ac_lib
12567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12568   fi
12569   rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_link") 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584   { (case "(($ac_try" in
12585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586   *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589   (eval "$ac_try") 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest$ac_exeext'
12594   { (case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_try") 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_cv_search_ffi_call=$ac_res
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext \
12612       conftest$ac_exeext
12613   if test "${ac_cv_search_ffi_call+set}" = set; then
12614   break
12615 fi
12616 done
12617 if test "${ac_cv_search_ffi_call+set}" = set; then
12618   :
12619 else
12620   ac_cv_search_ffi_call=no
12621 fi
12622 rm conftest.$ac_ext
12623 LIBS=$ac_func_search_save_LIBS
12624 fi
12625 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12626 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12627 ac_res=$ac_cv_search_ffi_call
12628 if test "$ac_res" != no; then
12629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630
12631 cat >>confdefs.h <<\_ACEOF
12632 #define HAVE_FFI_CALL 1
12633 _ACEOF
12634
12635 else
12636   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12637 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12638    { (exit 1); exit 1; }; }
12639 fi
12640
12641 fi
12642
12643 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12644 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12645 if test "${ac_cv_search_mallinfo+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   ac_func_search_save_LIBS=$LIBS
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655
12656 /* Override any GCC internal prototype to avoid an error.
12657    Use char because int might match the return type of a GCC
12658    builtin and then its argument prototype would still apply.  */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char mallinfo ();
12663 int
12664 main ()
12665 {
12666 return mallinfo ();
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 for ac_lib in '' malloc; do
12672   if test -z "$ac_lib"; then
12673     ac_res="none required"
12674   else
12675     ac_res=-l$ac_lib
12676     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12677   fi
12678   rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682   *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685   (eval "$ac_link") 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12702          { ac_try='test -s conftest$ac_exeext'
12703   { (case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_try") 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; }; then
12712   ac_cv_search_mallinfo=$ac_res
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
12718 fi
12719
12720 rm -f core conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext
12722   if test "${ac_cv_search_mallinfo+set}" = set; then
12723   break
12724 fi
12725 done
12726 if test "${ac_cv_search_mallinfo+set}" = set; then
12727   :
12728 else
12729   ac_cv_search_mallinfo=no
12730 fi
12731 rm conftest.$ac_ext
12732 LIBS=$ac_func_search_save_LIBS
12733 fi
12734 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12735 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12736 ac_res=$ac_cv_search_mallinfo
12737 if test "$ac_res" != no; then
12738   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12739
12740 cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_MALLINFO 1
12742 _ACEOF
12743
12744 fi
12745
12746
12747 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12748
12749 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12750 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12751 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lpthread  $LIBS"
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764    Use char because int might match the return type of a GCC
12765    builtin and then its argument prototype would still apply.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char pthread_mutex_init ();
12770 int
12771 main ()
12772 {
12773 return pthread_mutex_init ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_link") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_cv_lib_pthread_pthread_mutex_init=yes
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817         ac_cv_lib_pthread_pthread_mutex_init=no
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12823 fi
12824 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12825 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12826 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12827   cat >>confdefs.h <<_ACEOF
12828 #define HAVE_LIBPTHREAD 1
12829 _ACEOF
12830
12831   LIBS="-lpthread $LIBS"
12832
12833 fi
12834
12835   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12836 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12837 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840   ac_func_search_save_LIBS=$LIBS
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847
12848 /* Override any GCC internal prototype to avoid an error.
12849    Use char because int might match the return type of a GCC
12850    builtin and then its argument prototype would still apply.  */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 char pthread_mutex_lock ();
12855 int
12856 main ()
12857 {
12858 return pthread_mutex_lock ();
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 for ac_lib in '' pthread; do
12864   if test -z "$ac_lib"; then
12865     ac_res="none required"
12866   else
12867     ac_res=-l$ac_lib
12868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12869   fi
12870   rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877   (eval "$ac_link") 2>conftest.er1
12878   ac_status=$?
12879   grep -v '^ *+' conftest.er1 >conftest.err
12880   rm -f conftest.er1
12881   cat conftest.err >&5
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } &&
12884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885   { (case "(($ac_try" in
12886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887   *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890   (eval "$ac_try") 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; } &&
12894          { ac_try='test -s conftest$ac_exeext'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_cv_search_pthread_mutex_lock=$ac_res
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext \
12913       conftest$ac_exeext
12914   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12915   break
12916 fi
12917 done
12918 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919   :
12920 else
12921   ac_cv_search_pthread_mutex_lock=no
12922 fi
12923 rm conftest.$ac_ext
12924 LIBS=$ac_func_search_save_LIBS
12925 fi
12926 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12927 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12928 ac_res=$ac_cv_search_pthread_mutex_lock
12929 if test "$ac_res" != no; then
12930   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12931
12932 cat >>confdefs.h <<\_ACEOF
12933 #define HAVE_PTHREAD_MUTEX_LOCK 1
12934 _ACEOF
12935
12936 fi
12937
12938   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12939 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12940 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   ac_func_search_save_LIBS=$LIBS
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h.  */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h.  */
12950
12951 /* Override any GCC internal prototype to avoid an error.
12952    Use char because int might match the return type of a GCC
12953    builtin and then its argument prototype would still apply.  */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char pthread_rwlock_init ();
12958 int
12959 main ()
12960 {
12961 return pthread_rwlock_init ();
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 for ac_lib in '' pthread; do
12967   if test -z "$ac_lib"; then
12968     ac_res="none required"
12969   else
12970     ac_res=-l$ac_lib
12971     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12972   fi
12973   rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977   *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980   (eval "$ac_link") 2>conftest.er1
12981   ac_status=$?
12982   grep -v '^ *+' conftest.er1 >conftest.err
12983   rm -f conftest.er1
12984   cat conftest.err >&5
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); } &&
12987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12988   { (case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993   (eval "$ac_try") 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; } &&
12997          { ac_try='test -s conftest$ac_exeext'
12998   { (case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_try") 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_cv_search_pthread_rwlock_init=$ac_res
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012
13013 fi
13014
13015 rm -f core conftest.err conftest.$ac_objext \
13016       conftest$ac_exeext
13017   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13018   break
13019 fi
13020 done
13021 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022   :
13023 else
13024   ac_cv_search_pthread_rwlock_init=no
13025 fi
13026 rm conftest.$ac_ext
13027 LIBS=$ac_func_search_save_LIBS
13028 fi
13029 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13030 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13031 ac_res=$ac_cv_search_pthread_rwlock_init
13032 if test "$ac_res" != no; then
13033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13034
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_PTHREAD_RWLOCK_INIT 1
13037 _ACEOF
13038
13039 fi
13040
13041   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13042 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13043 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   ac_func_search_save_LIBS=$LIBS
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055    Use char because int might match the return type of a GCC
13056    builtin and then its argument prototype would still apply.  */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char pthread_getspecific ();
13061 int
13062 main ()
13063 {
13064 return pthread_getspecific ();
13065   ;
13066   return 0;
13067 }
13068 _ACEOF
13069 for ac_lib in '' pthread; do
13070   if test -z "$ac_lib"; then
13071     ac_res="none required"
13072   else
13073     ac_res=-l$ac_lib
13074     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13075   fi
13076   rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (ac_try="$ac_link"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_link") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } &&
13090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091   { (case "(($ac_try" in
13092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093   *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096   (eval "$ac_try") 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; } &&
13100          { ac_try='test -s conftest$ac_exeext'
13101   { (case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_try") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_cv_search_pthread_getspecific=$ac_res
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115
13116 fi
13117
13118 rm -f core conftest.err conftest.$ac_objext \
13119       conftest$ac_exeext
13120   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13121   break
13122 fi
13123 done
13124 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125   :
13126 else
13127   ac_cv_search_pthread_getspecific=no
13128 fi
13129 rm conftest.$ac_ext
13130 LIBS=$ac_func_search_save_LIBS
13131 fi
13132 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13133 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13134 ac_res=$ac_cv_search_pthread_getspecific
13135 if test "$ac_res" != no; then
13136   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_PTHREAD_GETSPECIFIC 1
13140 _ACEOF
13141
13142 fi
13143
13144 fi
13145
13146
13147 # Check whether --with-udis86 was given.
13148 if test "${with_udis86+set}" = set; then
13149   withval=$with_udis86;
13150       USE_UDIS86=1
13151
13152       case "$withval" in
13153         /usr/lib|yes) ;;
13154         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13155       esac
13156
13157 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13158 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13159 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-ludis86  $LIBS"
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172    Use char because int might match the return type of a GCC
13173    builtin and then its argument prototype would still apply.  */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char ud_init ();
13178 int
13179 main ()
13180 {
13181 return ud_init ();
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (ac_try="$ac_link"
13188 case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_link") 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } &&
13200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13201   { (case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_try") 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; } &&
13210          { ac_try='test -s conftest$ac_exeext'
13211   { (case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_try") 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   ac_cv_lib_udis86_ud_init=yes
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225         ac_cv_lib_udis86_ud_init=no
13226 fi
13227
13228 rm -f core conftest.err conftest.$ac_objext \
13229       conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13233 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13234 if test $ac_cv_lib_udis86_ud_init = yes; then
13235   cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LIBUDIS86 1
13237 _ACEOF
13238
13239   LIBS="-ludis86 $LIBS"
13240
13241 else
13242
13243         echo "Error! You need to have libudis86 around."
13244         exit -1
13245
13246 fi
13247
13248
13249 else
13250   USE_UDIS86=0
13251
13252 fi
13253
13254
13255 cat >>confdefs.h <<_ACEOF
13256 #define USE_UDIS86 $USE_UDIS86
13257 _ACEOF
13258
13259
13260
13261 # Check whether --with-oprofile was given.
13262 if test "${with_oprofile+set}" = set; then
13263   withval=$with_oprofile;
13264       USE_OPROFILE=1
13265
13266       case "$withval" in
13267         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13268         no) llvm_cv_oppath=
13269             USE_OPROFILE=0
13270  ;;
13271         *) llvm_cv_oppath="${withval}/lib/oprofile"
13272            CPPFLAGS="-I${withval}/include";;
13273       esac
13274       case $llvm_cv_os_type in
13275         Linux)
13276           if test -n "$llvm_cv_oppath" ; then
13277             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13279 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_bfd_init+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292    Use char because int might match the return type of a GCC
13293    builtin and then its argument prototype would still apply.  */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char bfd_init ();
13298 int
13299 main ()
13300 {
13301 return bfd_init ();
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 for ac_lib in '' bfd; do
13307   if test -z "$ac_lib"; then
13308     ac_res="none required"
13309   else
13310     ac_res=-l$ac_lib
13311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13312   fi
13313   rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_link") 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } &&
13327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328   { (case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_try") 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; } &&
13337          { ac_try='test -s conftest$ac_exeext'
13338   { (case "(($ac_try" in
13339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340   *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343   (eval "$ac_try") 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; }; then
13347   ac_cv_search_bfd_init=$ac_res
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352
13353 fi
13354
13355 rm -f core conftest.err conftest.$ac_objext \
13356       conftest$ac_exeext
13357   if test "${ac_cv_search_bfd_init+set}" = set; then
13358   break
13359 fi
13360 done
13361 if test "${ac_cv_search_bfd_init+set}" = set; then
13362   :
13363 else
13364   ac_cv_search_bfd_init=no
13365 fi
13366 rm conftest.$ac_ext
13367 LIBS=$ac_func_search_save_LIBS
13368 fi
13369 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13371 ac_res=$ac_cv_search_bfd_init
13372 if test "$ac_res" != no; then
13373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13374
13375 fi
13376
13377             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13378 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_op_open_agent+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 /* Override any GCC internal prototype to avoid an error.
13391    Use char because int might match the return type of a GCC
13392    builtin and then its argument prototype would still apply.  */
13393 #ifdef __cplusplus
13394 extern "C"
13395 #endif
13396 char op_open_agent ();
13397 int
13398 main ()
13399 {
13400 return op_open_agent ();
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 for ac_lib in '' opagent; do
13406   if test -z "$ac_lib"; then
13407     ac_res="none required"
13408   else
13409     ac_res=-l$ac_lib
13410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13411   fi
13412   rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_search_op_open_agent=$ac_res
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext
13456   if test "${ac_cv_search_op_open_agent+set}" = set; then
13457   break
13458 fi
13459 done
13460 if test "${ac_cv_search_op_open_agent+set}" = set; then
13461   :
13462 else
13463   ac_cv_search_op_open_agent=no
13464 fi
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13470 ac_res=$ac_cv_search_op_open_agent
13471 if test "$ac_res" != no; then
13472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474 else
13475
13476               echo "Error! You need to have libopagent around."
13477               exit -1
13478
13479 fi
13480
13481             if test "${ac_cv_header_opagent_h+set}" = set; then
13482   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_opagent_h+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 fi
13487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13489 else
13490   # Is the header compilable?
13491 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 $ac_includes_default
13500 #include <opagent.h>
13501 _ACEOF
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_compile") 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest.$ac_objext'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_header_compiler=yes
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541         ac_header_compiler=no
13542 fi
13543
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546 echo "${ECHO_T}$ac_header_compiler" >&6; }
13547
13548 # Is the header present?
13549 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551 cat >conftest.$ac_ext <<_ACEOF
13552 /* confdefs.h.  */
13553 _ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h.  */
13557 #include <opagent.h>
13558 _ACEOF
13559 if { (ac_try="$ac_cpp conftest.$ac_ext"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } >/dev/null; then
13572   if test -s conftest.err; then
13573     ac_cpp_err=$ac_c_preproc_warn_flag
13574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575   else
13576     ac_cpp_err=
13577   fi
13578 else
13579   ac_cpp_err=yes
13580 fi
13581 if test -z "$ac_cpp_err"; then
13582   ac_header_preproc=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587   ac_header_preproc=no
13588 fi
13589
13590 rm -f conftest.err conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 echo "${ECHO_T}$ac_header_preproc" >&6; }
13593
13594 # So?  What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596   yes:no: )
13597     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601     ac_header_preproc=yes
13602     ;;
13603   no:yes:* )
13604     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13607 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13608     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13611 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13612     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13616     ( cat <<\_ASBOX
13617 ## ------------------------------------ ##
13618 ## Report this to http://llvm.org/bugs/ ##
13619 ## ------------------------------------ ##
13620 _ASBOX
13621      ) | sed "s/^/$as_me: WARNING:     /" >&2
13622     ;;
13623 esac
13624 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13625 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627   echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629   ac_cv_header_opagent_h=$ac_header_preproc
13630 fi
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13633
13634 fi
13635 if test $ac_cv_header_opagent_h = yes; then
13636   :
13637 else
13638
13639               echo "Error! You need to have opagent.h around."
13640               exit -1
13641
13642 fi
13643
13644
13645           fi ;;
13646         *)
13647           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13648 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13649    { (exit 1); exit 1; }; } ;;
13650       esac
13651
13652 else
13653
13654       USE_OPROFILE=0
13655
13656
13657 fi
13658
13659
13660 cat >>confdefs.h <<_ACEOF
13661 #define LLVM_USE_OPROFILE $USE_OPROFILE
13662 _ACEOF
13663
13664
13665
13666 # Check whether --with-intel-jitevents was given.
13667 if test "${with_intel_jitevents+set}" = set; then
13668   withval=$with_intel_jitevents;
13669       case $llvm_cv_os_type in
13670         Linux|Win32|Cygwin|MingW) ;;
13671         *)
13672           { { echo "$as_me:$LINENO: error:
13673             Intel JIT API support is available on Linux and Windows only.\"" >&5
13674 echo "$as_me: error:
13675             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13676    { (exit 1); exit 1; }; } ;;
13677       esac
13678
13679       USE_INTEL_JITEVENTS=1
13680
13681       case "$llvm_cv_target_arch" in
13682         x86)    llvm_intel_jitevents_archdir="lib32";;
13683         x86_64) llvm_intel_jitevents_archdir="lib64";;
13684         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13685                 exit -1;;
13686       esac
13687       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13688       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13689       case "$withval" in
13690         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13691                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13692         *) ;;
13693       esac
13694
13695
13696
13697
13698       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13699       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13700
13701       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13702 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13703 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706   ac_func_search_save_LIBS=$LIBS
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713
13714 /* Override any GCC internal prototype to avoid an error.
13715    Use char because int might match the return type of a GCC
13716    builtin and then its argument prototype would still apply.  */
13717 #ifdef __cplusplus
13718 extern "C"
13719 #endif
13720 char iJIT_IsProfilingActive ();
13721 int
13722 main ()
13723 {
13724 return iJIT_IsProfilingActive ();
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 for ac_lib in '' jitprofiling; do
13730   if test -z "$ac_lib"; then
13731     ac_res="none required"
13732   else
13733     ac_res=-l$ac_lib
13734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13735   fi
13736   rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (ac_try="$ac_link"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_link") 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } &&
13750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751   { (case "(($ac_try" in
13752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753   *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756   (eval "$ac_try") 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest$ac_exeext'
13761   { (case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_try") 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; }; then
13770   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775
13776 fi
13777
13778 rm -f core conftest.err conftest.$ac_objext \
13779       conftest$ac_exeext
13780   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13781   break
13782 fi
13783 done
13784 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13785   :
13786 else
13787   ac_cv_search_iJIT_IsProfilingActive=no
13788 fi
13789 rm conftest.$ac_ext
13790 LIBS=$ac_func_search_save_LIBS
13791 fi
13792 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13793 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13794 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13795 if test "$ac_res" != no; then
13796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13797
13798 else
13799
13800         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13801         exit -1
13802
13803 fi
13804
13805       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13807 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13808 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 fi
13811 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13812 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13813 else
13814   # Is the header compilable?
13815 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13816 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h.  */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h.  */
13823 $ac_includes_default
13824 #include <jitprofiling.h>
13825 _ACEOF
13826 rm -f conftest.$ac_objext
13827 if { (ac_try="$ac_compile"
13828 case "(($ac_try" in
13829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830   *) ac_try_echo=$ac_try;;
13831 esac
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833   (eval "$ac_compile") 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13841   { (case "(($ac_try" in
13842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843   *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846   (eval "$ac_try") 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest.$ac_objext'
13851   { (case "(($ac_try" in
13852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853   *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856   (eval "$ac_try") 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; }; then
13860   ac_header_compiler=yes
13861 else
13862   echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865         ac_header_compiler=no
13866 fi
13867
13868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13870 echo "${ECHO_T}$ac_header_compiler" >&6; }
13871
13872 # Is the header present?
13873 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13874 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h.  */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h.  */
13881 #include <jitprofiling.h>
13882 _ACEOF
13883 if { (ac_try="$ac_cpp conftest.$ac_ext"
13884 case "(($ac_try" in
13885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886   *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13890   ac_status=$?
13891   grep -v '^ *+' conftest.er1 >conftest.err
13892   rm -f conftest.er1
13893   cat conftest.err >&5
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } >/dev/null; then
13896   if test -s conftest.err; then
13897     ac_cpp_err=$ac_c_preproc_warn_flag
13898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13899   else
13900     ac_cpp_err=
13901   fi
13902 else
13903   ac_cpp_err=yes
13904 fi
13905 if test -z "$ac_cpp_err"; then
13906   ac_header_preproc=yes
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911   ac_header_preproc=no
13912 fi
13913
13914 rm -f conftest.err conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916 echo "${ECHO_T}$ac_header_preproc" >&6; }
13917
13918 # So?  What about this header?
13919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920   yes:no: )
13921     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13922 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13923     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13924 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13925     ac_header_preproc=yes
13926     ;;
13927   no:yes:* )
13928     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13929 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13930     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13931 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13932     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13933 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13935 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13937 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13938     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13939 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13940     ( cat <<\_ASBOX
13941 ## ------------------------------------ ##
13942 ## Report this to http://llvm.org/bugs/ ##
13943 ## ------------------------------------ ##
13944 _ASBOX
13945      ) | sed "s/^/$as_me: WARNING:     /" >&2
13946     ;;
13947 esac
13948 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13949 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13950 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   ac_cv_header_jitprofiling_h=$ac_header_preproc
13954 fi
13955 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13956 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13957
13958 fi
13959 if test $ac_cv_header_jitprofiling_h = yes; then
13960   :
13961 else
13962
13963         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13964         exit -1
13965
13966 fi
13967
13968
13969
13970
13971 else
13972
13973       USE_INTEL_JITEVENTS=0
13974
13975
13976 fi
13977
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13981 _ACEOF
13982
13983
13984
13985
13986
13987
13988
13989
13990 ac_header_dirent=no
13991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13992   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13993 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13994 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 #include <sys/types.h>
14005 #include <$ac_hdr>
14006
14007 int
14008 main ()
14009 {
14010 if ((DIR *) 0)
14011 return 0;
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (ac_try="$ac_compile"
14018 case "(($ac_try" in
14019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020   *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023   (eval "$ac_compile") 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; } &&
14040          { ac_try='test -s conftest.$ac_objext'
14041   { (case "(($ac_try" in
14042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043   *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046   (eval "$ac_try") 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   eval "$as_ac_Header=yes"
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055         eval "$as_ac_Header=no"
14056 fi
14057
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 fi
14060 ac_res=`eval echo '${'$as_ac_Header'}'`
14061                { echo "$as_me:$LINENO: result: $ac_res" >&5
14062 echo "${ECHO_T}$ac_res" >&6; }
14063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14064   cat >>confdefs.h <<_ACEOF
14065 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14066 _ACEOF
14067
14068 ac_header_dirent=$ac_hdr; break
14069 fi
14070
14071 done
14072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14073 if test $ac_header_dirent = dirent.h; then
14074   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14076 if test "${ac_cv_search_opendir+set}" = set; then
14077   echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079   ac_func_search_save_LIBS=$LIBS
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h.  */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h.  */
14086
14087 /* Override any GCC internal prototype to avoid an error.
14088    Use char because int might match the return type of a GCC
14089    builtin and then its argument prototype would still apply.  */
14090 #ifdef __cplusplus
14091 extern "C"
14092 #endif
14093 char opendir ();
14094 int
14095 main ()
14096 {
14097 return opendir ();
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 for ac_lib in '' dir; do
14103   if test -z "$ac_lib"; then
14104     ac_res="none required"
14105   else
14106     ac_res=-l$ac_lib
14107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14108   fi
14109   rm -f conftest.$ac_objext conftest$ac_exeext
14110 if { (ac_try="$ac_link"
14111 case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116   (eval "$ac_link") 2>conftest.er1
14117   ac_status=$?
14118   grep -v '^ *+' conftest.er1 >conftest.err
14119   rm -f conftest.er1
14120   cat conftest.err >&5
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } &&
14123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14124   { (case "(($ac_try" in
14125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126   *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129   (eval "$ac_try") 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; } &&
14133          { ac_try='test -s conftest$ac_exeext'
14134   { (case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139   (eval "$ac_try") 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; }; then
14143   ac_cv_search_opendir=$ac_res
14144 else
14145   echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14147
14148
14149 fi
14150
14151 rm -f core conftest.err conftest.$ac_objext \
14152       conftest$ac_exeext
14153   if test "${ac_cv_search_opendir+set}" = set; then
14154   break
14155 fi
14156 done
14157 if test "${ac_cv_search_opendir+set}" = set; then
14158   :
14159 else
14160   ac_cv_search_opendir=no
14161 fi
14162 rm conftest.$ac_ext
14163 LIBS=$ac_func_search_save_LIBS
14164 fi
14165 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14166 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14167 ac_res=$ac_cv_search_opendir
14168 if test "$ac_res" != no; then
14169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14170
14171 fi
14172
14173 else
14174   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14175 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14176 if test "${ac_cv_search_opendir+set}" = set; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   ac_func_search_save_LIBS=$LIBS
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h.  */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h.  */
14186
14187 /* Override any GCC internal prototype to avoid an error.
14188    Use char because int might match the return type of a GCC
14189    builtin and then its argument prototype would still apply.  */
14190 #ifdef __cplusplus
14191 extern "C"
14192 #endif
14193 char opendir ();
14194 int
14195 main ()
14196 {
14197 return opendir ();
14198   ;
14199   return 0;
14200 }
14201 _ACEOF
14202 for ac_lib in '' x; do
14203   if test -z "$ac_lib"; then
14204     ac_res="none required"
14205   else
14206     ac_res=-l$ac_lib
14207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14208   fi
14209   rm -f conftest.$ac_objext conftest$ac_exeext
14210 if { (ac_try="$ac_link"
14211 case "(($ac_try" in
14212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213   *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216   (eval "$ac_link") 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } &&
14223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14224   { (case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229   (eval "$ac_try") 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); }; } &&
14233          { ac_try='test -s conftest$ac_exeext'
14234   { (case "(($ac_try" in
14235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236   *) ac_try_echo=$ac_try;;
14237 esac
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239   (eval "$ac_try") 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; }; then
14243   ac_cv_search_opendir=$ac_res
14244 else
14245   echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248
14249 fi
14250
14251 rm -f core conftest.err conftest.$ac_objext \
14252       conftest$ac_exeext
14253   if test "${ac_cv_search_opendir+set}" = set; then
14254   break
14255 fi
14256 done
14257 if test "${ac_cv_search_opendir+set}" = set; then
14258   :
14259 else
14260   ac_cv_search_opendir=no
14261 fi
14262 rm conftest.$ac_ext
14263 LIBS=$ac_func_search_save_LIBS
14264 fi
14265 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14266 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14267 ac_res=$ac_cv_search_opendir
14268 if test "$ac_res" != no; then
14269   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14270
14271 fi
14272
14273 fi
14274
14275 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14276 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14277 if test "${ac_cv_header_mmap_anon+set}" = set; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280    ac_ext=c
14281 ac_cpp='$CPP $CPPFLAGS'
14282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
14286   cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 #include <sys/mman.h>
14293 #include <unistd.h>
14294 #include <fcntl.h>
14295 int
14296 main ()
14297 {
14298 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318   { (case "(($ac_try" in
14319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320   *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323   (eval "$ac_try") 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (case "(($ac_try" in
14329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330   *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333   (eval "$ac_try") 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_header_mmap_anon=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342         ac_cv_header_mmap_anon=no
14343 fi
14344
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346   ac_ext=c
14347 ac_cpp='$CPP $CPPFLAGS'
14348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14351
14352
14353 fi
14354 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14355 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14356 if test "$ac_cv_header_mmap_anon" = yes; then
14357
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_MMAP_ANONYMOUS 1
14360 _ACEOF
14361
14362 fi
14363
14364 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14365 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14366 if test "${ac_cv_header_stat_broken+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h.  */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h.  */
14375 #include <sys/types.h>
14376 #include <sys/stat.h>
14377
14378 #if defined S_ISBLK && defined S_IFDIR
14379 # if S_ISBLK (S_IFDIR)
14380 You lose.
14381 # endif
14382 #endif
14383
14384 #if defined S_ISBLK && defined S_IFCHR
14385 # if S_ISBLK (S_IFCHR)
14386 You lose.
14387 # endif
14388 #endif
14389
14390 #if defined S_ISLNK && defined S_IFREG
14391 # if S_ISLNK (S_IFREG)
14392 You lose.
14393 # endif
14394 #endif
14395
14396 #if defined S_ISSOCK && defined S_IFREG
14397 # if S_ISSOCK (S_IFREG)
14398 You lose.
14399 # endif
14400 #endif
14401
14402 _ACEOF
14403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14404   $EGREP "You lose" >/dev/null 2>&1; then
14405   ac_cv_header_stat_broken=yes
14406 else
14407   ac_cv_header_stat_broken=no
14408 fi
14409 rm -f conftest*
14410
14411 fi
14412 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14413 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14414 if test $ac_cv_header_stat_broken = yes; then
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define STAT_MACROS_BROKEN 1
14418 _ACEOF
14419
14420 fi
14421
14422 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14423 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h.  */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h.  */
14433 #include <sys/types.h>
14434 #include <sys/wait.h>
14435 #ifndef WEXITSTATUS
14436 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14437 #endif
14438 #ifndef WIFEXITED
14439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14440 #endif
14441
14442 int
14443 main ()
14444 {
14445   int s;
14446   wait (&s);
14447   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456   *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459   (eval "$ac_compile") 2>conftest.er1
14460   ac_status=$?
14461   grep -v '^ *+' conftest.er1 >conftest.err
14462   rm -f conftest.er1
14463   cat conftest.err >&5
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } &&
14466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14467   { (case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_try") 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; } &&
14476          { ac_try='test -s conftest.$ac_objext'
14477   { (case "(($ac_try" in
14478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479   *) ac_try_echo=$ac_try;;
14480 esac
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482   (eval "$ac_try") 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }; }; then
14486   ac_cv_header_sys_wait_h=yes
14487 else
14488   echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491         ac_cv_header_sys_wait_h=no
14492 fi
14493
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14497 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14498 if test $ac_cv_header_sys_wait_h = yes; then
14499
14500 cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_SYS_WAIT_H 1
14502 _ACEOF
14503
14504 fi
14505
14506 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14507 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14508 if test "${ac_cv_header_time+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 #include <sys/types.h>
14518 #include <sys/time.h>
14519 #include <time.h>
14520
14521 int
14522 main ()
14523 {
14524 if ((struct tm *) 0)
14525 return 0;
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext
14531 if { (ac_try="$ac_compile"
14532 case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_compile") 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } &&
14544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545   { (case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_try") 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; } &&
14554          { ac_try='test -s conftest.$ac_objext'
14555   { (case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560   (eval "$ac_try") 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; }; then
14564   ac_cv_header_time=yes
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569         ac_cv_header_time=no
14570 fi
14571
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 fi
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14575 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14576 if test $ac_cv_header_time = yes; then
14577
14578 cat >>confdefs.h <<\_ACEOF
14579 #define TIME_WITH_SYS_TIME 1
14580 _ACEOF
14581
14582 fi
14583
14584
14585
14586
14587
14588
14589
14590
14591 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14592 do
14593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 fi
14600 ac_res=`eval echo '${'$as_ac_Header'}'`
14601                { echo "$as_me:$LINENO: result: $ac_res" >&5
14602 echo "${ECHO_T}$ac_res" >&6; }
14603 else
14604   # Is the header compilable?
14605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613 $ac_includes_default
14614 #include <$ac_header>
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (ac_try="$ac_compile"
14618 case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_compile") 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631   { (case "(($ac_try" in
14632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633   *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636   (eval "$ac_try") 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; } &&
14640          { ac_try='test -s conftest.$ac_objext'
14641   { (case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646   (eval "$ac_try") 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; }; then
14650   ac_header_compiler=yes
14651 else
14652   echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14654
14655         ac_header_compiler=no
14656 fi
14657
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14660 echo "${ECHO_T}$ac_header_compiler" >&6; }
14661
14662 # Is the header present?
14663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 #include <$ac_header>
14672 _ACEOF
14673 if { (ac_try="$ac_cpp conftest.$ac_ext"
14674 case "(($ac_try" in
14675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676   *) ac_try_echo=$ac_try;;
14677 esac
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680   ac_status=$?
14681   grep -v '^ *+' conftest.er1 >conftest.err
14682   rm -f conftest.er1
14683   cat conftest.err >&5
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } >/dev/null; then
14686   if test -s conftest.err; then
14687     ac_cpp_err=$ac_c_preproc_warn_flag
14688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14689   else
14690     ac_cpp_err=
14691   fi
14692 else
14693   ac_cpp_err=yes
14694 fi
14695 if test -z "$ac_cpp_err"; then
14696   ac_header_preproc=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701   ac_header_preproc=no
14702 fi
14703
14704 rm -f conftest.err conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6; }
14707
14708 # So?  What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710   yes:no: )
14711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14715     ac_header_preproc=yes
14716     ;;
14717   no:yes:* )
14718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14730     ( cat <<\_ASBOX
14731 ## ------------------------------------ ##
14732 ## Report this to http://llvm.org/bugs/ ##
14733 ## ------------------------------------ ##
14734 _ASBOX
14735      ) | sed "s/^/$as_me: WARNING:     /" >&2
14736     ;;
14737 esac
14738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743   eval "$as_ac_Header=\$ac_header_preproc"
14744 fi
14745 ac_res=`eval echo '${'$as_ac_Header'}'`
14746                { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14748
14749 fi
14750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14751   cat >>confdefs.h <<_ACEOF
14752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14753 _ACEOF
14754
14755 fi
14756
14757 done
14758
14759
14760
14761
14762
14763
14764
14765 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14766 do
14767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 fi
14774 ac_res=`eval echo '${'$as_ac_Header'}'`
14775                { echo "$as_me:$LINENO: result: $ac_res" >&5
14776 echo "${ECHO_T}$ac_res" >&6; }
14777 else
14778   # Is the header compilable?
14779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787 $ac_includes_default
14788 #include <$ac_header>
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_compile") 2>conftest.er1
14798   ac_status=$?
14799   grep -v '^ *+' conftest.er1 >conftest.err
14800   rm -f conftest.er1
14801   cat conftest.err >&5
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805   { (case "(($ac_try" in
14806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807   *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810   (eval "$ac_try") 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; } &&
14814          { ac_try='test -s conftest.$ac_objext'
14815   { (case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_try") 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_header_compiler=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829         ac_header_compiler=no
14830 fi
14831
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14834 echo "${ECHO_T}$ac_header_compiler" >&6; }
14835
14836 # Is the header present?
14837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14839 cat >conftest.$ac_ext <<_ACEOF
14840 /* confdefs.h.  */
14841 _ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h.  */
14845 #include <$ac_header>
14846 _ACEOF
14847 if { (ac_try="$ac_cpp conftest.$ac_ext"
14848 case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14854   ac_status=$?
14855   grep -v '^ *+' conftest.er1 >conftest.err
14856   rm -f conftest.er1
14857   cat conftest.err >&5
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } >/dev/null; then
14860   if test -s conftest.err; then
14861     ac_cpp_err=$ac_c_preproc_warn_flag
14862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14863   else
14864     ac_cpp_err=
14865   fi
14866 else
14867   ac_cpp_err=yes
14868 fi
14869 if test -z "$ac_cpp_err"; then
14870   ac_header_preproc=yes
14871 else
14872   echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875   ac_header_preproc=no
14876 fi
14877
14878 rm -f conftest.err conftest.$ac_ext
14879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880 echo "${ECHO_T}$ac_header_preproc" >&6; }
14881
14882 # So?  What about this header?
14883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884   yes:no: )
14885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889     ac_header_preproc=yes
14890     ;;
14891   no:yes:* )
14892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904     ( cat <<\_ASBOX
14905 ## ------------------------------------ ##
14906 ## Report this to http://llvm.org/bugs/ ##
14907 ## ------------------------------------ ##
14908 _ASBOX
14909      ) | sed "s/^/$as_me: WARNING:     /" >&2
14910     ;;
14911 esac
14912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   eval "$as_ac_Header=\$ac_header_preproc"
14918 fi
14919 ac_res=`eval echo '${'$as_ac_Header'}'`
14920                { echo "$as_me:$LINENO: result: $ac_res" >&5
14921 echo "${ECHO_T}$ac_res" >&6; }
14922
14923 fi
14924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14925   cat >>confdefs.h <<_ACEOF
14926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14927 _ACEOF
14928
14929 fi
14930
14931 done
14932
14933
14934
14935 for ac_header in utime.h windows.h
14936 do
14937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 fi
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945                { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14947 else
14948   # Is the header compilable?
14949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 $ac_includes_default
14958 #include <$ac_header>
14959 _ACEOF
14960 rm -f conftest.$ac_objext
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_compile") 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } &&
14974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975   { (case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_try") 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; } &&
14984          { ac_try='test -s conftest.$ac_objext'
14985   { (case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_try") 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); }; }; then
14994   ac_header_compiler=yes
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         ac_header_compiler=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004 echo "${ECHO_T}$ac_header_compiler" >&6; }
15005
15006 # Is the header present?
15007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015 #include <$ac_header>
15016 _ACEOF
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } >/dev/null; then
15030   if test -s conftest.err; then
15031     ac_cpp_err=$ac_c_preproc_warn_flag
15032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15033   else
15034     ac_cpp_err=
15035   fi
15036 else
15037   ac_cpp_err=yes
15038 fi
15039 if test -z "$ac_cpp_err"; then
15040   ac_header_preproc=yes
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045   ac_header_preproc=no
15046 fi
15047
15048 rm -f conftest.err conftest.$ac_ext
15049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15050 echo "${ECHO_T}$ac_header_preproc" >&6; }
15051
15052 # So?  What about this header?
15053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15054   yes:no: )
15055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15059     ac_header_preproc=yes
15060     ;;
15061   no:yes:* )
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15074     ( cat <<\_ASBOX
15075 ## ------------------------------------ ##
15076 ## Report this to http://llvm.org/bugs/ ##
15077 ## ------------------------------------ ##
15078 _ASBOX
15079      ) | sed "s/^/$as_me: WARNING:     /" >&2
15080     ;;
15081 esac
15082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   eval "$as_ac_Header=\$ac_header_preproc"
15088 fi
15089 ac_res=`eval echo '${'$as_ac_Header'}'`
15090                { echo "$as_me:$LINENO: result: $ac_res" >&5
15091 echo "${ECHO_T}$ac_res" >&6; }
15092
15093 fi
15094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15095   cat >>confdefs.h <<_ACEOF
15096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15097 _ACEOF
15098
15099 fi
15100
15101 done
15102
15103
15104
15105
15106
15107
15108 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15109 do
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 fi
15117 ac_res=`eval echo '${'$as_ac_Header'}'`
15118                { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15120 else
15121   # Is the header compilable?
15122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 $ac_includes_default
15131 #include <$ac_header>
15132 _ACEOF
15133 rm -f conftest.$ac_objext
15134 if { (ac_try="$ac_compile"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_compile") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest.$ac_objext'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_header_compiler=yes
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172         ac_header_compiler=no
15173 fi
15174
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15177 echo "${ECHO_T}$ac_header_compiler" >&6; }
15178
15179 # Is the header present?
15180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188 #include <$ac_header>
15189 _ACEOF
15190 if { (ac_try="$ac_cpp conftest.$ac_ext"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } >/dev/null; then
15203   if test -s conftest.err; then
15204     ac_cpp_err=$ac_c_preproc_warn_flag
15205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15206   else
15207     ac_cpp_err=
15208   fi
15209 else
15210   ac_cpp_err=yes
15211 fi
15212 if test -z "$ac_cpp_err"; then
15213   ac_header_preproc=yes
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218   ac_header_preproc=no
15219 fi
15220
15221 rm -f conftest.err conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6; }
15224
15225 # So?  What about this header?
15226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227   yes:no: )
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15232     ac_header_preproc=yes
15233     ;;
15234   no:yes:* )
15235     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15238 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15242 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15247     ( cat <<\_ASBOX
15248 ## ------------------------------------ ##
15249 ## Report this to http://llvm.org/bugs/ ##
15250 ## ------------------------------------ ##
15251 _ASBOX
15252      ) | sed "s/^/$as_me: WARNING:     /" >&2
15253     ;;
15254 esac
15255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   eval "$as_ac_Header=\$ac_header_preproc"
15261 fi
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263                { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15265
15266 fi
15267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15268   cat >>confdefs.h <<_ACEOF
15269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15270 _ACEOF
15271
15272 fi
15273
15274 done
15275
15276
15277
15278
15279
15280 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15281 do
15282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 fi
15289 ac_res=`eval echo '${'$as_ac_Header'}'`
15290                { echo "$as_me:$LINENO: result: $ac_res" >&5
15291 echo "${ECHO_T}$ac_res" >&6; }
15292 else
15293   # Is the header compilable?
15294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15296 cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 $ac_includes_default
15303 #include <$ac_header>
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest.$ac_objext'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_header_compiler=yes
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344         ac_header_compiler=no
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 echo "${ECHO_T}$ac_header_compiler" >&6; }
15350
15351 # Is the header present?
15352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 #include <$ac_header>
15361 _ACEOF
15362 if { (ac_try="$ac_cpp conftest.$ac_ext"
15363 case "(($ac_try" in
15364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365   *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15369   ac_status=$?
15370   grep -v '^ *+' conftest.er1 >conftest.err
15371   rm -f conftest.er1
15372   cat conftest.err >&5
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } >/dev/null; then
15375   if test -s conftest.err; then
15376     ac_cpp_err=$ac_c_preproc_warn_flag
15377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15378   else
15379     ac_cpp_err=
15380   fi
15381 else
15382   ac_cpp_err=yes
15383 fi
15384 if test -z "$ac_cpp_err"; then
15385   ac_header_preproc=yes
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390   ac_header_preproc=no
15391 fi
15392
15393 rm -f conftest.err conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395 echo "${ECHO_T}$ac_header_preproc" >&6; }
15396
15397 # So?  What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399   yes:no: )
15400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15404     ac_header_preproc=yes
15405     ;;
15406   no:yes:* )
15407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15419     ( cat <<\_ASBOX
15420 ## ------------------------------------ ##
15421 ## Report this to http://llvm.org/bugs/ ##
15422 ## ------------------------------------ ##
15423 _ASBOX
15424      ) | sed "s/^/$as_me: WARNING:     /" >&2
15425     ;;
15426 esac
15427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   eval "$as_ac_Header=\$ac_header_preproc"
15433 fi
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435                { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15437
15438 fi
15439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15440   cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 fi
15445
15446 done
15447
15448
15449 for ac_header in valgrind/valgrind.h
15450 do
15451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 fi
15458 ac_res=`eval echo '${'$as_ac_Header'}'`
15459                { echo "$as_me:$LINENO: result: $ac_res" >&5
15460 echo "${ECHO_T}$ac_res" >&6; }
15461 else
15462   # Is the header compilable?
15463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 $ac_includes_default
15472 #include <$ac_header>
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478   *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481   (eval "$ac_compile") 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } &&
15488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489   { (case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_try") 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest.$ac_objext'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   ac_header_compiler=yes
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         ac_header_compiler=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6; }
15519
15520 # Is the header present?
15521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } >/dev/null; then
15544   if test -s conftest.err; then
15545     ac_cpp_err=$ac_c_preproc_warn_flag
15546     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15547   else
15548     ac_cpp_err=
15549   fi
15550 else
15551   ac_cpp_err=yes
15552 fi
15553 if test -z "$ac_cpp_err"; then
15554   ac_header_preproc=yes
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559   ac_header_preproc=no
15560 fi
15561
15562 rm -f conftest.err conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6; }
15565
15566 # So?  What about this header?
15567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15568   yes:no: )
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15573     ac_header_preproc=yes
15574     ;;
15575   no:yes:* )
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15588     ( cat <<\_ASBOX
15589 ## ------------------------------------ ##
15590 ## Report this to http://llvm.org/bugs/ ##
15591 ## ------------------------------------ ##
15592 _ASBOX
15593      ) | sed "s/^/$as_me: WARNING:     /" >&2
15594     ;;
15595 esac
15596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   eval "$as_ac_Header=\$ac_header_preproc"
15602 fi
15603 ac_res=`eval echo '${'$as_ac_Header'}'`
15604                { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15606
15607 fi
15608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15609   cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15611 _ACEOF
15612
15613 fi
15614
15615 done
15616
15617
15618 for ac_header in fenv.h
15619 do
15620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 fi
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628                { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15630 else
15631   # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 $ac_includes_default
15641 #include <$ac_header>
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647   *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650   (eval "$ac_compile") 2>conftest.er1
15651   ac_status=$?
15652   grep -v '^ *+' conftest.er1 >conftest.err
15653   rm -f conftest.er1
15654   cat conftest.err >&5
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } &&
15657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15658   { (case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_try") 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; } &&
15667          { ac_try='test -s conftest.$ac_objext'
15668   { (case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_try") 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; }; then
15677   ac_header_compiler=yes
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682         ac_header_compiler=no
15683 fi
15684
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687 echo "${ECHO_T}$ac_header_compiler" >&6; }
15688
15689 # Is the header present?
15690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 #include <$ac_header>
15699 _ACEOF
15700 if { (ac_try="$ac_cpp conftest.$ac_ext"
15701 case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } >/dev/null; then
15713   if test -s conftest.err; then
15714     ac_cpp_err=$ac_c_preproc_warn_flag
15715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15716   else
15717     ac_cpp_err=
15718   fi
15719 else
15720   ac_cpp_err=yes
15721 fi
15722 if test -z "$ac_cpp_err"; then
15723   ac_header_preproc=yes
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728   ac_header_preproc=no
15729 fi
15730
15731 rm -f conftest.err conftest.$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15733 echo "${ECHO_T}$ac_header_preproc" >&6; }
15734
15735 # So?  What about this header?
15736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15737   yes:no: )
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15742     ac_header_preproc=yes
15743     ;;
15744   no:yes:* )
15745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15757     ( cat <<\_ASBOX
15758 ## ------------------------------------ ##
15759 ## Report this to http://llvm.org/bugs/ ##
15760 ## ------------------------------------ ##
15761 _ASBOX
15762      ) | sed "s/^/$as_me: WARNING:     /" >&2
15763     ;;
15764 esac
15765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768   echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770   eval "$as_ac_Header=\$ac_header_preproc"
15771 fi
15772 ac_res=`eval echo '${'$as_ac_Header'}'`
15773                { echo "$as_me:$LINENO: result: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15775
15776 fi
15777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778   cat >>confdefs.h <<_ACEOF
15779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15780 _ACEOF
15781
15782 fi
15783
15784 done
15785
15786 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15787
15788 for ac_header in pthread.h
15789 do
15790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 fi
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798                { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800 else
15801   # Is the header compilable?
15802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 $ac_includes_default
15811 #include <$ac_header>
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_compile") 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828   { (case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_try") 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; } &&
15837          { ac_try='test -s conftest.$ac_objext'
15838   { (case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_try") 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_header_compiler=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         ac_header_compiler=no
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15857 echo "${ECHO_T}$ac_header_compiler" >&6; }
15858
15859 # Is the header present?
15860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868 #include <$ac_header>
15869 _ACEOF
15870 if { (ac_try="$ac_cpp conftest.$ac_ext"
15871 case "(($ac_try" in
15872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873   *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } >/dev/null; then
15883   if test -s conftest.err; then
15884     ac_cpp_err=$ac_c_preproc_warn_flag
15885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886   else
15887     ac_cpp_err=
15888   fi
15889 else
15890   ac_cpp_err=yes
15891 fi
15892 if test -z "$ac_cpp_err"; then
15893   ac_header_preproc=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898   ac_header_preproc=no
15899 fi
15900
15901 rm -f conftest.err conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15903 echo "${ECHO_T}$ac_header_preproc" >&6; }
15904
15905 # So?  What about this header?
15906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907   yes:no: )
15908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15912     ac_header_preproc=yes
15913     ;;
15914   no:yes:* )
15915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15927     ( cat <<\_ASBOX
15928 ## ------------------------------------ ##
15929 ## Report this to http://llvm.org/bugs/ ##
15930 ## ------------------------------------ ##
15931 _ASBOX
15932      ) | sed "s/^/$as_me: WARNING:     /" >&2
15933     ;;
15934 esac
15935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   eval "$as_ac_Header=\$ac_header_preproc"
15941 fi
15942 ac_res=`eval echo '${'$as_ac_Header'}'`
15943                { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15945
15946 fi
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948   cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 _ACEOF
15951  HAVE_PTHREAD=1
15952
15953 else
15954   HAVE_PTHREAD=0
15955
15956 fi
15957
15958 done
15959
15960 else
15961   HAVE_PTHREAD=0
15962
15963 fi
15964
15965 if test "$llvm_cv_enable_libffi" = "yes" ; then
15966
15967
15968 for ac_header in ffi.h ffi/ffi.h
15969 do
15970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 fi
15977 ac_res=`eval echo '${'$as_ac_Header'}'`
15978                { echo "$as_me:$LINENO: result: $ac_res" >&5
15979 echo "${ECHO_T}$ac_res" >&6; }
15980 else
15981   # Is the header compilable?
15982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 $ac_includes_default
15991 #include <$ac_header>
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_compile") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } &&
16007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16008   { (case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_try") 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; } &&
16017          { ac_try='test -s conftest.$ac_objext'
16018   { (case "(($ac_try" in
16019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020   *) ac_try_echo=$ac_try;;
16021 esac
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023   (eval "$ac_try") 2>&5
16024   ac_status=$?
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); }; }; then
16027   ac_header_compiler=yes
16028 else
16029   echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16031
16032         ac_header_compiler=no
16033 fi
16034
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16037 echo "${ECHO_T}$ac_header_compiler" >&6; }
16038
16039 # Is the header present?
16040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048 #include <$ac_header>
16049 _ACEOF
16050 if { (ac_try="$ac_cpp conftest.$ac_ext"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } >/dev/null; then
16063   if test -s conftest.err; then
16064     ac_cpp_err=$ac_c_preproc_warn_flag
16065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16066   else
16067     ac_cpp_err=
16068   fi
16069 else
16070   ac_cpp_err=yes
16071 fi
16072 if test -z "$ac_cpp_err"; then
16073   ac_header_preproc=yes
16074 else
16075   echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078   ac_header_preproc=no
16079 fi
16080
16081 rm -f conftest.err conftest.$ac_ext
16082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16083 echo "${ECHO_T}$ac_header_preproc" >&6; }
16084
16085 # So?  What about this header?
16086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16087   yes:no: )
16088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16092     ac_header_preproc=yes
16093     ;;
16094   no:yes:* )
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16107     ( cat <<\_ASBOX
16108 ## ------------------------------------ ##
16109 ## Report this to http://llvm.org/bugs/ ##
16110 ## ------------------------------------ ##
16111 _ASBOX
16112      ) | sed "s/^/$as_me: WARNING:     /" >&2
16113     ;;
16114 esac
16115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   eval "$as_ac_Header=\$ac_header_preproc"
16121 fi
16122 ac_res=`eval echo '${'$as_ac_Header'}'`
16123                { echo "$as_me:$LINENO: result: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16125
16126 fi
16127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16128   cat >>confdefs.h <<_ACEOF
16129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16130 _ACEOF
16131
16132 fi
16133
16134 done
16135
16136 fi
16137
16138
16139 for ac_header in CrashReporterClient.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
16308 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16309 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316 extern const char *__crashreporter_info__;
16317       int main() {
16318         __crashreporter_info__ = "test";
16319         return 0;
16320       }
16321
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327   *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330   (eval "$ac_link") 2>conftest.er1
16331   ac_status=$?
16332   grep -v '^ *+' conftest.er1 >conftest.err
16333   rm -f conftest.er1
16334   cat conftest.err >&5
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); } &&
16337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338   { (case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_try") 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; } &&
16347          { ac_try='test -s conftest$ac_exeext'
16348   { (case "(($ac_try" in
16349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350   *) ac_try_echo=$ac_try;;
16351 esac
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353   (eval "$ac_try") 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; }; then
16357   { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CRASHREPORTER_INFO 1
16362 _ACEOF
16363
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368         { echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6; }
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_CRASHREPORTER_INFO 0
16373 _ACEOF
16374
16375 fi
16376
16377 rm -f core conftest.err conftest.$ac_objext \
16378       conftest$ac_exeext conftest.$ac_ext
16379
16380
16381
16382
16383   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16384 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16385 if test "${ac_cv_huge_val_sanity+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388
16389     ac_ext=cpp
16390 ac_cpp='$CXXCPP $CPPFLAGS'
16391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16394
16395     ac_save_CXXFLAGS=$CXXFLAGS
16396     CXXFLAGS="$CXXFLAGS -pedantic"
16397     if test "$cross_compiling" = yes; then
16398   ac_cv_huge_val_sanity=yes
16399 else
16400   cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406 #include <math.h>
16407 int
16408 main ()
16409 {
16410 double x = HUGE_VAL; return x != x;
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_link") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426   { (case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_try") 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435   ac_cv_huge_val_sanity=yes
16436 else
16437   echo "$as_me: program exited with status $ac_status" >&5
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ( exit $ac_status )
16442 ac_cv_huge_val_sanity=no
16443 fi
16444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16445 fi
16446
16447
16448     CXXFLAGS=$ac_save_CXXFLAGS
16449     ac_ext=c
16450 ac_cpp='$CPP $CPPFLAGS'
16451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16454
16455
16456 fi
16457 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16458 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16459   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16460
16461
16462 { echo "$as_me:$LINENO: checking for pid_t" >&5
16463 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16464 if test "${ac_cv_type_pid_t+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 $ac_includes_default
16474 typedef pid_t ac__type_new_;
16475 int
16476 main ()
16477 {
16478 if ((ac__type_new_ *) 0)
16479   return 0;
16480 if (sizeof (ac__type_new_))
16481   return 0;
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (ac_try="$ac_compile"
16488 case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_compile") 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } &&
16500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501   { (case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_try") 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; } &&
16510          { ac_try='test -s conftest.$ac_objext'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520   ac_cv_type_pid_t=yes
16521 else
16522   echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16524
16525         ac_cv_type_pid_t=no
16526 fi
16527
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16531 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16532 if test $ac_cv_type_pid_t = yes; then
16533   :
16534 else
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define pid_t int
16538 _ACEOF
16539
16540 fi
16541
16542 { echo "$as_me:$LINENO: checking for size_t" >&5
16543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16544 if test "${ac_cv_type_size_t+set}" = set; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 $ac_includes_default
16554 typedef size_t ac__type_new_;
16555 int
16556 main ()
16557 {
16558 if ((ac__type_new_ *) 0)
16559   return 0;
16560 if (sizeof (ac__type_new_))
16561   return 0;
16562   ;
16563   return 0;
16564 }
16565 _ACEOF
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_compile") 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } &&
16580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581   { (case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_try") 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; } &&
16590          { ac_try='test -s conftest.$ac_objext'
16591   { (case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_try") 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; }; then
16600   ac_cv_type_size_t=yes
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605         ac_cv_type_size_t=no
16606 fi
16607
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 fi
16610 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16611 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16612 if test $ac_cv_type_size_t = yes; then
16613   :
16614 else
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define size_t unsigned int
16618 _ACEOF
16619
16620 fi
16621
16622
16623 cat >>confdefs.h <<_ACEOF
16624 #define RETSIGTYPE void
16625 _ACEOF
16626
16627 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16629 if test "${ac_cv_struct_tm+set}" = set; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632   cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 #include <sys/types.h>
16639 #include <time.h>
16640
16641 int
16642 main ()
16643 {
16644 struct tm *tp; tp->tm_sec;
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_compile") 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } &&
16663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664   { (case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_try") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   ac_cv_struct_tm=time.h
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688         ac_cv_struct_tm=sys/time.h
16689 fi
16690
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 fi
16693 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16694 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16695 if test $ac_cv_struct_tm = sys/time.h; then
16696
16697 cat >>confdefs.h <<\_ACEOF
16698 #define TM_IN_SYS_TIME 1
16699 _ACEOF
16700
16701 fi
16702
16703 { echo "$as_me:$LINENO: checking for int64_t" >&5
16704 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16705 if test "${ac_cv_type_int64_t+set}" = set; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h.  */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h.  */
16714 $ac_includes_default
16715 typedef int64_t ac__type_new_;
16716 int
16717 main ()
16718 {
16719 if ((ac__type_new_ *) 0)
16720   return 0;
16721 if (sizeof (ac__type_new_))
16722   return 0;
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (ac_try="$ac_compile"
16729 case "(($ac_try" in
16730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731   *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734   (eval "$ac_compile") 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16742   { (case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747   (eval "$ac_try") 2>&5
16748   ac_status=$?
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); }; } &&
16751          { ac_try='test -s conftest.$ac_objext'
16752   { (case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_try") 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; }; then
16761   ac_cv_type_int64_t=yes
16762 else
16763   echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766         ac_cv_type_int64_t=no
16767 fi
16768
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770 fi
16771 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16772 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16773 if test $ac_cv_type_int64_t = yes; then
16774
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_INT64_T 1
16777 _ACEOF
16778
16779
16780 else
16781   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16782 echo "$as_me: error: Type int64_t required but not found" >&2;}
16783    { (exit 1); exit 1; }; }
16784 fi
16785
16786 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16787 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16788 if test "${ac_cv_type_uint64_t+set}" = set; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791   cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797 $ac_includes_default
16798 typedef uint64_t ac__type_new_;
16799 int
16800 main ()
16801 {
16802 if ((ac__type_new_ *) 0)
16803   return 0;
16804 if (sizeof (ac__type_new_))
16805   return 0;
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (ac_try="$ac_compile"
16812 case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_compile") 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; } &&
16834          { ac_try='test -s conftest.$ac_objext'
16835   { (case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_try") 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_cv_type_uint64_t=yes
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849         ac_cv_type_uint64_t=no
16850 fi
16851
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 fi
16854 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16855 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16856 if test $ac_cv_type_uint64_t = yes; then
16857
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_UINT64_T 1
16860 _ACEOF
16861
16862
16863 else
16864   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16865 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16866 if test "${ac_cv_type_u_int64_t+set}" = set; then
16867   echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869   cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 $ac_includes_default
16876 typedef u_int64_t ac__type_new_;
16877 int
16878 main ()
16879 {
16880 if ((ac__type_new_ *) 0)
16881   return 0;
16882 if (sizeof (ac__type_new_))
16883   return 0;
16884   ;
16885   return 0;
16886 }
16887 _ACEOF
16888 rm -f conftest.$ac_objext
16889 if { (ac_try="$ac_compile"
16890 case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_compile") 2>conftest.er1
16896   ac_status=$?
16897   grep -v '^ *+' conftest.er1 >conftest.err
16898   rm -f conftest.er1
16899   cat conftest.err >&5
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903   { (case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908   (eval "$ac_try") 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; } &&
16912          { ac_try='test -s conftest.$ac_objext'
16913   { (case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918   (eval "$ac_try") 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_type_u_int64_t=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927         ac_cv_type_u_int64_t=no
16928 fi
16929
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931 fi
16932 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16933 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16934 if test $ac_cv_type_u_int64_t = yes; then
16935
16936 cat >>confdefs.h <<_ACEOF
16937 #define HAVE_U_INT64_T 1
16938 _ACEOF
16939
16940
16941 else
16942   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16943 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16944    { (exit 1); exit 1; }; }
16945 fi
16946
16947 fi
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16959 do
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16974 #define $ac_func innocuous_$ac_func
16975
16976 /* System header to define __stub macros and hopefully few prototypes,
16977     which can conflict with char $ac_func (); below.
16978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979     <limits.h> exists even on freestanding compilers.  */
16980
16981 #ifdef __STDC__
16982 # include <limits.h>
16983 #else
16984 # include <assert.h>
16985 #endif
16986
16987 #undef $ac_func
16988
16989 /* Override any GCC internal prototype to avoid an error.
16990    Use char because int might match the return type of a GCC
16991    builtin and then its argument prototype would still apply.  */
16992 #ifdef __cplusplus
16993 extern "C"
16994 #endif
16995 char $ac_func ();
16996 /* The GNU C library defines this for functions which it implements
16997     to always fail with ENOSYS.  Some functions are actually named
16998     something starting with __ and the normal name is an alias.  */
16999 #if defined __stub_$ac_func || defined __stub___$ac_func
17000 choke me
17001 #endif
17002
17003 int
17004 main ()
17005 {
17006 return $ac_func ();
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_link") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; } &&
17035          { ac_try='test -s conftest$ac_exeext'
17036   { (case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_try") 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   eval "$as_ac_var=yes"
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050         eval "$as_ac_var=no"
17051 fi
17052
17053 rm -f core conftest.err conftest.$ac_objext \
17054       conftest$ac_exeext conftest.$ac_ext
17055 fi
17056 ac_res=`eval echo '${'$as_ac_var'}'`
17057                { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059 if test `eval echo '${'$as_ac_var'}'` = yes; then
17060   cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17062 _ACEOF
17063
17064 fi
17065 done
17066
17067
17068
17069
17070
17071 for ac_func in powf fmodf strtof round
17072 do
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079   cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h.  */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h.  */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17087 #define $ac_func innocuous_$ac_func
17088
17089 /* System header to define __stub macros and hopefully few prototypes,
17090     which can conflict with char $ac_func (); below.
17091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092     <limits.h> exists even on freestanding compilers.  */
17093
17094 #ifdef __STDC__
17095 # include <limits.h>
17096 #else
17097 # include <assert.h>
17098 #endif
17099
17100 #undef $ac_func
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103    Use char because int might match the return type of a GCC
17104    builtin and then its argument prototype would still apply.  */
17105 #ifdef __cplusplus
17106 extern "C"
17107 #endif
17108 char $ac_func ();
17109 /* The GNU C library defines this for functions which it implements
17110     to always fail with ENOSYS.  Some functions are actually named
17111     something starting with __ and the normal name is an alias.  */
17112 #if defined __stub_$ac_func || defined __stub___$ac_func
17113 choke me
17114 #endif
17115
17116 int
17117 main ()
17118 {
17119 return $ac_func ();
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (ac_try="$ac_link"
17126 case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_link") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17139   { (case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144   (eval "$ac_try") 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; } &&
17148          { ac_try='test -s conftest$ac_exeext'
17149   { (case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_try") 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; }; then
17158   eval "$as_ac_var=yes"
17159 else
17160   echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163         eval "$as_ac_var=no"
17164 fi
17165
17166 rm -f core conftest.err conftest.$ac_objext \
17167       conftest$ac_exeext conftest.$ac_ext
17168 fi
17169 ac_res=`eval echo '${'$as_ac_var'}'`
17170                { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172 if test `eval echo '${'$as_ac_var'}'` = yes; then
17173   cat >>confdefs.h <<_ACEOF
17174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17175 _ACEOF
17176
17177 fi
17178 done
17179
17180
17181
17182
17183
17184
17185 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17186 do
17187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17201 #define $ac_func innocuous_$ac_func
17202
17203 /* System header to define __stub macros and hopefully few prototypes,
17204     which can conflict with char $ac_func (); below.
17205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206     <limits.h> exists even on freestanding compilers.  */
17207
17208 #ifdef __STDC__
17209 # include <limits.h>
17210 #else
17211 # include <assert.h>
17212 #endif
17213
17214 #undef $ac_func
17215
17216 /* Override any GCC internal prototype to avoid an error.
17217    Use char because int might match the return type of a GCC
17218    builtin and then its argument prototype would still apply.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char $ac_func ();
17223 /* The GNU C library defines this for functions which it implements
17224     to always fail with ENOSYS.  Some functions are actually named
17225     something starting with __ and the normal name is an alias.  */
17226 #if defined __stub_$ac_func || defined __stub___$ac_func
17227 choke me
17228 #endif
17229
17230 int
17231 main ()
17232 {
17233 return $ac_func ();
17234   ;
17235   return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242   *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245   (eval "$ac_link") 2>conftest.er1
17246   ac_status=$?
17247   grep -v '^ *+' conftest.er1 >conftest.err
17248   rm -f conftest.er1
17249   cat conftest.err >&5
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } &&
17252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253   { (case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_try") 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; } &&
17262          { ac_try='test -s conftest$ac_exeext'
17263   { (case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_try") 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272   eval "$as_ac_var=yes"
17273 else
17274   echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277         eval "$as_ac_var=no"
17278 fi
17279
17280 rm -f core conftest.err conftest.$ac_objext \
17281       conftest$ac_exeext conftest.$ac_ext
17282 fi
17283 ac_res=`eval echo '${'$as_ac_var'}'`
17284                { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17286 if test `eval echo '${'$as_ac_var'}'` = yes; then
17287   cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289 _ACEOF
17290
17291 fi
17292 done
17293
17294
17295
17296
17297 for ac_func in isatty mkdtemp mkstemp
17298 do
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303   echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305   cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17313 #define $ac_func innocuous_$ac_func
17314
17315 /* System header to define __stub macros and hopefully few prototypes,
17316     which can conflict with char $ac_func (); below.
17317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318     <limits.h> exists even on freestanding compilers.  */
17319
17320 #ifdef __STDC__
17321 # include <limits.h>
17322 #else
17323 # include <assert.h>
17324 #endif
17325
17326 #undef $ac_func
17327
17328 /* Override any GCC internal prototype to avoid an error.
17329    Use char because int might match the return type of a GCC
17330    builtin and then its argument prototype would still apply.  */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char $ac_func ();
17335 /* The GNU C library defines this for functions which it implements
17336     to always fail with ENOSYS.  Some functions are actually named
17337     something starting with __ and the normal name is an alias.  */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 choke me
17340 #endif
17341
17342 int
17343 main ()
17344 {
17345 return $ac_func ();
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_link") 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365   { (case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_try") 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; } &&
17374          { ac_try='test -s conftest$ac_exeext'
17375   { (case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_try") 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   eval "$as_ac_var=yes"
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389         eval "$as_ac_var=no"
17390 fi
17391
17392 rm -f core conftest.err conftest.$ac_objext \
17393       conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396                { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399   cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401 _ACEOF
17402
17403 fi
17404 done
17405
17406
17407
17408
17409
17410
17411
17412
17413 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17414 do
17415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h.  */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h.  */
17427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17429 #define $ac_func innocuous_$ac_func
17430
17431 /* System header to define __stub macros and hopefully few prototypes,
17432     which can conflict with char $ac_func (); below.
17433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434     <limits.h> exists even on freestanding compilers.  */
17435
17436 #ifdef __STDC__
17437 # include <limits.h>
17438 #else
17439 # include <assert.h>
17440 #endif
17441
17442 #undef $ac_func
17443
17444 /* Override any GCC internal prototype to avoid an error.
17445    Use char because int might match the return type of a GCC
17446    builtin and then its argument prototype would still apply.  */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 char $ac_func ();
17451 /* The GNU C library defines this for functions which it implements
17452     to always fail with ENOSYS.  Some functions are actually named
17453     something starting with __ and the normal name is an alias.  */
17454 #if defined __stub_$ac_func || defined __stub___$ac_func
17455 choke me
17456 #endif
17457
17458 int
17459 main ()
17460 {
17461 return $ac_func ();
17462   ;
17463   return 0;
17464 }
17465 _ACEOF
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470   *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473   (eval "$ac_link") 2>conftest.er1
17474   ac_status=$?
17475   grep -v '^ *+' conftest.er1 >conftest.err
17476   rm -f conftest.er1
17477   cat conftest.err >&5
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } &&
17480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481   { (case "(($ac_try" in
17482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483   *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486   (eval "$ac_try") 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; } &&
17490          { ac_try='test -s conftest$ac_exeext'
17491   { (case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_try") 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; }; then
17500   eval "$as_ac_var=yes"
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505         eval "$as_ac_var=no"
17506 fi
17507
17508 rm -f core conftest.err conftest.$ac_objext \
17509       conftest$ac_exeext conftest.$ac_ext
17510 fi
17511 ac_res=`eval echo '${'$as_ac_var'}'`
17512                { echo "$as_me:$LINENO: result: $ac_res" >&5
17513 echo "${ECHO_T}$ac_res" >&6; }
17514 if test `eval echo '${'$as_ac_var'}'` = yes; then
17515   cat >>confdefs.h <<_ACEOF
17516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17517 _ACEOF
17518
17519 fi
17520 done
17521
17522
17523
17524
17525 for ac_func in strerror strerror_r setenv
17526 do
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17541 #define $ac_func innocuous_$ac_func
17542
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char $ac_func (); below.
17545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546     <limits.h> exists even on freestanding compilers.  */
17547
17548 #ifdef __STDC__
17549 # include <limits.h>
17550 #else
17551 # include <assert.h>
17552 #endif
17553
17554 #undef $ac_func
17555
17556 /* Override any GCC internal prototype to avoid an error.
17557    Use char because int might match the return type of a GCC
17558    builtin and then its argument prototype would still apply.  */
17559 #ifdef __cplusplus
17560 extern "C"
17561 #endif
17562 char $ac_func ();
17563 /* The GNU C library defines this for functions which it implements
17564     to always fail with ENOSYS.  Some functions are actually named
17565     something starting with __ and the normal name is an alias.  */
17566 #if defined __stub_$ac_func || defined __stub___$ac_func
17567 choke me
17568 #endif
17569
17570 int
17571 main ()
17572 {
17573 return $ac_func ();
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (ac_try="$ac_link"
17580 case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_link") 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest$ac_exeext'
17603   { (case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_try") 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   eval "$as_ac_var=yes"
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         eval "$as_ac_var=no"
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext \
17621       conftest$ac_exeext conftest.$ac_ext
17622 fi
17623 ac_res=`eval echo '${'$as_ac_var'}'`
17624                { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627   cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17629 _ACEOF
17630
17631 fi
17632 done
17633
17634
17635
17636
17637
17638 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17639 do
17640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646   cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17654 #define $ac_func innocuous_$ac_func
17655
17656 /* System header to define __stub macros and hopefully few prototypes,
17657     which can conflict with char $ac_func (); below.
17658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659     <limits.h> exists even on freestanding compilers.  */
17660
17661 #ifdef __STDC__
17662 # include <limits.h>
17663 #else
17664 # include <assert.h>
17665 #endif
17666
17667 #undef $ac_func
17668
17669 /* Override any GCC internal prototype to avoid an error.
17670    Use char because int might match the return type of a GCC
17671    builtin and then its argument prototype would still apply.  */
17672 #ifdef __cplusplus
17673 extern "C"
17674 #endif
17675 char $ac_func ();
17676 /* The GNU C library defines this for functions which it implements
17677     to always fail with ENOSYS.  Some functions are actually named
17678     something starting with __ and the normal name is an alias.  */
17679 #if defined __stub_$ac_func || defined __stub___$ac_func
17680 choke me
17681 #endif
17682
17683 int
17684 main ()
17685 {
17686 return $ac_func ();
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695   *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698   (eval "$ac_link") 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } &&
17705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706   { (case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_try") 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; } &&
17715          { ac_try='test -s conftest$ac_exeext'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725   eval "$as_ac_var=yes"
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730         eval "$as_ac_var=no"
17731 fi
17732
17733 rm -f core conftest.err conftest.$ac_objext \
17734       conftest$ac_exeext conftest.$ac_ext
17735 fi
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737                { echo "$as_me:$LINENO: result: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740   cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17742 _ACEOF
17743
17744 fi
17745 done
17746
17747
17748
17749
17750
17751
17752 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17753 do
17754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17758   echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760   cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17768 #define $ac_func innocuous_$ac_func
17769
17770 /* System header to define __stub macros and hopefully few prototypes,
17771     which can conflict with char $ac_func (); below.
17772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773     <limits.h> exists even on freestanding compilers.  */
17774
17775 #ifdef __STDC__
17776 # include <limits.h>
17777 #else
17778 # include <assert.h>
17779 #endif
17780
17781 #undef $ac_func
17782
17783 /* Override any GCC internal prototype to avoid an error.
17784    Use char because int might match the return type of a GCC
17785    builtin and then its argument prototype would still apply.  */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 char $ac_func ();
17790 /* The GNU C library defines this for functions which it implements
17791     to always fail with ENOSYS.  Some functions are actually named
17792     something starting with __ and the normal name is an alias.  */
17793 #if defined __stub_$ac_func || defined __stub___$ac_func
17794 choke me
17795 #endif
17796
17797 int
17798 main ()
17799 {
17800 return $ac_func ();
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812   (eval "$ac_link") 2>conftest.er1
17813   ac_status=$?
17814   grep -v '^ *+' conftest.er1 >conftest.err
17815   rm -f conftest.er1
17816   cat conftest.err >&5
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); } &&
17819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820   { (case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825   (eval "$ac_try") 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; } &&
17829          { ac_try='test -s conftest$ac_exeext'
17830   { (case "(($ac_try" in
17831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832   *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835   (eval "$ac_try") 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; }; then
17839   eval "$as_ac_var=yes"
17840 else
17841   echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844         eval "$as_ac_var=no"
17845 fi
17846
17847 rm -f core conftest.err conftest.$ac_objext \
17848       conftest$ac_exeext conftest.$ac_ext
17849 fi
17850 ac_res=`eval echo '${'$as_ac_var'}'`
17851                { echo "$as_me:$LINENO: result: $ac_res" >&5
17852 echo "${ECHO_T}$ac_res" >&6; }
17853 if test `eval echo '${'$as_ac_var'}'` = yes; then
17854   cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17856 _ACEOF
17857
17858 fi
17859 done
17860
17861 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17862 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17863 if test "${llvm_cv_c_printf_a+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   ac_ext=c
17867 ac_cpp='$CPP $CPPFLAGS'
17868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17871
17872  if test "$cross_compiling" = yes; then
17873   llvmac_cv_c_printf_a=no
17874 else
17875   cat >conftest.$ac_ext <<_ACEOF
17876
17877   /* confdefs.h.  */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h.  */
17882
17883 #include <stdio.h>
17884 #include <stdlib.h>
17885
17886 int
17887 main ()
17888 {
17889
17890 volatile double A, B;
17891 char Buffer[100];
17892 A = 1;
17893 A /= 10.0;
17894 sprintf(Buffer, "%a", A);
17895 B = atof(Buffer);
17896 if (A != B)
17897   return (1);
17898 if (A != 0x1.999999999999ap-4)
17899   return (1);
17900 return (0);
17901   ;
17902   return 0;
17903 }
17904 _ACEOF
17905 rm -f conftest$ac_exeext
17906 if { (ac_try="$ac_link"
17907 case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912   (eval "$ac_link") 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17916   { (case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_try") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; }; then
17925   llvm_cv_c_printf_a=yes
17926 else
17927   echo "$as_me: program exited with status $ac_status" >&5
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ( exit $ac_status )
17932 llvmac_cv_c_printf_a=no
17933 fi
17934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17935 fi
17936
17937
17938  ac_ext=c
17939 ac_cpp='$CPP $CPPFLAGS'
17940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17943
17944 fi
17945 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17946 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17947  if test "$llvm_cv_c_printf_a" = "yes"; then
17948
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_PRINTF_A 1
17951 _ACEOF
17952
17953  fi
17954
17955
17956 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17957 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17958 if test "${ac_cv_func_rand48+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   ac_ext=cpp
17962 ac_cpp='$CXXCPP $CPPFLAGS'
17963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17966
17967    cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h.  */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h.  */
17973 #include <stdlib.h>
17974 int
17975 main ()
17976 {
17977 srand48(0);lrand48();drand48();
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (ac_try="$ac_compile"
17984 case "(($ac_try" in
17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986   *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989   (eval "$ac_compile") 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17997   { (case "(($ac_try" in
17998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999   *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002   (eval "$ac_try") 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; } &&
18006          { ac_try='test -s conftest.$ac_objext'
18007   { (case "(($ac_try" in
18008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009   *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012   (eval "$ac_try") 2>&5
18013   ac_status=$?
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); }; }; then
18016   ac_cv_func_rand48=yes
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021         ac_cv_func_rand48=no
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025   ac_ext=c
18026 ac_cpp='$CPP $CPPFLAGS'
18027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18030
18031 fi
18032 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18033 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18034
18035 if test "$ac_cv_func_rand48" = "yes" ; then
18036
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_RAND48 1
18039 _ACEOF
18040
18041 fi
18042
18043
18044 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18045 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18046 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18047   echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049   cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h.  */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h.  */
18055 $ac_includes_default
18056 int
18057 main ()
18058 {
18059 #ifndef strerror_s
18060   char *p = (char *) strerror_s;
18061   return !p;
18062 #endif
18063
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext
18069 if { (ac_try="$ac_compile"
18070 case "(($ac_try" in
18071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072   *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075   (eval "$ac_compile") 2>conftest.er1
18076   ac_status=$?
18077   grep -v '^ *+' conftest.er1 >conftest.err
18078   rm -f conftest.er1
18079   cat conftest.err >&5
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); } &&
18082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083   { (case "(($ac_try" in
18084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085   *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088   (eval "$ac_try") 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; } &&
18092          { ac_try='test -s conftest.$ac_objext'
18093   { (case "(($ac_try" in
18094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095   *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098   (eval "$ac_try") 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102   ac_cv_have_decl_strerror_s=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         ac_cv_have_decl_strerror_s=no
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 fi
18112 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18113 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18114 if test $ac_cv_have_decl_strerror_s = yes; then
18115
18116 cat >>confdefs.h <<_ACEOF
18117 #define HAVE_DECL_STRERROR_S 1
18118 _ACEOF
18119
18120
18121 else
18122   cat >>confdefs.h <<_ACEOF
18123 #define HAVE_DECL_STRERROR_S 0
18124 _ACEOF
18125
18126
18127 fi
18128
18129
18130
18131 if test "$llvm_cv_os_type" = "MingW" ; then
18132   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18133 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18134 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18135   echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137   ac_check_lib_save_LIBS=$LIBS
18138 LIBS="-lgcc  $LIBS"
18139 cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h.  */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h.  */
18145
18146 /* Override any GCC internal prototype to avoid an error.
18147    Use char because int might match the return type of a GCC
18148    builtin and then its argument prototype would still apply.  */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 char _alloca ();
18153 int
18154 main ()
18155 {
18156 return _alloca ();
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168   (eval "$ac_link") 2>conftest.er1
18169   ac_status=$?
18170   grep -v '^ *+' conftest.er1 >conftest.err
18171   rm -f conftest.er1
18172   cat conftest.err >&5
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } &&
18175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; } &&
18185          { ac_try='test -s conftest$ac_exeext'
18186   { (case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_try") 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195   ac_cv_lib_gcc__alloca=yes
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200         ac_cv_lib_gcc__alloca=no
18201 fi
18202
18203 rm -f core conftest.err conftest.$ac_objext \
18204       conftest$ac_exeext conftest.$ac_ext
18205 LIBS=$ac_check_lib_save_LIBS
18206 fi
18207 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18208 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18209 if test $ac_cv_lib_gcc__alloca = yes; then
18210
18211 cat >>confdefs.h <<\_ACEOF
18212 #define HAVE__ALLOCA 1
18213 _ACEOF
18214
18215 fi
18216
18217   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18218 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18219 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18220   echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222   ac_check_lib_save_LIBS=$LIBS
18223 LIBS="-lgcc  $LIBS"
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h.  */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h.  */
18230
18231 /* Override any GCC internal prototype to avoid an error.
18232    Use char because int might match the return type of a GCC
18233    builtin and then its argument prototype would still apply.  */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 char __alloca ();
18238 int
18239 main ()
18240 {
18241 return __alloca ();
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (ac_try="$ac_link"
18248 case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253   (eval "$ac_link") 2>conftest.er1
18254   ac_status=$?
18255   grep -v '^ *+' conftest.er1 >conftest.err
18256   rm -f conftest.er1
18257   cat conftest.err >&5
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); } &&
18260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18261   { (case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_try") 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; } &&
18270          { ac_try='test -s conftest$ac_exeext'
18271   { (case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_try") 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); }; }; then
18280   ac_cv_lib_gcc___alloca=yes
18281 else
18282   echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285         ac_cv_lib_gcc___alloca=no
18286 fi
18287
18288 rm -f core conftest.err conftest.$ac_objext \
18289       conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18291 fi
18292 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18293 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18294 if test $ac_cv_lib_gcc___alloca = yes; then
18295
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE___ALLOCA 1
18298 _ACEOF
18299
18300 fi
18301
18302   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18303 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18304 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-lgcc  $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315
18316 /* Override any GCC internal prototype to avoid an error.
18317    Use char because int might match the return type of a GCC
18318    builtin and then its argument prototype would still apply.  */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 char __chkstk ();
18323 int
18324 main ()
18325 {
18326 return __chkstk ();
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_link") 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } &&
18345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18346   { (case "(($ac_try" in
18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348   *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351   (eval "$ac_try") 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; } &&
18355          { ac_try='test -s conftest$ac_exeext'
18356   { (case "(($ac_try" in
18357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358   *) ac_try_echo=$ac_try;;
18359 esac
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361   (eval "$ac_try") 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; }; then
18365   ac_cv_lib_gcc___chkstk=yes
18366 else
18367   echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370         ac_cv_lib_gcc___chkstk=no
18371 fi
18372
18373 rm -f core conftest.err conftest.$ac_objext \
18374       conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18376 fi
18377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18378 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18379 if test $ac_cv_lib_gcc___chkstk = yes; then
18380
18381 cat >>confdefs.h <<\_ACEOF
18382 #define HAVE___CHKSTK 1
18383 _ACEOF
18384
18385 fi
18386
18387   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18388 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18389 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   ac_check_lib_save_LIBS=$LIBS
18393 LIBS="-lgcc  $LIBS"
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400
18401 /* Override any GCC internal prototype to avoid an error.
18402    Use char because int might match the return type of a GCC
18403    builtin and then its argument prototype would still apply.  */
18404 #ifdef __cplusplus
18405 extern "C"
18406 #endif
18407 char ___chkstk ();
18408 int
18409 main ()
18410 {
18411 return ___chkstk ();
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420   *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423   (eval "$ac_link") 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18431   { (case "(($ac_try" in
18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433   *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436   (eval "$ac_try") 2>&5
18437   ac_status=$?
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); }; } &&
18440          { ac_try='test -s conftest$ac_exeext'
18441   { (case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_try") 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; }; then
18450   ac_cv_lib_gcc____chkstk=yes
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455         ac_cv_lib_gcc____chkstk=no
18456 fi
18457
18458 rm -f core conftest.err conftest.$ac_objext \
18459       conftest$ac_exeext conftest.$ac_ext
18460 LIBS=$ac_check_lib_save_LIBS
18461 fi
18462 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18463 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18464 if test $ac_cv_lib_gcc____chkstk = yes; then
18465
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE____CHKSTK 1
18468 _ACEOF
18469
18470 fi
18471
18472
18473   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18474 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18475 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lgcc  $LIBS"
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h.  */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h.  */
18486
18487 /* Override any GCC internal prototype to avoid an error.
18488    Use char because int might match the return type of a GCC
18489    builtin and then its argument prototype would still apply.  */
18490 #ifdef __cplusplus
18491 extern "C"
18492 #endif
18493 char __ashldi3 ();
18494 int
18495 main ()
18496 {
18497 return __ashldi3 ();
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509   (eval "$ac_link") 2>conftest.er1
18510   ac_status=$?
18511   grep -v '^ *+' conftest.er1 >conftest.err
18512   rm -f conftest.er1
18513   cat conftest.err >&5
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } &&
18516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18517   { (case "(($ac_try" in
18518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519   *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522   (eval "$ac_try") 2>&5
18523   ac_status=$?
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); }; } &&
18526          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18536   ac_cv_lib_gcc___ashldi3=yes
18537 else
18538   echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541         ac_cv_lib_gcc___ashldi3=no
18542 fi
18543
18544 rm -f core conftest.err conftest.$ac_objext \
18545       conftest$ac_exeext conftest.$ac_ext
18546 LIBS=$ac_check_lib_save_LIBS
18547 fi
18548 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18549 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18550 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18551
18552 cat >>confdefs.h <<\_ACEOF
18553 #define HAVE___ASHLDI3 1
18554 _ACEOF
18555
18556 fi
18557
18558   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18559 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18560 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18561   echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563   ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-lgcc  $LIBS"
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571
18572 /* Override any GCC internal prototype to avoid an error.
18573    Use char because int might match the return type of a GCC
18574    builtin and then its argument prototype would still apply.  */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char __ashrdi3 ();
18579 int
18580 main ()
18581 {
18582 return __ashrdi3 ();
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (ac_try="$ac_link"
18589 case "(($ac_try" in
18590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591   *) ac_try_echo=$ac_try;;
18592 esac
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594   (eval "$ac_link") 2>conftest.er1
18595   ac_status=$?
18596   grep -v '^ *+' conftest.er1 >conftest.err
18597   rm -f conftest.er1
18598   cat conftest.err >&5
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); } &&
18601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18602   { (case "(($ac_try" in
18603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604   *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607   (eval "$ac_try") 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; } &&
18611          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18621   ac_cv_lib_gcc___ashrdi3=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626         ac_cv_lib_gcc___ashrdi3=no
18627 fi
18628
18629 rm -f core conftest.err conftest.$ac_objext \
18630       conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18632 fi
18633 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18634 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18635 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18636
18637 cat >>confdefs.h <<\_ACEOF
18638 #define HAVE___ASHRDI3 1
18639 _ACEOF
18640
18641 fi
18642
18643   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18644 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18645 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18646   echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648   ac_check_lib_save_LIBS=$LIBS
18649 LIBS="-lgcc  $LIBS"
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656
18657 /* Override any GCC internal prototype to avoid an error.
18658    Use char because int might match the return type of a GCC
18659    builtin and then its argument prototype would still apply.  */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 char __divdi3 ();
18664 int
18665 main ()
18666 {
18667 return __divdi3 ();
18668   ;
18669   return 0;
18670 }
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (ac_try="$ac_link"
18674 case "(($ac_try" in
18675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676   *) ac_try_echo=$ac_try;;
18677 esac
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679   (eval "$ac_link") 2>conftest.er1
18680   ac_status=$?
18681   grep -v '^ *+' conftest.er1 >conftest.err
18682   rm -f conftest.er1
18683   cat conftest.err >&5
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); } &&
18686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18687   { (case "(($ac_try" in
18688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689   *) ac_try_echo=$ac_try;;
18690 esac
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692   (eval "$ac_try") 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; } &&
18696          { ac_try='test -s conftest$ac_exeext'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_try") 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; }; then
18706   ac_cv_lib_gcc___divdi3=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711         ac_cv_lib_gcc___divdi3=no
18712 fi
18713
18714 rm -f core conftest.err conftest.$ac_objext \
18715       conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18717 fi
18718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18719 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18720 if test $ac_cv_lib_gcc___divdi3 = yes; then
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE___DIVDI3 1
18724 _ACEOF
18725
18726 fi
18727
18728   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18729 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18730 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18731   echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733   ac_check_lib_save_LIBS=$LIBS
18734 LIBS="-lgcc  $LIBS"
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h.  */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h.  */
18741
18742 /* Override any GCC internal prototype to avoid an error.
18743    Use char because int might match the return type of a GCC
18744    builtin and then its argument prototype would still apply.  */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 char __fixdfdi ();
18749 int
18750 main ()
18751 {
18752 return __fixdfdi ();
18753   ;
18754   return 0;
18755 }
18756 _ACEOF
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (ac_try="$ac_link"
18759 case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_link") 2>conftest.er1
18765   ac_status=$?
18766   grep -v '^ *+' conftest.er1 >conftest.err
18767   rm -f conftest.er1
18768   cat conftest.err >&5
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); } &&
18771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18772   { (case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_try") 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; } &&
18781          { ac_try='test -s conftest$ac_exeext'
18782   { (case "(($ac_try" in
18783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784   *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787   (eval "$ac_try") 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; }; then
18791   ac_cv_lib_gcc___fixdfdi=yes
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796         ac_cv_lib_gcc___fixdfdi=no
18797 fi
18798
18799 rm -f core conftest.err conftest.$ac_objext \
18800       conftest$ac_exeext conftest.$ac_ext
18801 LIBS=$ac_check_lib_save_LIBS
18802 fi
18803 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18804 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18805 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE___FIXDFDI 1
18809 _ACEOF
18810
18811 fi
18812
18813   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18814 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18815 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   ac_check_lib_save_LIBS=$LIBS
18819 LIBS="-lgcc  $LIBS"
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826
18827 /* Override any GCC internal prototype to avoid an error.
18828    Use char because int might match the return type of a GCC
18829    builtin and then its argument prototype would still apply.  */
18830 #ifdef __cplusplus
18831 extern "C"
18832 #endif
18833 char __fixsfdi ();
18834 int
18835 main ()
18836 {
18837 return __fixsfdi ();
18838   ;
18839   return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (ac_try="$ac_link"
18844 case "(($ac_try" in
18845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846   *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849   (eval "$ac_link") 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } &&
18856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18857   { (case "(($ac_try" in
18858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859   *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862   (eval "$ac_try") 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; } &&
18866          { ac_try='test -s conftest$ac_exeext'
18867   { (case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_try") 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; }; then
18876   ac_cv_lib_gcc___fixsfdi=yes
18877 else
18878   echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881         ac_cv_lib_gcc___fixsfdi=no
18882 fi
18883
18884 rm -f core conftest.err conftest.$ac_objext \
18885       conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18887 fi
18888 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18889 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18890 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18891
18892 cat >>confdefs.h <<\_ACEOF
18893 #define HAVE___FIXSFDI 1
18894 _ACEOF
18895
18896 fi
18897
18898   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18899 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18900 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18901   echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903   ac_check_lib_save_LIBS=$LIBS
18904 LIBS="-lgcc  $LIBS"
18905 cat >conftest.$ac_ext <<_ACEOF
18906 /* confdefs.h.  */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h.  */
18911
18912 /* Override any GCC internal prototype to avoid an error.
18913    Use char because int might match the return type of a GCC
18914    builtin and then its argument prototype would still apply.  */
18915 #ifdef __cplusplus
18916 extern "C"
18917 #endif
18918 char __floatdidf ();
18919 int
18920 main ()
18921 {
18922 return __floatdidf ();
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934   (eval "$ac_link") 2>conftest.er1
18935   ac_status=$?
18936   grep -v '^ *+' conftest.er1 >conftest.err
18937   rm -f conftest.er1
18938   cat conftest.err >&5
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); } &&
18941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18942   { (case "(($ac_try" in
18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944   *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947   (eval "$ac_try") 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); }; } &&
18951          { ac_try='test -s conftest$ac_exeext'
18952   { (case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_try") 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; }; then
18961   ac_cv_lib_gcc___floatdidf=yes
18962 else
18963   echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18965
18966         ac_cv_lib_gcc___floatdidf=no
18967 fi
18968
18969 rm -f core conftest.err conftest.$ac_objext \
18970       conftest$ac_exeext conftest.$ac_ext
18971 LIBS=$ac_check_lib_save_LIBS
18972 fi
18973 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18974 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18975 if test $ac_cv_lib_gcc___floatdidf = yes; then
18976
18977 cat >>confdefs.h <<\_ACEOF
18978 #define HAVE___FLOATDIDF 1
18979 _ACEOF
18980
18981 fi
18982
18983   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18984 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18985 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   ac_check_lib_save_LIBS=$LIBS
18989 LIBS="-lgcc  $LIBS"
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h.  */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h.  */
18996
18997 /* Override any GCC internal prototype to avoid an error.
18998    Use char because int might match the return type of a GCC
18999    builtin and then its argument prototype would still apply.  */
19000 #ifdef __cplusplus
19001 extern "C"
19002 #endif
19003 char __lshrdi3 ();
19004 int
19005 main ()
19006 {
19007 return __lshrdi3 ();
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016   *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019   (eval "$ac_link") 2>conftest.er1
19020   ac_status=$?
19021   grep -v '^ *+' conftest.er1 >conftest.err
19022   rm -f conftest.er1
19023   cat conftest.err >&5
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); } &&
19026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19027   { (case "(($ac_try" in
19028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029   *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032   (eval "$ac_try") 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); }; } &&
19036          { ac_try='test -s conftest$ac_exeext'
19037   { (case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_try") 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; }; then
19046   ac_cv_lib_gcc___lshrdi3=yes
19047 else
19048   echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051         ac_cv_lib_gcc___lshrdi3=no
19052 fi
19053
19054 rm -f core conftest.err conftest.$ac_objext \
19055       conftest$ac_exeext conftest.$ac_ext
19056 LIBS=$ac_check_lib_save_LIBS
19057 fi
19058 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19059 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19060 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19061
19062 cat >>confdefs.h <<\_ACEOF
19063 #define HAVE___LSHRDI3 1
19064 _ACEOF
19065
19066 fi
19067
19068   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19069 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19070 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   ac_check_lib_save_LIBS=$LIBS
19074 LIBS="-lgcc  $LIBS"
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081
19082 /* Override any GCC internal prototype to avoid an error.
19083    Use char because int might match the return type of a GCC
19084    builtin and then its argument prototype would still apply.  */
19085 #ifdef __cplusplus
19086 extern "C"
19087 #endif
19088 char __moddi3 ();
19089 int
19090 main ()
19091 {
19092 return __moddi3 ();
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest.$ac_objext conftest$ac_exeext
19098 if { (ac_try="$ac_link"
19099 case "(($ac_try" in
19100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101   *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104   (eval "$ac_link") 2>conftest.er1
19105   ac_status=$?
19106   grep -v '^ *+' conftest.er1 >conftest.err
19107   rm -f conftest.er1
19108   cat conftest.err >&5
19109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); } &&
19111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19112   { (case "(($ac_try" in
19113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114   *) ac_try_echo=$ac_try;;
19115 esac
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117   (eval "$ac_try") 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); }; } &&
19121          { ac_try='test -s conftest$ac_exeext'
19122   { (case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_try") 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; }; then
19131   ac_cv_lib_gcc___moddi3=yes
19132 else
19133   echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136         ac_cv_lib_gcc___moddi3=no
19137 fi
19138
19139 rm -f core conftest.err conftest.$ac_objext \
19140       conftest$ac_exeext conftest.$ac_ext
19141 LIBS=$ac_check_lib_save_LIBS
19142 fi
19143 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19144 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19145 if test $ac_cv_lib_gcc___moddi3 = yes; then
19146
19147 cat >>confdefs.h <<\_ACEOF
19148 #define HAVE___MODDI3 1
19149 _ACEOF
19150
19151 fi
19152
19153   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19154 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19155 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158   ac_check_lib_save_LIBS=$LIBS
19159 LIBS="-lgcc  $LIBS"
19160 cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166
19167 /* Override any GCC internal prototype to avoid an error.
19168    Use char because int might match the return type of a GCC
19169    builtin and then its argument prototype would still apply.  */
19170 #ifdef __cplusplus
19171 extern "C"
19172 #endif
19173 char __udivdi3 ();
19174 int
19175 main ()
19176 {
19177 return __udivdi3 ();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189   (eval "$ac_link") 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } &&
19196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19197   { (case "(($ac_try" in
19198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199   *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202   (eval "$ac_try") 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; } &&
19206          { ac_try='test -s conftest$ac_exeext'
19207   { (case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_try") 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; }; then
19216   ac_cv_lib_gcc___udivdi3=yes
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221         ac_cv_lib_gcc___udivdi3=no
19222 fi
19223
19224 rm -f core conftest.err conftest.$ac_objext \
19225       conftest$ac_exeext conftest.$ac_ext
19226 LIBS=$ac_check_lib_save_LIBS
19227 fi
19228 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19229 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19230 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19231
19232 cat >>confdefs.h <<\_ACEOF
19233 #define HAVE___UDIVDI3 1
19234 _ACEOF
19235
19236 fi
19237
19238   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19239 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19240 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243   ac_check_lib_save_LIBS=$LIBS
19244 LIBS="-lgcc  $LIBS"
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251
19252 /* Override any GCC internal prototype to avoid an error.
19253    Use char because int might match the return type of a GCC
19254    builtin and then its argument prototype would still apply.  */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 char __umoddi3 ();
19259 int
19260 main ()
19261 {
19262 return __umoddi3 ();
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (ac_try="$ac_link"
19269 case "(($ac_try" in
19270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271   *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274   (eval "$ac_link") 2>conftest.er1
19275   ac_status=$?
19276   grep -v '^ *+' conftest.er1 >conftest.err
19277   rm -f conftest.er1
19278   cat conftest.err >&5
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); } &&
19281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19282   { (case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_try") 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; } &&
19291          { ac_try='test -s conftest$ac_exeext'
19292   { (case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_try") 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; }; then
19301   ac_cv_lib_gcc___umoddi3=yes
19302 else
19303   echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306         ac_cv_lib_gcc___umoddi3=no
19307 fi
19308
19309 rm -f core conftest.err conftest.$ac_objext \
19310       conftest$ac_exeext conftest.$ac_ext
19311 LIBS=$ac_check_lib_save_LIBS
19312 fi
19313 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19314 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19315 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19316
19317 cat >>confdefs.h <<\_ACEOF
19318 #define HAVE___UMODDI3 1
19319 _ACEOF
19320
19321 fi
19322
19323
19324   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19325 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19326 if test "${ac_cv_lib_gcc___main+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   ac_check_lib_save_LIBS=$LIBS
19330 LIBS="-lgcc  $LIBS"
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337
19338 /* Override any GCC internal prototype to avoid an error.
19339    Use char because int might match the return type of a GCC
19340    builtin and then its argument prototype would still apply.  */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 char __main ();
19345 int
19346 main ()
19347 {
19348 return __main ();
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_link") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } &&
19367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368   { (case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_try") 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19387   ac_cv_lib_gcc___main=yes
19388 else
19389   echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19391
19392         ac_cv_lib_gcc___main=no
19393 fi
19394
19395 rm -f core conftest.err conftest.$ac_objext \
19396       conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19398 fi
19399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19400 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19401 if test $ac_cv_lib_gcc___main = yes; then
19402
19403 cat >>confdefs.h <<\_ACEOF
19404 #define HAVE___MAIN 1
19405 _ACEOF
19406
19407 fi
19408
19409   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19410 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19411 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19412   echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414   ac_check_lib_save_LIBS=$LIBS
19415 LIBS="-lgcc  $LIBS"
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h.  */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h.  */
19422
19423 /* Override any GCC internal prototype to avoid an error.
19424    Use char because int might match the return type of a GCC
19425    builtin and then its argument prototype would still apply.  */
19426 #ifdef __cplusplus
19427 extern "C"
19428 #endif
19429 char __cmpdi2 ();
19430 int
19431 main ()
19432 {
19433 return __cmpdi2 ();
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442   *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445   (eval "$ac_link") 2>conftest.er1
19446   ac_status=$?
19447   grep -v '^ *+' conftest.er1 >conftest.err
19448   rm -f conftest.er1
19449   cat conftest.err >&5
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); } &&
19452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19453   { (case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458   (eval "$ac_try") 2>&5
19459   ac_status=$?
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); }; } &&
19462          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19472   ac_cv_lib_gcc___cmpdi2=yes
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477         ac_cv_lib_gcc___cmpdi2=no
19478 fi
19479
19480 rm -f core conftest.err conftest.$ac_objext \
19481       conftest$ac_exeext conftest.$ac_ext
19482 LIBS=$ac_check_lib_save_LIBS
19483 fi
19484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19485 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19486 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE___CMPDI2 1
19490 _ACEOF
19491
19492 fi
19493
19494 fi
19495
19496 if test "$llvm_cv_os_type" = "MingW" ; then
19497   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19498 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19499   cat >conftest.$ac_ext <<_ACEOF
19500 #include <windows.h>
19501 #include <imagehlp.h>
19502 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19503 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_compile") 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19520   { (case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_try") 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; } &&
19529          { ac_try='test -s conftest.$ac_objext'
19530   { (case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_try") 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539
19540   { echo "$as_me:$LINENO: result: yes" >&5
19541 echo "${ECHO_T}yes" >&6; }
19542   llvm_cv_win32_elmcb_pcstr="PCSTR"
19543
19544 else
19545   echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548
19549   { echo "$as_me:$LINENO: result: no" >&5
19550 echo "${ECHO_T}no" >&6; }
19551   llvm_cv_win32_elmcb_pcstr="PSTR"
19552
19553 fi
19554
19555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19559 _ACEOF
19560
19561 fi
19562
19563
19564 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19565 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19566 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   ac_ext=cpp
19570 ac_cpp='$CXXCPP $CPPFLAGS'
19571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19574
19575    cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581 #include <math.h>
19582 int
19583 main ()
19584 {
19585 float f; isnan(f);
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (ac_try="$ac_compile"
19592 case "(($ac_try" in
19593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594   *) ac_try_echo=$ac_try;;
19595 esac
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597   (eval "$ac_compile") 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19605   { (case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_try") 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; } &&
19614          { ac_try='test -s conftest.$ac_objext'
19615   { (case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620   (eval "$ac_try") 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; }; then
19624   ac_cv_func_isnan_in_math_h=yes
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         ac_cv_func_isnan_in_math_h=no
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19633   ac_ext=c
19634 ac_cpp='$CPP $CPPFLAGS'
19635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19638
19639 fi
19640 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19641 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19642
19643
19644 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19645
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_ISNAN_IN_MATH_H 1
19648 _ACEOF
19649
19650 fi
19651
19652 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19653 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19654 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   ac_ext=cpp
19658 ac_cpp='$CXXCPP $CPPFLAGS'
19659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19662
19663    cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669 #include <cmath>
19670 int
19671 main ()
19672 {
19673 float f; isnan(f);
19674   ;
19675   return 0;
19676 }
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682   *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685   (eval "$ac_compile") 2>conftest.er1
19686   ac_status=$?
19687   grep -v '^ *+' conftest.er1 >conftest.err
19688   rm -f conftest.er1
19689   cat conftest.err >&5
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); } &&
19692          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19693   { (case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_try") 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; } &&
19702          { ac_try='test -s conftest.$ac_objext'
19703   { (case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_try") 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); }; }; then
19712   ac_cv_func_isnan_in_cmath=yes
19713 else
19714   echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717         ac_cv_func_isnan_in_cmath=no
19718 fi
19719
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721   ac_ext=c
19722 ac_cpp='$CPP $CPPFLAGS'
19723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726
19727 fi
19728 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19729 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19730
19731 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19732
19733 cat >>confdefs.h <<\_ACEOF
19734 #define HAVE_ISNAN_IN_CMATH 1
19735 _ACEOF
19736
19737 fi
19738
19739 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19740 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19741 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   ac_ext=cpp
19745 ac_cpp='$CXXCPP $CPPFLAGS'
19746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19749
19750    cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h.  */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h.  */
19756 #include <cmath>
19757 int
19758 main ()
19759 {
19760 float f; std::isnan(f);
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (ac_try="$ac_compile"
19767 case "(($ac_try" in
19768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769   *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772   (eval "$ac_compile") 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19780   { (case "(($ac_try" in
19781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782   *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785   (eval "$ac_try") 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; } &&
19789          { ac_try='test -s conftest.$ac_objext'
19790   { (case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_try") 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_cv_func_std_isnan_in_cmath=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804         ac_cv_func_std_isnan_in_cmath=no
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808   ac_ext=c
19809 ac_cpp='$CPP $CPPFLAGS'
19810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19813
19814 fi
19815 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19817
19818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19819
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_STD_ISNAN_IN_CMATH 1
19822 _ACEOF
19823
19824 fi
19825
19826
19827 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19828 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19829 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832   ac_ext=cpp
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19837
19838    cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844 #include <math.h>
19845 int
19846 main ()
19847 {
19848 float f; isinf(f);
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_compile") 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } &&
19867          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19868   { (case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_try") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; } &&
19877          { ac_try='test -s conftest.$ac_objext'
19878   { (case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_try") 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   ac_cv_func_isinf_in_math_h=yes
19888 else
19889   echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892         ac_cv_func_isinf_in_math_h=no
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896   ac_ext=c
19897 ac_cpp='$CPP $CPPFLAGS'
19898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901
19902 fi
19903 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19904 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19905
19906 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19907
19908 cat >>confdefs.h <<\_ACEOF
19909 #define HAVE_ISINF_IN_MATH_H 1
19910 _ACEOF
19911
19912 fi
19913
19914 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19915 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19916 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   ac_ext=cpp
19920 ac_cpp='$CXXCPP $CPPFLAGS'
19921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19924
19925    cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 #include <cmath>
19932 int
19933 main ()
19934 {
19935 float f; isinf(f);
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944   *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947   (eval "$ac_compile") 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } &&
19954          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19955   { (case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960   (eval "$ac_try") 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; } &&
19964          { ac_try='test -s conftest.$ac_objext'
19965   { (case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_try") 2>&5
19971   ac_status=$?
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); }; }; then
19974   ac_cv_func_isinf_in_cmath=yes
19975 else
19976   echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19978
19979         ac_cv_func_isinf_in_cmath=no
19980 fi
19981
19982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19983   ac_ext=c
19984 ac_cpp='$CPP $CPPFLAGS'
19985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19988
19989 fi
19990 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19991 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19992
19993 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19994
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_ISINF_IN_CMATH 1
19997 _ACEOF
19998
19999 fi
20000
20001 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20002 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20003 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   ac_ext=cpp
20007 ac_cpp='$CXXCPP $CPPFLAGS'
20008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20011
20012    cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018 #include <cmath>
20019 int
20020 main ()
20021 {
20022 float f; std::isinf(f);
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_compile") 2>conftest.er1
20035   ac_status=$?
20036   grep -v '^ *+' conftest.er1 >conftest.err
20037   rm -f conftest.er1
20038   cat conftest.err >&5
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } &&
20041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20042   { (case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_try") 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; } &&
20051          { ac_try='test -s conftest.$ac_objext'
20052   { (case "(($ac_try" in
20053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054   *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057   (eval "$ac_try") 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_func_std_isinf_in_cmath=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066         ac_cv_func_std_isinf_in_cmath=no
20067 fi
20068
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070   ac_ext=c
20071 ac_cpp='$CPP $CPPFLAGS'
20072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20075
20076 fi
20077 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20078 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20079
20080 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20081
20082 cat >>confdefs.h <<\_ACEOF
20083 #define HAVE_STD_ISINF_IN_CMATH 1
20084 _ACEOF
20085
20086 fi
20087
20088 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20089 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20090 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   ac_ext=cpp
20094 ac_cpp='$CXXCPP $CPPFLAGS'
20095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20098
20099    cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 #include <ieeefp.h>
20106 int
20107 main ()
20108 {
20109 float f; finite(f);
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (ac_try="$ac_compile"
20116 case "(($ac_try" in
20117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118   *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121   (eval "$ac_compile") 2>conftest.er1
20122   ac_status=$?
20123   grep -v '^ *+' conftest.er1 >conftest.err
20124   rm -f conftest.er1
20125   cat conftest.err >&5
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); } &&
20128          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20129   { (case "(($ac_try" in
20130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131   *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134   (eval "$ac_try") 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); }; } &&
20138          { ac_try='test -s conftest.$ac_objext'
20139   { (case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_try") 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; }; then
20148   ac_cv_func_finite_in_ieeefp_h=yes
20149 else
20150   echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153         ac_cv_func_finite_in_ieeefp_h=no
20154 fi
20155
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157   ac_ext=c
20158 ac_cpp='$CPP $CPPFLAGS'
20159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20162
20163 fi
20164 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20165 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20166
20167 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20168
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_FINITE_IN_IEEEFP_H 1
20171 _ACEOF
20172
20173 fi
20174
20175
20176
20177 if test "$llvm_cv_platform_type" = "Unix" ; then
20178
20179
20180 for ac_header in stdlib.h unistd.h
20181 do
20182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20187   echo $ECHO_N "(cached) $ECHO_C" >&6
20188 fi
20189 ac_res=`eval echo '${'$as_ac_Header'}'`
20190                { echo "$as_me:$LINENO: result: $ac_res" >&5
20191 echo "${ECHO_T}$ac_res" >&6; }
20192 else
20193   # Is the header compilable?
20194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 $ac_includes_default
20203 #include <$ac_header>
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (ac_try="$ac_compile"
20207 case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_compile") 2>conftest.er1
20213   ac_status=$?
20214   grep -v '^ *+' conftest.er1 >conftest.err
20215   rm -f conftest.er1
20216   cat conftest.err >&5
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } &&
20219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20220   { (case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_try") 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; } &&
20229          { ac_try='test -s conftest.$ac_objext'
20230   { (case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_try") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; }; then
20239   ac_header_compiler=yes
20240 else
20241   echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244         ac_header_compiler=no
20245 fi
20246
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250
20251 # Is the header present?
20252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <$ac_header>
20261 _ACEOF
20262 if { (ac_try="$ac_cpp conftest.$ac_ext"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20269   ac_status=$?
20270   grep -v '^ *+' conftest.er1 >conftest.err
20271   rm -f conftest.er1
20272   cat conftest.err >&5
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); } >/dev/null; then
20275   if test -s conftest.err; then
20276     ac_cpp_err=$ac_c_preproc_warn_flag
20277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20278   else
20279     ac_cpp_err=
20280   fi
20281 else
20282   ac_cpp_err=yes
20283 fi
20284 if test -z "$ac_cpp_err"; then
20285   ac_header_preproc=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290   ac_header_preproc=no
20291 fi
20292
20293 rm -f conftest.err conftest.$ac_ext
20294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20295 echo "${ECHO_T}$ac_header_preproc" >&6; }
20296
20297 # So?  What about this header?
20298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20299   yes:no: )
20300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20304     ac_header_preproc=yes
20305     ;;
20306   no:yes:* )
20307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20309     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20310 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20311     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20313     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20314 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20317     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20319     ( cat <<\_ASBOX
20320 ## ------------------------------------ ##
20321 ## Report this to http://llvm.org/bugs/ ##
20322 ## ------------------------------------ ##
20323 _ASBOX
20324      ) | sed "s/^/$as_me: WARNING:     /" >&2
20325     ;;
20326 esac
20327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   eval "$as_ac_Header=\$ac_header_preproc"
20333 fi
20334 ac_res=`eval echo '${'$as_ac_Header'}'`
20335                { echo "$as_me:$LINENO: result: $ac_res" >&5
20336 echo "${ECHO_T}$ac_res" >&6; }
20337
20338 fi
20339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20340   cat >>confdefs.h <<_ACEOF
20341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20342 _ACEOF
20343
20344 fi
20345
20346 done
20347
20348
20349 for ac_func in getpagesize
20350 do
20351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20355   echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357   cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20365 #define $ac_func innocuous_$ac_func
20366
20367 /* System header to define __stub macros and hopefully few prototypes,
20368     which can conflict with char $ac_func (); below.
20369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20370     <limits.h> exists even on freestanding compilers.  */
20371
20372 #ifdef __STDC__
20373 # include <limits.h>
20374 #else
20375 # include <assert.h>
20376 #endif
20377
20378 #undef $ac_func
20379
20380 /* Override any GCC internal prototype to avoid an error.
20381    Use char because int might match the return type of a GCC
20382    builtin and then its argument prototype would still apply.  */
20383 #ifdef __cplusplus
20384 extern "C"
20385 #endif
20386 char $ac_func ();
20387 /* The GNU C library defines this for functions which it implements
20388     to always fail with ENOSYS.  Some functions are actually named
20389     something starting with __ and the normal name is an alias.  */
20390 #if defined __stub_$ac_func || defined __stub___$ac_func
20391 choke me
20392 #endif
20393
20394 int
20395 main ()
20396 {
20397 return $ac_func ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406   *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409   (eval "$ac_link") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } &&
20416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417   { (case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_try") 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); }; } &&
20426          { ac_try='test -s conftest$ac_exeext'
20427   { (case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_try") 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; }; then
20436   eval "$as_ac_var=yes"
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441         eval "$as_ac_var=no"
20442 fi
20443
20444 rm -f core conftest.err conftest.$ac_objext \
20445       conftest$ac_exeext conftest.$ac_ext
20446 fi
20447 ac_res=`eval echo '${'$as_ac_var'}'`
20448                { echo "$as_me:$LINENO: result: $ac_res" >&5
20449 echo "${ECHO_T}$ac_res" >&6; }
20450 if test `eval echo '${'$as_ac_var'}'` = yes; then
20451   cat >>confdefs.h <<_ACEOF
20452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20453 _ACEOF
20454
20455 fi
20456 done
20457
20458 { echo "$as_me:$LINENO: checking for working mmap" >&5
20459 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20460 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463   if test "$cross_compiling" = yes; then
20464   ac_cv_func_mmap_fixed_mapped=no
20465 else
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 $ac_includes_default
20473 /* malloc might have been renamed as rpl_malloc. */
20474 #undef malloc
20475
20476 /* Thanks to Mike Haertel and Jim Avera for this test.
20477    Here is a matrix of mmap possibilities:
20478         mmap private not fixed
20479         mmap private fixed at somewhere currently unmapped
20480         mmap private fixed at somewhere already mapped
20481         mmap shared not fixed
20482         mmap shared fixed at somewhere currently unmapped
20483         mmap shared fixed at somewhere already mapped
20484    For private mappings, we should verify that changes cannot be read()
20485    back from the file, nor mmap's back from the file at a different
20486    address.  (There have been systems where private was not correctly
20487    implemented like the infamous i386 svr4.0, and systems where the
20488    VM page cache was not coherent with the file system buffer cache
20489    like early versions of FreeBSD and possibly contemporary NetBSD.)
20490    For shared mappings, we should conversely verify that changes get
20491    propagated back to all the places they're supposed to be.
20492
20493    Grep wants private fixed already mapped.
20494    The main things grep needs to know about mmap are:
20495    * does it exist and is it safe to write into the mmap'd area
20496    * how to use it (BSD variants)  */
20497
20498 #include <fcntl.h>
20499 #include <sys/mman.h>
20500
20501 #if !STDC_HEADERS && !HAVE_STDLIB_H
20502 char *malloc ();
20503 #endif
20504
20505 /* This mess was copied from the GNU getpagesize.h.  */
20506 #if !HAVE_GETPAGESIZE
20507 /* Assume that all systems that can run configure have sys/param.h.  */
20508 # if !HAVE_SYS_PARAM_H
20509 #  define HAVE_SYS_PARAM_H 1
20510 # endif
20511
20512 # ifdef _SC_PAGESIZE
20513 #  define getpagesize() sysconf(_SC_PAGESIZE)
20514 # else /* no _SC_PAGESIZE */
20515 #  if HAVE_SYS_PARAM_H
20516 #   include <sys/param.h>
20517 #   ifdef EXEC_PAGESIZE
20518 #    define getpagesize() EXEC_PAGESIZE
20519 #   else /* no EXEC_PAGESIZE */
20520 #    ifdef NBPG
20521 #     define getpagesize() NBPG * CLSIZE
20522 #     ifndef CLSIZE
20523 #      define CLSIZE 1
20524 #     endif /* no CLSIZE */
20525 #    else /* no NBPG */
20526 #     ifdef NBPC
20527 #      define getpagesize() NBPC
20528 #     else /* no NBPC */
20529 #      ifdef PAGESIZE
20530 #       define getpagesize() PAGESIZE
20531 #      endif /* PAGESIZE */
20532 #     endif /* no NBPC */
20533 #    endif /* no NBPG */
20534 #   endif /* no EXEC_PAGESIZE */
20535 #  else /* no HAVE_SYS_PARAM_H */
20536 #   define getpagesize() 8192   /* punt totally */
20537 #  endif /* no HAVE_SYS_PARAM_H */
20538 # endif /* no _SC_PAGESIZE */
20539
20540 #endif /* no HAVE_GETPAGESIZE */
20541
20542 int
20543 main ()
20544 {
20545   char *data, *data2, *data3;
20546   int i, pagesize;
20547   int fd;
20548
20549   pagesize = getpagesize ();
20550
20551   /* First, make a file with some known garbage in it. */
20552   data = (char *) malloc (pagesize);
20553   if (!data)
20554     return 1;
20555   for (i = 0; i < pagesize; ++i)
20556     *(data + i) = rand ();
20557   umask (0);
20558   fd = creat ("conftest.mmap", 0600);
20559   if (fd < 0)
20560     return 1;
20561   if (write (fd, data, pagesize) != pagesize)
20562     return 1;
20563   close (fd);
20564
20565   /* Next, try to mmap the file at a fixed address which already has
20566      something else allocated at it.  If we can, also make sure that
20567      we see the same garbage.  */
20568   fd = open ("conftest.mmap", O_RDWR);
20569   if (fd < 0)
20570     return 1;
20571   data2 = (char *) malloc (2 * pagesize);
20572   if (!data2)
20573     return 1;
20574   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20575   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20576                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20577     return 1;
20578   for (i = 0; i < pagesize; ++i)
20579     if (*(data + i) != *(data2 + i))
20580       return 1;
20581
20582   /* Finally, make sure that changes to the mapped area do not
20583      percolate back to the file as seen by read().  (This is a bug on
20584      some variants of i386 svr4.0.)  */
20585   for (i = 0; i < pagesize; ++i)
20586     *(data2 + i) = *(data2 + i) + 1;
20587   data3 = (char *) malloc (pagesize);
20588   if (!data3)
20589     return 1;
20590   if (read (fd, data3, pagesize) != pagesize)
20591     return 1;
20592   for (i = 0; i < pagesize; ++i)
20593     if (*(data + i) != *(data3 + i))
20594       return 1;
20595   close (fd);
20596   return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603   *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606   (eval "$ac_link") 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20610   { (case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_try") 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; }; then
20619   ac_cv_func_mmap_fixed_mapped=yes
20620 else
20621   echo "$as_me: program exited with status $ac_status" >&5
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 ( exit $ac_status )
20626 ac_cv_func_mmap_fixed_mapped=no
20627 fi
20628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20629 fi
20630
20631
20632 fi
20633 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20634 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20635 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20636
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_MMAP 1
20639 _ACEOF
20640
20641 fi
20642 rm -f conftest.mmap
20643
20644   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20645 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20646 if test "${ac_cv_func_mmap_file+set}" = set; then
20647   echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649    ac_ext=c
20650 ac_cpp='$CPP $CPPFLAGS'
20651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20654
20655   if test "$cross_compiling" = yes; then
20656   ac_cv_func_mmap_file=no
20657 else
20658   cat >conftest.$ac_ext <<_ACEOF
20659
20660     /* confdefs.h.  */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h.  */
20665
20666 #include <sys/types.h>
20667 #include <sys/mman.h>
20668 #include <fcntl.h>
20669
20670 int
20671 main ()
20672 {
20673
20674   int fd;
20675   fd = creat ("foo",0777);
20676   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20677   unlink ("foo");
20678   return (fd != (int) MAP_FAILED);
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687   *) ac_try_echo=$ac_try;;
20688 esac
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690   (eval "$ac_link") 2>&5
20691   ac_status=$?
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20694   { (case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_try") 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; }; then
20703   ac_cv_func_mmap_file=yes
20704 else
20705   echo "$as_me: program exited with status $ac_status" >&5
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 ( exit $ac_status )
20710 ac_cv_func_mmap_file=no
20711 fi
20712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20713 fi
20714
20715
20716   ac_ext=c
20717 ac_cpp='$CPP $CPPFLAGS'
20718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20721
20722
20723 fi
20724 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20725 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20726 if test "$ac_cv_func_mmap_file" = yes; then
20727
20728 cat >>confdefs.h <<\_ACEOF
20729 #define HAVE_MMAP_FILE
20730 _ACEOF
20731
20732    MMAP_FILE=yes
20733
20734 fi
20735
20736   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20737 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20738 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20739   echo $ECHO_N "(cached) $ECHO_C" >&6
20740 else
20741   if test "$llvm_cv_os_type" = "Interix" ; then
20742    ac_cv_need_dev_zero_for_mmap=yes
20743  else
20744    ac_cv_need_dev_zero_for_mmap=no
20745  fi
20746
20747 fi
20748 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20749 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20750 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20751
20752 cat >>confdefs.h <<\_ACEOF
20753 #define NEED_DEV_ZERO_FOR_MMAP 1
20754 _ACEOF
20755
20756 fi
20757
20758   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20759   then
20760     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20761 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20762   fi
20763   if test "$ac_cv_func_mmap_file" = "no"
20764   then
20765     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20766 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20767   fi
20768 fi
20769
20770 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20771 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20772 ac_ext=cpp
20773 ac_cpp='$CXXCPP $CPPFLAGS'
20774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20777
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784 int main() {
20785         volatile unsigned long val = 1;
20786         __sync_synchronize();
20787         __sync_val_compare_and_swap(&val, 1, 0);
20788         __sync_add_and_fetch(&val, 1);
20789         __sync_sub_and_fetch(&val, 1);
20790         return 0;
20791       }
20792
20793 _ACEOF
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (ac_try="$ac_link"
20796 case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_link") 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809   { (case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_try") 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; } &&
20818          { ac_try='test -s conftest$ac_exeext'
20819   { (case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_try") 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; }; then
20828   ac_ext=c
20829 ac_cpp='$CPP $CPPFLAGS'
20830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20833
20834   { echo "$as_me:$LINENO: result: yes" >&5
20835 echo "${ECHO_T}yes" >&6; }
20836
20837 cat >>confdefs.h <<\_ACEOF
20838 #define LLVM_HAS_ATOMICS 1
20839 _ACEOF
20840
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845         { echo "$as_me:$LINENO: result: no" >&5
20846 echo "${ECHO_T}no" >&6; }
20847
20848 cat >>confdefs.h <<\_ACEOF
20849 #define LLVM_HAS_ATOMICS 0
20850 _ACEOF
20851
20852   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20853 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20854 fi
20855
20856 rm -f core conftest.err conftest.$ac_objext \
20857       conftest$ac_exeext conftest.$ac_ext
20858
20859
20860 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20861   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20862 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20863 if test "${llvm_cv_linux_mixed+set}" = set; then
20864   echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866    ac_ext=c
20867 ac_cpp='$CPP $CPPFLAGS'
20868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20871
20872   cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 #ifndef __x86_64__
20879        error: Not x86-64 even if uname says so!
20880       #endif
20881
20882 int
20883 main ()
20884 {
20885
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext
20891 if { (ac_try="$ac_compile"
20892 case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897   (eval "$ac_compile") 2>conftest.er1
20898   ac_status=$?
20899   grep -v '^ *+' conftest.er1 >conftest.err
20900   rm -f conftest.er1
20901   cat conftest.err >&5
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); } &&
20904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20905   { (case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_try") 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; } &&
20914          { ac_try='test -s conftest.$ac_objext'
20915   { (case "(($ac_try" in
20916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917   *) ac_try_echo=$ac_try;;
20918 esac
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920   (eval "$ac_try") 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   llvm_cv_linux_mixed=no
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929         llvm_cv_linux_mixed=yes
20930 fi
20931
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933   ac_ext=c
20934 ac_cpp='$CPP $CPPFLAGS'
20935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940 fi
20941 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20942 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20943
20944   if test "$llvm_cv_linux_mixed" = "yes"; then
20945     llvm_cv_target_arch="x86"
20946     ARCH="x86"
20947   fi
20948 fi
20949
20950
20951 for ac_func in __dso_handle
20952 do
20953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20957   echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959   cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h.  */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h.  */
20965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20967 #define $ac_func innocuous_$ac_func
20968
20969 /* System header to define __stub macros and hopefully few prototypes,
20970     which can conflict with char $ac_func (); below.
20971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20972     <limits.h> exists even on freestanding compilers.  */
20973
20974 #ifdef __STDC__
20975 # include <limits.h>
20976 #else
20977 # include <assert.h>
20978 #endif
20979
20980 #undef $ac_func
20981
20982 /* Override any GCC internal prototype to avoid an error.
20983    Use char because int might match the return type of a GCC
20984    builtin and then its argument prototype would still apply.  */
20985 #ifdef __cplusplus
20986 extern "C"
20987 #endif
20988 char $ac_func ();
20989 /* The GNU C library defines this for functions which it implements
20990     to always fail with ENOSYS.  Some functions are actually named
20991     something starting with __ and the normal name is an alias.  */
20992 #if defined __stub_$ac_func || defined __stub___$ac_func
20993 choke me
20994 #endif
20995
20996 int
20997 main ()
20998 {
20999 return $ac_func ();
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_link") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } &&
21018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21019   { (case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024   (eval "$ac_try") 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); }; } &&
21028          { ac_try='test -s conftest$ac_exeext'
21029   { (case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_try") 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; }; then
21038   eval "$as_ac_var=yes"
21039 else
21040   echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043         eval "$as_ac_var=no"
21044 fi
21045
21046 rm -f core conftest.err conftest.$ac_objext \
21047       conftest$ac_exeext conftest.$ac_ext
21048 fi
21049 ac_res=`eval echo '${'$as_ac_var'}'`
21050                { echo "$as_me:$LINENO: result: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21052 if test `eval echo '${'$as_ac_var'}'` = yes; then
21053   cat >>confdefs.h <<_ACEOF
21054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21055 _ACEOF
21056
21057 fi
21058 done
21059
21060
21061 SHLIBEXT=$libltdl_cv_shlibext
21062
21063
21064 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21065
21066
21067 if test "${prefix}" = "NONE" ; then
21068   prefix="/usr/local"
21069 fi
21070 eval LLVM_PREFIX="${prefix}";
21071 eval LLVM_BINDIR="${prefix}/bin";
21072 eval LLVM_LIBDIR="${prefix}/lib";
21073 eval LLVM_DATADIR="${prefix}/share/llvm";
21074 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21075 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21076 eval LLVM_INCLUDEDIR="${prefix}/include";
21077 eval LLVM_INFODIR="${prefix}/info";
21078 eval LLVM_MANDIR="${prefix}/man";
21079 LLVM_CONFIGTIME=`date`
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21092   LLVM_CONFIGTIME="(timestamp not enabled)"
21093 fi
21094
21095
21096 cat >>confdefs.h <<_ACEOF
21097 #define LLVM_PREFIX "$LLVM_PREFIX"
21098 _ACEOF
21099
21100
21101 cat >>confdefs.h <<_ACEOF
21102 #define LLVM_BINDIR "$LLVM_BINDIR"
21103 _ACEOF
21104
21105
21106 cat >>confdefs.h <<_ACEOF
21107 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21108 _ACEOF
21109
21110
21111 cat >>confdefs.h <<_ACEOF
21112 #define LLVM_DATADIR "$LLVM_DATADIR"
21113 _ACEOF
21114
21115
21116 cat >>confdefs.h <<_ACEOF
21117 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21118 _ACEOF
21119
21120
21121 cat >>confdefs.h <<_ACEOF
21122 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21123 _ACEOF
21124
21125
21126 cat >>confdefs.h <<_ACEOF
21127 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21128 _ACEOF
21129
21130
21131 cat >>confdefs.h <<_ACEOF
21132 #define LLVM_INFODIR "$LLVM_INFODIR"
21133 _ACEOF
21134
21135
21136 cat >>confdefs.h <<_ACEOF
21137 #define LLVM_MANDIR "$LLVM_MANDIR"
21138 _ACEOF
21139
21140
21141 cat >>confdefs.h <<_ACEOF
21142 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21143 _ACEOF
21144
21145
21146 cat >>confdefs.h <<_ACEOF
21147 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21148 _ACEOF
21149
21150
21151 if test "$BINDINGS_TO_BUILD" = auto ; then
21152   BINDINGS_TO_BUILD=""
21153   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21154     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21155   fi
21156 fi
21157 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21158
21159
21160 ALL_BINDINGS=ocaml
21161
21162
21163 binding_prereqs_failed=0
21164 for a_binding in $BINDINGS_TO_BUILD ; do
21165   case "$a_binding" in
21166   ocaml)
21167     if test "x$OCAMLC" = x ; then
21168       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21169 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21170       binding_prereqs_failed=1
21171     fi
21172     if test "x$OCAMLDEP" = x ; then
21173       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21174 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21175       binding_prereqs_failed=1
21176     fi
21177     if test "x$OCAMLOPT" = x ; then
21178       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21179 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21180           fi
21181     if test "x$with_ocaml_libdir" != xauto ; then
21182       OCAML_LIBDIR=$with_ocaml_libdir
21183
21184     else
21185       ocaml_stdlib="`"$OCAMLC" -where`"
21186       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21187       then
21188         # ocaml stdlib is beneath our prefix; use stdlib
21189         OCAML_LIBDIR=$ocaml_stdlib
21190
21191       else
21192         # ocaml stdlib is outside our prefix; use libdir/ocaml
21193         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21194
21195       fi
21196     fi
21197     ;;
21198   esac
21199 done
21200 if test "$binding_prereqs_failed" = 1 ; then
21201   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21202 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21203    { (exit 1); exit 1; }; }
21204 fi
21205
21206 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21207 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21208 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211    ac_ext=cpp
21212 ac_cpp='$CXXCPP $CPPFLAGS'
21213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21216
21217   oldcxxflags="$CXXFLAGS"
21218   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21219   cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21226 int
21227 main ()
21228 {
21229 X<int>().f();
21230   ;
21231   return 0;
21232 }
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_compile") 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } &&
21248          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21249   { (case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_try") 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; } &&
21258          { ac_try='test -s conftest.$ac_objext'
21259   { (case "(($ac_try" in
21260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261   *) ac_try_echo=$ac_try;;
21262 esac
21263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21264   (eval "$ac_try") 2>&5
21265   ac_status=$?
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); }; }; then
21268   llvm_cv_cxx_visibility_inlines_hidden=yes
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273         llvm_cv_cxx_visibility_inlines_hidden=no
21274 fi
21275
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277   CXXFLAGS="$oldcxxflags"
21278   ac_ext=c
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21283
21284
21285 fi
21286 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21287 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21288 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21289   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21290
21291 else
21292   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21293
21294 fi
21295
21296
21297 if test "$llvm_cv_link_use_r" = "yes" ; then
21298   RPATH="-Wl,-R"
21299 else
21300   RPATH="-Wl,-rpath"
21301 fi
21302
21303
21304 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21305   RDYNAMIC="-Wl,-export-dynamic"
21306 else
21307   RDYNAMIC=""
21308 fi
21309
21310
21311
21312 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21313
21314
21315
21316
21317
21318
21319 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21320
21321 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21322
21323 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21324
21325 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21326
21327 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21328
21329
21330 ac_config_files="$ac_config_files Makefile.config"
21331
21332
21333 ac_config_files="$ac_config_files llvm.spec"
21334
21335
21336 ac_config_files="$ac_config_files docs/doxygen.cfg"
21337
21338
21339 if test "${clang_src_root}" = ""; then
21340   clang_src_root="$srcdir/tools/clang"
21341 fi
21342 if test -f ${clang_src_root}/README.txt; then
21343     configh="include/clang/Config/config.h"
21344   doxy="docs/doxygen.cfg"
21345   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21346
21347   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21348
21349 fi
21350
21351 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21352
21353
21354 ac_config_commands="$ac_config_commands setup"
21355
21356 ac_config_commands="$ac_config_commands Makefile"
21357
21358
21359 ac_config_commands="$ac_config_commands Makefile.common"
21360
21361
21362 ac_config_commands="$ac_config_commands examples/Makefile"
21363
21364
21365 ac_config_commands="$ac_config_commands lib/Makefile"
21366
21367
21368 ac_config_commands="$ac_config_commands runtime/Makefile"
21369
21370
21371 ac_config_commands="$ac_config_commands test/Makefile"
21372
21373
21374 ac_config_commands="$ac_config_commands test/Makefile.tests"
21375
21376
21377 ac_config_commands="$ac_config_commands unittests/Makefile"
21378
21379
21380 ac_config_commands="$ac_config_commands tools/Makefile"
21381
21382
21383 ac_config_commands="$ac_config_commands utils/Makefile"
21384
21385
21386 ac_config_commands="$ac_config_commands projects/Makefile"
21387
21388
21389 ac_config_commands="$ac_config_commands bindings/Makefile"
21390
21391
21392 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21393
21394
21395
21396 cat >confcache <<\_ACEOF
21397 # This file is a shell script that caches the results of configure
21398 # tests run on this system so they can be shared between configure
21399 # scripts and configure runs, see configure's option --config-cache.
21400 # It is not useful on other systems.  If it contains results you don't
21401 # want to keep, you may remove or edit it.
21402 #
21403 # config.status only pays attention to the cache file if you give it
21404 # the --recheck option to rerun configure.
21405 #
21406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21408 # following values.
21409
21410 _ACEOF
21411
21412 # The following way of writing the cache mishandles newlines in values,
21413 # but we know of no workaround that is simple, portable, and efficient.
21414 # So, we kill variables containing newlines.
21415 # Ultrix sh set writes to stderr and can't be redirected directly,
21416 # and sets the high bit in the cache file unless we assign to the vars.
21417 (
21418   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21419     eval ac_val=\$$ac_var
21420     case $ac_val in #(
21421     *${as_nl}*)
21422       case $ac_var in #(
21423       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21424 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21425       esac
21426       case $ac_var in #(
21427       _ | IFS | as_nl) ;; #(
21428       *) $as_unset $ac_var ;;
21429       esac ;;
21430     esac
21431   done
21432
21433   (set) 2>&1 |
21434     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21435     *${as_nl}ac_space=\ *)
21436       # `set' does not quote correctly, so add quotes (double-quote
21437       # substitution turns \\\\ into \\, and sed turns \\ into \).
21438       sed -n \
21439         "s/'/'\\\\''/g;
21440           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21441       ;; #(
21442     *)
21443       # `set' quotes correctly as required by POSIX, so do not add quotes.
21444       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21445       ;;
21446     esac |
21447     sort
21448 ) |
21449   sed '
21450      /^ac_cv_env_/b end
21451      t clear
21452      :clear
21453      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21454      t end
21455      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21456      :end' >>confcache
21457 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21458   if test -w "$cache_file"; then
21459     test "x$cache_file" != "x/dev/null" &&
21460       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21461 echo "$as_me: updating cache $cache_file" >&6;}
21462     cat confcache >$cache_file
21463   else
21464     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21465 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21466   fi
21467 fi
21468 rm -f confcache
21469
21470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21471 # Let make expand exec_prefix.
21472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21473
21474 DEFS=-DHAVE_CONFIG_H
21475
21476 ac_libobjs=
21477 ac_ltlibobjs=
21478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21479   # 1. Remove the extension, and $U if already installed.
21480   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21481   ac_i=`echo "$ac_i" | sed "$ac_script"`
21482   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21483   #    will be set to the directory where LIBOBJS objects are built.
21484   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21485   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21486 done
21487 LIBOBJS=$ac_libobjs
21488
21489 LTLIBOBJS=$ac_ltlibobjs
21490
21491
21492 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21493   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21494 Usually this means the macro was only invoked conditionally." >&5
21495 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21496 Usually this means the macro was only invoked conditionally." >&2;}
21497    { (exit 1); exit 1; }; }
21498 fi
21499 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21500   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21501 Usually this means the macro was only invoked conditionally." >&5
21502 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21503 Usually this means the macro was only invoked conditionally." >&2;}
21504    { (exit 1); exit 1; }; }
21505 fi
21506
21507 : ${CONFIG_STATUS=./config.status}
21508 ac_clean_files_save=$ac_clean_files
21509 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21510 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21511 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21512 cat >$CONFIG_STATUS <<_ACEOF
21513 #! $SHELL
21514 # Generated by $as_me.
21515 # Run this file to recreate the current configuration.
21516 # Compiler output produced by configure, useful for debugging
21517 # configure, is in config.log if it exists.
21518
21519 debug=false
21520 ac_cs_recheck=false
21521 ac_cs_silent=false
21522 SHELL=\${CONFIG_SHELL-$SHELL}
21523 _ACEOF
21524
21525 cat >>$CONFIG_STATUS <<\_ACEOF
21526 ## --------------------- ##
21527 ## M4sh Initialization.  ##
21528 ## --------------------- ##
21529
21530 # Be Bourne compatible
21531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21532   emulate sh
21533   NULLCMD=:
21534   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21535   # is contrary to our usage.  Disable this feature.
21536   alias -g '${1+"$@"}'='"$@"'
21537   setopt NO_GLOB_SUBST
21538 else
21539   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21540 fi
21541 BIN_SH=xpg4; export BIN_SH # for Tru64
21542 DUALCASE=1; export DUALCASE # for MKS sh
21543
21544
21545 # PATH needs CR
21546 # Avoid depending upon Character Ranges.
21547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21550 as_cr_digits='0123456789'
21551 as_cr_alnum=$as_cr_Letters$as_cr_digits
21552
21553 # The user is always right.
21554 if test "${PATH_SEPARATOR+set}" != set; then
21555   echo "#! /bin/sh" >conf$$.sh
21556   echo  "exit 0"   >>conf$$.sh
21557   chmod +x conf$$.sh
21558   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21559     PATH_SEPARATOR=';'
21560   else
21561     PATH_SEPARATOR=:
21562   fi
21563   rm -f conf$$.sh
21564 fi
21565
21566 # Support unset when possible.
21567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21568   as_unset=unset
21569 else
21570   as_unset=false
21571 fi
21572
21573
21574 # IFS
21575 # We need space, tab and new line, in precisely that order.  Quoting is
21576 # there to prevent editors from complaining about space-tab.
21577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21578 # splitting by setting IFS to empty value.)
21579 as_nl='
21580 '
21581 IFS=" ""        $as_nl"
21582
21583 # Find who we are.  Look in the path if we contain no directory separator.
21584 case $0 in
21585   *[\\/]* ) as_myself=$0 ;;
21586   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21587 for as_dir in $PATH
21588 do
21589   IFS=$as_save_IFS
21590   test -z "$as_dir" && as_dir=.
21591   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21592 done
21593 IFS=$as_save_IFS
21594
21595      ;;
21596 esac
21597 # We did not find ourselves, most probably we were run as `sh COMMAND'
21598 # in which case we are not to be found in the path.
21599 if test "x$as_myself" = x; then
21600   as_myself=$0
21601 fi
21602 if test ! -f "$as_myself"; then
21603   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21604   { (exit 1); exit 1; }
21605 fi
21606
21607 # Work around bugs in pre-3.0 UWIN ksh.
21608 for as_var in ENV MAIL MAILPATH
21609 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21610 done
21611 PS1='$ '
21612 PS2='> '
21613 PS4='+ '
21614
21615 # NLS nuisances.
21616 for as_var in \
21617   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21618   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21619   LC_TELEPHONE LC_TIME
21620 do
21621   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21622     eval $as_var=C; export $as_var
21623   else
21624     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21625   fi
21626 done
21627
21628 # Required to use basename.
21629 if expr a : '\(a\)' >/dev/null 2>&1 &&
21630    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21631   as_expr=expr
21632 else
21633   as_expr=false
21634 fi
21635
21636 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21637   as_basename=basename
21638 else
21639   as_basename=false
21640 fi
21641
21642
21643 # Name of the executable.
21644 as_me=`$as_basename -- "$0" ||
21645 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21646          X"$0" : 'X\(//\)$' \| \
21647          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21648 echo X/"$0" |
21649     sed '/^.*\/\([^/][^/]*\)\/*$/{
21650             s//\1/
21651             q
21652           }
21653           /^X\/\(\/\/\)$/{
21654             s//\1/
21655             q
21656           }
21657           /^X\/\(\/\).*/{
21658             s//\1/
21659             q
21660           }
21661           s/.*/./; q'`
21662
21663 # CDPATH.
21664 $as_unset CDPATH
21665
21666
21667
21668   as_lineno_1=$LINENO
21669   as_lineno_2=$LINENO
21670   test "x$as_lineno_1" != "x$as_lineno_2" &&
21671   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21672
21673   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21674   # uniformly replaced by the line number.  The first 'sed' inserts a
21675   # line-number line after each line using $LINENO; the second 'sed'
21676   # does the real work.  The second script uses 'N' to pair each
21677   # line-number line with the line containing $LINENO, and appends
21678   # trailing '-' during substitution so that $LINENO is not a special
21679   # case at line end.
21680   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21681   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21682   # E. McMahon (1931-1989) for sed's syntax.  :-)
21683   sed -n '
21684     p
21685     /[$]LINENO/=
21686   ' <$as_myself |
21687     sed '
21688       s/[$]LINENO.*/&-/
21689       t lineno
21690       b
21691       :lineno
21692       N
21693       :loop
21694       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21695       t loop
21696       s/-\n.*//
21697     ' >$as_me.lineno &&
21698   chmod +x "$as_me.lineno" ||
21699     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21700    { (exit 1); exit 1; }; }
21701
21702   # Don't try to exec as it changes $[0], causing all sort of problems
21703   # (the dirname of $[0] is not the place where we might find the
21704   # original and so on.  Autoconf is especially sensitive to this).
21705   . "./$as_me.lineno"
21706   # Exit status is that of the last command.
21707   exit
21708 }
21709
21710
21711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21712   as_dirname=dirname
21713 else
21714   as_dirname=false
21715 fi
21716
21717 ECHO_C= ECHO_N= ECHO_T=
21718 case `echo -n x` in
21719 -n*)
21720   case `echo 'x\c'` in
21721   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21722   *)   ECHO_C='\c';;
21723   esac;;
21724 *)
21725   ECHO_N='-n';;
21726 esac
21727
21728 if expr a : '\(a\)' >/dev/null 2>&1 &&
21729    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21730   as_expr=expr
21731 else
21732   as_expr=false
21733 fi
21734
21735 rm -f conf$$ conf$$.exe conf$$.file
21736 if test -d conf$$.dir; then
21737   rm -f conf$$.dir/conf$$.file
21738 else
21739   rm -f conf$$.dir
21740   mkdir conf$$.dir
21741 fi
21742 echo >conf$$.file
21743 if ln -s conf$$.file conf$$ 2>/dev/null; then
21744   as_ln_s='ln -s'
21745   # ... but there are two gotchas:
21746   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21747   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21748   # In both cases, we have to default to `cp -p'.
21749   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21750     as_ln_s='cp -p'
21751 elif ln conf$$.file conf$$ 2>/dev/null; then
21752   as_ln_s=ln
21753 else
21754   as_ln_s='cp -p'
21755 fi
21756 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21757 rmdir conf$$.dir 2>/dev/null
21758
21759 if mkdir -p . 2>/dev/null; then
21760   as_mkdir_p=:
21761 else
21762   test -d ./-p && rmdir ./-p
21763   as_mkdir_p=false
21764 fi
21765
21766 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21767 # systems may use methods other than mode bits to determine executability.
21768 cat >conf$$.file <<_ASEOF
21769 #! /bin/sh
21770 exit 0
21771 _ASEOF
21772 chmod +x conf$$.file
21773 if test -x conf$$.file >/dev/null 2>&1; then
21774   as_executable_p="test -x"
21775 else
21776   as_executable_p=:
21777 fi
21778 rm -f conf$$.file
21779
21780 # Sed expression to map a string onto a valid CPP name.
21781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21782
21783 # Sed expression to map a string onto a valid variable name.
21784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21785
21786
21787 exec 6>&1
21788
21789 # Save the log message, to keep $[0] and so on meaningful, and to
21790 # report actual input values of CONFIG_FILES etc. instead of their
21791 # values after options handling.
21792 ac_log="
21793 This file was extended by LLVM $as_me 3.2svn, which was
21794 generated by GNU Autoconf 2.60.  Invocation command line was
21795
21796   CONFIG_FILES    = $CONFIG_FILES
21797   CONFIG_HEADERS  = $CONFIG_HEADERS
21798   CONFIG_LINKS    = $CONFIG_LINKS
21799   CONFIG_COMMANDS = $CONFIG_COMMANDS
21800   $ $0 $@
21801
21802 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21803 "
21804
21805 _ACEOF
21806
21807 cat >>$CONFIG_STATUS <<_ACEOF
21808 # Files that config.status was made for.
21809 config_files="$ac_config_files"
21810 config_headers="$ac_config_headers"
21811 config_commands="$ac_config_commands"
21812
21813 _ACEOF
21814
21815 cat >>$CONFIG_STATUS <<\_ACEOF
21816 ac_cs_usage="\
21817 \`$as_me' instantiates files from templates according to the
21818 current configuration.
21819
21820 Usage: $0 [OPTIONS] [FILE]...
21821
21822   -h, --help       print this help, then exit
21823   -V, --version    print version number, then exit
21824   -q, --quiet      do not print progress messages
21825   -d, --debug      don't remove temporary files
21826       --recheck    update $as_me by reconfiguring in the same conditions
21827   --file=FILE[:TEMPLATE]
21828                    instantiate the configuration file FILE
21829   --header=FILE[:TEMPLATE]
21830                    instantiate the configuration header FILE
21831
21832 Configuration files:
21833 $config_files
21834
21835 Configuration headers:
21836 $config_headers
21837
21838 Configuration commands:
21839 $config_commands
21840
21841 Report bugs to <bug-autoconf@gnu.org>."
21842
21843 _ACEOF
21844 cat >>$CONFIG_STATUS <<_ACEOF
21845 ac_cs_version="\\
21846 LLVM config.status 3.2svn
21847 configured by $0, generated by GNU Autoconf 2.60,
21848   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21849
21850 Copyright (C) 2006 Free Software Foundation, Inc.
21851 This config.status script is free software; the Free Software Foundation
21852 gives unlimited permission to copy, distribute and modify it."
21853
21854 ac_pwd='$ac_pwd'
21855 srcdir='$srcdir'
21856 INSTALL='$INSTALL'
21857 _ACEOF
21858
21859 cat >>$CONFIG_STATUS <<\_ACEOF
21860 # If no file are specified by the user, then we need to provide default
21861 # value.  By we need to know if files were specified by the user.
21862 ac_need_defaults=:
21863 while test $# != 0
21864 do
21865   case $1 in
21866   --*=*)
21867     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21868     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21869     ac_shift=:
21870     ;;
21871   *)
21872     ac_option=$1
21873     ac_optarg=$2
21874     ac_shift=shift
21875     ;;
21876   esac
21877
21878   case $ac_option in
21879   # Handling of the options.
21880   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21881     ac_cs_recheck=: ;;
21882   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21883     echo "$ac_cs_version"; exit ;;
21884   --debug | --debu | --deb | --de | --d | -d )
21885     debug=: ;;
21886   --file | --fil | --fi | --f )
21887     $ac_shift
21888     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21889     ac_need_defaults=false;;
21890   --header | --heade | --head | --hea )
21891     $ac_shift
21892     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21893     ac_need_defaults=false;;
21894   --he | --h)
21895     # Conflict between --help and --header
21896     { echo "$as_me: error: ambiguous option: $1
21897 Try \`$0 --help' for more information." >&2
21898    { (exit 1); exit 1; }; };;
21899   --help | --hel | -h )
21900     echo "$ac_cs_usage"; exit ;;
21901   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21902   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21903     ac_cs_silent=: ;;
21904
21905   # This is an error.
21906   -*) { echo "$as_me: error: unrecognized option: $1
21907 Try \`$0 --help' for more information." >&2
21908    { (exit 1); exit 1; }; } ;;
21909
21910   *) ac_config_targets="$ac_config_targets $1"
21911      ac_need_defaults=false ;;
21912
21913   esac
21914   shift
21915 done
21916
21917 ac_configure_extra_args=
21918
21919 if $ac_cs_silent; then
21920   exec 6>/dev/null
21921   ac_configure_extra_args="$ac_configure_extra_args --silent"
21922 fi
21923
21924 _ACEOF
21925 cat >>$CONFIG_STATUS <<_ACEOF
21926 if \$ac_cs_recheck; then
21927   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21928   CONFIG_SHELL=$SHELL
21929   export CONFIG_SHELL
21930   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21931 fi
21932
21933 _ACEOF
21934 cat >>$CONFIG_STATUS <<\_ACEOF
21935 exec 5>>config.log
21936 {
21937   echo
21938   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21939 ## Running $as_me. ##
21940 _ASBOX
21941   echo "$ac_log"
21942 } >&5
21943
21944 _ACEOF
21945 cat >>$CONFIG_STATUS <<_ACEOF
21946 #
21947 # INIT-COMMANDS
21948 #
21949 llvm_src="${srcdir}"
21950
21951 _ACEOF
21952
21953 cat >>$CONFIG_STATUS <<\_ACEOF
21954
21955 # Handling of arguments.
21956 for ac_config_target in $ac_config_targets
21957 do
21958   case $ac_config_target in
21959     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21960     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21961     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21962     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21963     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21964     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21965     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21966     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21967     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21968     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21969     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21970     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21971     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21972     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21973     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21974     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21975     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21976     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21977     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21978     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21979     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21980     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21981     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21982     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21983     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21984     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21985     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21986
21987   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21989    { (exit 1); exit 1; }; };;
21990   esac
21991 done
21992
21993
21994 # If the user did not use the arguments to specify the items to instantiate,
21995 # then the envvar interface is used.  Set only those that are not.
21996 # We use the long form for the default assignment because of an extremely
21997 # bizarre bug on SunOS 4.1.3.
21998 if $ac_need_defaults; then
21999   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22000   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22001   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22002 fi
22003
22004 # Have a temporary directory for convenience.  Make it in the build tree
22005 # simply because there is no reason against having it here, and in addition,
22006 # creating and moving files from /tmp can sometimes cause problems.
22007 # Hook for its removal unless debugging.
22008 # Note that there is a small window in which the directory will not be cleaned:
22009 # after its creation but before its name has been assigned to `$tmp'.
22010 $debug ||
22011 {
22012   tmp=
22013   trap 'exit_status=$?
22014   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22015 ' 0
22016   trap '{ (exit 1); exit 1; }' 1 2 13 15
22017 }
22018 # Create a (secure) tmp directory for tmp files.
22019
22020 {
22021   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22022   test -n "$tmp" && test -d "$tmp"
22023 }  ||
22024 {
22025   tmp=./conf$$-$RANDOM
22026   (umask 077 && mkdir "$tmp")
22027 } ||
22028 {
22029    echo "$me: cannot create a temporary directory in ." >&2
22030    { (exit 1); exit 1; }
22031 }
22032
22033 #
22034 # Set up the sed scripts for CONFIG_FILES section.
22035 #
22036
22037 # No need to generate the scripts if there are no CONFIG_FILES.
22038 # This happens for instance when ./config.status config.h
22039 if test -n "$CONFIG_FILES"; then
22040
22041 _ACEOF
22042
22043
22044
22045 ac_delim='%!_!# '
22046 for ac_last_try in false false false false false :; do
22047   cat >conf$$subs.sed <<_ACEOF
22048 SHELL!$SHELL$ac_delim
22049 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22050 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22051 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22052 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22053 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22054 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22055 exec_prefix!$exec_prefix$ac_delim
22056 prefix!$prefix$ac_delim
22057 program_transform_name!$program_transform_name$ac_delim
22058 bindir!$bindir$ac_delim
22059 sbindir!$sbindir$ac_delim
22060 libexecdir!$libexecdir$ac_delim
22061 datarootdir!$datarootdir$ac_delim
22062 datadir!$datadir$ac_delim
22063 sysconfdir!$sysconfdir$ac_delim
22064 sharedstatedir!$sharedstatedir$ac_delim
22065 localstatedir!$localstatedir$ac_delim
22066 includedir!$includedir$ac_delim
22067 oldincludedir!$oldincludedir$ac_delim
22068 docdir!$docdir$ac_delim
22069 infodir!$infodir$ac_delim
22070 htmldir!$htmldir$ac_delim
22071 dvidir!$dvidir$ac_delim
22072 pdfdir!$pdfdir$ac_delim
22073 psdir!$psdir$ac_delim
22074 libdir!$libdir$ac_delim
22075 localedir!$localedir$ac_delim
22076 mandir!$mandir$ac_delim
22077 DEFS!$DEFS$ac_delim
22078 ECHO_C!$ECHO_C$ac_delim
22079 ECHO_N!$ECHO_N$ac_delim
22080 ECHO_T!$ECHO_T$ac_delim
22081 LIBS!$LIBS$ac_delim
22082 build_alias!$build_alias$ac_delim
22083 host_alias!$host_alias$ac_delim
22084 target_alias!$target_alias$ac_delim
22085 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22086 CC!$CC$ac_delim
22087 CFLAGS!$CFLAGS$ac_delim
22088 LDFLAGS!$LDFLAGS$ac_delim
22089 CPPFLAGS!$CPPFLAGS$ac_delim
22090 ac_ct_CC!$ac_ct_CC$ac_delim
22091 EXEEXT!$EXEEXT$ac_delim
22092 OBJEXT!$OBJEXT$ac_delim
22093 CXX!$CXX$ac_delim
22094 CXXFLAGS!$CXXFLAGS$ac_delim
22095 ac_ct_CXX!$ac_ct_CXX$ac_delim
22096 CPP!$CPP$ac_delim
22097 subdirs!$subdirs$ac_delim
22098 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22099 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22100 build!$build$ac_delim
22101 build_cpu!$build_cpu$ac_delim
22102 build_vendor!$build_vendor$ac_delim
22103 build_os!$build_os$ac_delim
22104 host!$host$ac_delim
22105 host_cpu!$host_cpu$ac_delim
22106 host_vendor!$host_vendor$ac_delim
22107 host_os!$host_os$ac_delim
22108 target!$target$ac_delim
22109 target_cpu!$target_cpu$ac_delim
22110 target_vendor!$target_vendor$ac_delim
22111 target_os!$target_os$ac_delim
22112 OS!$OS$ac_delim
22113 HOST_OS!$HOST_OS$ac_delim
22114 TARGET_OS!$TARGET_OS$ac_delim
22115 LINKALL!$LINKALL$ac_delim
22116 NOLINKALL!$NOLINKALL$ac_delim
22117 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22118 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22119 ARCH!$ARCH$ac_delim
22120 ENDIAN!$ENDIAN$ac_delim
22121 GREP!$GREP$ac_delim
22122 EGREP!$EGREP$ac_delim
22123 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22124 BUILD_CC!$BUILD_CC$ac_delim
22125 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22126 BUILD_CXX!$BUILD_CXX$ac_delim
22127 CVSBUILD!$CVSBUILD$ac_delim
22128 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22129 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22130 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22131 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22132 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22133 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22134 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22135 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22136 JIT!$JIT$ac_delim
22137 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22138 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22139 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22140 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22141 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22142 ENABLE_PIC!$ENABLE_PIC$ac_delim
22143 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22144 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22145 _ACEOF
22146
22147   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22148     break
22149   elif $ac_last_try; then
22150     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22152    { (exit 1); exit 1; }; }
22153   else
22154     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22155   fi
22156 done
22157
22158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22159 if test -n "$ac_eof"; then
22160   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22161   ac_eof=`expr $ac_eof + 1`
22162 fi
22163
22164 cat >>$CONFIG_STATUS <<_ACEOF
22165 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22167 _ACEOF
22168 sed '
22169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22170 s/^/s,@/; s/!/@,|#_!!_#|/
22171 :n
22172 t n
22173 s/'"$ac_delim"'$/,g/; t
22174 s/$/\\/; p
22175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22176 ' >>$CONFIG_STATUS <conf$$subs.sed
22177 rm -f conf$$subs.sed
22178 cat >>$CONFIG_STATUS <<_ACEOF
22179 CEOF$ac_eof
22180 _ACEOF
22181
22182
22183 ac_delim='%!_!# '
22184 for ac_last_try in false false false false false :; do
22185   cat >conf$$subs.sed <<_ACEOF
22186 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22187 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22188 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22189 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22190 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22191 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22192 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22193 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22194 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22195 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22196 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22197 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22198 NM!$NM$ac_delim
22199 ifGNUmake!$ifGNUmake$ac_delim
22200 LN_S!$LN_S$ac_delim
22201 CMP!$CMP$ac_delim
22202 CP!$CP$ac_delim
22203 DATE!$DATE$ac_delim
22204 FIND!$FIND$ac_delim
22205 MKDIR!$MKDIR$ac_delim
22206 MV!$MV$ac_delim
22207 RANLIB!$RANLIB$ac_delim
22208 AR!$AR$ac_delim
22209 RM!$RM$ac_delim
22210 SED!$SED$ac_delim
22211 TAR!$TAR$ac_delim
22212 BINPWD!$BINPWD$ac_delim
22213 GRAPHVIZ!$GRAPHVIZ$ac_delim
22214 DOT!$DOT$ac_delim
22215 FDP!$FDP$ac_delim
22216 NEATO!$NEATO$ac_delim
22217 TWOPI!$TWOPI$ac_delim
22218 CIRCO!$CIRCO$ac_delim
22219 GV!$GV$ac_delim
22220 DOTTY!$DOTTY$ac_delim
22221 XDOT_PY!$XDOT_PY$ac_delim
22222 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22223 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22224 INSTALL_DATA!$INSTALL_DATA$ac_delim
22225 BZIP2!$BZIP2$ac_delim
22226 CAT!$CAT$ac_delim
22227 DOXYGEN!$DOXYGEN$ac_delim
22228 GROFF!$GROFF$ac_delim
22229 GZIPBIN!$GZIPBIN$ac_delim
22230 POD2HTML!$POD2HTML$ac_delim
22231 POD2MAN!$POD2MAN$ac_delim
22232 PDFROFF!$PDFROFF$ac_delim
22233 RUNTEST!$RUNTEST$ac_delim
22234 TCLSH!$TCLSH$ac_delim
22235 ZIP!$ZIP$ac_delim
22236 OCAMLC!$OCAMLC$ac_delim
22237 OCAMLOPT!$OCAMLOPT$ac_delim
22238 OCAMLDEP!$OCAMLDEP$ac_delim
22239 OCAMLDOC!$OCAMLDOC$ac_delim
22240 GAS!$GAS$ac_delim
22241 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22242 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22243 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22244 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22245 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22246 LIBADD_DL!$LIBADD_DL$ac_delim
22247 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22248 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22249 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22250 USE_UDIS86!$USE_UDIS86$ac_delim
22251 USE_OPROFILE!$USE_OPROFILE$ac_delim
22252 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22253 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22254 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22255 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22256 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22257 MMAP_FILE!$MMAP_FILE$ac_delim
22258 SHLIBEXT!$SHLIBEXT$ac_delim
22259 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22260 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22261 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22262 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22263 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22264 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22265 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22266 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22267 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22268 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22269 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22270 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22271 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22272 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22273 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22274 RPATH!$RPATH$ac_delim
22275 RDYNAMIC!$RDYNAMIC$ac_delim
22276 LIBOBJS!$LIBOBJS$ac_delim
22277 LTLIBOBJS!$LTLIBOBJS$ac_delim
22278 _ACEOF
22279
22280   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22281     break
22282   elif $ac_last_try; then
22283     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22284 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22285    { (exit 1); exit 1; }; }
22286   else
22287     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22288   fi
22289 done
22290
22291 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22292 if test -n "$ac_eof"; then
22293   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22294   ac_eof=`expr $ac_eof + 1`
22295 fi
22296
22297 cat >>$CONFIG_STATUS <<_ACEOF
22298 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22300 _ACEOF
22301 sed '
22302 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22303 s/^/s,@/; s/!/@,|#_!!_#|/
22304 :n
22305 t n
22306 s/'"$ac_delim"'$/,g/; t
22307 s/$/\\/; p
22308 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22309 ' >>$CONFIG_STATUS <conf$$subs.sed
22310 rm -f conf$$subs.sed
22311 cat >>$CONFIG_STATUS <<_ACEOF
22312 :end
22313 s/|#_!!_#|//g
22314 CEOF$ac_eof
22315 _ACEOF
22316
22317
22318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22320 # trailing colons and then remove the whole line if VPATH becomes empty
22321 # (actually we leave an empty line to preserve line numbers).
22322 if test "x$srcdir" = x.; then
22323   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22324 s/:*\$(srcdir):*/:/
22325 s/:*\${srcdir}:*/:/
22326 s/:*@srcdir@:*/:/
22327 s/^\([^=]*=[     ]*\):*/\1/
22328 s/:*$//
22329 s/^[^=]*=[       ]*$//
22330 }'
22331 fi
22332
22333 cat >>$CONFIG_STATUS <<\_ACEOF
22334 fi # test -n "$CONFIG_FILES"
22335
22336
22337 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22338 do
22339   case $ac_tag in
22340   :[FHLC]) ac_mode=$ac_tag; continue;;
22341   esac
22342   case $ac_mode$ac_tag in
22343   :[FHL]*:*);;
22344   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22345 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22346    { (exit 1); exit 1; }; };;
22347   :[FH]-) ac_tag=-:-;;
22348   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22349   esac
22350   ac_save_IFS=$IFS
22351   IFS=:
22352   set x $ac_tag
22353   IFS=$ac_save_IFS
22354   shift
22355   ac_file=$1
22356   shift
22357
22358   case $ac_mode in
22359   :L) ac_source=$1;;
22360   :[FH])
22361     ac_file_inputs=
22362     for ac_f
22363     do
22364       case $ac_f in
22365       -) ac_f="$tmp/stdin";;
22366       *) # Look for the file first in the build tree, then in the source tree
22367          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22368          # because $ac_f cannot contain `:'.
22369          test -f "$ac_f" ||
22370            case $ac_f in
22371            [\\/$]*) false;;
22372            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22373            esac ||
22374            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22375 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22376    { (exit 1); exit 1; }; };;
22377       esac
22378       ac_file_inputs="$ac_file_inputs $ac_f"
22379     done
22380
22381     # Let's still pretend it is `configure' which instantiates (i.e., don't
22382     # use $as_me), people would be surprised to read:
22383     #    /* config.h.  Generated by config.status.  */
22384     configure_input="Generated from "`IFS=:
22385           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22386     if test x"$ac_file" != x-; then
22387       configure_input="$ac_file.  $configure_input"
22388       { echo "$as_me:$LINENO: creating $ac_file" >&5
22389 echo "$as_me: creating $ac_file" >&6;}
22390     fi
22391
22392     case $ac_tag in
22393     *:-:* | *:-) cat >"$tmp/stdin";;
22394     esac
22395     ;;
22396   esac
22397
22398   ac_dir=`$as_dirname -- "$ac_file" ||
22399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22400          X"$ac_file" : 'X\(//\)[^/]' \| \
22401          X"$ac_file" : 'X\(//\)$' \| \
22402          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22403 echo X"$ac_file" |
22404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22405             s//\1/
22406             q
22407           }
22408           /^X\(\/\/\)[^/].*/{
22409             s//\1/
22410             q
22411           }
22412           /^X\(\/\/\)$/{
22413             s//\1/
22414             q
22415           }
22416           /^X\(\/\).*/{
22417             s//\1/
22418             q
22419           }
22420           s/.*/./; q'`
22421   { as_dir="$ac_dir"
22422   case $as_dir in #(
22423   -*) as_dir=./$as_dir;;
22424   esac
22425   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22426     as_dirs=
22427     while :; do
22428       case $as_dir in #(
22429       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22430       *) as_qdir=$as_dir;;
22431       esac
22432       as_dirs="'$as_qdir' $as_dirs"
22433       as_dir=`$as_dirname -- "$as_dir" ||
22434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22435          X"$as_dir" : 'X\(//\)[^/]' \| \
22436          X"$as_dir" : 'X\(//\)$' \| \
22437          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22438 echo X"$as_dir" |
22439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22440             s//\1/
22441             q
22442           }
22443           /^X\(\/\/\)[^/].*/{
22444             s//\1/
22445             q
22446           }
22447           /^X\(\/\/\)$/{
22448             s//\1/
22449             q
22450           }
22451           /^X\(\/\).*/{
22452             s//\1/
22453             q
22454           }
22455           s/.*/./; q'`
22456       test -d "$as_dir" && break
22457     done
22458     test -z "$as_dirs" || eval "mkdir $as_dirs"
22459   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22461    { (exit 1); exit 1; }; }; }
22462   ac_builddir=.
22463
22464 case "$ac_dir" in
22465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22466 *)
22467   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22468   # A ".." for each directory in $ac_dir_suffix.
22469   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22470   case $ac_top_builddir_sub in
22471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22473   esac ;;
22474 esac
22475 ac_abs_top_builddir=$ac_pwd
22476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22477 # for backward compatibility:
22478 ac_top_builddir=$ac_top_build_prefix
22479
22480 case $srcdir in
22481   .)  # We are building in place.
22482     ac_srcdir=.
22483     ac_top_srcdir=$ac_top_builddir_sub
22484     ac_abs_top_srcdir=$ac_pwd ;;
22485   [\\/]* | ?:[\\/]* )  # Absolute name.
22486     ac_srcdir=$srcdir$ac_dir_suffix;
22487     ac_top_srcdir=$srcdir
22488     ac_abs_top_srcdir=$srcdir ;;
22489   *) # Relative name.
22490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22491     ac_top_srcdir=$ac_top_build_prefix$srcdir
22492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22493 esac
22494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22495
22496
22497   case $ac_mode in
22498   :F)
22499   #
22500   # CONFIG_FILE
22501   #
22502
22503   case $INSTALL in
22504   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22505   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22506   esac
22507 _ACEOF
22508
22509 cat >>$CONFIG_STATUS <<\_ACEOF
22510 # If the template does not know about datarootdir, expand it.
22511 # FIXME: This hack should be removed a few years after 2.60.
22512 ac_datarootdir_hack=; ac_datarootdir_seen=
22513
22514 case `sed -n '/datarootdir/ {
22515   p
22516   q
22517 }
22518 /@datadir@/p
22519 /@docdir@/p
22520 /@infodir@/p
22521 /@localedir@/p
22522 /@mandir@/p
22523 ' $ac_file_inputs` in
22524 *datarootdir*) ac_datarootdir_seen=yes;;
22525 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22526   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22527 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22528 _ACEOF
22529 cat >>$CONFIG_STATUS <<_ACEOF
22530   ac_datarootdir_hack='
22531   s&@datadir@&$datadir&g
22532   s&@docdir@&$docdir&g
22533   s&@infodir@&$infodir&g
22534   s&@localedir@&$localedir&g
22535   s&@mandir@&$mandir&g
22536     s&\\\${datarootdir}&$datarootdir&g' ;;
22537 esac
22538 _ACEOF
22539
22540 # Neutralize VPATH when `$srcdir' = `.'.
22541 # Shell code in configure.ac might set extrasub.
22542 # FIXME: do we really want to maintain this feature?
22543 cat >>$CONFIG_STATUS <<_ACEOF
22544   sed "$ac_vpsub
22545 $extrasub
22546 _ACEOF
22547 cat >>$CONFIG_STATUS <<\_ACEOF
22548 :t
22549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22550 s&@configure_input@&$configure_input&;t t
22551 s&@top_builddir@&$ac_top_builddir_sub&;t t
22552 s&@srcdir@&$ac_srcdir&;t t
22553 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22554 s&@top_srcdir@&$ac_top_srcdir&;t t
22555 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22556 s&@builddir@&$ac_builddir&;t t
22557 s&@abs_builddir@&$ac_abs_builddir&;t t
22558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22559 s&@INSTALL@&$ac_INSTALL&;t t
22560 $ac_datarootdir_hack
22561 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22562
22563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22564   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22565   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22566   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22567 which seems to be undefined.  Please make sure it is defined." >&5
22568 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22569 which seems to be undefined.  Please make sure it is defined." >&2;}
22570
22571   rm -f "$tmp/stdin"
22572   case $ac_file in
22573   -) cat "$tmp/out"; rm -f "$tmp/out";;
22574   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22575   esac
22576  ;;
22577   :H)
22578   #
22579   # CONFIG_HEADER
22580   #
22581 _ACEOF
22582
22583 # Transform confdefs.h into a sed script `conftest.defines', that
22584 # substitutes the proper values into config.h.in to produce config.h.
22585 rm -f conftest.defines conftest.tail
22586 # First, append a space to every undef/define line, to ease matching.
22587 echo 's/$/ /' >conftest.defines
22588 # Then, protect against being on the right side of a sed subst, or in
22589 # an unquoted here document, in config.status.  If some macros were
22590 # called several times there might be several #defines for the same
22591 # symbol, which is useless.  But do not sort them, since the last
22592 # AC_DEFINE must be honored.
22593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22594 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22595 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22596 # PARAMS is the parameter list in the macro definition--in most cases, it's
22597 # just an empty string.
22598 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22599 ac_dB='\\)[      (].*,\\1define\\2'
22600 ac_dC=' '
22601 ac_dD=' ,'
22602
22603 uniq confdefs.h |
22604   sed -n '
22605         t rset
22606         :rset
22607         s/^[     ]*#[    ]*define[       ][      ]*//
22608         t ok
22609         d
22610         :ok
22611         s/[\\&,]/\\&/g
22612         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22613         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22614   ' >>conftest.defines
22615
22616 # Remove the space that was appended to ease matching.
22617 # Then replace #undef with comments.  This is necessary, for
22618 # example, in the case of _POSIX_SOURCE, which is predefined and required
22619 # on some systems where configure will not decide to define it.
22620 # (The regexp can be short, since the line contains either #define or #undef.)
22621 echo 's/ $//
22622 s,^[     #]*u.*,/* & */,' >>conftest.defines
22623
22624 # Break up conftest.defines:
22625 ac_max_sed_lines=50
22626
22627 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22628 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22629 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22630 # et cetera.
22631 ac_in='$ac_file_inputs'
22632 ac_out='"$tmp/out1"'
22633 ac_nxt='"$tmp/out2"'
22634
22635 while :
22636 do
22637   # Write a here document:
22638     cat >>$CONFIG_STATUS <<_ACEOF
22639     # First, check the format of the line:
22640     cat >"\$tmp/defines.sed" <<\\CEOF
22641 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22642 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22643 b
22644 :def
22645 _ACEOF
22646   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22647   echo 'CEOF
22648     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22649   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22650   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22651   grep . conftest.tail >/dev/null || break
22652   rm -f conftest.defines
22653   mv conftest.tail conftest.defines
22654 done
22655 rm -f conftest.defines conftest.tail
22656
22657 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22658 cat >>$CONFIG_STATUS <<\_ACEOF
22659   if test x"$ac_file" != x-; then
22660     echo "/* $configure_input  */" >"$tmp/config.h"
22661     cat "$ac_result" >>"$tmp/config.h"
22662     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22663       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22664 echo "$as_me: $ac_file is unchanged" >&6;}
22665     else
22666       rm -f $ac_file
22667       mv "$tmp/config.h" $ac_file
22668     fi
22669   else
22670     echo "/* $configure_input  */"
22671     cat "$ac_result"
22672   fi
22673   rm -f "$tmp/out12"
22674  ;;
22675
22676   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22677 echo "$as_me: executing $ac_file commands" >&6;}
22678  ;;
22679   esac
22680
22681
22682   case $ac_file$ac_mode in
22683     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22684    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22685     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22686    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22687     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22688    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22689     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22690    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22691     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22692    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22693     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22694    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22695     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22696    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22697     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22698    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22699     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22700    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22701     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22702    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22703     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22704    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22705     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22706    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22707     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22708    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22709
22710   esac
22711 done # for ac_tag
22712
22713
22714 { (exit 0); exit 0; }
22715 _ACEOF
22716 chmod +x $CONFIG_STATUS
22717 ac_clean_files=$ac_clean_files_save
22718
22719
22720 # configure is writing to config.log, and then calls config.status.
22721 # config.status does its own redirection, appending to config.log.
22722 # Unfortunately, on DOS this fails, as config.log is still kept open
22723 # by configure, so config.status won't be able to write to it; its
22724 # output is simply discarded.  So we exec the FD to /dev/null,
22725 # effectively closing config.log, so it can be properly (re)opened and
22726 # appended to by config.status.  When coming back to configure, we
22727 # need to make the FD available again.
22728 if test "$no_create" != yes; then
22729   ac_cs_success=:
22730   ac_config_status_args=
22731   test "$silent" = yes &&
22732     ac_config_status_args="$ac_config_status_args --quiet"
22733   exec 5>/dev/null
22734   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22735   exec 5>>config.log
22736   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22737   # would make configure fail if this is the last instruction.
22738   $ac_cs_success || { (exit 1); exit 1; }
22739 fi
22740
22741 #
22742 # CONFIG_SUBDIRS section.
22743 #
22744 if test "$no_recursion" != yes; then
22745
22746   # Remove --cache-file and --srcdir arguments so they do not pile up.
22747   ac_sub_configure_args=
22748   ac_prev=
22749   eval "set x $ac_configure_args"
22750   shift
22751   for ac_arg
22752   do
22753     if test -n "$ac_prev"; then
22754       ac_prev=
22755       continue
22756     fi
22757     case $ac_arg in
22758     -cache-file | --cache-file | --cache-fil | --cache-fi \
22759     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22760       ac_prev=cache_file ;;
22761     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22762     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22763     | --c=*)
22764       ;;
22765     --config-cache | -C)
22766       ;;
22767     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22768       ac_prev=srcdir ;;
22769     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22770       ;;
22771     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22772       ac_prev=prefix ;;
22773     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22774       ;;
22775     *)
22776       case $ac_arg in
22777       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22778       esac
22779       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22780     esac
22781   done
22782
22783   # Always prepend --prefix to ensure using the same prefix
22784   # in subdir configurations.
22785   ac_arg="--prefix=$prefix"
22786   case $ac_arg in
22787   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22788   esac
22789   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22790
22791   ac_popdir=`pwd`
22792   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22793
22794     # Do not complain, so a configure script can configure whichever
22795     # parts of a large source tree are present.
22796     test -d "$srcdir/$ac_dir" || continue
22797
22798     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22799     echo "$as_me:$LINENO: $ac_msg" >&5
22800     echo "$ac_msg" >&6
22801     { as_dir="$ac_dir"
22802   case $as_dir in #(
22803   -*) as_dir=./$as_dir;;
22804   esac
22805   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22806     as_dirs=
22807     while :; do
22808       case $as_dir in #(
22809       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22810       *) as_qdir=$as_dir;;
22811       esac
22812       as_dirs="'$as_qdir' $as_dirs"
22813       as_dir=`$as_dirname -- "$as_dir" ||
22814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22815          X"$as_dir" : 'X\(//\)[^/]' \| \
22816          X"$as_dir" : 'X\(//\)$' \| \
22817          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22818 echo X"$as_dir" |
22819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22820             s//\1/
22821             q
22822           }
22823           /^X\(\/\/\)[^/].*/{
22824             s//\1/
22825             q
22826           }
22827           /^X\(\/\/\)$/{
22828             s//\1/
22829             q
22830           }
22831           /^X\(\/\).*/{
22832             s//\1/
22833             q
22834           }
22835           s/.*/./; q'`
22836       test -d "$as_dir" && break
22837     done
22838     test -z "$as_dirs" || eval "mkdir $as_dirs"
22839   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22840 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22841    { (exit 1); exit 1; }; }; }
22842     ac_builddir=.
22843
22844 case "$ac_dir" in
22845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22846 *)
22847   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22848   # A ".." for each directory in $ac_dir_suffix.
22849   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22850   case $ac_top_builddir_sub in
22851   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22852   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22853   esac ;;
22854 esac
22855 ac_abs_top_builddir=$ac_pwd
22856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22857 # for backward compatibility:
22858 ac_top_builddir=$ac_top_build_prefix
22859
22860 case $srcdir in
22861   .)  # We are building in place.
22862     ac_srcdir=.
22863     ac_top_srcdir=$ac_top_builddir_sub
22864     ac_abs_top_srcdir=$ac_pwd ;;
22865   [\\/]* | ?:[\\/]* )  # Absolute name.
22866     ac_srcdir=$srcdir$ac_dir_suffix;
22867     ac_top_srcdir=$srcdir
22868     ac_abs_top_srcdir=$srcdir ;;
22869   *) # Relative name.
22870     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22871     ac_top_srcdir=$ac_top_build_prefix$srcdir
22872     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22873 esac
22874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22875
22876
22877     cd "$ac_dir"
22878
22879     # Check for guested configure; otherwise get Cygnus style configure.
22880     if test -f "$ac_srcdir/configure.gnu"; then
22881       ac_sub_configure=$ac_srcdir/configure.gnu
22882     elif test -f "$ac_srcdir/configure"; then
22883       ac_sub_configure=$ac_srcdir/configure
22884     elif test -f "$ac_srcdir/configure.in"; then
22885       # This should be Cygnus configure.
22886       ac_sub_configure=$ac_aux_dir/configure
22887     else
22888       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22889 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22890       ac_sub_configure=
22891     fi
22892
22893     # The recursion is here.
22894     if test -n "$ac_sub_configure"; then
22895       # Make the cache file name correct relative to the subdirectory.
22896       case $cache_file in
22897       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22898       *) # Relative name.
22899         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22900       esac
22901
22902       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22903 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22904       # The eval makes quoting arguments work.
22905       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22906            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22907         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22908 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22909    { (exit 1); exit 1; }; }
22910     fi
22911
22912     cd "$ac_popdir"
22913   done
22914 fi
22915