Have getOrCreateSubprogramDIE store the DIE for a subprogram
[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 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_EXPENSIVE_CHECKS
691 EXPENSIVE_CHECKS
692 DEBUG_RUNTIME
693 DEBUG_SYMBOLS
694 JIT
695 TARGET_HAS_JIT
696 ENABLE_DOCS
697 ENABLE_DOXYGEN
698 LLVM_ENABLE_THREADS
699 ENABLE_PTHREADS
700 ENABLE_PIC
701 ENABLE_SHARED
702 ENABLE_EMBED_STDCXX
703 ENABLE_TIMESTAMPS
704 TARGETS_TO_BUILD
705 LLVM_ENUM_TARGETS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 PDFROFF
748 RUNTEST
749 TCLSH
750 ZIP
751 OCAMLC
752 OCAMLOPT
753 OCAMLDEP
754 OCAMLDOC
755 GAS
756 HAVE_LINK_VERSION_SCRIPT
757 INSTALL_LTDL_TRUE
758 INSTALL_LTDL_FALSE
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
761 LIBADD_DL
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 USE_UDIS86
766 USE_OPROFILE
767 USE_INTEL_JITEVENTS
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 CPP'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel
818 tools/polly'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-polly          Use polly if available (default is YES)
1394   --enable-libcpp         Use libc++ if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422                           xcore, msp430, nvptx, and cpp (default=all)
1423   --enable-bindings       Build specific language bindings:
1424                           all,auto,none,{binding-name} (default=auto)
1425   --enable-libffi         Check for the presence of libffi (default is NO)
1426   --enable-ltdl-install   install libltdl
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-optimize-option  Select the compiler options to use for optimized
1432                           builds
1433   --with-extra-options    Specify additional options to compile LLVM with
1434   --with-extra-ld-options Specify additional options to link LLVM with
1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                           is stdlib)
1437   --with-clang-srcdir     Directory to the out-of-tree Clang source
1438   --with-clang-resource-dir
1439                           Relative directory from the Clang binary for
1440                           resource files
1441   --with-c-include-dirs   Colon separated list of directories clang will
1442                           search for headers
1443   --with-gcc-toolchain    Directory where gcc is installed.
1444   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1445   --with-binutils-include Specify path to binutils/include/ containing
1446                           plugin-api.h file for gold plugin.
1447   --with-bug-report-url   Specify the URL where bug reports should be
1448                           submitted (default=http://llvm.org/bugs/)
1449   --with-internal-prefix  Installation directory for internal files
1450   --with-tclinclude       directory where tcl headers are
1451   --with-udis86=<path>    Use udis86 external x86 disassembler library
1452   --with-oprofile=<prefix>
1453                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1454   --with-intel-jitevents=<vtune-amplifier-dir>
1455                           Specify location of run-time support library for
1456                           Intel JIT API
1457                           (default=/opt/intel/vtune_amplifier_xe_2011)
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CPP         C preprocessor
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <http://llvm.org/bugs/>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" || continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 LLVM configure 3.2svn
1535 generated by GNU Autoconf 2.60
1536
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541
1542 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by LLVM $as_me 3.2svn, which was
1551 generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       *) $as_unset $ac_var ;;
1680       esac ;;
1681     esac
1682   done
1683   (set) 2>&1 |
1684     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685     *${as_nl}ac_space=\ *)
1686       sed -n \
1687         "s/'\''/'\''\\\\'\'''\''/g;
1688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689       ;; #(
1690     *)
1691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692       ;;
1693     esac |
1694     sort
1695 )
1696     echo
1697
1698     cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703     echo
1704     for ac_var in $ac_subst_vars
1705     do
1706       eval ac_val=\$$ac_var
1707       case $ac_val in
1708       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709       esac
1710       echo "$ac_var='\''$ac_val'\''"
1711     done | sort
1712     echo
1713
1714     if test -n "$ac_subst_files"; then
1715       cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720       echo
1721       for ac_var in $ac_subst_files
1722       do
1723         eval ac_val=\$$ac_var
1724         case $ac_val in
1725         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726         esac
1727         echo "$ac_var='\''$ac_val'\''"
1728       done | sort
1729       echo
1730     fi
1731
1732     if test -s confdefs.h; then
1733       cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738       echo
1739       cat confdefs.h
1740       echo
1741     fi
1742     test "$ac_signal" != 0 &&
1743       echo "$as_me: caught signal $ac_signal"
1744     echo "$as_me: exit $exit_status"
1745   } >&5
1746   rm -f core *.core core.conftest.* &&
1747     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748     exit $exit_status
1749 ' 0
1750 for ac_signal in 1 2 13 15; do
1751   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1754
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1757
1758 # Predefined preprocessor variables.
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1783
1784
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788   set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792   set x "$ac_default_prefix/share/config.site" \
1793         "$ac_default_prefix/etc/config.site"
1794 fi
1795 shift
1796 for ac_site_file
1797 do
1798   if test -r "$ac_site_file"; then
1799     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801     sed 's/^/| /' "$ac_site_file" >&5
1802     . "$ac_site_file"
1803   fi
1804 done
1805
1806 if test -r "$cache_file"; then
1807   # Some versions of bash will fail to source /dev/null (special
1808   # files actually), so we avoid doing that.
1809   if test -f "$cache_file"; then
1810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812     case $cache_file in
1813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814       *)                      . "./$cache_file";;
1815     esac
1816   fi
1817 else
1818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820   >$cache_file
1821 fi
1822
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828   eval ac_new_set=\$ac_env_${ac_var}_set
1829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830   eval ac_new_val=\$ac_env_${ac_var}_value
1831   case $ac_old_set,$ac_new_set in
1832     set,)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,set)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,);;
1841     *)
1842       if test "x$ac_old_val" != "x$ac_new_val"; then
1843         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846 echo "$as_me:   former value:  $ac_old_val" >&2;}
1847         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848 echo "$as_me:   current value: $ac_new_val" >&2;}
1849         ac_cache_corrupted=:
1850       fi;;
1851   esac
1852   # Pass precious variables to config.status.
1853   if test "$ac_new_set" = set; then
1854     case $ac_new_val in
1855     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856     *) ac_arg=$ac_var=$ac_new_val ;;
1857     esac
1858     case " $ac_configure_args " in
1859       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861     esac
1862   fi
1863 done
1864 if $ac_cache_corrupted; then
1865   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
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 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MAJOR 3
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<\_ACEOF
1910 #define LLVM_VERSION_MINOR 2
1911 _ACEOF
1912
1913
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1915
1916
1917
1918
1919
1920
1921
1922 ac_aux_dir=
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924   if test -f "$ac_dir/install-sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install-sh -c"
1927     break
1928   elif test -f "$ac_dir/install.sh"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/install.sh -c"
1931     break
1932   elif test -f "$ac_dir/shtool"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/shtool install -c"
1935     break
1936   fi
1937 done
1938 if test -z "$ac_aux_dir"; then
1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
1943
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953
1954 if test ${srcdir} != "." ; then
1955   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958    { (exit 1); exit 1; }; }
1959   fi
1960 fi
1961
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968   for ac_prog in clang llvm-gcc gcc
1969   do
1970     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993 IFS=$as_save_IFS
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2001 else
2002   { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2004 fi
2005
2006
2007     test -n "$CC" && break
2008   done
2009 fi
2010 if test -z "$CC"; then
2011   ac_ct_CC=$CC
2012   for ac_prog in clang llvm-gcc gcc
2013 do
2014   # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$ac_ct_CC"; then
2022   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     ac_cv_prog_ac_ct_CC="$ac_prog"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037 IFS=$as_save_IFS
2038
2039 fi
2040 fi
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6; }
2045 else
2046   { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 fi
2049
2050
2051   test -n "$ac_ct_CC" && break
2052 done
2053
2054   if test "x$ac_ct_CC" = x; then
2055     CC=""
2056   else
2057     case $cross_compiling:$ac_tool_warned in
2058 yes:)
2059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet.  If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet.  If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned=yes ;;
2066 esac
2067     CC=$ac_ct_CC
2068   fi
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO: checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (ac_try="$ac_compiler --version >&5"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087   (eval "$ac_compiler --version >&5") 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (ac_try="$ac_compiler -v >&5"
2092 case "(($ac_try" in
2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094   *) ac_try_echo=$ac_try;;
2095 esac
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097   (eval "$ac_compiler -v >&5") 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }
2101 { (ac_try="$ac_compiler -V >&5"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107   (eval "$ac_compiler -V >&5") 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }
2111
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2131 # of exeext.
2132 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 #
2136 # List of possible output files, starting from the most likely.
2137 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138 # only as a last resort.  b.out is created by i960 compilers.
2139 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140 #
2141 # The IRIX 6 linker writes into existing files which may not be
2142 # executable, retaining their permissions.  Remove them first so a
2143 # subsequent execution test works.
2144 ac_rmfiles=
2145 for ac_file in $ac_files
2146 do
2147   case $ac_file in
2148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150   esac
2151 done
2152 rm -f $ac_rmfiles
2153
2154 if { (ac_try="$ac_link_default"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_link_default") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; then
2164   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2167 # so that the user can short-circuit this test for compilers unknown to
2168 # Autoconf.
2169 for ac_file in $ac_files
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2174         ;;
2175     [ab].out )
2176         # We found the default executable, but exeext='' is most
2177         # certainly right.
2178         break;;
2179     *.* )
2180         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181         then :; else
2182            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183         fi
2184         # We set ac_cv_exeext here because the later test for it is not
2185         # safe: cross compilers may not add the suffix if given an `-o'
2186         # argument, so we may need to know it at that point already.
2187         # Even if this section looks crufty: it has the advantage of
2188         # actually working.
2189         break;;
2190     * )
2191         break;;
2192   esac
2193 done
2194 test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204    { (exit 77); exit 77; }; }
2205 fi
2206
2207 ac_exeext=$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6; }
2210
2211 # Check that the compiler produces executables we can run.  If not, either
2212 # the compiler is broken, or we cross compile.
2213 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218   if { ac_try='./$ac_file'
2219   { (case "(($ac_try" in
2220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221   *) ac_try_echo=$ac_try;;
2222 esac
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224   (eval "$ac_try") 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; }; then
2228     cross_compiling=no
2229   else
2230     if test "$cross_compiling" = maybe; then
2231         cross_compiling=yes
2232     else
2233         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240     fi
2241   fi
2242 fi
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2245
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check that the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257 if { (ac_try="$ac_link"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263   (eval "$ac_link") 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           break;;
2277     * ) break;;
2278   esac
2279 done
2280 else
2281   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287
2288 rm -f conftest$ac_cv_exeext
2289 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2294 ac_exeext=$EXEEXT
2295 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297 if test "${ac_cv_objext+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.o conftest.obj
2316 if { (ac_try="$ac_compile"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322   (eval "$ac_compile") 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in conftest.o conftest.obj conftest.*; do
2327   test -f "$ac_file" || continue;
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331        break;;
2332   esac
2333 done
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 fi
2347 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6; }
2349 OBJEXT=$ac_cv_objext
2350 ac_objext=$OBJEXT
2351 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h.  */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h.  */
2362
2363 int
2364 main ()
2365 {
2366 #ifndef __GNUC__
2367        choke me
2368 #endif
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2376 case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381   (eval "$ac_compile") 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389   { (case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_try") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_compiler_gnu=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413         ac_compiler_gnu=no
2414 fi
2415
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418
2419 fi
2420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   ac_save_c_werror_flag=$ac_c_werror_flag
2431    ac_c_werror_flag=yes
2432    ac_cv_prog_cc_g=no
2433    CFLAGS="-g"
2434    cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440
2441 int
2442 main ()
2443 {
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2451 case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456   (eval "$ac_compile") 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464   { (case "(($ac_try" in
2465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466   *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469   (eval "$ac_try") 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (case "(($ac_try" in
2475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476   *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479   (eval "$ac_try") 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; }; then
2483   ac_cv_prog_cc_g=yes
2484 else
2485   echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488         CFLAGS=""
2489       cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495
2496 int
2497 main ()
2498 {
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
2506 case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_compile") 2>conftest.er1
2512   ac_status=$?
2513   grep -v '^ *+' conftest.er1 >conftest.err
2514   rm -f conftest.er1
2515   cat conftest.err >&5
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); } &&
2518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519   { (case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_try") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534   (eval "$ac_try") 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; }; then
2538   :
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543         ac_c_werror_flag=$ac_save_c_werror_flag
2544          CFLAGS="-g"
2545          cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552 int
2553 main ()
2554 {
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_compile") 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575   { (case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_try") 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590   (eval "$ac_try") 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_prog_cc_g=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 fi
2607
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609    ac_c_werror_flag=$ac_save_c_werror_flag
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614   CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616   if test "$GCC" = yes; then
2617     CFLAGS="-g -O2"
2618   else
2619     CFLAGS="-g"
2620   fi
2621 else
2622   if test "$GCC" = yes; then
2623     CFLAGS="-O2"
2624   else
2625     CFLAGS=
2626   fi
2627 fi
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   ac_cv_prog_cc_c89=no
2634 ac_save_CC=$CC
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 #include <stdarg.h>
2642 #include <stdio.h>
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2649      char **p;
2650      int i;
2651 {
2652   return p[i];
2653 }
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2655 {
2656   char *s;
2657   va_list v;
2658   va_start (v,p);
2659   s = g (p, va_arg (v,int));
2660   va_end (v);
2661   return s;
2662 }
2663
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2665    function prototypes and stuff, but not '\xHH' hex character constants.
2666    These don't provoke an error unfortunately, instead are silently treated
2667    as 'x'.  The following induces an error, until -std is added to get
2668    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2669    array size at least.  It's necessary to write '\x00'==0 to get something
2670    that's true only with -std.  */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674    inside strings and character constants.  */
2675 #define FOO(x) 'x'
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682 int argc;
2683 char **argv;
2684 int
2685 main ()
2686 {
2687 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695   CC="$ac_save_CC $ac_arg"
2696   rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711   { (case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_try") 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_try") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   ac_cv_prog_cc_c89=$ac_arg
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext
2739   test "x$ac_cv_prog_cc_c89" != "xno" && break
2740 done
2741 rm -f conftest.$ac_ext
2742 CC=$ac_save_CC
2743
2744 fi
2745 # AC_CACHE_VAL
2746 case "x$ac_cv_prog_cc_c89" in
2747   x)
2748     { echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6; } ;;
2750   xno)
2751     { echo "$as_me:$LINENO: result: unsupported" >&5
2752 echo "${ECHO_T}unsupported" >&6; } ;;
2753   *)
2754     CC="$CC $ac_cv_prog_cc_c89"
2755     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2757 esac
2758
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766 ac_ext=cpp
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -z "$CXX"; then
2772   if test -n "$CCC"; then
2773     CXX=$CCC
2774   else
2775     if test -n "$ac_tool_prefix"; then
2776   for ac_prog in clang++ llvm-g++ g++
2777   do
2778     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CXX+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   if test -n "$CXX"; then
2786   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CXX=$ac_cv_prog_CXX
2806 if test -n "$CXX"; then
2807   { echo "$as_me:$LINENO: result: $CXX" >&5
2808 echo "${ECHO_T}$CXX" >&6; }
2809 else
2810   { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2812 fi
2813
2814
2815     test -n "$CXX" && break
2816   done
2817 fi
2818 if test -z "$CXX"; then
2819   ac_ct_CXX=$CXX
2820   for ac_prog in clang++ llvm-g++ g++
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   if test -n "$ac_ct_CXX"; then
2830   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_ac_ct_CXX="$ac_prog"
2840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853 else
2854   { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2856 fi
2857
2858
2859   test -n "$ac_ct_CXX" && break
2860 done
2861
2862   if test "x$ac_ct_CXX" = x; then
2863     CXX="g++"
2864   else
2865     case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet.  If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet.  If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875     CXX=$ac_ct_CXX
2876   fi
2877 fi
2878
2879   fi
2880 fi
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compiler --version >&5") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compiler -v >&5") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compiler -V >&5") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914
2915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930 #ifndef __GNUC__
2931        choke me
2932 #endif
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compile") 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953   { (case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_try") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_try") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   ac_compiler_gnu=yes
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977         ac_compiler_gnu=no
2978 fi
2979
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983 fi
2984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986 GXX=`test $ac_compiler_gnu = yes && echo yes`
2987 ac_test_CXXFLAGS=${CXXFLAGS+set}
2988 ac_save_CXXFLAGS=$CXXFLAGS
2989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_cxx_g+set}" = set; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995    ac_cxx_werror_flag=yes
2996    ac_cv_prog_cxx_g=no
2997    CXXFLAGS="-g"
2998    cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004
3005 int
3006 main ()
3007 {
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_compile") 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028   { (case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_try") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   ac_cv_prog_cxx_g=yes
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052         CXXFLAGS=""
3053       cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 int
3061 main ()
3062 {
3063
3064   ;
3065   return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_compile") 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083   { (case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_try") 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; } &&
3092          { ac_try='test -s conftest.$ac_objext'
3093   { (case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_try") 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   :
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108          CXXFLAGS="-g"
3109          cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   ac_cv_prog_cxx_g=yes
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
3164 fi
3165
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 fi
3171
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174 fi
3175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177 if test "$ac_test_CXXFLAGS" = set; then
3178   CXXFLAGS=$ac_save_CXXFLAGS
3179 elif test $ac_cv_prog_cxx_g = yes; then
3180   if test "$GXX" = yes; then
3181     CXXFLAGS="-g -O2"
3182   else
3183     CXXFLAGS="-g"
3184   fi
3185 else
3186   if test "$GXX" = yes; then
3187     CXXFLAGS="-O2"
3188   else
3189     CXXFLAGS=
3190   fi
3191 fi
3192 ac_ext=c
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3207   CPP=
3208 fi
3209 if test -z "$CPP"; then
3210   if test "${ac_cv_prog_CPP+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213       # Double quotes because CPP needs to be expanded
3214     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215     do
3216       ac_preproc_ok=false
3217 for ac_c_preproc_warn_flag in '' yes
3218 do
3219   # Use a header file that comes with gcc, so configuring glibc
3220   # with a fresh cross-compiler works.
3221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222   # <limits.h> exists even on freestanding compilers.
3223   # On the NeXT, cc -E runs the code through the compiler's parser,
3224   # not just through cpp. "Syntax error" is here to catch this case.
3225   cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #ifdef __STDC__
3232 # include <limits.h>
3233 #else
3234 # include <assert.h>
3235 #endif
3236                      Syntax error
3237 _ACEOF
3238 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245   ac_status=$?
3246   grep -v '^ *+' conftest.er1 >conftest.err
3247   rm -f conftest.er1
3248   cat conftest.err >&5
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } >/dev/null; then
3251   if test -s conftest.err; then
3252     ac_cpp_err=$ac_c_preproc_warn_flag
3253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254   else
3255     ac_cpp_err=
3256   fi
3257 else
3258   ac_cpp_err=yes
3259 fi
3260 if test -z "$ac_cpp_err"; then
3261   :
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266   # Broken: fails on valid input.
3267 continue
3268 fi
3269
3270 rm -f conftest.err conftest.$ac_ext
3271
3272   # OK, works on sane cases.  Now check whether nonexistent headers
3273   # can be detected and how.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ac_nonexistent.h>
3281 _ACEOF
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } >/dev/null; then
3295   if test -s conftest.err; then
3296     ac_cpp_err=$ac_c_preproc_warn_flag
3297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298   else
3299     ac_cpp_err=
3300   fi
3301 else
3302   ac_cpp_err=yes
3303 fi
3304 if test -z "$ac_cpp_err"; then
3305   # Broken: success on invalid input.
3306 continue
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311   # Passes both tests.
3312 ac_preproc_ok=:
3313 break
3314 fi
3315
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   break
3323 fi
3324
3325     done
3326     ac_cv_prog_CPP=$CPP
3327
3328 fi
3329   CPP=$ac_cv_prog_CPP
3330 else
3331   ac_cv_prog_CPP=$CPP
3332 fi
3333 { echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6; }
3335 ac_preproc_ok=false
3336 for ac_c_preproc_warn_flag in '' yes
3337 do
3338   # Use a header file that comes with gcc, so configuring glibc
3339   # with a fresh cross-compiler works.
3340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341   # <limits.h> exists even on freestanding compilers.
3342   # On the NeXT, cc -E runs the code through the compiler's parser,
3343   # not just through cpp. "Syntax error" is here to catch this case.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355                      Syntax error
3356 _ACEOF
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } >/dev/null; then
3370   if test -s conftest.err; then
3371     ac_cpp_err=$ac_c_preproc_warn_flag
3372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373   else
3374     ac_cpp_err=
3375   fi
3376 else
3377   ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380   :
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385   # Broken: fails on valid input.
3386 continue
3387 fi
3388
3389 rm -f conftest.err conftest.$ac_ext
3390
3391   # OK, works on sane cases.  Now check whether nonexistent headers
3392   # can be detected and how.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <ac_nonexistent.h>
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   # Broken: success on invalid input.
3425 continue
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Passes both tests.
3431 ac_preproc_ok=:
3432 break
3433 fi
3434
3435 rm -f conftest.err conftest.$ac_ext
3436
3437 done
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3441   :
3442 else
3443   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447    { (exit 1); exit 1; }; }
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457
3458
3459 if test -d ${srcdir}/projects/llvm-gcc ; then
3460   subdirs="$subdirs projects/llvm-gcc"
3461
3462 fi
3463
3464 if test -d ${srcdir}/projects/test-suite ; then
3465   subdirs="$subdirs projects/test-suite"
3466
3467 fi
3468
3469 if test -d ${srcdir}/projects/llvm-test ; then
3470   subdirs="$subdirs projects/llvm-test"
3471
3472 fi
3473
3474 if test -d ${srcdir}/projects/poolalloc ; then
3475   subdirs="$subdirs projects/poolalloc"
3476
3477 fi
3478
3479 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480   subdirs="$subdirs projects/llvm-poolalloc"
3481
3482 fi
3483
3484 for i in `ls ${srcdir}/projects`
3485 do
3486   if test -d ${srcdir}/projects/${i} ; then
3487     case ${i} in
3488       sample)       subdirs="$subdirs projects/sample"
3489     ;;
3490       privbracket)  subdirs="$subdirs projects/privbracket"
3491  ;;
3492       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493  ;;
3494       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3495 ;;
3496       llvm-java)    subdirs="$subdirs projects/llvm-java"
3497  ;;
3498       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3499    ;;
3500       safecode)     subdirs="$subdirs projects/safecode"
3501  ;;
3502       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3503  ;;
3504       compiler-rt)       ;;
3505       llvm-gcc)       ;;
3506       test-suite)     ;;
3507       llvm-test)      ;;
3508       poolalloc)      ;;
3509       llvm-poolalloc) ;;
3510       *)
3511         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513         ;;
3514     esac
3515   fi
3516 done
3517
3518 # Check whether --enable-polly was given.
3519 if test "${enable_polly+set}" = set; then
3520   enableval=$enable_polly;
3521 else
3522   enableval=default
3523 fi
3524
3525 case "$enableval" in
3526   yes) ENABLE_POLLY=1
3527  ;;
3528   no)  ENABLE_POLLY=0
3529  ;;
3530   default) ENABLE_POLLY=1
3531  ;;
3532   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534    { (exit 1); exit 1; }; } ;;
3535 esac
3536
3537
3538 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539   LLVM_HAS_POLLY=1
3540
3541   subdirs="$subdirs tools/polly"
3542
3543 fi
3544
3545
3546 # Make sure we can run config.sub.
3547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550    { (exit 1); exit 1; }; }
3551
3552 { echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554 if test "${ac_cv_build+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_build_alias=$build_alias
3558 test "x$ac_build_alias" = x &&
3559   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560 test "x$ac_build_alias" = x &&
3561   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563    { (exit 1); exit 1; }; }
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3573 *-*-*) ;;
3574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575 echo "$as_me: error: invalid value of canonical build" >&2;}
3576    { (exit 1); exit 1; }; };;
3577 esac
3578 build=$ac_cv_build
3579 ac_save_IFS=$IFS; IFS='-'
3580 set x $ac_cv_build
3581 shift
3582 build_cpu=$1
3583 build_vendor=$2
3584 shift; shift
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3587 build_os=$*
3588 IFS=$ac_save_IFS
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592 { echo "$as_me:$LINENO: checking host system type" >&5
3593 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_host+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   if test "x$host_alias" = x; then
3598   ac_cv_host=$ac_cv_build
3599 else
3600   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603    { (exit 1); exit 1; }; }
3604 fi
3605
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608 echo "${ECHO_T}$ac_cv_host" >&6; }
3609 case $ac_cv_host in
3610 *-*-*) ;;
3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612 echo "$as_me: error: invalid value of canonical host" >&2;}
3613    { (exit 1); exit 1; }; };;
3614 esac
3615 host=$ac_cv_host
3616 ac_save_IFS=$IFS; IFS='-'
3617 set x $ac_cv_host
3618 shift
3619 host_cpu=$1
3620 host_vendor=$2
3621 shift; shift
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3624 host_os=$*
3625 IFS=$ac_save_IFS
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629 { echo "$as_me:$LINENO: checking target system type" >&5
3630 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_target+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   if test "x$target_alias" = x; then
3635   ac_cv_target=$ac_cv_host
3636 else
3637   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640    { (exit 1); exit 1; }; }
3641 fi
3642
3643 fi
3644 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645 echo "${ECHO_T}$ac_cv_target" >&6; }
3646 case $ac_cv_target in
3647 *-*-*) ;;
3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649 echo "$as_me: error: invalid value of canonical target" >&2;}
3650    { (exit 1); exit 1; }; };;
3651 esac
3652 target=$ac_cv_target
3653 ac_save_IFS=$IFS; IFS='-'
3654 set x $ac_cv_target
3655 shift
3656 target_cpu=$1
3657 target_vendor=$2
3658 shift; shift
3659 # Remember, the first character of IFS is used to create $*,
3660 # except with old shells:
3661 target_os=$*
3662 IFS=$ac_save_IFS
3663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666 # The aliases save the names the user supplied, while $host etc.
3667 # will get canonicalized.
3668 test -n "$target_alias" &&
3669   test "$program_prefix$program_suffix$program_transform_name" = \
3670     NONENONEs,x,x, &&
3671   program_prefix=${target_alias}-
3672
3673 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675 if test "${llvm_cv_os_type+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   case $host in
3679   *-*-aix*)
3680     llvm_cv_link_all_option="-Wl,--whole-archive"
3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682     llvm_cv_os_type="AIX"
3683     llvm_cv_platform_type="Unix" ;;
3684   *-*-irix*)
3685     llvm_cv_link_all_option="-Wl,--whole-archive"
3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687     llvm_cv_os_type="IRIX"
3688     llvm_cv_platform_type="Unix" ;;
3689   *-*-cygwin*)
3690     llvm_cv_link_all_option="-Wl,--whole-archive"
3691     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692     llvm_cv_os_type="Cygwin"
3693     llvm_cv_platform_type="Unix" ;;
3694   *-*-darwin*)
3695     llvm_cv_link_all_option="-Wl,-all_load"
3696     llvm_cv_no_link_all_option="-Wl,-noall_load"
3697     llvm_cv_os_type="Darwin"
3698     llvm_cv_platform_type="Unix" ;;
3699   *-*-minix*)
3700     llvm_cv_link_all_option="-Wl,-all_load"
3701     llvm_cv_no_link_all_option="-Wl,-noall_load"
3702     llvm_cv_os_type="Minix"
3703     llvm_cv_platform_type="Unix" ;;
3704   *-*-freebsd* | *-*-kfreebsd-gnu)
3705     llvm_cv_link_all_option="-Wl,--whole-archive"
3706     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707     llvm_cv_os_type="FreeBSD"
3708     llvm_cv_platform_type="Unix" ;;
3709   *-*-openbsd*)
3710     llvm_cv_link_all_option="-Wl,--whole-archive"
3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712     llvm_cv_os_type="OpenBSD"
3713     llvm_cv_platform_type="Unix" ;;
3714   *-*-netbsd*)
3715     llvm_cv_link_all_option="-Wl,--whole-archive"
3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717     llvm_cv_os_type="NetBSD"
3718     llvm_cv_platform_type="Unix" ;;
3719   *-*-dragonfly*)
3720     llvm_cv_link_all_option="-Wl,--whole-archive"
3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722     llvm_cv_os_type="DragonFly"
3723     llvm_cv_platform_type="Unix" ;;
3724   *-*-hpux*)
3725     llvm_cv_link_all_option="-Wl,--whole-archive"
3726     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727     llvm_cv_os_type="HP-UX"
3728     llvm_cv_platform_type="Unix" ;;
3729   *-*-interix*)
3730     llvm_cv_link_all_option="-Wl,--whole-archive"
3731     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732     llvm_cv_os_type="Interix"
3733     llvm_cv_platform_type="Unix" ;;
3734   *-*-linux*)
3735     llvm_cv_link_all_option="-Wl,--whole-archive"
3736     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737     llvm_cv_os_type="Linux"
3738     llvm_cv_platform_type="Unix" ;;
3739   *-*-gnu*)
3740     llvm_cv_link_all_option="-Wl,--whole-archive"
3741     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742     llvm_cv_os_type="GNU"
3743     llvm_cv_platform_type="Unix" ;;
3744   *-*-solaris*)
3745     llvm_cv_link_all_option="-Wl,-z,allextract"
3746     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747     llvm_cv_os_type="SunOS"
3748     llvm_cv_platform_type="Unix" ;;
3749   *-*-auroraux*)
3750     llvm_cv_link_all_option="-Wl,-z,allextract"
3751     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752     llvm_cv_os_type="AuroraUX"
3753     llvm_cv_platform_type="Unix" ;;
3754   *-*-win32*)
3755     llvm_cv_link_all_option="-Wl,--whole-archive"
3756     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757     llvm_cv_os_type="Win32"
3758     llvm_cv_platform_type="Win32" ;;
3759   *-*-mingw*)
3760     llvm_cv_link_all_option="-Wl,--whole-archive"
3761     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762     llvm_cv_os_type="MingW"
3763     llvm_cv_platform_type="Win32" ;;
3764   *-*-haiku*)
3765     llvm_cv_link_all_option="-Wl,--whole-archive"
3766     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767     llvm_cv_os_type="Haiku"
3768     llvm_cv_platform_type="Unix" ;;
3769   *-unknown-eabi*)
3770     llvm_cv_link_all_option="-Wl,--whole-archive"
3771     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772     llvm_cv_os_type="Freestanding"
3773     llvm_cv_platform_type="Unix" ;;
3774   *-unknown-elf*)
3775     llvm_cv_link_all_option="-Wl,--whole-archive"
3776     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777     llvm_cv_os_type="Freestanding"
3778     llvm_cv_platform_type="Unix" ;;
3779   *)
3780     llvm_cv_link_all_option=""
3781     llvm_cv_no_link_all_option=""
3782     llvm_cv_os_type="Unknown"
3783     llvm_cv_platform_type="Unknown" ;;
3784 esac
3785 fi
3786 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791 if test "${llvm_cv_target_os_type+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   case $target in
3795   *-*-aix*)
3796     llvm_cv_target_os_type="AIX" ;;
3797   *-*-irix*)
3798     llvm_cv_target_os_type="IRIX" ;;
3799   *-*-cygwin*)
3800     llvm_cv_target_os_type="Cygwin" ;;
3801   *-*-darwin*)
3802     llvm_cv_target_os_type="Darwin" ;;
3803   *-*-minix*)
3804     llvm_cv_target_os_type="Minix" ;;
3805   *-*-freebsd* | *-*-kfreebsd-gnu)
3806     llvm_cv_target_os_type="FreeBSD" ;;
3807   *-*-openbsd*)
3808     llvm_cv_target_os_type="OpenBSD" ;;
3809   *-*-netbsd*)
3810     llvm_cv_target_os_type="NetBSD" ;;
3811   *-*-dragonfly*)
3812     llvm_cv_target_os_type="DragonFly" ;;
3813   *-*-hpux*)
3814     llvm_cv_target_os_type="HP-UX" ;;
3815   *-*-interix*)
3816     llvm_cv_target_os_type="Interix" ;;
3817   *-*-linux*)
3818     llvm_cv_target_os_type="Linux" ;;
3819   *-*-gnu*)
3820     llvm_cv_target_os_type="GNU" ;;
3821   *-*-solaris*)
3822     llvm_cv_target_os_type="SunOS" ;;
3823   *-*-auroraux*)
3824     llvm_cv_target_os_type="AuroraUX" ;;
3825   *-*-win32*)
3826     llvm_cv_target_os_type="Win32" ;;
3827   *-*-mingw*)
3828     llvm_cv_target_os_type="MingW" ;;
3829   *-*-haiku*)
3830     llvm_cv_target_os_type="Haiku" ;;
3831   *-*-rtems*)
3832     llvm_cv_target_os_type="RTEMS" ;;
3833   *-*-nacl*)
3834     llvm_cv_target_os_type="NativeClient" ;;
3835   *-unknown-eabi*)
3836     llvm_cv_target_os_type="Freestanding" ;;
3837   *)
3838     llvm_cv_target_os_type="Unknown" ;;
3839 esac
3840 fi
3841 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843
3844 if test "$llvm_cv_os_type" = "Unknown" ; then
3845   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847    { (exit 1); exit 1; }; }
3848 fi
3849
3850 OS=$llvm_cv_os_type
3851
3852 HOST_OS=$llvm_cv_os_type
3853
3854 TARGET_OS=$llvm_cv_target_os_type
3855
3856
3857 LINKALL=$llvm_cv_link_all_option
3858
3859 NOLINKALL=$llvm_cv_no_link_all_option
3860
3861
3862 case $llvm_cv_platform_type in
3863   Unix)
3864
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_UNIX 1
3867 _ACEOF
3868
3869     LLVM_ON_UNIX=1
3870
3871     LLVM_ON_WIN32=0
3872
3873     ;;
3874   Win32)
3875
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_WIN32 1
3878 _ACEOF
3879
3880     LLVM_ON_UNIX=0
3881
3882     LLVM_ON_WIN32=1
3883
3884     ;;
3885 esac
3886
3887 { echo "$as_me:$LINENO: checking target architecture" >&5
3888 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889 if test "${llvm_cv_target_arch+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   case $target in
3893   i?86-*)                 llvm_cv_target_arch="x86" ;;
3894   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3895   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3896   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3897   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3898   mips-*)                 llvm_cv_target_arch="Mips" ;;
3899   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3900   xcore-*)                llvm_cv_target_arch="XCore" ;;
3901   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3902   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3903   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3904   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3905   *)                      llvm_cv_target_arch="Unknown" ;;
3906 esac
3907 fi
3908 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3910
3911 if test "$llvm_cv_target_arch" = "Unknown" ; then
3912   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914 fi
3915
3916 case "$llvm_cv_target_arch" in
3917     x86)     LLVM_NATIVE_ARCH="X86" ;;
3918     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3919     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920 esac
3921
3922 ARCH=$llvm_cv_target_arch
3923
3924
3925 case $host in
3926   i?86-*)                 host_arch="x86" ;;
3927   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3928   sparc*-*)               host_arch="Sparc" ;;
3929   powerpc*-*)             host_arch="PowerPC" ;;
3930   arm*-*)                 host_arch="ARM" ;;
3931   mips-*)                 host_arch="Mips" ;;
3932   mipsel-*)               host_arch="Mips" ;;
3933   xcore-*)                host_arch="XCore" ;;
3934   msp430-*)               host_arch="MSP430" ;;
3935   hexagon-*)              host_arch="Hexagon" ;;
3936   mblaze-*)               host_arch="MBlaze" ;;
3937   *)                      host_arch="Unknown" ;;
3938 esac
3939
3940 if test "$host_arch" = "Unknown" ; then
3941   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3942 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3943 fi
3944
3945 HOST_ARCH=$host_arch
3946
3947
3948
3949
3950 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3951 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3952 if test "${ac_cv_path_GREP+set}" = set; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955   # Extract the first word of "grep ggrep" to use in msg output
3956 if test -z "$GREP"; then
3957 set dummy grep ggrep; ac_prog_name=$2
3958 if test "${ac_cv_path_GREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   ac_path_GREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_prog in grep ggrep; do
3969   for ac_exec_ext in '' $ac_executable_extensions; do
3970     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3971     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3972     # Check for GNU ac_path_GREP and select it if it is found.
3973   # Check for GNU $ac_path_GREP
3974 case `"$ac_path_GREP" --version 2>&1` in
3975 *GNU*)
3976   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3977 *)
3978   ac_count=0
3979   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3980   while :
3981   do
3982     cat "conftest.in" "conftest.in" >"conftest.tmp"
3983     mv "conftest.tmp" "conftest.in"
3984     cp "conftest.in" "conftest.nl"
3985     echo 'GREP' >> "conftest.nl"
3986     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988     ac_count=`expr $ac_count + 1`
3989     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3990       # Best one so far, save it but keep looking for a better one
3991       ac_cv_path_GREP="$ac_path_GREP"
3992       ac_path_GREP_max=$ac_count
3993     fi
3994     # 10*(2^10) chars as input seems more than enough
3995     test $ac_count -gt 10 && break
3996   done
3997   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 esac
3999
4000
4001     $ac_path_GREP_found && break 3
4002   done
4003 done
4004
4005 done
4006 IFS=$as_save_IFS
4007
4008
4009 fi
4010
4011 GREP="$ac_cv_path_GREP"
4012 if test -z "$GREP"; then
4013   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015    { (exit 1); exit 1; }; }
4016 fi
4017
4018 else
4019   ac_cv_path_GREP=$GREP
4020 fi
4021
4022
4023 fi
4024 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4025 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4026  GREP="$ac_cv_path_GREP"
4027
4028
4029 { echo "$as_me:$LINENO: checking for egrep" >&5
4030 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4031 if test "${ac_cv_path_EGREP+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4035    then ac_cv_path_EGREP="$GREP -E"
4036    else
4037      # Extract the first word of "egrep" to use in msg output
4038 if test -z "$EGREP"; then
4039 set dummy egrep; ac_prog_name=$2
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   ac_path_EGREP_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047 do
4048   IFS=$as_save_IFS
4049   test -z "$as_dir" && as_dir=.
4050   for ac_prog in egrep; do
4051   for ac_exec_ext in '' $ac_executable_extensions; do
4052     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4053     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4054     # Check for GNU ac_path_EGREP and select it if it is found.
4055   # Check for GNU $ac_path_EGREP
4056 case `"$ac_path_EGREP" --version 2>&1` in
4057 *GNU*)
4058   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4059 *)
4060   ac_count=0
4061   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4062   while :
4063   do
4064     cat "conftest.in" "conftest.in" >"conftest.tmp"
4065     mv "conftest.tmp" "conftest.in"
4066     cp "conftest.in" "conftest.nl"
4067     echo 'EGREP' >> "conftest.nl"
4068     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070     ac_count=`expr $ac_count + 1`
4071     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4072       # Best one so far, save it but keep looking for a better one
4073       ac_cv_path_EGREP="$ac_path_EGREP"
4074       ac_path_EGREP_max=$ac_count
4075     fi
4076     # 10*(2^10) chars as input seems more than enough
4077     test $ac_count -gt 10 && break
4078   done
4079   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 esac
4081
4082
4083     $ac_path_EGREP_found && break 3
4084   done
4085 done
4086
4087 done
4088 IFS=$as_save_IFS
4089
4090
4091 fi
4092
4093 EGREP="$ac_cv_path_EGREP"
4094 if test -z "$EGREP"; then
4095   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4096 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4097    { (exit 1); exit 1; }; }
4098 fi
4099
4100 else
4101   ac_cv_path_EGREP=$EGREP
4102 fi
4103
4104
4105    fi
4106 fi
4107 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4108 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4109  EGREP="$ac_cv_path_EGREP"
4110
4111
4112 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4114 if test "${ac_cv_header_stdc+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #include <stdlib.h>
4124 #include <stdarg.h>
4125 #include <string.h>
4126 #include <float.h>
4127
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_compile") 2>conftest.er1
4144   ac_status=$?
4145   grep -v '^ *+' conftest.er1 >conftest.err
4146   rm -f conftest.er1
4147   cat conftest.err >&5
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); } &&
4150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151   { (case "(($ac_try" in
4152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153   *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156   (eval "$ac_try") 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; } &&
4160          { ac_try='test -s conftest.$ac_objext'
4161   { (case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; }; then
4170   ac_cv_header_stdc=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175         ac_cv_header_stdc=no
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # SunOS 4.x string.h does not declare mem*, 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 <string.h>
4189
4190 _ACEOF
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203   cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209 #include <stdlib.h>
4210
4211 _ACEOF
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213   $EGREP "free" >/dev/null 2>&1; then
4214   :
4215 else
4216   ac_cv_header_stdc=no
4217 fi
4218 rm -f conftest*
4219
4220 fi
4221
4222 if test $ac_cv_header_stdc = yes; then
4223   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4224   if test "$cross_compiling" = yes; then
4225   :
4226 else
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 #include <ctype.h>
4234 #include <stdlib.h>
4235 #if ((' ' & 0x0FF) == 0x020)
4236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238 #else
4239 # define ISLOWER(c) \
4240                    (('a' <= (c) && (c) <= 'i') \
4241                      || ('j' <= (c) && (c) <= 'r') \
4242                      || ('s' <= (c) && (c) <= 'z'))
4243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244 #endif
4245
4246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247 int
4248 main ()
4249 {
4250   int i;
4251   for (i = 0; i < 256; i++)
4252     if (XOR (islower (i), ISLOWER (i))
4253         || toupper (i) != TOUPPER (i))
4254       return 2;
4255   return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest$ac_exeext
4259 if { (ac_try="$ac_link"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_link") 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269   { (case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_try") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; }; then
4278   :
4279 else
4280   echo "$as_me: program exited with status $ac_status" >&5
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 ( exit $ac_status )
4285 ac_cv_header_stdc=no
4286 fi
4287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4288 fi
4289
4290
4291 fi
4292 fi
4293 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4294 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4295 if test $ac_cv_header_stdc = yes; then
4296
4297 cat >>confdefs.h <<\_ACEOF
4298 #define STDC_HEADERS 1
4299 _ACEOF
4300
4301 fi
4302
4303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4314                   inttypes.h stdint.h unistd.h
4315 do
4316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h.  */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h.  */
4328 $ac_includes_default
4329
4330 #include <$ac_header>
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_compile") 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } &&
4346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347   { (case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_try") 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; } &&
4356          { ac_try='test -s conftest.$ac_objext'
4357   { (case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362   (eval "$ac_try") 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   eval "$as_ac_Header=yes"
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371         eval "$as_ac_Header=no"
4372 fi
4373
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 ac_res=`eval echo '${'$as_ac_Header'}'`
4377                { echo "$as_me:$LINENO: result: $ac_res" >&5
4378 echo "${ECHO_T}$ac_res" >&6; }
4379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4380   cat >>confdefs.h <<_ACEOF
4381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382 _ACEOF
4383
4384 fi
4385
4386 done
4387
4388
4389 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4390 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4391 if test "${ac_cv_c_bigendian+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   # See if sys/param.h defines the BYTE_ORDER macro.
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 #include <sys/types.h>
4402 #include <sys/param.h>
4403
4404 int
4405 main ()
4406 {
4407 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4408  bogus endian macros
4409 #endif
4410
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (ac_try="$ac_compile"
4417 case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422   (eval "$ac_compile") 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } &&
4429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4430   { (case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435   (eval "$ac_try") 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; } &&
4439          { ac_try='test -s conftest.$ac_objext'
4440   { (case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445   (eval "$ac_try") 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   # It does; now see whether it defined to BIG_ENDIAN or not.
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <sys/types.h>
4457 #include <sys/param.h>
4458
4459 int
4460 main ()
4461 {
4462 #if BYTE_ORDER != BIG_ENDIAN
4463  not big endian
4464 #endif
4465
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_compile") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } &&
4484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485   { (case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest.$ac_objext'
4495   { (case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500   (eval "$ac_try") 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   ac_cv_c_bigendian=yes
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509         ac_cv_c_bigendian=no
4510 fi
4511
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517         # It does not; compile a test program.
4518 if test "$cross_compiling" = yes; then
4519   # try to guess the endianness by grepping values into an object file
4520   ac_cv_c_bigendian=unknown
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4528 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4529 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4530 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4531 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4532 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4533 int
4534 main ()
4535 {
4536  _ascii (); _ebcdic ();
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_compile") 2>conftest.er1
4549   ac_status=$?
4550   grep -v '^ *+' conftest.er1 >conftest.err
4551   rm -f conftest.er1
4552   cat conftest.err >&5
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } &&
4555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4556   { (case "(($ac_try" in
4557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558   *) ac_try_echo=$ac_try;;
4559 esac
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561   (eval "$ac_try") 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; } &&
4565          { ac_try='test -s conftest.$ac_objext'
4566   { (case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; }; then
4575   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4576   ac_cv_c_bigendian=yes
4577 fi
4578 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4579   if test "$ac_cv_c_bigendian" = unknown; then
4580     ac_cv_c_bigendian=no
4581   else
4582     # finding both strings is unlikely to happen, but who knows?
4583     ac_cv_c_bigendian=unknown
4584   fi
4585 fi
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590
4591 fi
4592
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 else
4595   cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601 $ac_includes_default
4602 int
4603 main ()
4604 {
4605
4606   /* Are we little or big endian?  From Harbison&Steele.  */
4607   union
4608   {
4609     long int l;
4610     char c[sizeof (long int)];
4611   } u;
4612   u.l = 1;
4613   return u.c[sizeof (long int) - 1] == 1;
4614
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 rm -f conftest$ac_exeext
4620 if { (ac_try="$ac_link"
4621 case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626   (eval "$ac_link") 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4630   { (case "(($ac_try" in
4631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632   *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635   (eval "$ac_try") 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; }; then
4639   ac_cv_c_bigendian=no
4640 else
4641   echo "$as_me: program exited with status $ac_status" >&5
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 ( exit $ac_status )
4646 ac_cv_c_bigendian=yes
4647 fi
4648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4649 fi
4650
4651
4652 fi
4653
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4657 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4658 case $ac_cv_c_bigendian in
4659   yes)
4660     ENDIAN=big
4661  ;;
4662   no)
4663     ENDIAN=little
4664  ;;
4665   *)
4666     { { echo "$as_me:$LINENO: error: unknown endianness
4667 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4668 echo "$as_me: error: unknown endianness
4669 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4670    { (exit 1); exit 1; }; } ;;
4671 esac
4672
4673
4674 if test "$cross_compiling" = yes; then
4675   LLVM_CROSS_COMPILING=1
4676
4677
4678 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4679 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4680 if test "${ac_cv_build_exeext+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4684   ac_cv_build_exeext=.exe
4685 else
4686   ac_build_prefix=${build_alias}-
4687
4688   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4689 set dummy ${ac_build_prefix}gcc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$BUILD_CC"; then
4696   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 BUILD_CC=$ac_cv_prog_BUILD_CC
4716 if test -n "$BUILD_CC"; then
4717   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4718 echo "${ECHO_T}$BUILD_CC" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725   if test -z "$BUILD_CC"; then
4726      # Extract the first word of "gcc", so it can be a program name with args.
4727 set dummy gcc; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   if test -n "$BUILD_CC"; then
4734   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739   IFS=$as_save_IFS
4740   test -z "$as_dir" && as_dir=.
4741   for ac_exec_ext in '' $ac_executable_extensions; do
4742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4743     ac_cv_prog_BUILD_CC="gcc"
4744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745     break 2
4746   fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 BUILD_CC=$ac_cv_prog_BUILD_CC
4754 if test -n "$BUILD_CC"; then
4755   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4756 echo "${ECHO_T}$BUILD_CC" >&6; }
4757 else
4758   { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4760 fi
4761
4762
4763      if test -z "$BUILD_CC"; then
4764        # Extract the first word of "cc", so it can be a program name with args.
4765 set dummy cc; ac_word=$2
4766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4769   echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771   if test -n "$BUILD_CC"; then
4772   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4773 else
4774   ac_prog_rejected=no
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780   for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4783        ac_prog_rejected=yes
4784        continue
4785      fi
4786     ac_cv_prog_BUILD_CC="cc"
4787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 if test $ac_prog_rejected = yes; then
4795   # We found a bogon in the path, so make sure we never use it.
4796   set dummy $ac_cv_prog_BUILD_CC
4797   shift
4798   if test $# != 0; then
4799     # We chose a different compiler from the bogus one.
4800     # However, it has the same basename, so the bogon will be chosen
4801     # first if we set BUILD_CC to just the basename; use the full file name.
4802     shift
4803     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4804   fi
4805 fi
4806 fi
4807 fi
4808 BUILD_CC=$ac_cv_prog_BUILD_CC
4809 if test -n "$BUILD_CC"; then
4810   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4811 echo "${ECHO_T}$BUILD_CC" >&6; }
4812 else
4813   { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4815 fi
4816
4817
4818      fi
4819   fi
4820   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4821 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4822    { (exit 1); exit 1; }; }
4823   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4824   rm -f conftest*
4825   echo 'int main () { return 0; }' > conftest.$ac_ext
4826   ac_cv_build_exeext=
4827   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4828   (eval $ac_build_link) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; then
4832     for file in conftest.*; do
4833       case $file in
4834       *.c | *.o | *.obj | *.dSYM) ;;
4835       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4836       esac
4837     done
4838   else
4839     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4840 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4841    { (exit 1); exit 1; }; }
4842   fi
4843   rm -f conftest*
4844   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4845 fi
4846 fi
4847
4848 BUILD_EXEEXT=""
4849 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4850 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4851 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4852 ac_build_exeext=$BUILD_EXEEXT
4853
4854   ac_build_prefix=${build_alias}-
4855   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4856 set dummy ${ac_build_prefix}g++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$BUILD_CXX"; then
4863   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4883 if test -n "$BUILD_CXX"; then
4884   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4885 echo "${ECHO_T}$BUILD_CXX" >&6; }
4886 else
4887   { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4889 fi
4890
4891
4892   if test -z "$BUILD_CXX"; then
4893      # Extract the first word of "g++", so it can be a program name with args.
4894 set dummy g++; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$BUILD_CXX"; then
4901   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_prog_BUILD_CXX="g++"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4921 if test -n "$BUILD_CXX"; then
4922   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4923 echo "${ECHO_T}$BUILD_CXX" >&6; }
4924 else
4925   { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4927 fi
4928
4929
4930      if test -z "$BUILD_CXX"; then
4931        # Extract the first word of "c++", so it can be a program name with args.
4932 set dummy c++; ac_word=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   if test -n "$BUILD_CXX"; then
4939   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4940 else
4941   ac_prog_rejected=no
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4949     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4950        ac_prog_rejected=yes
4951        continue
4952      fi
4953     ac_cv_prog_BUILD_CXX="c++"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 if test $ac_prog_rejected = yes; then
4962   # We found a bogon in the path, so make sure we never use it.
4963   set dummy $ac_cv_prog_BUILD_CXX
4964   shift
4965   if test $# != 0; then
4966     # We chose a different compiler from the bogus one.
4967     # However, it has the same basename, so the bogon will be chosen
4968     # first if we set BUILD_CXX to just the basename; use the full file name.
4969     shift
4970     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4971   fi
4972 fi
4973 fi
4974 fi
4975 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4976 if test -n "$BUILD_CXX"; then
4977   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4978 echo "${ECHO_T}$BUILD_CXX" >&6; }
4979 else
4980   { echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6; }
4982 fi
4983
4984
4985      fi
4986   fi
4987 else
4988   LLVM_CROSS_COMPILING=0
4989
4990 fi
4991
4992 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4993   cvsbuild="yes"
4994   optimize="no"
4995   CVSBUILD=CVSBUILD=1
4996
4997 else
4998   cvsbuild="no"
4999   optimize="yes"
5000 fi
5001
5002
5003 # Check whether --enable-libcpp was given.
5004 if test "${enable_libcpp+set}" = set; then
5005   enableval=$enable_libcpp;
5006 else
5007   enableval=default
5008 fi
5009
5010 case "$enableval" in
5011   yes) ENABLE_LIBCPP=1
5012  ;;
5013   no)  ENABLE_LIBCPP=0
5014  ;;
5015   default) ENABLE_LIBCPP=0
5016 ;;
5017   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5018 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5019    { (exit 1); exit 1; }; } ;;
5020 esac
5021
5022 # Check whether --enable-optimized was given.
5023 if test "${enable_optimized+set}" = set; then
5024   enableval=$enable_optimized;
5025 else
5026   enableval=$optimize
5027 fi
5028
5029 if test ${enableval} = "no" ; then
5030   ENABLE_OPTIMIZED=
5031
5032 else
5033   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5034
5035 fi
5036
5037 # Check whether --enable-profiling was given.
5038 if test "${enable_profiling+set}" = set; then
5039   enableval=$enable_profiling;
5040 else
5041   enableval="no"
5042 fi
5043
5044 if test ${enableval} = "no" ; then
5045   ENABLE_PROFILING=
5046
5047 else
5048   ENABLE_PROFILING=ENABLE_PROFILING=1
5049
5050 fi
5051
5052 # Check whether --enable-assertions was given.
5053 if test "${enable_assertions+set}" = set; then
5054   enableval=$enable_assertions;
5055 else
5056   enableval="yes"
5057 fi
5058
5059 if test ${enableval} = "yes" ; then
5060   DISABLE_ASSERTIONS=
5061
5062 else
5063   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5064
5065 fi
5066
5067 # Check whether --enable-expensive-checks was given.
5068 if test "${enable_expensive_checks+set}" = set; then
5069   enableval=$enable_expensive_checks;
5070 else
5071   enableval="no"
5072 fi
5073
5074 if test ${enableval} = "yes" ; then
5075   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5076
5077   EXPENSIVE_CHECKS=yes
5078
5079 else
5080   ENABLE_EXPENSIVE_CHECKS=
5081
5082   EXPENSIVE_CHECKS=no
5083
5084 fi
5085
5086 # Check whether --enable-debug-runtime was given.
5087 if test "${enable_debug_runtime+set}" = set; then
5088   enableval=$enable_debug_runtime;
5089 else
5090   enableval=no
5091 fi
5092
5093 if test ${enableval} = "no" ; then
5094   DEBUG_RUNTIME=
5095
5096 else
5097   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5098
5099 fi
5100
5101 # Check whether --enable-debug-symbols was given.
5102 if test "${enable_debug_symbols+set}" = set; then
5103   enableval=$enable_debug_symbols;
5104 else
5105   enableval=no
5106 fi
5107
5108 if test ${enableval} = "no" ; then
5109   DEBUG_SYMBOLS=
5110
5111 else
5112   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5113
5114 fi
5115
5116 # Check whether --enable-jit was given.
5117 if test "${enable_jit+set}" = set; then
5118   enableval=$enable_jit;
5119 else
5120   enableval=default
5121 fi
5122
5123 if test ${enableval} = "no"
5124 then
5125   JIT=
5126
5127 else
5128   case "$llvm_cv_target_arch" in
5129     x86)         TARGET_HAS_JIT=1
5130  ;;
5131     Sparc)       TARGET_HAS_JIT=0
5132  ;;
5133     PowerPC)     TARGET_HAS_JIT=1
5134  ;;
5135     x86_64)      TARGET_HAS_JIT=1
5136  ;;
5137     ARM)         TARGET_HAS_JIT=1
5138  ;;
5139     Mips)        TARGET_HAS_JIT=1
5140  ;;
5141     XCore)       TARGET_HAS_JIT=0
5142  ;;
5143     MSP430)      TARGET_HAS_JIT=0
5144  ;;
5145     Hexagon)     TARGET_HAS_JIT=0
5146  ;;
5147     MBlaze)      TARGET_HAS_JIT=0
5148  ;;
5149     NVPTX)       TARGET_HAS_JIT=0
5150  ;;
5151     *)           TARGET_HAS_JIT=0
5152  ;;
5153   esac
5154 fi
5155
5156 # Check whether --enable-docs was given.
5157 if test "${enable_docs+set}" = set; then
5158   enableval=$enable_docs;
5159 else
5160   enableval=default
5161 fi
5162
5163 case "$enableval" in
5164   yes) ENABLE_DOCS=1
5165  ;;
5166   no)  ENABLE_DOCS=0
5167  ;;
5168   default) ENABLE_DOCS=1
5169  ;;
5170   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175 # Check whether --enable-doxygen was given.
5176 if test "${enable_doxygen+set}" = set; then
5177   enableval=$enable_doxygen;
5178 else
5179   enableval=default
5180 fi
5181
5182 case "$enableval" in
5183   yes) ENABLE_DOXYGEN=1
5184  ;;
5185   no)  ENABLE_DOXYGEN=0
5186  ;;
5187   default) ENABLE_DOXYGEN=0
5188  ;;
5189   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5191    { (exit 1); exit 1; }; } ;;
5192 esac
5193
5194 # Check whether --enable-threads was given.
5195 if test "${enable_threads+set}" = set; then
5196   enableval=$enable_threads;
5197 else
5198   enableval=default
5199 fi
5200
5201 case "$enableval" in
5202   yes) LLVM_ENABLE_THREADS=1
5203  ;;
5204   no)  LLVM_ENABLE_THREADS=0
5205  ;;
5206   default) LLVM_ENABLE_THREADS=1
5207  ;;
5208   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5209 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5210    { (exit 1); exit 1; }; } ;;
5211 esac
5212
5213 cat >>confdefs.h <<_ACEOF
5214 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5215 _ACEOF
5216
5217
5218 # Check whether --enable-pthreads was given.
5219 if test "${enable_pthreads+set}" = set; then
5220   enableval=$enable_pthreads;
5221 else
5222   enableval=default
5223 fi
5224
5225 case "$enableval" in
5226   yes) ENABLE_PTHREADS=1
5227  ;;
5228   no)  ENABLE_PTHREADS=0
5229  ;;
5230   default) ENABLE_PTHREADS=1
5231  ;;
5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5234    { (exit 1); exit 1; }; } ;;
5235 esac
5236
5237 # Check whether --enable-pic was given.
5238 if test "${enable_pic+set}" = set; then
5239   enableval=$enable_pic;
5240 else
5241   enableval=default
5242 fi
5243
5244 case "$enableval" in
5245   yes) ENABLE_PIC=1
5246  ;;
5247   no)  ENABLE_PIC=0
5248  ;;
5249   default) ENABLE_PIC=1
5250  ;;
5251   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5253    { (exit 1); exit 1; }; } ;;
5254 esac
5255
5256 cat >>confdefs.h <<_ACEOF
5257 #define ENABLE_PIC $ENABLE_PIC
5258 _ACEOF
5259
5260
5261 # Check whether --enable-shared was given.
5262 if test "${enable_shared+set}" = set; then
5263   enableval=$enable_shared;
5264 else
5265   enableval=default
5266 fi
5267
5268 case "$enableval" in
5269   yes) ENABLE_SHARED=1
5270  ;;
5271   no)  ENABLE_SHARED=0
5272  ;;
5273   default) ENABLE_SHARED=0
5274  ;;
5275   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278 esac
5279
5280 # Check whether --enable-embed-stdcxx was given.
5281 if test "${enable_embed_stdcxx+set}" = set; then
5282   enableval=$enable_embed_stdcxx;
5283 else
5284   enableval=default
5285 fi
5286
5287 case "$enableval" in
5288   yes) ENABLE_EMBED_STDCXX=1
5289  ;;
5290   no)  ENABLE_EMBED_STDCXX=0
5291  ;;
5292   default) ENABLE_EMBED_STDCXX=0
5293  ;;
5294   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5296    { (exit 1); exit 1; }; } ;;
5297 esac
5298
5299 # Check whether --enable-timestamps was given.
5300 if test "${enable_timestamps+set}" = set; then
5301   enableval=$enable_timestamps;
5302 else
5303   enableval=default
5304 fi
5305
5306 case "$enableval" in
5307   yes) ENABLE_TIMESTAMPS=1
5308  ;;
5309   no)  ENABLE_TIMESTAMPS=0
5310  ;;
5311   default) ENABLE_TIMESTAMPS=1
5312  ;;
5313   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5314 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5315    { (exit 1); exit 1; }; } ;;
5316 esac
5317
5318 cat >>confdefs.h <<_ACEOF
5319 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5320 _ACEOF
5321
5322
5323 TARGETS_TO_BUILD=""
5324 # Check whether --enable-targets was given.
5325 if test "${enable_targets+set}" = set; then
5326   enableval=$enable_targets;
5327 else
5328   enableval=all
5329 fi
5330
5331 if test "$enableval" = host-only ; then
5332   enableval=host
5333 fi
5334 case "$enableval" in
5335   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5336   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5337       case "$a_target" in
5338         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5339         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5340         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5341         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5342         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5343         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5346         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5347         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5348         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5349         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5350         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5351         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5352         host) case "$llvm_cv_target_arch" in
5353             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5356             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5357             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5358             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5359             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5360             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5361             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5362             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5363             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5364             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5365             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5366 echo "$as_me: error: Can not set target to build" >&2;}
5367    { (exit 1); exit 1; }; } ;;
5368           esac ;;
5369         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5370 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5371    { (exit 1); exit 1; }; } ;;
5372       esac
5373   done
5374   ;;
5375 esac
5376 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5377
5378
5379 for a_target in $TARGETS_TO_BUILD; do
5380   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5384 _ACEOF
5385
5386     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5387     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5388     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5389     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5390     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5392     fi
5393     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5394       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5395     fi
5396
5397 cat >>confdefs.h <<_ACEOF
5398 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5399 _ACEOF
5400
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5404 _ACEOF
5405
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5409 _ACEOF
5410
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5414 _ACEOF
5415
5416     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5420 _ACEOF
5421
5422     fi
5423     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5424
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5427 _ACEOF
5428
5429     fi
5430   fi
5431 done
5432
5433 LLVM_ENUM_TARGETS=""
5434 LLVM_ENUM_ASM_PRINTERS=""
5435 LLVM_ENUM_ASM_PARSERS=""
5436 LLVM_ENUM_DISASSEMBLERS=""
5437 for target_to_build in $TARGETS_TO_BUILD; do
5438   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5439   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5440     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5441   fi
5442   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5443     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5444   fi
5445   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5446     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5447   fi
5448 done
5449
5450
5451
5452
5453
5454
5455 # Check whether --with-optimize-option was given.
5456 if test "${with_optimize_option+set}" = set; then
5457   withval=$with_optimize_option;
5458 else
5459   withval=default
5460 fi
5461
5462 { echo "$as_me:$LINENO: checking optimization flags" >&5
5463 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5464 case "$withval" in
5465   default)
5466     case "$llvm_cv_os_type" in
5467     FreeBSD) optimize_option=-O2 ;;
5468     MingW) optimize_option=-O2 ;;
5469     *)     optimize_option=-O3 ;;
5470     esac ;;
5471   *) optimize_option="$withval" ;;
5472 esac
5473 OPTIMIZE_OPTION=$optimize_option
5474
5475 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5476 echo "${ECHO_T}$optimize_option" >&6; }
5477
5478
5479 # Check whether --with-extra-options was given.
5480 if test "${with_extra_options+set}" = set; then
5481   withval=$with_extra_options;
5482 else
5483   withval=default
5484 fi
5485
5486 case "$withval" in
5487   default) EXTRA_OPTIONS= ;;
5488   *) EXTRA_OPTIONS=$withval ;;
5489 esac
5490 EXTRA_OPTIONS=$EXTRA_OPTIONS
5491
5492
5493
5494 # Check whether --with-extra-ld-options was given.
5495 if test "${with_extra_ld_options+set}" = set; then
5496   withval=$with_extra_ld_options;
5497 else
5498   withval=default
5499 fi
5500
5501 case "$withval" in
5502   default) EXTRA_LD_OPTIONS= ;;
5503   *) EXTRA_LD_OPTIONS=$withval ;;
5504 esac
5505 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5506
5507
5508 # Check whether --enable-bindings was given.
5509 if test "${enable_bindings+set}" = set; then
5510   enableval=$enable_bindings;
5511 else
5512   enableval=default
5513 fi
5514
5515 BINDINGS_TO_BUILD=""
5516 case "$enableval" in
5517   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5518   all ) BINDINGS_TO_BUILD="ocaml" ;;
5519   none | no) BINDINGS_TO_BUILD="" ;;
5520   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5521       case "$a_binding" in
5522         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5523         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5524 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5525    { (exit 1); exit 1; }; } ;;
5526       esac
5527   done
5528   ;;
5529 esac
5530
5531
5532 # Check whether --with-ocaml-libdir was given.
5533 if test "${with_ocaml_libdir+set}" = set; then
5534   withval=$with_ocaml_libdir;
5535 else
5536   withval=auto
5537 fi
5538
5539 case "$withval" in
5540   auto) with_ocaml_libdir="$withval" ;;
5541   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5542   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5543 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5544    { (exit 1); exit 1; }; } ;;
5545 esac
5546
5547
5548 # Check whether --with-clang-srcdir was given.
5549 if test "${with_clang_srcdir+set}" = set; then
5550   withval=$with_clang_srcdir;
5551 else
5552   withval="-"
5553 fi
5554
5555 case "$withval" in
5556   -) clang_src_root="" ;;
5557   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5558   *) clang_src_root="$ac_pwd/$withval" ;;
5559 esac
5560 CLANG_SRC_ROOT=$clang_src_root
5561
5562
5563
5564 # Check whether --with-clang-resource-dir was given.
5565 if test "${with_clang_resource_dir+set}" = set; then
5566   withval=$with_clang_resource_dir;
5567 else
5568   withval=""
5569 fi
5570
5571
5572 cat >>confdefs.h <<_ACEOF
5573 #define CLANG_RESOURCE_DIR "$withval"
5574 _ACEOF
5575
5576
5577
5578 # Check whether --with-c-include-dirs was given.
5579 if test "${with_c_include_dirs+set}" = set; then
5580   withval=$with_c_include_dirs;
5581 else
5582   withval=""
5583 fi
5584
5585
5586 cat >>confdefs.h <<_ACEOF
5587 #define C_INCLUDE_DIRS "$withval"
5588 _ACEOF
5589
5590
5591 # Clang normally uses the system c++ headers and libraries. With this option,
5592 # clang will use the ones provided by a gcc installation instead. This option should
5593 # be passed the same value that was used with --prefix when configuring gcc.
5594
5595 # Check whether --with-gcc-toolchain was given.
5596 if test "${with_gcc_toolchain+set}" = set; then
5597   withval=$with_gcc_toolchain;
5598 else
5599   withval=""
5600 fi
5601
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define GCC_INSTALL_PREFIX "$withval"
5605 _ACEOF
5606
5607
5608
5609 # Check whether --with-default-sysroot was given.
5610 if test "${with_default_sysroot+set}" = set; then
5611   withval=$with_default_sysroot;
5612 else
5613   withval=""
5614 fi
5615
5616
5617 cat >>confdefs.h <<_ACEOF
5618 #define DEFAULT_SYSROOT "$withval"
5619 _ACEOF
5620
5621
5622
5623 # Check whether --with-binutils-include was given.
5624 if test "${with_binutils_include+set}" = set; then
5625   withval=$with_binutils_include;
5626 else
5627   withval=default
5628 fi
5629
5630 case "$withval" in
5631   default) WITH_BINUTILS_INCDIR=default ;;
5632   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5633   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5634 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5635    { (exit 1); exit 1; }; } ;;
5636 esac
5637 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5638   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5639
5640   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5641      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5642      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5643 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5644    { (exit 1); exit 1; }; };
5645   fi
5646 fi
5647
5648
5649 # Check whether --with-bug-report-url was given.
5650 if test "${with_bug_report_url+set}" = set; then
5651   withval=$with_bug_report_url;
5652 else
5653   withval="http://llvm.org/bugs/"
5654 fi
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define BUG_REPORT_URL "$withval"
5659 _ACEOF
5660
5661
5662 # Check whether --enable-libffi was given.
5663 if test "${enable_libffi+set}" = set; then
5664   enableval=$enable_libffi; case "$enableval" in
5665     yes) llvm_cv_enable_libffi="yes" ;;
5666     no)  llvm_cv_enable_libffi="no"  ;;
5667     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5668 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5669    { (exit 1); exit 1; }; } ;;
5670   esac
5671 else
5672   llvm_cv_enable_libffi=no
5673 fi
5674
5675
5676
5677 # Check whether --with-internal-prefix was given.
5678 if test "${with_internal_prefix+set}" = set; then
5679   withval=$with_internal_prefix;
5680 else
5681   withval=""
5682 fi
5683
5684 INTERNAL_PREFIX=$withval
5685
5686
5687
5688 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5689 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5690 if test "${lt_cv_path_NM+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   if test -n "$NM"; then
5694   # Let the user override the test.
5695   lt_cv_path_NM="$NM"
5696 else
5697   lt_nm_to_check="${ac_tool_prefix}nm"
5698   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5699     lt_nm_to_check="$lt_nm_to_check nm"
5700   fi
5701   for lt_tmp_nm in $lt_nm_to_check; do
5702     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5704       IFS="$lt_save_ifs"
5705       test -z "$ac_dir" && ac_dir=.
5706       tmp_nm="$ac_dir/$lt_tmp_nm"
5707       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5708         # Check to see if the nm accepts a BSD-compat flag.
5709         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5710         #   nm: unknown option "B" ignored
5711         # Tru64's nm complains that /dev/null is an invalid object file
5712         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5713         */dev/null* | *'Invalid file or object type'*)
5714           lt_cv_path_NM="$tmp_nm -B"
5715           break
5716           ;;
5717         *)
5718           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5719           */dev/null*)
5720             lt_cv_path_NM="$tmp_nm -p"
5721             break
5722             ;;
5723           *)
5724             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5725             continue # so that we can try to find one that supports BSD flags
5726             ;;
5727           esac
5728           ;;
5729         esac
5730       fi
5731     done
5732     IFS="$lt_save_ifs"
5733   done
5734   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5735 fi
5736 fi
5737 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5738 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5739 NM="$lt_cv_path_NM"
5740
5741
5742
5743 { echo "$as_me:$LINENO: checking for GNU make" >&5
5744 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5745 if test "${llvm_cv_gnu_make_command+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   llvm_cv_gnu_make_command=''
5749  for a in "$MAKE" make gmake gnumake ; do
5750   if test -z "$a" ; then continue ; fi ;
5751   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5752   then
5753    llvm_cv_gnu_make_command=$a ;
5754    break;
5755   fi
5756  done
5757 fi
5758 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5759 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5760  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5761    ifGNUmake='' ;
5762  else
5763    ifGNUmake='#' ;
5764    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5765 echo "${ECHO_T}\"Not found\"" >&6; };
5766  fi
5767
5768
5769 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5771 LN_S=$as_ln_s
5772 if test "$LN_S" = "ln -s"; then
5773   { echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6; }
5775 else
5776   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5777 echo "${ECHO_T}no, using $LN_S" >&6; }
5778 fi
5779
5780 # Extract the first word of "cmp", so it can be a program name with args.
5781 set dummy cmp; ac_word=$2
5782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5784 if test "${ac_cv_path_CMP+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   case $CMP in
5788   [\\/]* | ?:[\\/]*)
5789   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5790   ;;
5791   *)
5792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797   for ac_exec_ext in '' $ac_executable_extensions; do
5798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5799     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804 done
5805 IFS=$as_save_IFS
5806
5807   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5808   ;;
5809 esac
5810 fi
5811 CMP=$ac_cv_path_CMP
5812 if test -n "$CMP"; then
5813   { echo "$as_me:$LINENO: result: $CMP" >&5
5814 echo "${ECHO_T}$CMP" >&6; }
5815 else
5816   { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5818 fi
5819
5820
5821 # Extract the first word of "cp", so it can be a program name with args.
5822 set dummy cp; ac_word=$2
5823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5825 if test "${ac_cv_path_CP+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   case $CP in
5829   [\\/]* | ?:[\\/]*)
5830   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5831   ;;
5832   *)
5833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838   for ac_exec_ext in '' $ac_executable_extensions; do
5839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5849   ;;
5850 esac
5851 fi
5852 CP=$ac_cv_path_CP
5853 if test -n "$CP"; then
5854   { echo "$as_me:$LINENO: result: $CP" >&5
5855 echo "${ECHO_T}$CP" >&6; }
5856 else
5857   { echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6; }
5859 fi
5860
5861
5862 # Extract the first word of "date", so it can be a program name with args.
5863 set dummy date; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_path_DATE+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   case $DATE in
5870   [\\/]* | ?:[\\/]*)
5871   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5872   ;;
5873   *)
5874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879   for ac_exec_ext in '' $ac_executable_extensions; do
5880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5890   ;;
5891 esac
5892 fi
5893 DATE=$ac_cv_path_DATE
5894 if test -n "$DATE"; then
5895   { echo "$as_me:$LINENO: result: $DATE" >&5
5896 echo "${ECHO_T}$DATE" >&6; }
5897 else
5898   { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5900 fi
5901
5902
5903 # Extract the first word of "find", so it can be a program name with args.
5904 set dummy find; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_path_FIND+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   case $FIND in
5911   [\\/]* | ?:[\\/]*)
5912   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5913   ;;
5914   *)
5915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920   for ac_exec_ext in '' $ac_executable_extensions; do
5921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5922     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927 done
5928 IFS=$as_save_IFS
5929
5930   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5931   ;;
5932 esac
5933 fi
5934 FIND=$ac_cv_path_FIND
5935 if test -n "$FIND"; then
5936   { echo "$as_me:$LINENO: result: $FIND" >&5
5937 echo "${ECHO_T}$FIND" >&6; }
5938 else
5939   { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5941 fi
5942
5943
5944 # Extract the first word of "grep", so it can be a program name with args.
5945 set dummy grep; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_path_GREP+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   case $GREP in
5952   [\\/]* | ?:[\\/]*)
5953   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5954   ;;
5955   *)
5956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961   for ac_exec_ext in '' $ac_executable_extensions; do
5962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5963     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968 done
5969 IFS=$as_save_IFS
5970
5971   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5972   ;;
5973 esac
5974 fi
5975 GREP=$ac_cv_path_GREP
5976 if test -n "$GREP"; then
5977   { echo "$as_me:$LINENO: result: $GREP" >&5
5978 echo "${ECHO_T}$GREP" >&6; }
5979 else
5980   { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5982 fi
5983
5984
5985 # Extract the first word of "mkdir", so it can be a program name with args.
5986 set dummy mkdir; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_path_MKDIR+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   case $MKDIR in
5993   [\\/]* | ?:[\\/]*)
5994   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5995   ;;
5996   *)
5997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000   IFS=$as_save_IFS
6001   test -z "$as_dir" && as_dir=.
6002   for ac_exec_ext in '' $ac_executable_extensions; do
6003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6004     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006     break 2
6007   fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6013   ;;
6014 esac
6015 fi
6016 MKDIR=$ac_cv_path_MKDIR
6017 if test -n "$MKDIR"; then
6018   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6019 echo "${ECHO_T}$MKDIR" >&6; }
6020 else
6021   { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6023 fi
6024
6025
6026 # Extract the first word of "mv", so it can be a program name with args.
6027 set dummy mv; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_path_MV+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   case $MV in
6034   [\\/]* | ?:[\\/]*)
6035   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6036   ;;
6037   *)
6038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043   for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6054   ;;
6055 esac
6056 fi
6057 MV=$ac_cv_path_MV
6058 if test -n "$MV"; then
6059   { echo "$as_me:$LINENO: result: $MV" >&5
6060 echo "${ECHO_T}$MV" >&6; }
6061 else
6062   { echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6; }
6064 fi
6065
6066
6067 if test -n "$ac_tool_prefix"; then
6068   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072 if test "${ac_cv_prog_RANLIB+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   if test -n "$RANLIB"; then
6076   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083   for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6098 echo "${ECHO_T}$RANLIB" >&6; }
6099 else
6100   { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6102 fi
6103
6104
6105 fi
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107   ac_ct_RANLIB=$RANLIB
6108   # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   if test -n "$ac_ct_RANLIB"; then
6116   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123   for ac_exec_ext in '' $ac_executable_extensions; do
6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125     ac_cv_prog_ac_ct_RANLIB="ranlib"
6126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143
6144   if test "x$ac_ct_RANLIB" = x; then
6145     RANLIB=":"
6146   else
6147     case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6150 whose name does not start with the host triplet.  If you think this
6151 configuration is useful to you, please write to autoconf@gnu.org." >&5
6152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6153 whose name does not start with the host triplet.  If you think this
6154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6155 ac_tool_warned=yes ;;
6156 esac
6157     RANLIB=$ac_ct_RANLIB
6158   fi
6159 else
6160   RANLIB="$ac_cv_prog_RANLIB"
6161 fi
6162
6163 if test -n "$ac_tool_prefix"; then
6164   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6165 set dummy ${ac_tool_prefix}ar; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AR+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   if test -n "$AR"; then
6172   ac_cv_prog_AR="$AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179   for ac_exec_ext in '' $ac_executable_extensions; do
6180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6181     ac_cv_prog_AR="${ac_tool_prefix}ar"
6182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 AR=$ac_cv_prog_AR
6192 if test -n "$AR"; then
6193   { echo "$as_me:$LINENO: result: $AR" >&5
6194 echo "${ECHO_T}$AR" >&6; }
6195 else
6196   { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6198 fi
6199
6200
6201 fi
6202 if test -z "$ac_cv_prog_AR"; then
6203   ac_ct_AR=$AR
6204   # Extract the first word of "ar", so it can be a program name with args.
6205 set dummy ar; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   if test -n "$ac_ct_AR"; then
6212   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219   for ac_exec_ext in '' $ac_executable_extensions; do
6220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6221     ac_cv_prog_ac_ct_AR="ar"
6222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6232 if test -n "$ac_ct_AR"; then
6233   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6234 echo "${ECHO_T}$ac_ct_AR" >&6; }
6235 else
6236   { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 fi
6239
6240   if test "x$ac_ct_AR" = x; then
6241     AR="false"
6242   else
6243     case $cross_compiling:$ac_tool_warned in
6244 yes:)
6245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6246 whose name does not start with the host triplet.  If you think this
6247 configuration is useful to you, please write to autoconf@gnu.org." >&5
6248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet.  If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253     AR=$ac_ct_AR
6254   fi
6255 else
6256   AR="$ac_cv_prog_AR"
6257 fi
6258
6259 # Extract the first word of "rm", so it can be a program name with args.
6260 set dummy rm; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_RM+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   case $RM in
6267   [\\/]* | ?:[\\/]*)
6268   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6269   ;;
6270   *)
6271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276   for ac_exec_ext in '' $ac_executable_extensions; do
6277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6278     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280     break 2
6281   fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6287   ;;
6288 esac
6289 fi
6290 RM=$ac_cv_path_RM
6291 if test -n "$RM"; then
6292   { echo "$as_me:$LINENO: result: $RM" >&5
6293 echo "${ECHO_T}$RM" >&6; }
6294 else
6295   { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6297 fi
6298
6299
6300 # Extract the first word of "sed", so it can be a program name with args.
6301 set dummy sed; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_SED+set}" = set; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307   case $SED in
6308   [\\/]* | ?:[\\/]*)
6309   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6310   ;;
6311   *)
6312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317   for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6328   ;;
6329 esac
6330 fi
6331 SED=$ac_cv_path_SED
6332 if test -n "$SED"; then
6333   { echo "$as_me:$LINENO: result: $SED" >&5
6334 echo "${ECHO_T}$SED" >&6; }
6335 else
6336   { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 fi
6339
6340
6341 # Extract the first word of "tar", so it can be a program name with args.
6342 set dummy tar; ac_word=$2
6343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345 if test "${ac_cv_path_TAR+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   case $TAR in
6349   [\\/]* | ?:[\\/]*)
6350   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6351   ;;
6352   *)
6353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6369   ;;
6370 esac
6371 fi
6372 TAR=$ac_cv_path_TAR
6373 if test -n "$TAR"; then
6374   { echo "$as_me:$LINENO: result: $TAR" >&5
6375 echo "${ECHO_T}$TAR" >&6; }
6376 else
6377   { echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6; }
6379 fi
6380
6381
6382 # Extract the first word of "pwd", so it can be a program name with args.
6383 set dummy pwd; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_path_BINPWD+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   case $BINPWD in
6390   [\\/]* | ?:[\\/]*)
6391   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6392   ;;
6393   *)
6394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6410   ;;
6411 esac
6412 fi
6413 BINPWD=$ac_cv_path_BINPWD
6414 if test -n "$BINPWD"; then
6415   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6416 echo "${ECHO_T}$BINPWD" >&6; }
6417 else
6418   { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6420 fi
6421
6422
6423
6424 # Extract the first word of "Graphviz", so it can be a program name with args.
6425 set dummy Graphviz; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   case $GRAPHVIZ in
6432   [\\/]* | ?:[\\/]*)
6433   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6434   ;;
6435   *)
6436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441   for ac_exec_ext in '' $ac_executable_extensions; do
6442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6452   ;;
6453 esac
6454 fi
6455 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6456 if test -n "$GRAPHVIZ"; then
6457   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6458 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6459 else
6460   { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6462 fi
6463
6464
6465 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6466
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_GRAPHVIZ 1
6469 _ACEOF
6470
6471     if test "$llvm_cv_os_type" = "MingW" ; then
6472     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6473   fi
6474
6475 cat >>confdefs.h <<_ACEOF
6476 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6477 _ACEOF
6478
6479 fi
6480 # Extract the first word of "dot", so it can be a program name with args.
6481 set dummy dot; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_DOT+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   case $DOT in
6488   [\\/]* | ?:[\\/]*)
6489   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6490   ;;
6491   *)
6492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497   for ac_exec_ext in '' $ac_executable_extensions; do
6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6499     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6508   ;;
6509 esac
6510 fi
6511 DOT=$ac_cv_path_DOT
6512 if test -n "$DOT"; then
6513   { echo "$as_me:$LINENO: result: $DOT" >&5
6514 echo "${ECHO_T}$DOT" >&6; }
6515 else
6516   { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6518 fi
6519
6520
6521 if test "$DOT" != "echo dot" ; then
6522
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_DOT 1
6525 _ACEOF
6526
6527     if test "$llvm_cv_os_type" = "MingW" ; then
6528     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6529   fi
6530
6531 cat >>confdefs.h <<_ACEOF
6532 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6533 _ACEOF
6534
6535 fi
6536 # Extract the first word of "fdp", so it can be a program name with args.
6537 set dummy fdp; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_path_FDP+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   case $FDP in
6544   [\\/]* | ?:[\\/]*)
6545   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6546   ;;
6547   *)
6548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   test -z "$as_dir" && as_dir=.
6553   for ac_exec_ext in '' $ac_executable_extensions; do
6554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6555     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557     break 2
6558   fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6564   ;;
6565 esac
6566 fi
6567 FDP=$ac_cv_path_FDP
6568 if test -n "$FDP"; then
6569   { echo "$as_me:$LINENO: result: $FDP" >&5
6570 echo "${ECHO_T}$FDP" >&6; }
6571 else
6572   { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6574 fi
6575
6576
6577 if test "$FDP" != "echo fdp" ; then
6578
6579 cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_FDP 1
6581 _ACEOF
6582
6583     if test "$llvm_cv_os_type" = "MingW" ; then
6584     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6585   fi
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6589 _ACEOF
6590
6591 fi
6592 # Extract the first word of "neato", so it can be a program name with args.
6593 set dummy neato; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_NEATO+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   case $NEATO in
6600   [\\/]* | ?:[\\/]*)
6601   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6602   ;;
6603   *)
6604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6620   ;;
6621 esac
6622 fi
6623 NEATO=$ac_cv_path_NEATO
6624 if test -n "$NEATO"; then
6625   { echo "$as_me:$LINENO: result: $NEATO" >&5
6626 echo "${ECHO_T}$NEATO" >&6; }
6627 else
6628   { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6630 fi
6631
6632
6633 if test "$NEATO" != "echo neato" ; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_NEATO 1
6637 _ACEOF
6638
6639     if test "$llvm_cv_os_type" = "MingW" ; then
6640     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6641   fi
6642
6643 cat >>confdefs.h <<_ACEOF
6644 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6645 _ACEOF
6646
6647 fi
6648 # Extract the first word of "twopi", so it can be a program name with args.
6649 set dummy twopi; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_TWOPI+set}" = set; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   case $TWOPI in
6656   [\\/]* | ?:[\\/]*)
6657   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6658   ;;
6659   *)
6660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665   for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6676   ;;
6677 esac
6678 fi
6679 TWOPI=$ac_cv_path_TWOPI
6680 if test -n "$TWOPI"; then
6681   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6682 echo "${ECHO_T}$TWOPI" >&6; }
6683 else
6684   { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688
6689 if test "$TWOPI" != "echo twopi" ; then
6690
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_TWOPI 1
6693 _ACEOF
6694
6695     if test "$llvm_cv_os_type" = "MingW" ; then
6696     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6697   fi
6698
6699 cat >>confdefs.h <<_ACEOF
6700 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6701 _ACEOF
6702
6703 fi
6704 # Extract the first word of "circo", so it can be a program name with args.
6705 set dummy circo; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_CIRCO+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $CIRCO in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6732   ;;
6733 esac
6734 fi
6735 CIRCO=$ac_cv_path_CIRCO
6736 if test -n "$CIRCO"; then
6737   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6738 echo "${ECHO_T}$CIRCO" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 if test "$CIRCO" != "echo circo" ; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CIRCO 1
6749 _ACEOF
6750
6751     if test "$llvm_cv_os_type" = "MingW" ; then
6752     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753   fi
6754
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6757 _ACEOF
6758
6759 fi
6760 for ac_prog in gv gsview32
6761 do
6762   # Extract the first word of "$ac_prog", so it can be a program name with args.
6763 set dummy $ac_prog; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_GV+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   case $GV in
6770   [\\/]* | ?:[\\/]*)
6771   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6772   ;;
6773   *)
6774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779   for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789   ;;
6790 esac
6791 fi
6792 GV=$ac_cv_path_GV
6793 if test -n "$GV"; then
6794   { echo "$as_me:$LINENO: result: $GV" >&5
6795 echo "${ECHO_T}$GV" >&6; }
6796 else
6797   { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6799 fi
6800
6801
6802   test -n "$GV" && break
6803 done
6804 test -n "$GV" || GV="echo gv"
6805
6806 if test "$GV" != "echo gv" ; then
6807
6808 cat >>confdefs.h <<\_ACEOF
6809 #define HAVE_GV 1
6810 _ACEOF
6811
6812     if test "$llvm_cv_os_type" = "MingW" ; then
6813     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814   fi
6815
6816 cat >>confdefs.h <<_ACEOF
6817 #define LLVM_PATH_GV "$GV${EXEEXT}"
6818 _ACEOF
6819
6820 fi
6821 # Extract the first word of "dotty", so it can be a program name with args.
6822 set dummy dotty; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_DOTTY+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   case $DOTTY in
6829   [\\/]* | ?:[\\/]*)
6830   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6831   ;;
6832   *)
6833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6849   ;;
6850 esac
6851 fi
6852 DOTTY=$ac_cv_path_DOTTY
6853 if test -n "$DOTTY"; then
6854   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6855 echo "${ECHO_T}$DOTTY" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861
6862 if test "$DOTTY" != "echo dotty" ; then
6863
6864 cat >>confdefs.h <<\_ACEOF
6865 #define HAVE_DOTTY 1
6866 _ACEOF
6867
6868     if test "$llvm_cv_os_type" = "MingW" ; then
6869     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870   fi
6871
6872 cat >>confdefs.h <<_ACEOF
6873 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6874 _ACEOF
6875
6876 fi
6877 # Extract the first word of "xdot.py", so it can be a program name with args.
6878 set dummy xdot.py; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   case $XDOT_PY in
6885   [\\/]* | ?:[\\/]*)
6886   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6887   ;;
6888   *)
6889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894   for ac_exec_ext in '' $ac_executable_extensions; do
6895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6905   ;;
6906 esac
6907 fi
6908 XDOT_PY=$ac_cv_path_XDOT_PY
6909 if test -n "$XDOT_PY"; then
6910   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6911 echo "${ECHO_T}$XDOT_PY" >&6; }
6912 else
6913   { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6915 fi
6916
6917
6918 if test "$XDOT_PY" != "echo xdot.py" ; then
6919
6920 cat >>confdefs.h <<\_ACEOF
6921 #define HAVE_XDOT_PY 1
6922 _ACEOF
6923
6924     if test "$llvm_cv_os_type" = "MingW" ; then
6925     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926   fi
6927
6928 cat >>confdefs.h <<_ACEOF
6929 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6930 _ACEOF
6931
6932 fi
6933
6934 # Find a good install program.  We prefer a C program (faster),
6935 # so one script is as good as another.  But avoid the broken or
6936 # incompatible versions:
6937 # SysV /etc/install, /usr/sbin/install
6938 # SunOS /usr/etc/install
6939 # IRIX /sbin/install
6940 # AIX /bin/install
6941 # AmigaOS /C/install, which installs bootblocks on floppy discs
6942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6945 # OS/2's system install, which has a completely different semantic
6946 # ./install, which can be erroneously created by make from ./install.sh.
6947 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6948 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6949 if test -z "$INSTALL"; then
6950 if test "${ac_cv_path_install+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   # Account for people who put trailing slashes in PATH elements.
6959 case $as_dir/ in
6960   ./ | .// | /cC/* | \
6961   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6962   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6963   /usr/ucb/* ) ;;
6964   *)
6965     # OSF1 and SCO ODT 3.0 have their own names for install.
6966     # Don't use installbsd from OSF since it installs stuff as root
6967     # by default.
6968     for ac_prog in ginstall scoinst install; do
6969       for ac_exec_ext in '' $ac_executable_extensions; do
6970         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6971           if test $ac_prog = install &&
6972             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6973             # AIX install.  It has an incompatible calling convention.
6974             :
6975           elif test $ac_prog = install &&
6976             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6977             # program-specific install script used by HP pwplus--don't use.
6978             :
6979           else
6980             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6981             break 3
6982           fi
6983         fi
6984       done
6985     done
6986     ;;
6987 esac
6988 done
6989 IFS=$as_save_IFS
6990
6991
6992 fi
6993   if test "${ac_cv_path_install+set}" = set; then
6994     INSTALL=$ac_cv_path_install
6995   else
6996     # As a last resort, use the slow shell script.  Don't cache a
6997     # value for INSTALL within a source directory, because that will
6998     # break other packages using the cache if that directory is
6999     # removed, or if the value is a relative name.
7000     INSTALL=$ac_install_sh
7001   fi
7002 fi
7003 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7004 echo "${ECHO_T}$INSTALL" >&6; }
7005
7006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7007 # It thinks the first close brace ends the variable substitution.
7008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7009
7010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7011
7012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7013
7014 case "$INSTALL" in
7015  [\\/$]* | ?:[\\/]* ) ;;
7016  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7017 esac
7018
7019 # Extract the first word of "bzip2", so it can be a program name with args.
7020 set dummy bzip2; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_path_BZIP2+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   case $BZIP2 in
7027   [\\/]* | ?:[\\/]*)
7028   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7029   ;;
7030   *)
7031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036   for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046   ;;
7047 esac
7048 fi
7049 BZIP2=$ac_cv_path_BZIP2
7050 if test -n "$BZIP2"; then
7051   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7052 echo "${ECHO_T}$BZIP2" >&6; }
7053 else
7054   { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7056 fi
7057
7058
7059 # Extract the first word of "cat", so it can be a program name with args.
7060 set dummy cat; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_CAT+set}" = set; then
7064   echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066   case $CAT in
7067   [\\/]* | ?:[\\/]*)
7068   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7069   ;;
7070   *)
7071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076   for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086   ;;
7087 esac
7088 fi
7089 CAT=$ac_cv_path_CAT
7090 if test -n "$CAT"; then
7091   { echo "$as_me:$LINENO: result: $CAT" >&5
7092 echo "${ECHO_T}$CAT" >&6; }
7093 else
7094   { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7096 fi
7097
7098
7099 # Extract the first word of "doxygen", so it can be a program name with args.
7100 set dummy doxygen; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   case $DOXYGEN in
7107   [\\/]* | ?:[\\/]*)
7108   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7109   ;;
7110   *)
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126   ;;
7127 esac
7128 fi
7129 DOXYGEN=$ac_cv_path_DOXYGEN
7130 if test -n "$DOXYGEN"; then
7131   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7132 echo "${ECHO_T}$DOXYGEN" >&6; }
7133 else
7134   { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7136 fi
7137
7138
7139 # Extract the first word of "groff", so it can be a program name with args.
7140 set dummy groff; ac_word=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_path_GROFF+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   case $GROFF in
7147   [\\/]* | ?:[\\/]*)
7148   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7149   ;;
7150   *)
7151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156   for ac_exec_ext in '' $ac_executable_extensions; do
7157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166   ;;
7167 esac
7168 fi
7169 GROFF=$ac_cv_path_GROFF
7170 if test -n "$GROFF"; then
7171   { echo "$as_me:$LINENO: result: $GROFF" >&5
7172 echo "${ECHO_T}$GROFF" >&6; }
7173 else
7174   { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7176 fi
7177
7178
7179 # Extract the first word of "gzip", so it can be a program name with args.
7180 set dummy gzip; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   case $GZIPBIN in
7187   [\\/]* | ?:[\\/]*)
7188   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7189   ;;
7190   *)
7191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206   ;;
7207 esac
7208 fi
7209 GZIPBIN=$ac_cv_path_GZIPBIN
7210 if test -n "$GZIPBIN"; then
7211   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7212 echo "${ECHO_T}$GZIPBIN" >&6; }
7213 else
7214   { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7216 fi
7217
7218
7219 # Extract the first word of "pdfroff", so it can be a program name with args.
7220 set dummy pdfroff; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_PDFROFF+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   case $PDFROFF in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246   ;;
7247 esac
7248 fi
7249 PDFROFF=$ac_cv_path_PDFROFF
7250 if test -n "$PDFROFF"; then
7251   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7252 echo "${ECHO_T}$PDFROFF" >&6; }
7253 else
7254   { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7256 fi
7257
7258
7259 # Extract the first word of "runtest", so it can be a program name with args.
7260 set dummy runtest; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_RUNTEST+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   case $RUNTEST in
7267   [\\/]* | ?:[\\/]*)
7268   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7269   ;;
7270   *)
7271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286   ;;
7287 esac
7288 fi
7289 RUNTEST=$ac_cv_path_RUNTEST
7290 if test -n "$RUNTEST"; then
7291   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7292 echo "${ECHO_T}$RUNTEST" >&6; }
7293 else
7294   { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7296 fi
7297
7298
7299
7300 no_itcl=true
7301 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7302 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7303
7304 # Check whether --with-tclinclude was given.
7305 if test "${with_tclinclude+set}" = set; then
7306   withval=$with_tclinclude; with_tclinclude=${withval}
7307 else
7308   with_tclinclude=''
7309 fi
7310
7311 if test "${ac_cv_path_tclsh+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314
7315 if test x"${with_tclinclude}" != x ; then
7316   if test -f ${with_tclinclude}/tclsh ; then
7317     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7318   elif test -f ${with_tclinclude}/src/tclsh ; then
7319     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7320   else
7321     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7322 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7323    { (exit 1); exit 1; }; }
7324   fi
7325 fi
7326 fi
7327
7328
7329 if test x"${ac_cv_path_tclsh}" = x ; then
7330   { echo "$as_me:$LINENO: result: none" >&5
7331 echo "${ECHO_T}none" >&6; }
7332   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
7333 do
7334   # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_path_TCLSH+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   case $TCLSH in
7342   [\\/]* | ?:[\\/]*)
7343   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7344   ;;
7345   *)
7346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351   for ac_exec_ext in '' $ac_executable_extensions; do
7352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358 done
7359 IFS=$as_save_IFS
7360
7361   ;;
7362 esac
7363 fi
7364 TCLSH=$ac_cv_path_TCLSH
7365 if test -n "$TCLSH"; then
7366   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7367 echo "${ECHO_T}$TCLSH" >&6; }
7368 else
7369   { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7371 fi
7372
7373
7374   test -n "$TCLSH" && break
7375 done
7376
7377   if test x"${TCLSH}" = x ; then
7378     ac_cv_path_tclsh='';
7379   else
7380     ac_cv_path_tclsh="${TCLSH}";
7381   fi
7382 else
7383   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7384 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7385   TCLSH="${ac_cv_path_tclsh}"
7386
7387 fi
7388
7389 # Extract the first word of "zip", so it can be a program name with args.
7390 set dummy zip; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_ZIP+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   case $ZIP in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406   for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416   ;;
7417 esac
7418 fi
7419 ZIP=$ac_cv_path_ZIP
7420 if test -n "$ZIP"; then
7421   { echo "$as_me:$LINENO: result: $ZIP" >&5
7422 echo "${ECHO_T}$ZIP" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428
7429 for ac_prog in ocamlc
7430 do
7431   # Extract the first word of "$ac_prog", so it can be a program name with args.
7432 set dummy $ac_prog; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_OCAMLC+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   case $OCAMLC in
7439   [\\/]* | ?:[\\/]*)
7440   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7441   ;;
7442   *)
7443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458   ;;
7459 esac
7460 fi
7461 OCAMLC=$ac_cv_path_OCAMLC
7462 if test -n "$OCAMLC"; then
7463   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7464 echo "${ECHO_T}$OCAMLC" >&6; }
7465 else
7466   { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7468 fi
7469
7470
7471   test -n "$OCAMLC" && break
7472 done
7473
7474 for ac_prog in ocamlopt
7475 do
7476   # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   case $OCAMLOPT in
7484   [\\/]* | ?:[\\/]*)
7485   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7486   ;;
7487   *)
7488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493   for ac_exec_ext in '' $ac_executable_extensions; do
7494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7495     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503   ;;
7504 esac
7505 fi
7506 OCAMLOPT=$ac_cv_path_OCAMLOPT
7507 if test -n "$OCAMLOPT"; then
7508   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7509 echo "${ECHO_T}$OCAMLOPT" >&6; }
7510 else
7511   { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7513 fi
7514
7515
7516   test -n "$OCAMLOPT" && break
7517 done
7518
7519 for ac_prog in ocamldep
7520 do
7521   # Extract the first word of "$ac_prog", so it can be a program name with args.
7522 set dummy $ac_prog; ac_word=$2
7523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7525 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   case $OCAMLDEP in
7529   [\\/]* | ?:[\\/]*)
7530   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7531   ;;
7532   *)
7533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536   IFS=$as_save_IFS
7537   test -z "$as_dir" && as_dir=.
7538   for ac_exec_ext in '' $ac_executable_extensions; do
7539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7540     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542     break 2
7543   fi
7544 done
7545 done
7546 IFS=$as_save_IFS
7547
7548   ;;
7549 esac
7550 fi
7551 OCAMLDEP=$ac_cv_path_OCAMLDEP
7552 if test -n "$OCAMLDEP"; then
7553   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7554 echo "${ECHO_T}$OCAMLDEP" >&6; }
7555 else
7556   { echo "$as_me:$LINENO: result: no" >&5
7557 echo "${ECHO_T}no" >&6; }
7558 fi
7559
7560
7561   test -n "$OCAMLDEP" && break
7562 done
7563
7564 for ac_prog in ocamldoc
7565 do
7566   # Extract the first word of "$ac_prog", so it can be a program name with args.
7567 set dummy $ac_prog; ac_word=$2
7568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   case $OCAMLDOC in
7574   [\\/]* | ?:[\\/]*)
7575   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7576   ;;
7577   *)
7578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583   for ac_exec_ext in '' $ac_executable_extensions; do
7584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7585     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593   ;;
7594 esac
7595 fi
7596 OCAMLDOC=$ac_cv_path_OCAMLDOC
7597 if test -n "$OCAMLDOC"; then
7598   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7599 echo "${ECHO_T}$OCAMLDOC" >&6; }
7600 else
7601   { echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6; }
7603 fi
7604
7605
7606   test -n "$OCAMLDOC" && break
7607 done
7608
7609 for ac_prog in gas as
7610 do
7611   # Extract the first word of "$ac_prog", so it can be a program name with args.
7612 set dummy $ac_prog; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_path_GAS+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   case $GAS in
7619   [\\/]* | ?:[\\/]*)
7620   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7621   ;;
7622   *)
7623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628   for ac_exec_ext in '' $ac_executable_extensions; do
7629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7630     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638   ;;
7639 esac
7640 fi
7641 GAS=$ac_cv_path_GAS
7642 if test -n "$GAS"; then
7643   { echo "$as_me:$LINENO: result: $GAS" >&5
7644 echo "${ECHO_T}$GAS" >&6; }
7645 else
7646   { echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6; }
7648 fi
7649
7650
7651   test -n "$GAS" && break
7652 done
7653
7654
7655 { echo "$as_me:$LINENO: checking for linker version" >&5
7656 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7657 if test "${llvm_cv_link_version+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660
7661    version_string="$(ld -v 2>&1 | head -1)"
7662
7663    # Check for ld64.
7664    if (echo "$version_string" | grep -q "ld64"); then
7665      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7666    else
7667      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7668    fi
7669
7670 fi
7671 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7672 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7673
7674 cat >>confdefs.h <<_ACEOF
7675 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7676 _ACEOF
7677
7678
7679
7680 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7681 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7682 if test "${llvm_cv_link_use_r+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685    ac_ext=c
7686 ac_cpp='$CPP $CPPFLAGS'
7687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691   oldcflags="$CFLAGS"
7692   CFLAGS="$CFLAGS -Wl,-R."
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699
7700 int
7701 main ()
7702 {
7703
7704   ;
7705   return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (ac_try="$ac_link"
7710 case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715   (eval "$ac_link") 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723   { (case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_try") 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; } &&
7732          { ac_try='test -s conftest$ac_exeext'
7733   { (case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_try") 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   llvm_cv_link_use_r=yes
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         llvm_cv_link_use_r=no
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext \
7751       conftest$ac_exeext conftest.$ac_ext
7752   CFLAGS="$oldcflags"
7753   ac_ext=c
7754 ac_cpp='$CPP $CPPFLAGS'
7755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758
7759
7760 fi
7761 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7762 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7763 if test "$llvm_cv_link_use_r" = yes ; then
7764
7765 cat >>confdefs.h <<\_ACEOF
7766 #define HAVE_LINK_R 1
7767 _ACEOF
7768
7769   fi
7770
7771
7772 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7773 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7774 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777    ac_ext=c
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782
7783   oldcflags="$CFLAGS"
7784   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7785   cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791
7792 int
7793 main ()
7794 {
7795
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext conftest$ac_exeext
7801 if { (ac_try="$ac_link"
7802 case "(($ac_try" in
7803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804   *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807   (eval "$ac_link") 2>conftest.er1
7808   ac_status=$?
7809   grep -v '^ *+' conftest.er1 >conftest.err
7810   rm -f conftest.er1
7811   cat conftest.err >&5
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } &&
7814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7815   { (case "(($ac_try" in
7816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817   *) ac_try_echo=$ac_try;;
7818 esac
7819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7820   (eval "$ac_try") 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; } &&
7824          { ac_try='test -s conftest$ac_exeext'
7825   { (case "(($ac_try" in
7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827   *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830   (eval "$ac_try") 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; }; then
7834   llvm_cv_link_use_export_dynamic=yes
7835 else
7836   echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839         llvm_cv_link_use_export_dynamic=no
7840 fi
7841
7842 rm -f core conftest.err conftest.$ac_objext \
7843       conftest$ac_exeext conftest.$ac_ext
7844   CFLAGS="$oldcflags"
7845   ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851
7852 fi
7853 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7854 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7855 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_LINK_EXPORT_DYNAMIC 1
7859 _ACEOF
7860
7861   fi
7862
7863
7864 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7865 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7866 if test "${llvm_cv_link_use_version_script+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869    ac_ext=c
7870 ac_cpp='$CPP $CPPFLAGS'
7871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874
7875   oldcflags="$CFLAGS"
7876
7877   # The following code is from the autoconf manual,
7878   # "11.13: Limitations of Usual Tools".
7879   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7880   # Use mktemp if possible; otherwise fall back on mkdir,
7881   # with $RANDOM to make collisions less likely.
7882   : ${TMPDIR=/tmp}
7883   {
7884     tmp=`
7885       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7886     ` &&
7887     test -n "$tmp" && test -d "$tmp"
7888   } || {
7889     tmp=$TMPDIR/foo$$-$RANDOM
7890     (umask 077 && mkdir "$tmp")
7891   } || exit $?
7892
7893   echo "{" > "$tmp/export.map"
7894   echo "  global: main;" >> "$tmp/export.map"
7895   echo "  local: *;" >> "$tmp/export.map"
7896   echo "};" >> "$tmp/export.map"
7897
7898   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 int
7907 main ()
7908 {
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_link") 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } &&
7928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7929   { (case "(($ac_try" in
7930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931   *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934   (eval "$ac_try") 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); }; } &&
7938          { ac_try='test -s conftest$ac_exeext'
7939   { (case "(($ac_try" in
7940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941   *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944   (eval "$ac_try") 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; }; then
7948   llvm_cv_link_use_version_script=yes
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953         llvm_cv_link_use_version_script=no
7954 fi
7955
7956 rm -f core conftest.err conftest.$ac_objext \
7957       conftest$ac_exeext conftest.$ac_ext
7958   rm "$tmp/export.map"
7959   rmdir "$tmp"
7960   CFLAGS="$oldcflags"
7961   ac_ext=c
7962 ac_cpp='$CPP $CPPFLAGS'
7963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966
7967
7968 fi
7969 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7970 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7971 if test "$llvm_cv_link_use_version_script" = yes ; then
7972   HAVE_LINK_VERSION_SCRIPT=1
7973
7974   fi
7975
7976
7977
7978
7979 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7981 if test "${ac_cv_c_const+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990
7991 int
7992 main ()
7993 {
7994 /* FIXME: Include the comments suggested by Paul. */
7995 #ifndef __cplusplus
7996   /* Ultrix mips cc rejects this.  */
7997   typedef int charset[2];
7998   const charset x;
7999   /* SunOS 4.1.1 cc rejects this.  */
8000   char const *const *ccp;
8001   char **p;
8002   /* NEC SVR4.0.2 mips cc rejects this.  */
8003   struct point {int x, y;};
8004   static struct point const zero = {0,0};
8005   /* AIX XL C 1.02.0.0 rejects this.
8006      It does not let you subtract one const X* pointer from another in
8007      an arm of an if-expression whose if-part is not a constant
8008      expression */
8009   const char *g = "string";
8010   ccp = &g + (g ? g-g : 0);
8011   /* HPUX 7.0 cc rejects these. */
8012   ++ccp;
8013   p = (char**) ccp;
8014   ccp = (char const *const *) p;
8015   { /* SCO 3.2v4 cc rejects this.  */
8016     char *t;
8017     char const *s = 0 ? (char *) 0 : (char const *) 0;
8018
8019     *t++ = 0;
8020     if (s) return 0;
8021   }
8022   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8023     int x[] = {25, 17};
8024     const int *foo = &x[0];
8025     ++foo;
8026   }
8027   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8028     typedef const int *iptr;
8029     iptr p = 0;
8030     ++p;
8031   }
8032   { /* AIX XL C 1.02.0.0 rejects this saying
8033        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8034     struct s { int j; const int *ap[3]; };
8035     struct s *b; b->j = 5;
8036   }
8037   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038     const int foo = 10;
8039     if (!foo) return 0;
8040   }
8041   return !x[0] && !zero.x;
8042 #endif
8043
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_compile") 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest.$ac_objext'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   ac_cv_c_const=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         ac_cv_c_const=no
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 fi
8092 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8093 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8094 if test $ac_cv_c_const = no; then
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define const
8098 _ACEOF
8099
8100 fi
8101
8102
8103
8104
8105
8106
8107 ac_header_dirent=no
8108 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8109   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8110 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8111 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <sys/types.h>
8122 #include <$ac_hdr>
8123
8124 int
8125 main ()
8126 {
8127 if ((DIR *) 0)
8128 return 0;
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_compile") 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148   { (case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153   (eval "$ac_try") 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; } &&
8157          { ac_try='test -s conftest.$ac_objext'
8158   { (case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_try") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   eval "$as_ac_Header=yes"
8168 else
8169   echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172         eval "$as_ac_Header=no"
8173 fi
8174
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177 ac_res=`eval echo '${'$as_ac_Header'}'`
8178                { echo "$as_me:$LINENO: result: $ac_res" >&5
8179 echo "${ECHO_T}$ac_res" >&6; }
8180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8181   cat >>confdefs.h <<_ACEOF
8182 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8183 _ACEOF
8184
8185 ac_header_dirent=$ac_hdr; break
8186 fi
8187
8188 done
8189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8190 if test $ac_header_dirent = dirent.h; then
8191   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8193 if test "${ac_cv_search_opendir+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   ac_func_search_save_LIBS=$LIBS
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203
8204 /* Override any GCC internal prototype to avoid an error.
8205    Use char because int might match the return type of a GCC
8206    builtin and then its argument prototype would still apply.  */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 char opendir ();
8211 int
8212 main ()
8213 {
8214 return opendir ();
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 for ac_lib in '' dir; do
8220   if test -z "$ac_lib"; then
8221     ac_res="none required"
8222   else
8223     ac_res=-l$ac_lib
8224     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8225   fi
8226   rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8241   { (case "(($ac_try" in
8242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243   *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246   (eval "$ac_try") 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256   (eval "$ac_try") 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_cv_search_opendir=$ac_res
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265
8266 fi
8267
8268 rm -f core conftest.err conftest.$ac_objext \
8269       conftest$ac_exeext
8270   if test "${ac_cv_search_opendir+set}" = set; then
8271   break
8272 fi
8273 done
8274 if test "${ac_cv_search_opendir+set}" = set; then
8275   :
8276 else
8277   ac_cv_search_opendir=no
8278 fi
8279 rm conftest.$ac_ext
8280 LIBS=$ac_func_search_save_LIBS
8281 fi
8282 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8283 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8284 ac_res=$ac_cv_search_opendir
8285 if test "$ac_res" != no; then
8286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8287
8288 fi
8289
8290 else
8291   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294   echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296   ac_func_search_save_LIBS=$LIBS
8297 cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303
8304 /* Override any GCC internal prototype to avoid an error.
8305    Use char because int might match the return type of a GCC
8306    builtin and then its argument prototype would still apply.  */
8307 #ifdef __cplusplus
8308 extern "C"
8309 #endif
8310 char opendir ();
8311 int
8312 main ()
8313 {
8314 return opendir ();
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 for ac_lib in '' x; do
8320   if test -z "$ac_lib"; then
8321     ac_res="none required"
8322   else
8323     ac_res=-l$ac_lib
8324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8325   fi
8326   rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_link") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; } &&
8350          { ac_try='test -s conftest$ac_exeext'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   ac_cv_search_opendir=$ac_res
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365
8366 fi
8367
8368 rm -f core conftest.err conftest.$ac_objext \
8369       conftest$ac_exeext
8370   if test "${ac_cv_search_opendir+set}" = set; then
8371   break
8372 fi
8373 done
8374 if test "${ac_cv_search_opendir+set}" = set; then
8375   :
8376 else
8377   ac_cv_search_opendir=no
8378 fi
8379 rm conftest.$ac_ext
8380 LIBS=$ac_func_search_save_LIBS
8381 fi
8382 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8383 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8384 ac_res=$ac_cv_search_opendir
8385 if test "$ac_res" != no; then
8386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8387
8388 fi
8389
8390 fi
8391
8392
8393 for ac_header in dlfcn.h
8394 do
8395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 fi
8402 ac_res=`eval echo '${'$as_ac_Header'}'`
8403                { echo "$as_me:$LINENO: result: $ac_res" >&5
8404 echo "${ECHO_T}$ac_res" >&6; }
8405 else
8406   # Is the header compilable?
8407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415 $ac_includes_default
8416 #include <$ac_header>
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compile") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433   { (case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_header_compiler=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457         ac_header_compiler=no
8458 fi
8459
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462 echo "${ECHO_T}$ac_header_compiler" >&6; }
8463
8464 # Is the header present?
8465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 #include <$ac_header>
8474 _ACEOF
8475 if { (ac_try="$ac_cpp conftest.$ac_ext"
8476 case "(($ac_try" in
8477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478   *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } >/dev/null; then
8488   if test -s conftest.err; then
8489     ac_cpp_err=$ac_c_preproc_warn_flag
8490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491   else
8492     ac_cpp_err=
8493   fi
8494 else
8495   ac_cpp_err=yes
8496 fi
8497 if test -z "$ac_cpp_err"; then
8498   ac_header_preproc=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503   ac_header_preproc=no
8504 fi
8505
8506 rm -f conftest.err conftest.$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508 echo "${ECHO_T}$ac_header_preproc" >&6; }
8509
8510 # So?  What about this header?
8511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512   yes:no: )
8513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517     ac_header_preproc=yes
8518     ;;
8519   no:yes:* )
8520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532     ( cat <<\_ASBOX
8533 ## ------------------------------------ ##
8534 ## Report this to http://llvm.org/bugs/ ##
8535 ## ------------------------------------ ##
8536 _ASBOX
8537      ) | sed "s/^/$as_me: WARNING:     /" >&2
8538     ;;
8539 esac
8540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   eval "$as_ac_Header=\$ac_header_preproc"
8546 fi
8547 ac_res=`eval echo '${'$as_ac_Header'}'`
8548                { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8550
8551 fi
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553   cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8556
8557 fi
8558
8559 done
8560
8561 # Check whether --enable-ltdl-install was given.
8562 if test "${enable_ltdl_install+set}" = set; then
8563   enableval=$enable_ltdl_install;
8564 fi
8565
8566
8567
8568
8569 if test x"${enable_ltdl_install-no}" != xno; then
8570   INSTALL_LTDL_TRUE=
8571   INSTALL_LTDL_FALSE='#'
8572 else
8573   INSTALL_LTDL_TRUE='#'
8574   INSTALL_LTDL_FALSE=
8575 fi
8576
8577
8578
8579 if test x"${enable_ltdl_convenience-no}" != xno; then
8580   CONVENIENCE_LTDL_TRUE=
8581   CONVENIENCE_LTDL_FALSE='#'
8582 else
8583   CONVENIENCE_LTDL_TRUE='#'
8584   CONVENIENCE_LTDL_FALSE=
8585 fi
8586
8587
8588 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8590 library_names_spec=
8591 libname_spec='lib$name'
8592 soname_spec=
8593 shrext_cmds=".so"
8594 postinstall_cmds=
8595 postuninstall_cmds=
8596 finish_cmds=
8597 finish_eval=
8598 shlibpath_var=
8599 shlibpath_overrides_runpath=unknown
8600 version_type=none
8601 dynamic_linker="$host_os ld.so"
8602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8603 if test "$GCC" = yes; then
8604   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8606     # if the path contains ";" then we assume it to be the separator
8607     # otherwise default to the standard path separator (i.e. ":") - it is
8608     # assumed that no part of a normal pathname contains ";" but that should
8609     # okay in the real world where ";" in dirpaths is itself problematic.
8610     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611   else
8612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8613   fi
8614 else
8615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8616 fi
8617 need_lib_prefix=unknown
8618 hardcode_into_libs=no
8619
8620 # when you set need_version to no, make sure it does not cause -set_version
8621 # flags to be left without arguments
8622 need_version=unknown
8623
8624 case $host_os in
8625 aix3*)
8626   version_type=linux
8627   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8628   shlibpath_var=LIBPATH
8629
8630   # AIX 3 has no versioning support, so we append a major version to the name.
8631   soname_spec='${libname}${release}${shared_ext}$major'
8632   ;;
8633
8634 aix4* | aix5*)
8635   version_type=linux
8636   need_lib_prefix=no
8637   need_version=no
8638   hardcode_into_libs=yes
8639   if test "$host_cpu" = ia64; then
8640     # AIX 5 supports IA64
8641     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8642     shlibpath_var=LD_LIBRARY_PATH
8643   else
8644     # With GCC up to 2.95.x, collect2 would create an import file
8645     # for dependence libraries.  The import file would start with
8646     # the line `#! .'.  This would cause the generated library to
8647     # depend on `.', always an invalid library.  This was fixed in
8648     # development snapshots of GCC prior to 3.0.
8649     case $host_os in
8650       aix4 | aix4.[01] | aix4.[01].*)
8651       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8652            echo ' yes '
8653            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8654         :
8655       else
8656         can_build_shared=no
8657       fi
8658       ;;
8659     esac
8660     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8661     # soname into executable. Probably we can add versioning support to
8662     # collect2, so additional links can be useful in future.
8663     if test "$aix_use_runtimelinking" = yes; then
8664       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8665       # instead of lib<name>.a to let people know that these are not
8666       # typical AIX shared libraries.
8667       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668     else
8669       # We preserve .a as extension for shared libraries through AIX4.2
8670       # and later when we are not doing run time linking.
8671       library_names_spec='${libname}${release}.a $libname.a'
8672       soname_spec='${libname}${release}${shared_ext}$major'
8673     fi
8674     shlibpath_var=LIBPATH
8675   fi
8676   ;;
8677
8678 amigaos*)
8679   library_names_spec='$libname.ixlibrary $libname.a'
8680   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8681   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'
8682   ;;
8683
8684 beos*)
8685   library_names_spec='${libname}${shared_ext}'
8686   dynamic_linker="$host_os ld.so"
8687   shlibpath_var=LIBRARY_PATH
8688   ;;
8689
8690 bsdi[45]*)
8691   version_type=linux
8692   need_version=no
8693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694   soname_spec='${libname}${release}${shared_ext}$major'
8695   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8696   shlibpath_var=LD_LIBRARY_PATH
8697   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8698   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8699   # the default ld.so.conf also contains /usr/contrib/lib and
8700   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8701   # libtool to hard-code these into programs
8702   ;;
8703
8704 cygwin* | mingw* | pw32*)
8705   version_type=windows
8706   shrext_cmds=".dll"
8707   need_version=no
8708   need_lib_prefix=no
8709
8710   case $GCC,$host_os in
8711   yes,cygwin* | yes,mingw* | yes,pw32*)
8712     library_names_spec='$libname.dll.a'
8713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8714     postinstall_cmds='base_file=`basename \${file}`~
8715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8716       dldir=$destdir/`dirname \$dlpath`~
8717       test -d \$dldir || mkdir -p \$dldir~
8718       $install_prog $dir/$dlname \$dldir/$dlname~
8719       chmod a+x \$dldir/$dlname'
8720     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8721       dlpath=$dir/\$dldll~
8722        $rm \$dlpath'
8723     shlibpath_overrides_runpath=yes
8724
8725     case $host_os in
8726     cygwin*)
8727       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8728       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8730       ;;
8731     mingw*)
8732       # MinGW DLLs use traditional 'lib' prefix
8733       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8735       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8736         # It is most probably a Windows format PATH printed by
8737         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8738         # path with ; separators, and with drive letters. We can handle the
8739         # drive letters (cygwin fileutils understands them), so leave them,
8740         # especially as we might pass files found there to a mingw objdump,
8741         # which wouldn't understand a cygwinified path. Ahh.
8742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8743       else
8744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8745       fi
8746       ;;
8747     pw32*)
8748       # pw32 DLLs use 'pw' prefix rather than 'lib'
8749       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8750       ;;
8751     esac
8752     ;;
8753
8754   *)
8755     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8756     ;;
8757   esac
8758   dynamic_linker='Win32 ld.exe'
8759   # FIXME: first we should search . and the directory the executable is in
8760   shlibpath_var=PATH
8761   ;;
8762
8763 darwin* | rhapsody*)
8764   dynamic_linker="$host_os dyld"
8765   version_type=darwin
8766   need_lib_prefix=no
8767   need_version=no
8768   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8769   soname_spec='${libname}${release}${major}$shared_ext'
8770   shlibpath_overrides_runpath=yes
8771   shlibpath_var=DYLD_LIBRARY_PATH
8772   shrext_cmds='.dylib'
8773   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8774   if test "$GCC" = yes; then
8775     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"`
8776   else
8777     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8778   fi
8779   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8780   ;;
8781
8782 dgux*)
8783   version_type=linux
8784   need_lib_prefix=no
8785   need_version=no
8786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787   soname_spec='${libname}${release}${shared_ext}$major'
8788   shlibpath_var=LD_LIBRARY_PATH
8789   ;;
8790
8791 freebsd1.*)
8792   dynamic_linker=no
8793   ;;
8794
8795 kfreebsd*-gnu)
8796   version_type=linux
8797   need_lib_prefix=no
8798   need_version=no
8799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800   soname_spec='${libname}${release}${shared_ext}$major'
8801   shlibpath_var=LD_LIBRARY_PATH
8802   shlibpath_overrides_runpath=no
8803   hardcode_into_libs=yes
8804   dynamic_linker='GNU ld.so'
8805   ;;
8806
8807 freebsd* | dragonfly*)
8808   # DragonFly does not have aout.  When/if they implement a new
8809   # versioning mechanism, adjust this.
8810   if test -x /usr/bin/objformat; then
8811     objformat=`/usr/bin/objformat`
8812   else
8813     case $host_os in
8814     freebsd[123].*) objformat=aout ;;
8815     *) objformat=elf ;;
8816     esac
8817   fi
8818   version_type=freebsd-$objformat
8819   case $version_type in
8820     freebsd-elf*)
8821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822       need_version=no
8823       need_lib_prefix=no
8824       ;;
8825     freebsd-*)
8826       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827       need_version=yes
8828       ;;
8829   esac
8830   shlibpath_var=LD_LIBRARY_PATH
8831   case $host_os in
8832   freebsd2.*)
8833     shlibpath_overrides_runpath=yes
8834     ;;
8835   freebsd3.[01]* | freebsdelf3.[01]*)
8836     shlibpath_overrides_runpath=yes
8837     hardcode_into_libs=yes
8838     ;;
8839   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8841     shlibpath_overrides_runpath=no
8842     hardcode_into_libs=yes
8843     ;;
8844   freebsd*) # from 4.6 on
8845     shlibpath_overrides_runpath=yes
8846     hardcode_into_libs=yes
8847     ;;
8848   esac
8849   ;;
8850
8851 gnu*)
8852   version_type=linux
8853   need_lib_prefix=no
8854   need_version=no
8855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856   soname_spec='${libname}${release}${shared_ext}$major'
8857   shlibpath_var=LD_LIBRARY_PATH
8858   hardcode_into_libs=yes
8859   ;;
8860
8861 hpux9* | hpux10* | hpux11*)
8862   # Give a soname corresponding to the major version so that dld.sl refuses to
8863   # link against other versions.
8864   version_type=sunos
8865   need_lib_prefix=no
8866   need_version=no
8867   case $host_cpu in
8868   ia64*)
8869     shrext_cmds='.so'
8870     hardcode_into_libs=yes
8871     dynamic_linker="$host_os dld.so"
8872     shlibpath_var=LD_LIBRARY_PATH
8873     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875     soname_spec='${libname}${release}${shared_ext}$major'
8876     if test "X$HPUX_IA64_MODE" = X32; then
8877       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8878     else
8879       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8880     fi
8881     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882     ;;
8883    hppa*64*)
8884      shrext_cmds='.sl'
8885      hardcode_into_libs=yes
8886      dynamic_linker="$host_os dld.sl"
8887      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890      soname_spec='${libname}${release}${shared_ext}$major'
8891      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893      ;;
8894    *)
8895     shrext_cmds='.sl'
8896     dynamic_linker="$host_os dld.sl"
8897     shlibpath_var=SHLIB_PATH
8898     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900     soname_spec='${libname}${release}${shared_ext}$major'
8901     ;;
8902   esac
8903   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904   postinstall_cmds='chmod 555 $lib'
8905   ;;
8906
8907 interix3*)
8908   version_type=linux
8909   need_lib_prefix=no
8910   need_version=no
8911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912   soname_spec='${libname}${release}${shared_ext}$major'
8913   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914   shlibpath_var=LD_LIBRARY_PATH
8915   shlibpath_overrides_runpath=no
8916   hardcode_into_libs=yes
8917   ;;
8918
8919 irix5* | irix6* | nonstopux*)
8920   case $host_os in
8921     nonstopux*) version_type=nonstopux ;;
8922     *)
8923         if test "$lt_cv_prog_gnu_ld" = yes; then
8924                 version_type=linux
8925         else
8926                 version_type=irix
8927         fi ;;
8928   esac
8929   need_lib_prefix=no
8930   need_version=no
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8933   case $host_os in
8934   irix5* | nonstopux*)
8935     libsuff= shlibsuff=
8936     ;;
8937   *)
8938     case $LD in # libtool.m4 will add one of these switches to LD
8939     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940       libsuff= shlibsuff= libmagic=32-bit;;
8941     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942       libsuff=32 shlibsuff=N32 libmagic=N32;;
8943     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945     *) libsuff= shlibsuff= libmagic=never-match;;
8946     esac
8947     ;;
8948   esac
8949   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950   shlibpath_overrides_runpath=no
8951   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953   hardcode_into_libs=yes
8954   ;;
8955
8956 # No shared lib support for Linux oldld, aout, or coff.
8957 linux*oldld* | linux*aout* | linux*coff*)
8958   dynamic_linker=no
8959   ;;
8960
8961 # This must be Linux ELF.
8962 linux*)
8963   version_type=linux
8964   need_lib_prefix=no
8965   need_version=no
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967   soname_spec='${libname}${release}${shared_ext}$major'
8968   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=no
8971   # This implies no fast_install, which is unacceptable.
8972   # Some rework will be needed to allow for fast_install
8973   # before this can be enabled.
8974   hardcode_into_libs=yes
8975
8976   # Append ld.so.conf contents to the search path
8977   if test -f /etc/ld.so.conf; then
8978     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' ' '`
8979     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8980   fi
8981
8982   # We used to test for /lib/ld.so.1 and disable shared libraries on
8983   # powerpc, because MkLinux only supported shared libraries with the
8984   # GNU dynamic linker.  Since this was broken with cross compilers,
8985   # most powerpc-linux boxes support dynamic linking these days and
8986   # people can always --disable-shared, the test was removed, and we
8987   # assume the GNU/Linux dynamic linker is in use.
8988   dynamic_linker='GNU/Linux ld.so'
8989   ;;
8990
8991 knetbsd*-gnu)
8992   version_type=linux
8993   need_lib_prefix=no
8994   need_version=no
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996   soname_spec='${libname}${release}${shared_ext}$major'
8997   shlibpath_var=LD_LIBRARY_PATH
8998   shlibpath_overrides_runpath=no
8999   hardcode_into_libs=yes
9000   dynamic_linker='GNU ld.so'
9001   ;;
9002
9003 netbsd*)
9004   version_type=sunos
9005   need_lib_prefix=no
9006   need_version=no
9007   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9010     dynamic_linker='NetBSD (a.out) ld.so'
9011   else
9012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9013     soname_spec='${libname}${release}${shared_ext}$major'
9014     dynamic_linker='NetBSD ld.elf_so'
9015   fi
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=yes
9018   hardcode_into_libs=yes
9019   ;;
9020
9021 newsos6)
9022   version_type=linux
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   shlibpath_overrides_runpath=yes
9026   ;;
9027
9028 nto-qnx*)
9029   version_type=linux
9030   need_lib_prefix=no
9031   need_version=no
9032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033   soname_spec='${libname}${release}${shared_ext}$major'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   shlibpath_overrides_runpath=yes
9036   ;;
9037
9038 openbsd*)
9039   version_type=sunos
9040   sys_lib_dlsearch_path_spec="/usr/lib"
9041   need_lib_prefix=no
9042   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9043   case $host_os in
9044     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9045     *)                         need_version=no  ;;
9046   esac
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9051     case $host_os in
9052       openbsd2.[89] | openbsd2.[89].*)
9053         shlibpath_overrides_runpath=no
9054         ;;
9055       *)
9056         shlibpath_overrides_runpath=yes
9057         ;;
9058       esac
9059   else
9060     shlibpath_overrides_runpath=yes
9061   fi
9062   ;;
9063
9064 os2*)
9065   libname_spec='$name'
9066   shrext_cmds=".dll"
9067   need_lib_prefix=no
9068   library_names_spec='$libname${shared_ext} $libname.a'
9069   dynamic_linker='OS/2 ld.exe'
9070   shlibpath_var=LIBPATH
9071   ;;
9072
9073 osf3* | osf4* | osf5*)
9074   version_type=osf
9075   need_lib_prefix=no
9076   need_version=no
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079   shlibpath_var=LD_LIBRARY_PATH
9080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9081   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9082   ;;
9083
9084 solaris*)
9085   version_type=linux
9086   need_lib_prefix=no
9087   need_version=no
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089   soname_spec='${libname}${release}${shared_ext}$major'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   shlibpath_overrides_runpath=yes
9092   hardcode_into_libs=yes
9093   # ldd complains unless libraries are executable
9094   postinstall_cmds='chmod +x $lib'
9095   ;;
9096
9097 sunos4*)
9098   version_type=sunos
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   shlibpath_overrides_runpath=yes
9103   if test "$with_gnu_ld" = yes; then
9104     need_lib_prefix=no
9105   fi
9106   need_version=yes
9107   ;;
9108
9109 sysv4 | sysv4.3*)
9110   version_type=linux
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112   soname_spec='${libname}${release}${shared_ext}$major'
9113   shlibpath_var=LD_LIBRARY_PATH
9114   case $host_vendor in
9115     sni)
9116       shlibpath_overrides_runpath=no
9117       need_lib_prefix=no
9118       export_dynamic_flag_spec='${wl}-Blargedynsym'
9119       runpath_var=LD_RUN_PATH
9120       ;;
9121     siemens)
9122       need_lib_prefix=no
9123       ;;
9124     motorola)
9125       need_lib_prefix=no
9126       need_version=no
9127       shlibpath_overrides_runpath=no
9128       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9129       ;;
9130   esac
9131   ;;
9132
9133 sysv4*MP*)
9134   if test -d /usr/nec ;then
9135     version_type=linux
9136     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9137     soname_spec='$libname${shared_ext}.$major'
9138     shlibpath_var=LD_LIBRARY_PATH
9139   fi
9140   ;;
9141
9142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9143   version_type=freebsd-elf
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   hardcode_into_libs=yes
9150   if test "$with_gnu_ld" = yes; then
9151     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9152     shlibpath_overrides_runpath=no
9153   else
9154     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9155     shlibpath_overrides_runpath=yes
9156     case $host_os in
9157       sco3.2v5*)
9158         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9159         ;;
9160     esac
9161   fi
9162   sys_lib_dlsearch_path_spec='/usr/lib'
9163   ;;
9164
9165 uts4*)
9166   version_type=linux
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   ;;
9171
9172 *)
9173   dynamic_linker=no
9174   ;;
9175 esac
9176 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9177 echo "${ECHO_T}$dynamic_linker" >&6; }
9178 test "$dynamic_linker" = no && can_build_shared=no
9179
9180 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9181 if test "$GCC" = yes; then
9182   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9183 fi
9184
9185
9186 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9187 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9188 if test "${libltdl_cv_shlibext+set}" = set; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191
9192 module=yes
9193 eval libltdl_cv_shlibext=$shrext_cmds
9194
9195 fi
9196 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9197 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9198 if test -n "$libltdl_cv_shlibext"; then
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9202 _ACEOF
9203
9204 fi
9205
9206
9207 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9208 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9209 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   libltdl_cv_shlibpath_var="$shlibpath_var"
9213 fi
9214 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9215 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9216 if test -n "$libltdl_cv_shlibpath_var"; then
9217
9218 cat >>confdefs.h <<_ACEOF
9219 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9220 _ACEOF
9221
9222 fi
9223
9224
9225 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9226 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9227 if test "${libltdl_cv_sys_search_path+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9231 fi
9232 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9233 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9234 if test -n "$libltdl_cv_sys_search_path"; then
9235   sys_search_path=
9236   for dir in $libltdl_cv_sys_search_path; do
9237     if test -z "$sys_search_path"; then
9238       sys_search_path="$dir"
9239     else
9240       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9241     fi
9242   done
9243
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9246 _ACEOF
9247
9248 fi
9249
9250 { echo "$as_me:$LINENO: checking for objdir" >&5
9251 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9252 if test "${libltdl_cv_objdir+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   libltdl_cv_objdir="$objdir"
9256   if test -n "$objdir"; then
9257     :
9258   else
9259     rm -f .libs 2>/dev/null
9260     mkdir .libs 2>/dev/null
9261     if test -d .libs; then
9262       libltdl_cv_objdir=.libs
9263     else
9264       # MS-DOS does not allow filenames that begin with a dot.
9265       libltdl_cv_objdir=_libs
9266     fi
9267   rmdir .libs 2>/dev/null
9268   fi
9269
9270 fi
9271 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9272 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9273
9274 cat >>confdefs.h <<_ACEOF
9275 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9276 _ACEOF
9277
9278
9279
9280
9281
9282
9283 # Check for command to grab the raw symbol name followed by C symbol from nm.
9284 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9285 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9286 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289
9290 # These are sane defaults that work on at least a few old systems.
9291 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9292
9293 # Character class describing NM global symbol codes.
9294 symcode='[BCDEGRST]'
9295
9296 # Regexp to match symbols that can be accessed directly from C.
9297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9298
9299 # Transform an extracted symbol line into a proper C declaration
9300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9301
9302 # Transform an extracted symbol line into symbol name and symbol address
9303 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'"
9304
9305 # Define system-specific variables.
9306 case $host_os in
9307 aix*)
9308   symcode='[BCDT]'
9309   ;;
9310 cygwin* | mingw* | pw32*)
9311   symcode='[ABCDGISTW]'
9312   ;;
9313 hpux*) # Its linker distinguishes data from code symbols
9314   if test "$host_cpu" = ia64; then
9315     symcode='[ABCDEGRST]'
9316   fi
9317   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318   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'"
9319   ;;
9320 linux*)
9321   if test "$host_cpu" = ia64; then
9322     symcode='[ABCDGIRSTW]'
9323     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324     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'"
9325   fi
9326   ;;
9327 irix* | nonstopux*)
9328   symcode='[BCDEGRST]'
9329   ;;
9330 osf*)
9331   symcode='[BCDEGQRST]'
9332   ;;
9333 solaris*)
9334   symcode='[BDRT]'
9335   ;;
9336 sco3.2v5*)
9337   symcode='[DT]'
9338   ;;
9339 sysv4.2uw2*)
9340   symcode='[DT]'
9341   ;;
9342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9343   symcode='[ABDT]'
9344   ;;
9345 sysv4)
9346   symcode='[DFNSTU]'
9347   ;;
9348 esac
9349
9350 # Handle CRLF in mingw tool chain
9351 opt_cr=
9352 case $build_os in
9353 mingw*)
9354   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9355   ;;
9356 esac
9357
9358 # If we're using GNU nm, then use its standard symbol codes.
9359 case `$NM -V 2>&1` in
9360 *GNU* | *'with BFD'*)
9361   symcode='[ABCDGIRSTW]' ;;
9362 esac
9363
9364 # Try without a prefix undercore, then with it.
9365 for ac_symprfx in "" "_"; do
9366
9367   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9368   symxfrm="\\1 $ac_symprfx\\2 \\2"
9369
9370   # Write the raw and C identifiers.
9371   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9372
9373   # Check to see that the pipe works correctly.
9374   pipe_works=no
9375
9376   rm -f conftest*
9377   cat > conftest.$ac_ext <<EOF
9378 #ifdef __cplusplus
9379 extern "C" {
9380 #endif
9381 char nm_test_var;
9382 void nm_test_func(){}
9383 #ifdef __cplusplus
9384 }
9385 #endif
9386 int main(){nm_test_var='a';nm_test_func();return(0);}
9387 EOF
9388
9389   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390   (eval $ac_compile) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; then
9394     # Now try to grab the symbols.
9395     nlist=conftest.nm
9396     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9397   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } && test -s "$nlist"; then
9401       # Try sorting and uniquifying the output.
9402       if sort "$nlist" | uniq > "$nlist"T; then
9403         mv -f "$nlist"T "$nlist"
9404       else
9405         rm -f "$nlist"T
9406       fi
9407
9408       # Make sure that we snagged all the symbols we need.
9409       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9410         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9411           cat <<EOF > conftest.$ac_ext
9412 #ifdef __cplusplus
9413 extern "C" {
9414 #endif
9415
9416 EOF
9417           # Now generate the symbol file.
9418           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9419
9420           cat <<EOF >> conftest.$ac_ext
9421 #if defined (__STDC__) && __STDC__
9422 # define lt_ptr_t void *
9423 #else
9424 # define lt_ptr_t char *
9425 # define const
9426 #endif
9427
9428 /* The mapping between symbol names and symbols. */
9429 const struct {
9430   const char *name;
9431   lt_ptr_t address;
9432 }
9433 lt_preloaded_symbols[] =
9434 {
9435 EOF
9436           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9437           cat <<\EOF >> conftest.$ac_ext
9438   {0, (lt_ptr_t) 0}
9439 };
9440
9441 #ifdef __cplusplus
9442 }
9443 #endif
9444 EOF
9445           # Now try linking the two files.
9446           mv conftest.$ac_objext conftstm.$ac_objext
9447           lt_save_LIBS="$LIBS"
9448           lt_save_CFLAGS="$CFLAGS"
9449           LIBS="conftstm.$ac_objext"
9450           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9451           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452   (eval $ac_link) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9456             pipe_works=yes
9457           fi
9458           LIBS="$lt_save_LIBS"
9459           CFLAGS="$lt_save_CFLAGS"
9460         else
9461           echo "cannot find nm_test_func in $nlist" >&5
9462         fi
9463       else
9464         echo "cannot find nm_test_var in $nlist" >&5
9465       fi
9466     else
9467       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9468     fi
9469   else
9470     echo "$progname: failed program was:" >&5
9471     cat conftest.$ac_ext >&5
9472   fi
9473   rm -f conftest* conftst*
9474
9475   # Do not use the global_symbol_pipe unless it works.
9476   if test "$pipe_works" = yes; then
9477     break
9478   else
9479     lt_cv_sys_global_symbol_pipe=
9480   fi
9481 done
9482
9483 fi
9484
9485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9486   lt_cv_sys_global_symbol_to_cdecl=
9487 fi
9488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9489   { echo "$as_me:$LINENO: result: failed" >&5
9490 echo "${ECHO_T}failed" >&6; }
9491 else
9492   { echo "$as_me:$LINENO: result: ok" >&5
9493 echo "${ECHO_T}ok" >&6; }
9494 fi
9495
9496
9497 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9498 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9499 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9503     libltdl_cv_preloaded_symbols=yes
9504   else
9505     libltdl_cv_preloaded_symbols=no
9506   fi
9507
9508 fi
9509 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9510 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9511 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9512
9513 cat >>confdefs.h <<\_ACEOF
9514 #define HAVE_PRELOADED_SYMBOLS 1
9515 _ACEOF
9516
9517 fi
9518
9519 LIBADD_DL=
9520
9521 ac_ext=c
9522 ac_cpp='$CPP $CPPFLAGS'
9523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9526
9527
9528 { echo "$as_me:$LINENO: checking for shl_load" >&5
9529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9530 if test "${ac_cv_func_shl_load+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9541 #define shl_load innocuous_shl_load
9542
9543 /* System header to define __stub macros and hopefully few prototypes,
9544     which can conflict with char shl_load (); below.
9545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9546     <limits.h> exists even on freestanding compilers.  */
9547
9548 #ifdef __STDC__
9549 # include <limits.h>
9550 #else
9551 # include <assert.h>
9552 #endif
9553
9554 #undef shl_load
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char shl_load ();
9563 /* The GNU C library defines this for functions which it implements
9564     to always fail with ENOSYS.  Some functions are actually named
9565     something starting with __ and the normal name is an alias.  */
9566 #if defined __stub_shl_load || defined __stub___shl_load
9567 choke me
9568 #endif
9569
9570 int
9571 main ()
9572 {
9573 return shl_load ();
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9580 case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585   (eval "$ac_link") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } &&
9592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593   { (case "(($ac_try" in
9594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595   *) ac_try_echo=$ac_try;;
9596 esac
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598   (eval "$ac_try") 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; } &&
9602          { ac_try='test -s conftest$ac_exeext'
9603   { (case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_try") 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   ac_cv_func_shl_load=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617         ac_cv_func_shl_load=no
9618 fi
9619
9620 rm -f core conftest.err conftest.$ac_objext \
9621       conftest$ac_exeext conftest.$ac_ext
9622 fi
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9625 if test $ac_cv_func_shl_load = yes; then
9626
9627 cat >>confdefs.h <<\_ACEOF
9628 #define HAVE_SHL_LOAD 1
9629 _ACEOF
9630
9631 else
9632   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9633 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9634 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-ldld  $LIBS"
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645
9646 /* Override any GCC internal prototype to avoid an error.
9647    Use char because int might match the return type of a GCC
9648    builtin and then its argument prototype would still apply.  */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char shl_load ();
9653 int
9654 main ()
9655 {
9656 return shl_load ();
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9663 case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668   (eval "$ac_link") 2>conftest.er1
9669   ac_status=$?
9670   grep -v '^ *+' conftest.er1 >conftest.err
9671   rm -f conftest.er1
9672   cat conftest.err >&5
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676   { (case "(($ac_try" in
9677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678   *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681   (eval "$ac_try") 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_lib_dld_shl_load=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700         ac_cv_lib_dld_shl_load=no
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9708 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9709 if test $ac_cv_lib_dld_shl_load = yes; then
9710
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_SHL_LOAD 1
9713 _ACEOF
9714
9715         LIBADD_DL="$LIBADD_DL -ldld"
9716 else
9717   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ldl  $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732    Use char because int might match the return type of a GCC
9733    builtin and then its argument prototype would still apply.  */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char dlopen ();
9738 int
9739 main ()
9740 {
9741 return dlopen ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_link") 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761   { (case "(($ac_try" in
9762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763   *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766   (eval "$ac_try") 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_try") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780   ac_cv_lib_dl_dlopen=yes
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785         ac_cv_lib_dl_dlopen=no
9786 fi
9787
9788 rm -f core conftest.err conftest.$ac_objext \
9789       conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9791 fi
9792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794 if test $ac_cv_lib_dl_dlopen = yes; then
9795
9796 cat >>confdefs.h <<\_ACEOF
9797 #define HAVE_LIBDL 1
9798 _ACEOF
9799
9800                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9801 else
9802   cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808 #if HAVE_DLFCN_H
9809 #  include <dlfcn.h>
9810 #endif
9811
9812 int
9813 main ()
9814 {
9815 dlopen(0, 0);
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824   *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827   (eval "$ac_link") 2>conftest.er1
9828   ac_status=$?
9829   grep -v '^ *+' conftest.er1 >conftest.err
9830   rm -f conftest.er1
9831   cat conftest.err >&5
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835   { (case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_try") 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; } &&
9844          { ac_try='test -s conftest$ac_exeext'
9845   { (case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_try") 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_LIBDL 1
9857 _ACEOF
9858  libltdl_cv_func_dlopen="yes"
9859 else
9860   echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9864 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-lsvld  $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878    Use char because int might match the return type of a GCC
9879    builtin and then its argument prototype would still apply.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char dlopen ();
9884 int
9885 main ()
9886 {
9887 return dlopen ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_link") 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907   { (case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_try") 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_lib_svld_dlopen=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_lib_svld_dlopen=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9940 if test $ac_cv_lib_svld_dlopen = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9944 _ACEOF
9945
9946                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9947 else
9948   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9949 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9950 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-ldld  $LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961
9962 /* Override any GCC internal prototype to avoid an error.
9963    Use char because int might match the return type of a GCC
9964    builtin and then its argument prototype would still apply.  */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 char dld_link ();
9969 int
9970 main ()
9971 {
9972 return dld_link ();
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_link") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest$ac_exeext'
10002   { (case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_try") 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011   ac_cv_lib_dld_dld_link=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016         ac_cv_lib_dld_dld_link=no
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext \
10020       conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10022 fi
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10025 if test $ac_cv_lib_dld_dld_link = yes; then
10026
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_DLD 1
10029 _ACEOF
10030
10031                 LIBADD_DL="$LIBADD_DL -ldld"
10032 else
10033   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10034 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10035 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10046 #define _dyld_func_lookup innocuous__dyld_func_lookup
10047
10048 /* System header to define __stub macros and hopefully few prototypes,
10049     which can conflict with char _dyld_func_lookup (); below.
10050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10051     <limits.h> exists even on freestanding compilers.  */
10052
10053 #ifdef __STDC__
10054 # include <limits.h>
10055 #else
10056 # include <assert.h>
10057 #endif
10058
10059 #undef _dyld_func_lookup
10060
10061 /* Override any GCC internal prototype to avoid an error.
10062    Use char because int might match the return type of a GCC
10063    builtin and then its argument prototype would still apply.  */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 char _dyld_func_lookup ();
10068 /* The GNU C library defines this for functions which it implements
10069     to always fail with ENOSYS.  Some functions are actually named
10070     something starting with __ and the normal name is an alias.  */
10071 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10072 choke me
10073 #endif
10074
10075 int
10076 main ()
10077 {
10078 return _dyld_func_lookup ();
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087   *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090   (eval "$ac_link") 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } &&
10097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098   { (case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_try") 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; } &&
10107          { ac_try='test -s conftest$ac_exeext'
10108   { (case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_try") 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; }; then
10117   ac_cv_func__dyld_func_lookup=yes
10118 else
10119   echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122         ac_cv_func__dyld_func_lookup=no
10123 fi
10124
10125 rm -f core conftest.err conftest.$ac_objext \
10126       conftest$ac_exeext conftest.$ac_ext
10127 fi
10128 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10129 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10130 if test $ac_cv_func__dyld_func_lookup = yes; then
10131
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_DYLD 1
10134 _ACEOF
10135
10136 fi
10137
10138
10139 fi
10140
10141
10142 fi
10143
10144
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext \
10148       conftest$ac_exeext conftest.$ac_ext
10149
10150 fi
10151
10152
10153 fi
10154
10155
10156 fi
10157
10158
10159 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10160 then
10161   lt_save_LIBS="$LIBS"
10162   LIBS="$LIBS $LIBADD_DL"
10163
10164 for ac_func in dlerror
10165 do
10166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10180 #define $ac_func innocuous_$ac_func
10181
10182 /* System header to define __stub macros and hopefully few prototypes,
10183     which can conflict with char $ac_func (); below.
10184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185     <limits.h> exists even on freestanding compilers.  */
10186
10187 #ifdef __STDC__
10188 # include <limits.h>
10189 #else
10190 # include <assert.h>
10191 #endif
10192
10193 #undef $ac_func
10194
10195 /* Override any GCC internal prototype to avoid an error.
10196    Use char because int might match the return type of a GCC
10197    builtin and then its argument prototype would still apply.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char $ac_func ();
10202 /* The GNU C library defines this for functions which it implements
10203     to always fail with ENOSYS.  Some functions are actually named
10204     something starting with __ and the normal name is an alias.  */
10205 #if defined __stub_$ac_func || defined __stub___$ac_func
10206 choke me
10207 #endif
10208
10209 int
10210 main ()
10211 {
10212 return $ac_func ();
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_link") 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232   { (case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_try") 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest$ac_exeext'
10242   { (case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_try") 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; }; then
10251   eval "$as_ac_var=yes"
10252 else
10253   echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10255
10256         eval "$as_ac_var=no"
10257 fi
10258
10259 rm -f core conftest.err conftest.$ac_objext \
10260       conftest$ac_exeext conftest.$ac_ext
10261 fi
10262 ac_res=`eval echo '${'$as_ac_var'}'`
10263                { echo "$as_me:$LINENO: result: $ac_res" >&5
10264 echo "${ECHO_T}$ac_res" >&6; }
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10266   cat >>confdefs.h <<_ACEOF
10267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10268 _ACEOF
10269
10270 fi
10271 done
10272
10273   LIBS="$lt_save_LIBS"
10274 fi
10275 ac_ext=c
10276 ac_cpp='$CPP $CPPFLAGS'
10277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280
10281
10282
10283 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10284 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10285 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   ac_cv_sys_symbol_underscore=no
10289   cat > conftest.$ac_ext <<EOF
10290 void nm_test_func(){}
10291 int main(){nm_test_func;return 0;}
10292 EOF
10293   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294   (eval $ac_compile) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; then
10298     # Now try to grab the symbols.
10299     ac_nlist=conftest.nm
10300     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10301   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } && test -s "$ac_nlist"; then
10305       # See whether the symbols have a leading underscore.
10306       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10307         ac_cv_sys_symbol_underscore=yes
10308       else
10309         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10310           :
10311         else
10312           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10313         fi
10314       fi
10315     else
10316       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10317     fi
10318   else
10319     echo "configure: failed program was:" >&5
10320     cat conftest.c >&5
10321   fi
10322   rm -rf conftest*
10323
10324 fi
10325 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10326 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10327
10328
10329 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10330   if test x"$libltdl_cv_func_dlopen" = xyes ||
10331      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10332         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10333 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10334 if test "${libltdl_cv_need_uscore+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   libltdl_cv_need_uscore=unknown
10338           save_LIBS="$LIBS"
10339           LIBS="$LIBS $LIBADD_DL"
10340           if test "$cross_compiling" = yes; then :
10341   libltdl_cv_need_uscore=cross
10342 else
10343   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344   lt_status=$lt_dlunknown
10345   cat > conftest.$ac_ext <<EOF
10346 #line 10346 "configure"
10347 #include "confdefs.h"
10348
10349 #if HAVE_DLFCN_H
10350 #include <dlfcn.h>
10351 #endif
10352
10353 #include <stdio.h>
10354
10355 #ifdef RTLD_GLOBAL
10356 #  define LT_DLGLOBAL           RTLD_GLOBAL
10357 #else
10358 #  ifdef DL_GLOBAL
10359 #    define LT_DLGLOBAL         DL_GLOBAL
10360 #  else
10361 #    define LT_DLGLOBAL         0
10362 #  endif
10363 #endif
10364
10365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366    find out it does not work in some platform. */
10367 #ifndef LT_DLLAZY_OR_NOW
10368 #  ifdef RTLD_LAZY
10369 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10370 #  else
10371 #    ifdef DL_LAZY
10372 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10373 #    else
10374 #      ifdef RTLD_NOW
10375 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10376 #      else
10377 #        ifdef DL_NOW
10378 #          define LT_DLLAZY_OR_NOW      DL_NOW
10379 #        else
10380 #          define LT_DLLAZY_OR_NOW      0
10381 #        endif
10382 #      endif
10383 #    endif
10384 #  endif
10385 #endif
10386
10387 #ifdef __cplusplus
10388 extern "C" void exit (int);
10389 #endif
10390
10391 void fnord() { int i=42;}
10392 int main ()
10393 {
10394   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395   int status = $lt_dlunknown;
10396
10397   if (self)
10398     {
10399       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10400       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401       /* dlclose (self); */
10402     }
10403   else
10404     puts (dlerror ());
10405
10406     exit (status);
10407 }
10408 EOF
10409   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410   (eval $ac_link) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10414     (./conftest; exit; ) >&5 2>/dev/null
10415     lt_status=$?
10416     case x$lt_status in
10417       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10418       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10419       x$lt_dlunknown|x*)  ;;
10420     esac
10421   else :
10422     # compilation failed
10423
10424   fi
10425 fi
10426 rm -fr conftest*
10427
10428           LIBS="$save_LIBS"
10429
10430 fi
10431 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10432 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10433   fi
10434 fi
10435
10436 if test x"$libltdl_cv_need_uscore" = xyes; then
10437
10438 cat >>confdefs.h <<\_ACEOF
10439 #define NEED_USCORE 1
10440 _ACEOF
10441
10442 fi
10443
10444
10445 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10446 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10447 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   # PORTME does your system automatically load deplibs for dlopen?
10451   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10452   # For now, we just catch OSes we know something about -- in the
10453   # future, we'll try test this programmatically.
10454   libltdl_cv_sys_dlopen_deplibs=unknown
10455   case "$host_os" in
10456   aix3*|aix4.1.*|aix4.2.*)
10457     # Unknown whether this is true for these versions of AIX, but
10458     # we want this `case' here to explicitly catch those versions.
10459     libltdl_cv_sys_dlopen_deplibs=unknown
10460     ;;
10461   aix[45]*)
10462     libltdl_cv_sys_dlopen_deplibs=yes
10463     ;;
10464   darwin*)
10465     # Assuming the user has installed a libdl from somewhere, this is true
10466     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10467     libltdl_cv_sys_dlopen_deplibs=yes
10468     ;;
10469   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10470     # GNU and its variants, using gnu ld.so (Glibc)
10471     libltdl_cv_sys_dlopen_deplibs=yes
10472     ;;
10473   hpux10*|hpux11*)
10474     libltdl_cv_sys_dlopen_deplibs=yes
10475     ;;
10476   interix*)
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   irix[12345]*|irix6.[01]*)
10480     # Catch all versions of IRIX before 6.2, and indicate that we don't
10481     # know how it worked for any of those versions.
10482     libltdl_cv_sys_dlopen_deplibs=unknown
10483     ;;
10484   irix*)
10485     # The case above catches anything before 6.2, and it's known that
10486     # at 6.2 and later dlopen does load deplibs.
10487     libltdl_cv_sys_dlopen_deplibs=yes
10488     ;;
10489   netbsd*)
10490     libltdl_cv_sys_dlopen_deplibs=yes
10491     ;;
10492   openbsd*)
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   osf[1234]*)
10496     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10497     # it did *not* use an RPATH in a shared library to find objects the
10498     # library depends on, so we explicitly say `no'.
10499     libltdl_cv_sys_dlopen_deplibs=no
10500     ;;
10501   osf5.0|osf5.0a|osf5.1)
10502     # dlopen *does* load deplibs and with the right loader patch applied
10503     # it even uses RPATH in a shared library to search for shared objects
10504     # that the library depends on, but there's no easy way to know if that
10505     # patch is installed.  Since this is the case, all we can really
10506     # say is unknown -- it depends on the patch being installed.  If
10507     # it is, this changes to `yes'.  Without it, it would be `no'.
10508     libltdl_cv_sys_dlopen_deplibs=unknown
10509     ;;
10510   osf*)
10511     # the two cases above should catch all versions of osf <= 5.1.  Read
10512     # the comments above for what we know about them.
10513     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10514     # is used to find them so we can finally say `yes'.
10515     libltdl_cv_sys_dlopen_deplibs=yes
10516     ;;
10517   solaris*)
10518     libltdl_cv_sys_dlopen_deplibs=yes
10519     ;;
10520   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10521     libltdl_cv_sys_dlopen_deplibs=yes
10522     ;;
10523   esac
10524
10525 fi
10526 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10527 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10528 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10529
10530 cat >>confdefs.h <<\_ACEOF
10531 #define LTDL_DLOPEN_DEPLIBS 1
10532 _ACEOF
10533
10534 fi
10535
10536
10537 for ac_header in argz.h
10538 do
10539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 fi
10546 ac_res=`eval echo '${'$as_ac_Header'}'`
10547                { echo "$as_me:$LINENO: result: $ac_res" >&5
10548 echo "${ECHO_T}$ac_res" >&6; }
10549 else
10550   # Is the header compilable?
10551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 $ac_includes_default
10560 #include <$ac_header>
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566   *) ac_try_echo=$ac_try;;
10567 esac
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569   (eval "$ac_compile") 2>conftest.er1
10570   ac_status=$?
10571   grep -v '^ *+' conftest.er1 >conftest.err
10572   rm -f conftest.er1
10573   cat conftest.err >&5
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); } &&
10576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10577   { (case "(($ac_try" in
10578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579   *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582   (eval "$ac_try") 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; } &&
10586          { ac_try='test -s conftest.$ac_objext'
10587   { (case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_try") 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; }; then
10596   ac_header_compiler=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601         ac_header_compiler=no
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10607
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617 #include <$ac_header>
10618 _ACEOF
10619 if { (ac_try="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } >/dev/null; then
10632   if test -s conftest.err; then
10633     ac_cpp_err=$ac_c_preproc_warn_flag
10634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10635   else
10636     ac_cpp_err=
10637   fi
10638 else
10639   ac_cpp_err=yes
10640 fi
10641 if test -z "$ac_cpp_err"; then
10642   ac_header_preproc=yes
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647   ac_header_preproc=no
10648 fi
10649
10650 rm -f conftest.err conftest.$ac_ext
10651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10652 echo "${ECHO_T}$ac_header_preproc" >&6; }
10653
10654 # So?  What about this header?
10655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10656   yes:no: )
10657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10661     ac_header_preproc=yes
10662     ;;
10663   no:yes:* )
10664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10676     ( cat <<\_ASBOX
10677 ## ------------------------------------ ##
10678 ## Report this to http://llvm.org/bugs/ ##
10679 ## ------------------------------------ ##
10680 _ASBOX
10681      ) | sed "s/^/$as_me: WARNING:     /" >&2
10682     ;;
10683 esac
10684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   eval "$as_ac_Header=\$ac_header_preproc"
10690 fi
10691 ac_res=`eval echo '${'$as_ac_Header'}'`
10692                { echo "$as_me:$LINENO: result: $ac_res" >&5
10693 echo "${ECHO_T}$ac_res" >&6; }
10694
10695 fi
10696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10697   cat >>confdefs.h <<_ACEOF
10698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10699 _ACEOF
10700
10701 fi
10702
10703 done
10704
10705
10706 { echo "$as_me:$LINENO: checking for error_t" >&5
10707 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10708 if test "${ac_cv_type_error_t+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717 #if HAVE_ARGZ_H
10718 #  include <argz.h>
10719 #endif
10720
10721 typedef error_t ac__type_new_;
10722 int
10723 main ()
10724 {
10725 if ((ac__type_new_ *) 0)
10726   return 0;
10727 if (sizeof (ac__type_new_))
10728   return 0;
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_compile") 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748   { (case "(($ac_try" in
10749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750   *) ac_try_echo=$ac_try;;
10751 esac
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753   (eval "$ac_try") 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; } &&
10757          { ac_try='test -s conftest.$ac_objext'
10758   { (case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_try") 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   ac_cv_type_error_t=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772         ac_cv_type_error_t=no
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 fi
10777 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10778 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10779 if test $ac_cv_type_error_t = yes; then
10780
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_ERROR_T 1
10783 _ACEOF
10784
10785
10786 else
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define error_t int
10790 _ACEOF
10791
10792 fi
10793
10794
10795
10796
10797
10798
10799
10800 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10801 do
10802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10816 #define $ac_func innocuous_$ac_func
10817
10818 /* System header to define __stub macros and hopefully few prototypes,
10819     which can conflict with char $ac_func (); below.
10820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821     <limits.h> exists even on freestanding compilers.  */
10822
10823 #ifdef __STDC__
10824 # include <limits.h>
10825 #else
10826 # include <assert.h>
10827 #endif
10828
10829 #undef $ac_func
10830
10831 /* Override any GCC internal prototype to avoid an error.
10832    Use char because int might match the return type of a GCC
10833    builtin and then its argument prototype would still apply.  */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char $ac_func ();
10838 /* The GNU C library defines this for functions which it implements
10839     to always fail with ENOSYS.  Some functions are actually named
10840     something starting with __ and the normal name is an alias.  */
10841 #if defined __stub_$ac_func || defined __stub___$ac_func
10842 choke me
10843 #endif
10844
10845 int
10846 main ()
10847 {
10848 return $ac_func ();
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_link") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest$ac_exeext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   eval "$as_ac_var=yes"
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         eval "$as_ac_var=no"
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext \
10896       conftest$ac_exeext conftest.$ac_ext
10897 fi
10898 ac_res=`eval echo '${'$as_ac_var'}'`
10899                { echo "$as_me:$LINENO: result: $ac_res" >&5
10900 echo "${ECHO_T}$ac_res" >&6; }
10901 if test `eval echo '${'$as_ac_var'}'` = yes; then
10902   cat >>confdefs.h <<_ACEOF
10903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10904 _ACEOF
10905
10906 fi
10907 done
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10937                   stdio.h unistd.h
10938 do
10939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 fi
10946 ac_res=`eval echo '${'$as_ac_Header'}'`
10947                { echo "$as_me:$LINENO: result: $ac_res" >&5
10948 echo "${ECHO_T}$ac_res" >&6; }
10949 else
10950   # Is the header compilable?
10951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 $ac_includes_default
10960 #include <$ac_header>
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969   (eval "$ac_compile") 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977   { (case "(($ac_try" in
10978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979   *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982   (eval "$ac_try") 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; } &&
10986          { ac_try='test -s conftest.$ac_objext'
10987   { (case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_try") 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; }; then
10996   ac_header_compiler=yes
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001         ac_header_compiler=no
11002 fi
11003
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006 echo "${ECHO_T}$ac_header_compiler" >&6; }
11007
11008 # Is the header present?
11009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <$ac_header>
11018 _ACEOF
11019 if { (ac_try="$ac_cpp conftest.$ac_ext"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } >/dev/null; then
11032   if test -s conftest.err; then
11033     ac_cpp_err=$ac_c_preproc_warn_flag
11034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11035   else
11036     ac_cpp_err=
11037   fi
11038 else
11039   ac_cpp_err=yes
11040 fi
11041 if test -z "$ac_cpp_err"; then
11042   ac_header_preproc=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047   ac_header_preproc=no
11048 fi
11049
11050 rm -f conftest.err conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6; }
11053
11054 # So?  What about this header?
11055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11056   yes:no: )
11057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061     ac_header_preproc=yes
11062     ;;
11063   no:yes:* )
11064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11076     ( cat <<\_ASBOX
11077 ## ------------------------------------ ##
11078 ## Report this to http://llvm.org/bugs/ ##
11079 ## ------------------------------------ ##
11080 _ASBOX
11081      ) | sed "s/^/$as_me: WARNING:     /" >&2
11082     ;;
11083 esac
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   eval "$as_ac_Header=\$ac_header_preproc"
11090 fi
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092                { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094
11095 fi
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097   cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099 _ACEOF
11100
11101 fi
11102
11103 done
11104
11105
11106
11107
11108
11109 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11110 do
11111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 fi
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119                { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 else
11122   # Is the header compilable?
11123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 $ac_includes_default
11132 #include <$ac_header>
11133 _ACEOF
11134 rm -f conftest.$ac_objext
11135 if { (ac_try="$ac_compile"
11136 case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_compile") 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149   { (case "(($ac_try" in
11150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151   *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154   (eval "$ac_try") 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; } &&
11158          { ac_try='test -s conftest.$ac_objext'
11159   { (case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_try") 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; }; then
11168   ac_header_compiler=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173         ac_header_compiler=no
11174 fi
11175
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178 echo "${ECHO_T}$ac_header_compiler" >&6; }
11179
11180 # Is the header present?
11181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 #include <$ac_header>
11190 _ACEOF
11191 if { (ac_try="$ac_cpp conftest.$ac_ext"
11192 case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } >/dev/null; then
11204   if test -s conftest.err; then
11205     ac_cpp_err=$ac_c_preproc_warn_flag
11206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11207   else
11208     ac_cpp_err=
11209   fi
11210 else
11211   ac_cpp_err=yes
11212 fi
11213 if test -z "$ac_cpp_err"; then
11214   ac_header_preproc=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219   ac_header_preproc=no
11220 fi
11221
11222 rm -f conftest.err conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 echo "${ECHO_T}$ac_header_preproc" >&6; }
11225
11226 # So?  What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228   yes:no: )
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233     ac_header_preproc=yes
11234     ;;
11235   no:yes:* )
11236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248     ( cat <<\_ASBOX
11249 ## ------------------------------------ ##
11250 ## Report this to http://llvm.org/bugs/ ##
11251 ## ------------------------------------ ##
11252 _ASBOX
11253      ) | sed "s/^/$as_me: WARNING:     /" >&2
11254     ;;
11255 esac
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   eval "$as_ac_Header=\$ac_header_preproc"
11262 fi
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264                { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11266
11267 fi
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269   cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11271 _ACEOF
11272
11273 fi
11274
11275 done
11276
11277
11278
11279 for ac_header in string.h strings.h
11280 do
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 fi
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289                { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 else
11292   # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 $ac_includes_default
11302 #include <$ac_header>
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_compile") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319   { (case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_try") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest.$ac_objext'
11329   { (case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_try") 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; }; then
11338   ac_header_compiler=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343         ac_header_compiler=no
11344 fi
11345
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11349
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <$ac_header>
11360 _ACEOF
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368   ac_status=$?
11369   grep -v '^ *+' conftest.er1 >conftest.err
11370   rm -f conftest.er1
11371   cat conftest.err >&5
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } >/dev/null; then
11374   if test -s conftest.err; then
11375     ac_cpp_err=$ac_c_preproc_warn_flag
11376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377   else
11378     ac_cpp_err=
11379   fi
11380 else
11381   ac_cpp_err=yes
11382 fi
11383 if test -z "$ac_cpp_err"; then
11384   ac_header_preproc=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389   ac_header_preproc=no
11390 fi
11391
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418     ( cat <<\_ASBOX
11419 ## ------------------------------------ ##
11420 ## Report this to http://llvm.org/bugs/ ##
11421 ## ------------------------------------ ##
11422 _ASBOX
11423      ) | sed "s/^/$as_me: WARNING:     /" >&2
11424     ;;
11425 esac
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434                { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436
11437 fi
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439   cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 _ACEOF
11442  break
11443 fi
11444
11445 done
11446
11447
11448
11449
11450 for ac_func in strchr index
11451 do
11452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11466 #define $ac_func innocuous_$ac_func
11467
11468 /* System header to define __stub macros and hopefully few prototypes,
11469     which can conflict with char $ac_func (); below.
11470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471     <limits.h> exists even on freestanding compilers.  */
11472
11473 #ifdef __STDC__
11474 # include <limits.h>
11475 #else
11476 # include <assert.h>
11477 #endif
11478
11479 #undef $ac_func
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char $ac_func ();
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined __stub_$ac_func || defined __stub___$ac_func
11492 choke me
11493 #endif
11494
11495 int
11496 main ()
11497 {
11498 return $ac_func ();
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (ac_try="$ac_link"
11505 case "(($ac_try" in
11506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507   *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510   (eval "$ac_link") 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518   { (case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_try") 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest$ac_exeext'
11528   { (case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_try") 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; }; then
11537   eval "$as_ac_var=yes"
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542         eval "$as_ac_var=no"
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext \
11546       conftest$ac_exeext conftest.$ac_ext
11547 fi
11548 ac_res=`eval echo '${'$as_ac_var'}'`
11549                { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 if test `eval echo '${'$as_ac_var'}'` = yes; then
11552   cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554 _ACEOF
11555  break
11556 fi
11557 done
11558
11559
11560
11561 for ac_func in strrchr rindex
11562 do
11563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11577 #define $ac_func innocuous_$ac_func
11578
11579 /* System header to define __stub macros and hopefully few prototypes,
11580     which can conflict with char $ac_func (); below.
11581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582     <limits.h> exists even on freestanding compilers.  */
11583
11584 #ifdef __STDC__
11585 # include <limits.h>
11586 #else
11587 # include <assert.h>
11588 #endif
11589
11590 #undef $ac_func
11591
11592 /* Override any GCC internal prototype to avoid an error.
11593    Use char because int might match the return type of a GCC
11594    builtin and then its argument prototype would still apply.  */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char $ac_func ();
11599 /* The GNU C library defines this for functions which it implements
11600     to always fail with ENOSYS.  Some functions are actually named
11601     something starting with __ and the normal name is an alias.  */
11602 #if defined __stub_$ac_func || defined __stub___$ac_func
11603 choke me
11604 #endif
11605
11606 int
11607 main ()
11608 {
11609 return $ac_func ();
11610   ;
11611   return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_link") 2>conftest.er1
11622   ac_status=$?
11623   grep -v '^ *+' conftest.er1 >conftest.err
11624   rm -f conftest.er1
11625   cat conftest.err >&5
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); } &&
11628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629   { (case "(($ac_try" in
11630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631   *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634   (eval "$ac_try") 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_try") 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   eval "$as_ac_var=yes"
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653         eval "$as_ac_var=no"
11654 fi
11655
11656 rm -f core conftest.err conftest.$ac_objext \
11657       conftest$ac_exeext conftest.$ac_ext
11658 fi
11659 ac_res=`eval echo '${'$as_ac_var'}'`
11660                { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11662 if test `eval echo '${'$as_ac_var'}'` = yes; then
11663   cat >>confdefs.h <<_ACEOF
11664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665 _ACEOF
11666  break
11667 fi
11668 done
11669
11670
11671
11672 for ac_func in memcpy bcopy
11673 do
11674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11688 #define $ac_func innocuous_$ac_func
11689
11690 /* System header to define __stub macros and hopefully few prototypes,
11691     which can conflict with char $ac_func (); below.
11692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693     <limits.h> exists even on freestanding compilers.  */
11694
11695 #ifdef __STDC__
11696 # include <limits.h>
11697 #else
11698 # include <assert.h>
11699 #endif
11700
11701 #undef $ac_func
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704    Use char because int might match the return type of a GCC
11705    builtin and then its argument prototype would still apply.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char $ac_func ();
11710 /* The GNU C library defines this for functions which it implements
11711     to always fail with ENOSYS.  Some functions are actually named
11712     something starting with __ and the normal name is an alias.  */
11713 #if defined __stub_$ac_func || defined __stub___$ac_func
11714 choke me
11715 #endif
11716
11717 int
11718 main ()
11719 {
11720 return $ac_func ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (ac_try="$ac_link"
11727 case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_link") 2>conftest.er1
11733   ac_status=$?
11734   grep -v '^ *+' conftest.er1 >conftest.err
11735   rm -f conftest.er1
11736   cat conftest.err >&5
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740   { (case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_try") 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; } &&
11749          { ac_try='test -s conftest$ac_exeext'
11750   { (case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_try") 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; }; then
11759   eval "$as_ac_var=yes"
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764         eval "$as_ac_var=no"
11765 fi
11766
11767 rm -f core conftest.err conftest.$ac_objext \
11768       conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 ac_res=`eval echo '${'$as_ac_var'}'`
11771                { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774   cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11776 _ACEOF
11777  break
11778 fi
11779 done
11780
11781
11782
11783 for ac_func in memmove strcmp
11784 do
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11799 #define $ac_func innocuous_$ac_func
11800
11801 /* System header to define __stub macros and hopefully few prototypes,
11802     which can conflict with char $ac_func (); below.
11803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804     <limits.h> exists even on freestanding compilers.  */
11805
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11811
11812 #undef $ac_func
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 choke me
11826 #endif
11827
11828 int
11829 main ()
11830 {
11831 return $ac_func ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_link") 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; } &&
11860          { ac_try='test -s conftest$ac_exeext'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   eval "$as_ac_var=yes"
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875         eval "$as_ac_var=no"
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext \
11879       conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882                { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885   cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 fi
11890 done
11891
11892
11893
11894
11895 for ac_func in closedir opendir readdir
11896 do
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h.  */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h.  */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11911 #define $ac_func innocuous_$ac_func
11912
11913 /* System header to define __stub macros and hopefully few prototypes,
11914     which can conflict with char $ac_func (); below.
11915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916     <limits.h> exists even on freestanding compilers.  */
11917
11918 #ifdef __STDC__
11919 # include <limits.h>
11920 #else
11921 # include <assert.h>
11922 #endif
11923
11924 #undef $ac_func
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927    Use char because int might match the return type of a GCC
11928    builtin and then its argument prototype would still apply.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char $ac_func ();
11933 /* The GNU C library defines this for functions which it implements
11934     to always fail with ENOSYS.  Some functions are actually named
11935     something starting with __ and the normal name is an alias.  */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 choke me
11938 #endif
11939
11940 int
11941 main ()
11942 {
11943 return $ac_func ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_link") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963   { (case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_try") 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; } &&
11972          { ac_try='test -s conftest$ac_exeext'
11973   { (case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_try") 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; }; then
11982   eval "$as_ac_var=yes"
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         eval "$as_ac_var=no"
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext \
11991       conftest$ac_exeext conftest.$ac_ext
11992 fi
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994                { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997   cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001 fi
12002 done
12003
12004
12005
12006 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12007 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12008
12009 ICC=no
12010 IXX=no
12011 case $CC in
12012   icc*|icpc*)
12013     ICC=yes
12014     IXX=yes
12015     ;;
12016    *)
12017     ;;
12018 esac
12019
12020 if test "$GCC" != "yes" && test "$ICC" != "yes"
12021 then
12022   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12023 echo "$as_me: error: gcc|icc required but not found" >&2;}
12024    { (exit 1); exit 1; }; }
12025 fi
12026
12027 if test "$GXX" != "yes" && test "$IXX" != "yes"
12028 then
12029   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12030 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12031    { (exit 1); exit 1; }; }
12032 fi
12033
12034 if test "$GCC" = "yes"
12035 then
12036   cat >conftest.$ac_ext <<_ACEOF
12037 #if !defined(__GNUC__) || __GNUC__ < 3
12038 #error Unsupported GCC version
12039 #endif
12040
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_compile") 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057   { (case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_try") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; } &&
12066          { ac_try='test -s conftest.$ac_objext'
12067   { (case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   :
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12082 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12083    { (exit 1); exit 1; }; }
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 fi
12088
12089 if test -z "$llvm_cv_gnu_make_command"
12090 then
12091   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12092 echo "$as_me: error: GNU Make required but not found" >&2;}
12093    { (exit 1); exit 1; }; }
12094 fi
12095
12096 { echo "$as_me:$LINENO: result: ok" >&5
12097 echo "${ECHO_T}ok" >&6; }
12098
12099 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12100 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12101 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12102
12103 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12104
12105 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12106
12107 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12108 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12109
12110
12111
12112 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12113 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_m_sin+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-lm  $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125
12126 /* Override any GCC internal prototype to avoid an error.
12127    Use char because int might match the return type of a GCC
12128    builtin and then its argument prototype would still apply.  */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char sin ();
12133 int
12134 main ()
12135 {
12136 return sin ();
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_link") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest$ac_exeext'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_cv_lib_m_sin=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_cv_lib_m_sin=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext \
12184       conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12186 fi
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12188 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12189 if test $ac_cv_lib_m_sin = yes; then
12190   cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBM 1
12192 _ACEOF
12193
12194   LIBS="-lm $LIBS"
12195
12196 fi
12197
12198 if test "$llvm_cv_os_type" = "MingW" ; then
12199
12200 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12201 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12202 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-limagehlp  $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213
12214
12215 int
12216 main ()
12217 {
12218 return main ();
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_link") 2>conftest.er1
12231   ac_status=$?
12232   grep -v '^ *+' conftest.er1 >conftest.err
12233   rm -f conftest.er1
12234   cat conftest.err >&5
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); } &&
12237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238   { (case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243   (eval "$ac_try") 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; } &&
12247          { ac_try='test -s conftest$ac_exeext'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257   ac_cv_lib_imagehlp_main=yes
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262         ac_cv_lib_imagehlp_main=no
12263 fi
12264
12265 rm -f core conftest.err conftest.$ac_objext \
12266       conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12268 fi
12269 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12270 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12271 if test $ac_cv_lib_imagehlp_main = yes; then
12272   cat >>confdefs.h <<_ACEOF
12273 #define HAVE_LIBIMAGEHLP 1
12274 _ACEOF
12275
12276   LIBS="-limagehlp $LIBS"
12277
12278 fi
12279
12280
12281 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12282 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_psapi_main+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lpsapi  $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294
12295
12296 int
12297 main ()
12298 {
12299 return main ();
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (ac_try="$ac_link"
12306 case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_link") 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319   { (case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324   (eval "$ac_try") 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; } &&
12328          { ac_try='test -s conftest$ac_exeext'
12329   { (case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_try") 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338   ac_cv_lib_psapi_main=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343         ac_cv_lib_psapi_main=no
12344 fi
12345
12346 rm -f core conftest.err conftest.$ac_objext \
12347       conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12351 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12352 if test $ac_cv_lib_psapi_main = yes; then
12353   cat >>confdefs.h <<_ACEOF
12354 #define HAVE_LIBPSAPI 1
12355 _ACEOF
12356
12357   LIBS="-lpsapi $LIBS"
12358
12359 fi
12360
12361 fi
12362
12363 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12364 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12365 if test "${ac_cv_search_dlopen+set}" = set; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   ac_func_search_save_LIBS=$LIBS
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 /* Override any GCC internal prototype to avoid an error.
12377    Use char because int might match the return type of a GCC
12378    builtin and then its argument prototype would still apply.  */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char dlopen ();
12383 int
12384 main ()
12385 {
12386 return dlopen ();
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 for ac_lib in '' dl; do
12392   if test -z "$ac_lib"; then
12393     ac_res="none required"
12394   else
12395     ac_res=-l$ac_lib
12396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12397   fi
12398   rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_link") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413   { (case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_try") 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; } &&
12422          { ac_try='test -s conftest$ac_exeext'
12423   { (case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_try") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   ac_cv_search_dlopen=$ac_res
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext \
12441       conftest$ac_exeext
12442   if test "${ac_cv_search_dlopen+set}" = set; then
12443   break
12444 fi
12445 done
12446 if test "${ac_cv_search_dlopen+set}" = set; then
12447   :
12448 else
12449   ac_cv_search_dlopen=no
12450 fi
12451 rm conftest.$ac_ext
12452 LIBS=$ac_func_search_save_LIBS
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12456 ac_res=$ac_cv_search_dlopen
12457 if test "$ac_res" != no; then
12458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_DLOPEN 1
12462 _ACEOF
12463
12464 else
12465   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12467 fi
12468
12469
12470 if test "$llvm_cv_enable_libffi" = "yes" ; then
12471   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12472 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_ffi_call+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char ffi_call ();
12491 int
12492 main ()
12493 {
12494 return ffi_call ();
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 for ac_lib in '' ffi; do
12500   if test -z "$ac_lib"; then
12501     ac_res="none required"
12502   else
12503     ac_res=-l$ac_lib
12504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12505   fi
12506   rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_link") 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521   { (case "(($ac_try" in
12522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523   *) ac_try_echo=$ac_try;;
12524 esac
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526   (eval "$ac_try") 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   ac_cv_search_ffi_call=$ac_res
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
12546 fi
12547
12548 rm -f core conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext
12550   if test "${ac_cv_search_ffi_call+set}" = set; then
12551   break
12552 fi
12553 done
12554 if test "${ac_cv_search_ffi_call+set}" = set; then
12555   :
12556 else
12557   ac_cv_search_ffi_call=no
12558 fi
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12561 fi
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12563 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12564 ac_res=$ac_cv_search_ffi_call
12565 if test "$ac_res" != no; then
12566   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12567
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_FFI_CALL 1
12570 _ACEOF
12571
12572 else
12573   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12574 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12575    { (exit 1); exit 1; }; }
12576 fi
12577
12578 fi
12579
12580 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12581 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12582 if test "${ac_cv_search_mallinfo+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_func_search_save_LIBS=$LIBS
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h.  */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h.  */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594    Use char because int might match the return type of a GCC
12595    builtin and then its argument prototype would still apply.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char mallinfo ();
12600 int
12601 main ()
12602 {
12603 return mallinfo ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 for ac_lib in '' malloc; do
12609   if test -z "$ac_lib"; then
12610     ac_res="none required"
12611   else
12612     ac_res=-l$ac_lib
12613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12614   fi
12615   rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622   (eval "$ac_link") 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630   { (case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_try") 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } &&
12639          { ac_try='test -s conftest$ac_exeext'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; }; then
12649   ac_cv_search_mallinfo=$ac_res
12650 else
12651   echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654
12655 fi
12656
12657 rm -f core conftest.err conftest.$ac_objext \
12658       conftest$ac_exeext
12659   if test "${ac_cv_search_mallinfo+set}" = set; then
12660   break
12661 fi
12662 done
12663 if test "${ac_cv_search_mallinfo+set}" = set; then
12664   :
12665 else
12666   ac_cv_search_mallinfo=no
12667 fi
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12670 fi
12671 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12672 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12673 ac_res=$ac_cv_search_mallinfo
12674 if test "$ac_res" != no; then
12675   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12676
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_MALLINFO 1
12679 _ACEOF
12680
12681 fi
12682
12683
12684 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12685
12686 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12687 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12688 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lpthread  $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701    Use char because int might match the return type of a GCC
12702    builtin and then its argument prototype would still apply.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char pthread_mutex_init ();
12707 int
12708 main ()
12709 {
12710 return pthread_mutex_init ();
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_link") 2>conftest.er1
12723   ac_status=$?
12724   grep -v '^ *+' conftest.er1 >conftest.err
12725   rm -f conftest.er1
12726   cat conftest.err >&5
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } &&
12729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730   { (case "(($ac_try" in
12731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732   *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735   (eval "$ac_try") 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); }; } &&
12739          { ac_try='test -s conftest$ac_exeext'
12740   { (case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_try") 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; }; then
12749   ac_cv_lib_pthread_pthread_mutex_init=yes
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754         ac_cv_lib_pthread_pthread_mutex_init=no
12755 fi
12756
12757 rm -f core conftest.err conftest.$ac_objext \
12758       conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12760 fi
12761 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12762 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12763 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12764   cat >>confdefs.h <<_ACEOF
12765 #define HAVE_LIBPTHREAD 1
12766 _ACEOF
12767
12768   LIBS="-lpthread $LIBS"
12769
12770 fi
12771
12772   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12773 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12774 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   ac_func_search_save_LIBS=$LIBS
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784
12785 /* Override any GCC internal prototype to avoid an error.
12786    Use char because int might match the return type of a GCC
12787    builtin and then its argument prototype would still apply.  */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 char pthread_mutex_lock ();
12792 int
12793 main ()
12794 {
12795 return pthread_mutex_lock ();
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 for ac_lib in '' pthread; do
12801   if test -z "$ac_lib"; then
12802     ac_res="none required"
12803   else
12804     ac_res=-l$ac_lib
12805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12806   fi
12807   rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_link") 2>conftest.er1
12815   ac_status=$?
12816   grep -v '^ *+' conftest.er1 >conftest.err
12817   rm -f conftest.er1
12818   cat conftest.err >&5
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); } &&
12821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822   { (case "(($ac_try" in
12823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824   *) ac_try_echo=$ac_try;;
12825 esac
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827   (eval "$ac_try") 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; } &&
12831          { ac_try='test -s conftest$ac_exeext'
12832   { (case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_try") 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; }; then
12841   ac_cv_search_pthread_mutex_lock=$ac_res
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846
12847 fi
12848
12849 rm -f core conftest.err conftest.$ac_objext \
12850       conftest$ac_exeext
12851   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12852   break
12853 fi
12854 done
12855 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12856   :
12857 else
12858   ac_cv_search_pthread_mutex_lock=no
12859 fi
12860 rm conftest.$ac_ext
12861 LIBS=$ac_func_search_save_LIBS
12862 fi
12863 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12864 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12865 ac_res=$ac_cv_search_pthread_mutex_lock
12866 if test "$ac_res" != no; then
12867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12868
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_PTHREAD_MUTEX_LOCK 1
12871 _ACEOF
12872
12873 fi
12874
12875   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12876 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12877 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   ac_func_search_save_LIBS=$LIBS
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887
12888 /* Override any GCC internal prototype to avoid an error.
12889    Use char because int might match the return type of a GCC
12890    builtin and then its argument prototype would still apply.  */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char pthread_rwlock_init ();
12895 int
12896 main ()
12897 {
12898 return pthread_rwlock_init ();
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 for ac_lib in '' pthread; do
12904   if test -z "$ac_lib"; then
12905     ac_res="none required"
12906   else
12907     ac_res=-l$ac_lib
12908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12909   fi
12910   rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917   (eval "$ac_link") 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925   { (case "(($ac_try" in
12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927   *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930   (eval "$ac_try") 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; } &&
12934          { ac_try='test -s conftest$ac_exeext'
12935   { (case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_try") 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   ac_cv_search_pthread_rwlock_init=$ac_res
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949
12950 fi
12951
12952 rm -f core conftest.err conftest.$ac_objext \
12953       conftest$ac_exeext
12954   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12955   break
12956 fi
12957 done
12958 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12959   :
12960 else
12961   ac_cv_search_pthread_rwlock_init=no
12962 fi
12963 rm conftest.$ac_ext
12964 LIBS=$ac_func_search_save_LIBS
12965 fi
12966 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12967 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12968 ac_res=$ac_cv_search_pthread_rwlock_init
12969 if test "$ac_res" != no; then
12970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12971
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_PTHREAD_RWLOCK_INIT 1
12974 _ACEOF
12975
12976 fi
12977
12978   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12979 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12980 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983   ac_func_search_save_LIBS=$LIBS
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990
12991 /* Override any GCC internal prototype to avoid an error.
12992    Use char because int might match the return type of a GCC
12993    builtin and then its argument prototype would still apply.  */
12994 #ifdef __cplusplus
12995 extern "C"
12996 #endif
12997 char pthread_getspecific ();
12998 int
12999 main ()
13000 {
13001 return pthread_getspecific ();
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 for ac_lib in '' pthread; do
13007   if test -z "$ac_lib"; then
13008     ac_res="none required"
13009   else
13010     ac_res=-l$ac_lib
13011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13012   fi
13013   rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_link") 2>conftest.er1
13021   ac_status=$?
13022   grep -v '^ *+' conftest.er1 >conftest.err
13023   rm -f conftest.er1
13024   cat conftest.err >&5
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } &&
13027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028   { (case "(($ac_try" in
13029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030   *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033   (eval "$ac_try") 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; } &&
13037          { ac_try='test -s conftest$ac_exeext'
13038   { (case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_try") 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; }; then
13047   ac_cv_search_pthread_getspecific=$ac_res
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052
13053 fi
13054
13055 rm -f core conftest.err conftest.$ac_objext \
13056       conftest$ac_exeext
13057   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13058   break
13059 fi
13060 done
13061 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13062   :
13063 else
13064   ac_cv_search_pthread_getspecific=no
13065 fi
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13068 fi
13069 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13070 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13071 ac_res=$ac_cv_search_pthread_getspecific
13072 if test "$ac_res" != no; then
13073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_PTHREAD_GETSPECIFIC 1
13077 _ACEOF
13078
13079 fi
13080
13081 fi
13082
13083
13084 # Check whether --with-udis86 was given.
13085 if test "${with_udis86+set}" = set; then
13086   withval=$with_udis86;
13087       USE_UDIS86=1
13088
13089       case "$withval" in
13090         /usr/lib|yes) ;;
13091         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13092       esac
13093
13094 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13095 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13096 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-ludis86  $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h.  */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h.  */
13107
13108 /* Override any GCC internal prototype to avoid an error.
13109    Use char because int might match the return type of a GCC
13110    builtin and then its argument prototype would still apply.  */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 char ud_init ();
13115 int
13116 main ()
13117 {
13118 return ud_init ();
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127   *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130   (eval "$ac_link") 2>conftest.er1
13131   ac_status=$?
13132   grep -v '^ *+' conftest.er1 >conftest.err
13133   rm -f conftest.er1
13134   cat conftest.err >&5
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } &&
13137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138   { (case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143   (eval "$ac_try") 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; } &&
13147          { ac_try='test -s conftest$ac_exeext'
13148   { (case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_try") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   ac_cv_lib_udis86_ud_init=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162         ac_cv_lib_udis86_ud_init=no
13163 fi
13164
13165 rm -f core conftest.err conftest.$ac_objext \
13166       conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13168 fi
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13170 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13171 if test $ac_cv_lib_udis86_ud_init = yes; then
13172   cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBUDIS86 1
13174 _ACEOF
13175
13176   LIBS="-ludis86 $LIBS"
13177
13178 else
13179
13180         echo "Error! You need to have libudis86 around."
13181         exit -1
13182
13183 fi
13184
13185
13186 else
13187   USE_UDIS86=0
13188
13189 fi
13190
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define USE_UDIS86 $USE_UDIS86
13194 _ACEOF
13195
13196
13197
13198 # Check whether --with-oprofile was given.
13199 if test "${with_oprofile+set}" = set; then
13200   withval=$with_oprofile;
13201       USE_OPROFILE=1
13202
13203       case "$withval" in
13204         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13205         no) llvm_cv_oppath=
13206             USE_OPROFILE=0
13207  ;;
13208         *) llvm_cv_oppath="${withval}/lib/oprofile"
13209            CPPFLAGS="-I${withval}/include";;
13210       esac
13211       case $llvm_cv_os_type in
13212         Linux)
13213           if test -n "$llvm_cv_oppath" ; then
13214             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13215                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13216 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13217 if test "${ac_cv_search_bfd_init+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220   ac_func_search_save_LIBS=$LIBS
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227
13228 /* Override any GCC internal prototype to avoid an error.
13229    Use char because int might match the return type of a GCC
13230    builtin and then its argument prototype would still apply.  */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 char bfd_init ();
13235 int
13236 main ()
13237 {
13238 return bfd_init ();
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 for ac_lib in '' bfd; do
13244   if test -z "$ac_lib"; then
13245     ac_res="none required"
13246   else
13247     ac_res=-l$ac_lib
13248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13249   fi
13250   rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257   (eval "$ac_link") 2>conftest.er1
13258   ac_status=$?
13259   grep -v '^ *+' conftest.er1 >conftest.err
13260   rm -f conftest.er1
13261   cat conftest.err >&5
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } &&
13264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265   { (case "(($ac_try" in
13266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267   *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270   (eval "$ac_try") 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); }; } &&
13274          { ac_try='test -s conftest$ac_exeext'
13275   { (case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280   (eval "$ac_try") 2>&5
13281   ac_status=$?
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); }; }; then
13284   ac_cv_search_bfd_init=$ac_res
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289
13290 fi
13291
13292 rm -f core conftest.err conftest.$ac_objext \
13293       conftest$ac_exeext
13294   if test "${ac_cv_search_bfd_init+set}" = set; then
13295   break
13296 fi
13297 done
13298 if test "${ac_cv_search_bfd_init+set}" = set; then
13299   :
13300 else
13301   ac_cv_search_bfd_init=no
13302 fi
13303 rm conftest.$ac_ext
13304 LIBS=$ac_func_search_save_LIBS
13305 fi
13306 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13307 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13308 ac_res=$ac_cv_search_bfd_init
13309 if test "$ac_res" != no; then
13310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13311
13312 fi
13313
13314             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13315 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13316 if test "${ac_cv_search_op_open_agent+set}" = set; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319   ac_func_search_save_LIBS=$LIBS
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326
13327 /* Override any GCC internal prototype to avoid an error.
13328    Use char because int might match the return type of a GCC
13329    builtin and then its argument prototype would still apply.  */
13330 #ifdef __cplusplus
13331 extern "C"
13332 #endif
13333 char op_open_agent ();
13334 int
13335 main ()
13336 {
13337 return op_open_agent ();
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 for ac_lib in '' opagent; do
13343   if test -z "$ac_lib"; then
13344     ac_res="none required"
13345   else
13346     ac_res=-l$ac_lib
13347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13348   fi
13349   rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353   *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356   (eval "$ac_link") 2>conftest.er1
13357   ac_status=$?
13358   grep -v '^ *+' conftest.er1 >conftest.err
13359   rm -f conftest.er1
13360   cat conftest.err >&5
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); } &&
13363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364   { (case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_try") 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; } &&
13373          { ac_try='test -s conftest$ac_exeext'
13374   { (case "(($ac_try" in
13375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376   *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379   (eval "$ac_try") 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_cv_search_op_open_agent=$ac_res
13384 else
13385   echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388
13389 fi
13390
13391 rm -f core conftest.err conftest.$ac_objext \
13392       conftest$ac_exeext
13393   if test "${ac_cv_search_op_open_agent+set}" = set; then
13394   break
13395 fi
13396 done
13397 if test "${ac_cv_search_op_open_agent+set}" = set; then
13398   :
13399 else
13400   ac_cv_search_op_open_agent=no
13401 fi
13402 rm conftest.$ac_ext
13403 LIBS=$ac_func_search_save_LIBS
13404 fi
13405 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13406 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13407 ac_res=$ac_cv_search_op_open_agent
13408 if test "$ac_res" != no; then
13409   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13410
13411 else
13412
13413               echo "Error! You need to have libopagent around."
13414               exit -1
13415
13416 fi
13417
13418             if test "${ac_cv_header_opagent_h+set}" = set; then
13419   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13420 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13421 if test "${ac_cv_header_opagent_h+set}" = set; then
13422   echo $ECHO_N "(cached) $ECHO_C" >&6
13423 fi
13424 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13425 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13426 else
13427   # Is the header compilable?
13428 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13429 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 $ac_includes_default
13437 #include <opagent.h>
13438 _ACEOF
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_compile") 2>conftest.er1
13447   ac_status=$?
13448   grep -v '^ *+' conftest.er1 >conftest.err
13449   rm -f conftest.er1
13450   cat conftest.err >&5
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454   { (case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_try") 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; } &&
13463          { ac_try='test -s conftest.$ac_objext'
13464   { (case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_try") 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   ac_header_compiler=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478         ac_header_compiler=no
13479 fi
13480
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483 echo "${ECHO_T}$ac_header_compiler" >&6; }
13484
13485 # Is the header present?
13486 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13487 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h.  */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h.  */
13494 #include <opagent.h>
13495 _ACEOF
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } >/dev/null; then
13509   if test -s conftest.err; then
13510     ac_cpp_err=$ac_c_preproc_warn_flag
13511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13512   else
13513     ac_cpp_err=
13514   fi
13515 else
13516   ac_cpp_err=yes
13517 fi
13518 if test -z "$ac_cpp_err"; then
13519   ac_header_preproc=yes
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524   ac_header_preproc=no
13525 fi
13526
13527 rm -f conftest.err conftest.$ac_ext
13528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13529 echo "${ECHO_T}$ac_header_preproc" >&6; }
13530
13531 # So?  What about this header?
13532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13533   yes:no: )
13534     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13535 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13536     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13537 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13538     ac_header_preproc=yes
13539     ;;
13540   no:yes:* )
13541     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13542 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13543     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13544 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13545     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13546 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13547     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13548 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13549     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13551     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13552 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13553     ( cat <<\_ASBOX
13554 ## ------------------------------------ ##
13555 ## Report this to http://llvm.org/bugs/ ##
13556 ## ------------------------------------ ##
13557 _ASBOX
13558      ) | sed "s/^/$as_me: WARNING:     /" >&2
13559     ;;
13560 esac
13561 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13562 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_opagent_h+set}" = set; then
13564   echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566   ac_cv_header_opagent_h=$ac_header_preproc
13567 fi
13568 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13569 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13570
13571 fi
13572 if test $ac_cv_header_opagent_h = yes; then
13573   :
13574 else
13575
13576               echo "Error! You need to have opagent.h around."
13577               exit -1
13578
13579 fi
13580
13581
13582           fi ;;
13583         *)
13584           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13585 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13586    { (exit 1); exit 1; }; } ;;
13587       esac
13588
13589 else
13590
13591       USE_OPROFILE=0
13592
13593
13594 fi
13595
13596
13597 cat >>confdefs.h <<_ACEOF
13598 #define LLVM_USE_OPROFILE $USE_OPROFILE
13599 _ACEOF
13600
13601
13602
13603 # Check whether --with-intel-jitevents was given.
13604 if test "${with_intel_jitevents+set}" = set; then
13605   withval=$with_intel_jitevents;
13606       case $llvm_cv_os_type in
13607         Linux|Win32|Cygwin|MingW) ;;
13608         *)
13609           { { echo "$as_me:$LINENO: error:
13610             Intel JIT API support is available on Linux and Windows only.\"" >&5
13611 echo "$as_me: error:
13612             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13613    { (exit 1); exit 1; }; } ;;
13614       esac
13615
13616       USE_INTEL_JITEVENTS=1
13617
13618       case "$llvm_cv_target_arch" in
13619         x86)    llvm_intel_jitevents_archdir="lib32";;
13620         x86_64) llvm_intel_jitevents_archdir="lib64";;
13621         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13622                 exit -1;;
13623       esac
13624       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13625       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13626       case "$withval" in
13627         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13628                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13629         *) ;;
13630       esac
13631
13632
13633
13634
13635       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13636       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13637
13638       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13639 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13640 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   ac_func_search_save_LIBS=$LIBS
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h.  */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h.  */
13650
13651 /* Override any GCC internal prototype to avoid an error.
13652    Use char because int might match the return type of a GCC
13653    builtin and then its argument prototype would still apply.  */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char iJIT_IsProfilingActive ();
13658 int
13659 main ()
13660 {
13661 return iJIT_IsProfilingActive ();
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 for ac_lib in '' jitprofiling; do
13667   if test -z "$ac_lib"; then
13668     ac_res="none required"
13669   else
13670     ac_res=-l$ac_lib
13671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13672   fi
13673   rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680   (eval "$ac_link") 2>conftest.er1
13681   ac_status=$?
13682   grep -v '^ *+' conftest.er1 >conftest.err
13683   rm -f conftest.er1
13684   cat conftest.err >&5
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } &&
13687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688   { (case "(($ac_try" in
13689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690   *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693   (eval "$ac_try") 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest$ac_exeext'
13698   { (case "(($ac_try" in
13699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700   *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703   (eval "$ac_try") 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); }; }; then
13707   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712
13713 fi
13714
13715 rm -f core conftest.err conftest.$ac_objext \
13716       conftest$ac_exeext
13717   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13718   break
13719 fi
13720 done
13721 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13722   :
13723 else
13724   ac_cv_search_iJIT_IsProfilingActive=no
13725 fi
13726 rm conftest.$ac_ext
13727 LIBS=$ac_func_search_save_LIBS
13728 fi
13729 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13730 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13731 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13732 if test "$ac_res" != no; then
13733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13734
13735 else
13736
13737         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13738         exit -1
13739
13740 fi
13741
13742       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13743   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13744 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13745 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13746   echo $ECHO_N "(cached) $ECHO_C" >&6
13747 fi
13748 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13749 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13750 else
13751   # Is the header compilable?
13752 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13753 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 $ac_includes_default
13761 #include <jitprofiling.h>
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_compile") 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778   { (case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_try") 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; } &&
13787          { ac_try='test -s conftest.$ac_objext'
13788   { (case "(($ac_try" in
13789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790   *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793   (eval "$ac_try") 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797   ac_header_compiler=yes
13798 else
13799   echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13801
13802         ac_header_compiler=no
13803 fi
13804
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13807 echo "${ECHO_T}$ac_header_compiler" >&6; }
13808
13809 # Is the header present?
13810 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13811 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818 #include <jitprofiling.h>
13819 _ACEOF
13820 if { (ac_try="$ac_cpp conftest.$ac_ext"
13821 case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13827   ac_status=$?
13828   grep -v '^ *+' conftest.er1 >conftest.err
13829   rm -f conftest.er1
13830   cat conftest.err >&5
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } >/dev/null; then
13833   if test -s conftest.err; then
13834     ac_cpp_err=$ac_c_preproc_warn_flag
13835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13836   else
13837     ac_cpp_err=
13838   fi
13839 else
13840   ac_cpp_err=yes
13841 fi
13842 if test -z "$ac_cpp_err"; then
13843   ac_header_preproc=yes
13844 else
13845   echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848   ac_header_preproc=no
13849 fi
13850
13851 rm -f conftest.err conftest.$ac_ext
13852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13853 echo "${ECHO_T}$ac_header_preproc" >&6; }
13854
13855 # So?  What about this header?
13856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13857   yes:no: )
13858     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13859 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13860     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13861 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13862     ac_header_preproc=yes
13863     ;;
13864   no:yes:* )
13865     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13866 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13867     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13868 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13869     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13870 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13871     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13872 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13873     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13874 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13875     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13876 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13877     ( cat <<\_ASBOX
13878 ## ------------------------------------ ##
13879 ## Report this to http://llvm.org/bugs/ ##
13880 ## ------------------------------------ ##
13881 _ASBOX
13882      ) | sed "s/^/$as_me: WARNING:     /" >&2
13883     ;;
13884 esac
13885 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13886 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13887 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   ac_cv_header_jitprofiling_h=$ac_header_preproc
13891 fi
13892 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13893 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13894
13895 fi
13896 if test $ac_cv_header_jitprofiling_h = yes; then
13897   :
13898 else
13899
13900         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13901         exit -1
13902
13903 fi
13904
13905
13906
13907
13908 else
13909
13910       USE_INTEL_JITEVENTS=0
13911
13912
13913 fi
13914
13915
13916 cat >>confdefs.h <<_ACEOF
13917 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13918 _ACEOF
13919
13920
13921
13922
13923
13924
13925
13926
13927 ac_header_dirent=no
13928 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13929   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13930 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13931 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935   cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h.  */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h.  */
13941 #include <sys/types.h>
13942 #include <$ac_hdr>
13943
13944 int
13945 main ()
13946 {
13947 if ((DIR *) 0)
13948 return 0;
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 rm -f conftest.$ac_objext
13954 if { (ac_try="$ac_compile"
13955 case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_compile") 2>conftest.er1
13961   ac_status=$?
13962   grep -v '^ *+' conftest.er1 >conftest.err
13963   rm -f conftest.er1
13964   cat conftest.err >&5
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } &&
13967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13968   { (case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_try") 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; } &&
13977          { ac_try='test -s conftest.$ac_objext'
13978   { (case "(($ac_try" in
13979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980   *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983   (eval "$ac_try") 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; }; then
13987   eval "$as_ac_Header=yes"
13988 else
13989   echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992         eval "$as_ac_Header=no"
13993 fi
13994
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996 fi
13997 ac_res=`eval echo '${'$as_ac_Header'}'`
13998                { echo "$as_me:$LINENO: result: $ac_res" >&5
13999 echo "${ECHO_T}$ac_res" >&6; }
14000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14001   cat >>confdefs.h <<_ACEOF
14002 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14003 _ACEOF
14004
14005 ac_header_dirent=$ac_hdr; break
14006 fi
14007
14008 done
14009 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14010 if test $ac_header_dirent = dirent.h; then
14011   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14012 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14013 if test "${ac_cv_search_opendir+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   ac_func_search_save_LIBS=$LIBS
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023
14024 /* Override any GCC internal prototype to avoid an error.
14025    Use char because int might match the return type of a GCC
14026    builtin and then its argument prototype would still apply.  */
14027 #ifdef __cplusplus
14028 extern "C"
14029 #endif
14030 char opendir ();
14031 int
14032 main ()
14033 {
14034 return opendir ();
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 for ac_lib in '' dir; do
14040   if test -z "$ac_lib"; then
14041     ac_res="none required"
14042   else
14043     ac_res=-l$ac_lib
14044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14045   fi
14046   rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053   (eval "$ac_link") 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } &&
14060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061   { (case "(($ac_try" in
14062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063   *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066   (eval "$ac_try") 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); }; } &&
14070          { ac_try='test -s conftest$ac_exeext'
14071   { (case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_try") 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   ac_cv_search_opendir=$ac_res
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085
14086 fi
14087
14088 rm -f core conftest.err conftest.$ac_objext \
14089       conftest$ac_exeext
14090   if test "${ac_cv_search_opendir+set}" = set; then
14091   break
14092 fi
14093 done
14094 if test "${ac_cv_search_opendir+set}" = set; then
14095   :
14096 else
14097   ac_cv_search_opendir=no
14098 fi
14099 rm conftest.$ac_ext
14100 LIBS=$ac_func_search_save_LIBS
14101 fi
14102 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14103 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14104 ac_res=$ac_cv_search_opendir
14105 if test "$ac_res" != no; then
14106   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14107
14108 fi
14109
14110 else
14111   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14112 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14113 if test "${ac_cv_search_opendir+set}" = set; then
14114   echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116   ac_func_search_save_LIBS=$LIBS
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123
14124 /* Override any GCC internal prototype to avoid an error.
14125    Use char because int might match the return type of a GCC
14126    builtin and then its argument prototype would still apply.  */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 char opendir ();
14131 int
14132 main ()
14133 {
14134 return opendir ();
14135   ;
14136   return 0;
14137 }
14138 _ACEOF
14139 for ac_lib in '' x; do
14140   if test -z "$ac_lib"; then
14141     ac_res="none required"
14142   else
14143     ac_res=-l$ac_lib
14144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14145   fi
14146   rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (ac_try="$ac_link"
14148 case "(($ac_try" in
14149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150   *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153   (eval "$ac_link") 2>conftest.er1
14154   ac_status=$?
14155   grep -v '^ *+' conftest.er1 >conftest.err
14156   rm -f conftest.er1
14157   cat conftest.err >&5
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } &&
14160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161   { (case "(($ac_try" in
14162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163   *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166   (eval "$ac_try") 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; } &&
14170          { ac_try='test -s conftest$ac_exeext'
14171   { (case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_try") 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; }; then
14180   ac_cv_search_opendir=$ac_res
14181 else
14182   echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185
14186 fi
14187
14188 rm -f core conftest.err conftest.$ac_objext \
14189       conftest$ac_exeext
14190   if test "${ac_cv_search_opendir+set}" = set; then
14191   break
14192 fi
14193 done
14194 if test "${ac_cv_search_opendir+set}" = set; then
14195   :
14196 else
14197   ac_cv_search_opendir=no
14198 fi
14199 rm conftest.$ac_ext
14200 LIBS=$ac_func_search_save_LIBS
14201 fi
14202 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14203 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14204 ac_res=$ac_cv_search_opendir
14205 if test "$ac_res" != no; then
14206   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14207
14208 fi
14209
14210 fi
14211
14212 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14213 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14214 if test "${ac_cv_header_mmap_anon+set}" = set; then
14215   echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217    ac_ext=c
14218 ac_cpp='$CPP $CPPFLAGS'
14219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14222
14223   cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229 #include <sys/mman.h>
14230 #include <unistd.h>
14231 #include <fcntl.h>
14232 int
14233 main ()
14234 {
14235 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247   (eval "$ac_compile") 2>conftest.er1
14248   ac_status=$?
14249   grep -v '^ *+' conftest.er1 >conftest.err
14250   rm -f conftest.er1
14251   cat conftest.err >&5
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } &&
14254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14255   { (case "(($ac_try" in
14256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257   *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260   (eval "$ac_try") 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; } &&
14264          { ac_try='test -s conftest.$ac_objext'
14265   { (case "(($ac_try" in
14266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267   *) ac_try_echo=$ac_try;;
14268 esac
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270   (eval "$ac_try") 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; }; then
14274   ac_cv_header_mmap_anon=yes
14275 else
14276   echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279         ac_cv_header_mmap_anon=no
14280 fi
14281
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283   ac_ext=c
14284 ac_cpp='$CPP $CPPFLAGS'
14285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14288
14289
14290 fi
14291 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14292 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14293 if test "$ac_cv_header_mmap_anon" = yes; then
14294
14295 cat >>confdefs.h <<\_ACEOF
14296 #define HAVE_MMAP_ANONYMOUS 1
14297 _ACEOF
14298
14299 fi
14300
14301 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14302 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14303 if test "${ac_cv_header_stat_broken+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 #include <sys/types.h>
14313 #include <sys/stat.h>
14314
14315 #if defined S_ISBLK && defined S_IFDIR
14316 # if S_ISBLK (S_IFDIR)
14317 You lose.
14318 # endif
14319 #endif
14320
14321 #if defined S_ISBLK && defined S_IFCHR
14322 # if S_ISBLK (S_IFCHR)
14323 You lose.
14324 # endif
14325 #endif
14326
14327 #if defined S_ISLNK && defined S_IFREG
14328 # if S_ISLNK (S_IFREG)
14329 You lose.
14330 # endif
14331 #endif
14332
14333 #if defined S_ISSOCK && defined S_IFREG
14334 # if S_ISSOCK (S_IFREG)
14335 You lose.
14336 # endif
14337 #endif
14338
14339 _ACEOF
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341   $EGREP "You lose" >/dev/null 2>&1; then
14342   ac_cv_header_stat_broken=yes
14343 else
14344   ac_cv_header_stat_broken=no
14345 fi
14346 rm -f conftest*
14347
14348 fi
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14350 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14351 if test $ac_cv_header_stat_broken = yes; then
14352
14353 cat >>confdefs.h <<\_ACEOF
14354 #define STAT_MACROS_BROKEN 1
14355 _ACEOF
14356
14357 fi
14358
14359 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14360 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14362   echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364   cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370 #include <sys/types.h>
14371 #include <sys/wait.h>
14372 #ifndef WEXITSTATUS
14373 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14374 #endif
14375 #ifndef WIFEXITED
14376 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14377 #endif
14378
14379 int
14380 main ()
14381 {
14382   int s;
14383   wait (&s);
14384   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (ac_try="$ac_compile"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_compile") 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; } &&
14413          { ac_try='test -s conftest.$ac_objext'
14414   { (case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_try") 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   ac_cv_header_sys_wait_h=yes
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428         ac_cv_header_sys_wait_h=no
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14434 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14435 if test $ac_cv_header_sys_wait_h = yes; then
14436
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_SYS_WAIT_H 1
14439 _ACEOF
14440
14441 fi
14442
14443 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14444 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14445 if test "${ac_cv_header_time+set}" = set; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448   cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h.  */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h.  */
14454 #include <sys/types.h>
14455 #include <sys/time.h>
14456 #include <time.h>
14457
14458 int
14459 main ()
14460 {
14461 if ((struct tm *) 0)
14462 return 0;
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (ac_try="$ac_compile"
14469 case "(($ac_try" in
14470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471   *) ac_try_echo=$ac_try;;
14472 esac
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474   (eval "$ac_compile") 2>conftest.er1
14475   ac_status=$?
14476   grep -v '^ *+' conftest.er1 >conftest.err
14477   rm -f conftest.er1
14478   cat conftest.err >&5
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } &&
14481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482   { (case "(($ac_try" in
14483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484   *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487   (eval "$ac_try") 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest.$ac_objext'
14492   { (case "(($ac_try" in
14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494   *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497   (eval "$ac_try") 2>&5
14498   ac_status=$?
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); }; }; then
14501   ac_cv_header_time=yes
14502 else
14503   echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506         ac_cv_header_time=no
14507 fi
14508
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14512 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14513 if test $ac_cv_header_time = yes; then
14514
14515 cat >>confdefs.h <<\_ACEOF
14516 #define TIME_WITH_SYS_TIME 1
14517 _ACEOF
14518
14519 fi
14520
14521
14522
14523
14524
14525
14526
14527
14528 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14529 do
14530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535   echo $ECHO_N "(cached) $ECHO_C" >&6
14536 fi
14537 ac_res=`eval echo '${'$as_ac_Header'}'`
14538                { echo "$as_me:$LINENO: result: $ac_res" >&5
14539 echo "${ECHO_T}$ac_res" >&6; }
14540 else
14541   # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h.  */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h.  */
14550 $ac_includes_default
14551 #include <$ac_header>
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568   { (case "(($ac_try" in
14569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570   *) ac_try_echo=$ac_try;;
14571 esac
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573   (eval "$ac_try") 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); }; } &&
14577          { ac_try='test -s conftest.$ac_objext'
14578   { (case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_try") 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   ac_header_compiler=yes
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592         ac_header_compiler=no
14593 fi
14594
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597 echo "${ECHO_T}$ac_header_compiler" >&6; }
14598
14599 # Is the header present?
14600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 #include <$ac_header>
14609 _ACEOF
14610 if { (ac_try="$ac_cpp conftest.$ac_ext"
14611 case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14617   ac_status=$?
14618   grep -v '^ *+' conftest.er1 >conftest.err
14619   rm -f conftest.er1
14620   cat conftest.err >&5
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } >/dev/null; then
14623   if test -s conftest.err; then
14624     ac_cpp_err=$ac_c_preproc_warn_flag
14625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14626   else
14627     ac_cpp_err=
14628   fi
14629 else
14630   ac_cpp_err=yes
14631 fi
14632 if test -z "$ac_cpp_err"; then
14633   ac_header_preproc=yes
14634 else
14635   echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638   ac_header_preproc=no
14639 fi
14640
14641 rm -f conftest.err conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643 echo "${ECHO_T}$ac_header_preproc" >&6; }
14644
14645 # So?  What about this header?
14646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14647   yes:no: )
14648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652     ac_header_preproc=yes
14653     ;;
14654   no:yes:* )
14655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14667     ( cat <<\_ASBOX
14668 ## ------------------------------------ ##
14669 ## Report this to http://llvm.org/bugs/ ##
14670 ## ------------------------------------ ##
14671 _ASBOX
14672      ) | sed "s/^/$as_me: WARNING:     /" >&2
14673     ;;
14674 esac
14675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   eval "$as_ac_Header=\$ac_header_preproc"
14681 fi
14682 ac_res=`eval echo '${'$as_ac_Header'}'`
14683                { echo "$as_me:$LINENO: result: $ac_res" >&5
14684 echo "${ECHO_T}$ac_res" >&6; }
14685
14686 fi
14687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14688   cat >>confdefs.h <<_ACEOF
14689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14690 _ACEOF
14691
14692 fi
14693
14694 done
14695
14696
14697
14698
14699
14700
14701
14702 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14703 do
14704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 fi
14711 ac_res=`eval echo '${'$as_ac_Header'}'`
14712                { echo "$as_me:$LINENO: result: $ac_res" >&5
14713 echo "${ECHO_T}$ac_res" >&6; }
14714 else
14715   # Is the header compilable?
14716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724 $ac_includes_default
14725 #include <$ac_header>
14726 _ACEOF
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_compile") 2>conftest.er1
14735   ac_status=$?
14736   grep -v '^ *+' conftest.er1 >conftest.err
14737   rm -f conftest.er1
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742   { (case "(($ac_try" in
14743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744   *) ac_try_echo=$ac_try;;
14745 esac
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747   (eval "$ac_try") 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; } &&
14751          { ac_try='test -s conftest.$ac_objext'
14752   { (case "(($ac_try" in
14753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754   *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757   (eval "$ac_try") 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_header_compiler=yes
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766         ac_header_compiler=no
14767 fi
14768
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6; }
14772
14773 # Is the header present?
14774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782 #include <$ac_header>
14783 _ACEOF
14784 if { (ac_try="$ac_cpp conftest.$ac_ext"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } >/dev/null; then
14797   if test -s conftest.err; then
14798     ac_cpp_err=$ac_c_preproc_warn_flag
14799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14800   else
14801     ac_cpp_err=
14802   fi
14803 else
14804   ac_cpp_err=yes
14805 fi
14806 if test -z "$ac_cpp_err"; then
14807   ac_header_preproc=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812   ac_header_preproc=no
14813 fi
14814
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14818
14819 # So?  What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821   yes:no: )
14822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826     ac_header_preproc=yes
14827     ;;
14828   no:yes:* )
14829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14841     ( cat <<\_ASBOX
14842 ## ------------------------------------ ##
14843 ## Report this to http://llvm.org/bugs/ ##
14844 ## ------------------------------------ ##
14845 _ASBOX
14846      ) | sed "s/^/$as_me: WARNING:     /" >&2
14847     ;;
14848 esac
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   eval "$as_ac_Header=\$ac_header_preproc"
14855 fi
14856 ac_res=`eval echo '${'$as_ac_Header'}'`
14857                { echo "$as_me:$LINENO: result: $ac_res" >&5
14858 echo "${ECHO_T}$ac_res" >&6; }
14859
14860 fi
14861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14862   cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14864 _ACEOF
14865
14866 fi
14867
14868 done
14869
14870
14871
14872 for ac_header in utime.h windows.h
14873 do
14874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 fi
14881 ac_res=`eval echo '${'$as_ac_Header'}'`
14882                { echo "$as_me:$LINENO: result: $ac_res" >&5
14883 echo "${ECHO_T}$ac_res" >&6; }
14884 else
14885   # Is the header compilable?
14886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894 $ac_includes_default
14895 #include <$ac_header>
14896 _ACEOF
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
14899 case "(($ac_try" in
14900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901   *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904   (eval "$ac_compile") 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } &&
14911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912   { (case "(($ac_try" in
14913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914   *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917   (eval "$ac_try") 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; } &&
14921          { ac_try='test -s conftest.$ac_objext'
14922   { (case "(($ac_try" in
14923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924   *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927   (eval "$ac_try") 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; }; then
14931   ac_header_compiler=yes
14932 else
14933   echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14935
14936         ac_header_compiler=no
14937 fi
14938
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6; }
14942
14943 # Is the header present?
14944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952 #include <$ac_header>
14953 _ACEOF
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961   ac_status=$?
14962   grep -v '^ *+' conftest.er1 >conftest.err
14963   rm -f conftest.er1
14964   cat conftest.err >&5
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } >/dev/null; then
14967   if test -s conftest.err; then
14968     ac_cpp_err=$ac_c_preproc_warn_flag
14969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14970   else
14971     ac_cpp_err=
14972   fi
14973 else
14974   ac_cpp_err=yes
14975 fi
14976 if test -z "$ac_cpp_err"; then
14977   ac_header_preproc=yes
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982   ac_header_preproc=no
14983 fi
14984
14985 rm -f conftest.err conftest.$ac_ext
14986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6; }
14988
14989 # So?  What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991   yes:no: )
14992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996     ac_header_preproc=yes
14997     ;;
14998   no:yes:* )
14999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011     ( cat <<\_ASBOX
15012 ## ------------------------------------ ##
15013 ## Report this to http://llvm.org/bugs/ ##
15014 ## ------------------------------------ ##
15015 _ASBOX
15016      ) | sed "s/^/$as_me: WARNING:     /" >&2
15017     ;;
15018 esac
15019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   eval "$as_ac_Header=\$ac_header_preproc"
15025 fi
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027                { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15029
15030 fi
15031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15032   cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15034 _ACEOF
15035
15036 fi
15037
15038 done
15039
15040
15041
15042
15043
15044
15045 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15046 do
15047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 fi
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055                { echo "$as_me:$LINENO: result: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15057 else
15058   # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067 $ac_includes_default
15068 #include <$ac_header>
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_compile") 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085   { (case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_try") 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; } &&
15094          { ac_try='test -s conftest.$ac_objext'
15095   { (case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100   (eval "$ac_try") 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; }; then
15104   ac_header_compiler=yes
15105 else
15106   echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109         ac_header_compiler=no
15110 fi
15111
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6; }
15115
15116 # Is the header present?
15117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 #include <$ac_header>
15126 _ACEOF
15127 if { (ac_try="$ac_cpp conftest.$ac_ext"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } >/dev/null; then
15140   if test -s conftest.err; then
15141     ac_cpp_err=$ac_c_preproc_warn_flag
15142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15143   else
15144     ac_cpp_err=
15145   fi
15146 else
15147   ac_cpp_err=yes
15148 fi
15149 if test -z "$ac_cpp_err"; then
15150   ac_header_preproc=yes
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155   ac_header_preproc=no
15156 fi
15157
15158 rm -f conftest.err conftest.$ac_ext
15159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15160 echo "${ECHO_T}$ac_header_preproc" >&6; }
15161
15162 # So?  What about this header?
15163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15164   yes:no: )
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15169     ac_header_preproc=yes
15170     ;;
15171   no:yes:* )
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15184     ( cat <<\_ASBOX
15185 ## ------------------------------------ ##
15186 ## Report this to http://llvm.org/bugs/ ##
15187 ## ------------------------------------ ##
15188 _ASBOX
15189      ) | sed "s/^/$as_me: WARNING:     /" >&2
15190     ;;
15191 esac
15192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   eval "$as_ac_Header=\$ac_header_preproc"
15198 fi
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200                { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15202
15203 fi
15204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15205   cat >>confdefs.h <<_ACEOF
15206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15207 _ACEOF
15208
15209 fi
15210
15211 done
15212
15213
15214
15215
15216
15217 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15218 do
15219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 fi
15226 ac_res=`eval echo '${'$as_ac_Header'}'`
15227                { echo "$as_me:$LINENO: result: $ac_res" >&5
15228 echo "${ECHO_T}$ac_res" >&6; }
15229 else
15230   # Is the header compilable?
15231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 $ac_includes_default
15240 #include <$ac_header>
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (ac_try="$ac_compile"
15244 case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_compile") 2>conftest.er1
15250   ac_status=$?
15251   grep -v '^ *+' conftest.er1 >conftest.err
15252   rm -f conftest.er1
15253   cat conftest.err >&5
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } &&
15256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257   { (case "(($ac_try" in
15258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259   *) ac_try_echo=$ac_try;;
15260 esac
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262   (eval "$ac_try") 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; } &&
15266          { ac_try='test -s conftest.$ac_objext'
15267   { (case "(($ac_try" in
15268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269   *) ac_try_echo=$ac_try;;
15270 esac
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272   (eval "$ac_try") 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; }; then
15276   ac_header_compiler=yes
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281         ac_header_compiler=no
15282 fi
15283
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6; }
15287
15288 # Is the header present?
15289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 #include <$ac_header>
15298 _ACEOF
15299 if { (ac_try="$ac_cpp conftest.$ac_ext"
15300 case "(($ac_try" in
15301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302   *) ac_try_echo=$ac_try;;
15303 esac
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } >/dev/null; then
15312   if test -s conftest.err; then
15313     ac_cpp_err=$ac_c_preproc_warn_flag
15314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315   else
15316     ac_cpp_err=
15317   fi
15318 else
15319   ac_cpp_err=yes
15320 fi
15321 if test -z "$ac_cpp_err"; then
15322   ac_header_preproc=yes
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327   ac_header_preproc=no
15328 fi
15329
15330 rm -f conftest.err conftest.$ac_ext
15331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332 echo "${ECHO_T}$ac_header_preproc" >&6; }
15333
15334 # So?  What about this header?
15335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336   yes:no: )
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341     ac_header_preproc=yes
15342     ;;
15343   no:yes:* )
15344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356     ( cat <<\_ASBOX
15357 ## ------------------------------------ ##
15358 ## Report this to http://llvm.org/bugs/ ##
15359 ## ------------------------------------ ##
15360 _ASBOX
15361      ) | sed "s/^/$as_me: WARNING:     /" >&2
15362     ;;
15363 esac
15364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369   eval "$as_ac_Header=\$ac_header_preproc"
15370 fi
15371 ac_res=`eval echo '${'$as_ac_Header'}'`
15372                { echo "$as_me:$LINENO: result: $ac_res" >&5
15373 echo "${ECHO_T}$ac_res" >&6; }
15374
15375 fi
15376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377   cat >>confdefs.h <<_ACEOF
15378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 _ACEOF
15380
15381 fi
15382
15383 done
15384
15385
15386 for ac_header in valgrind/valgrind.h
15387 do
15388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 fi
15395 ac_res=`eval echo '${'$as_ac_Header'}'`
15396                { echo "$as_me:$LINENO: result: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15398 else
15399   # Is the header compilable?
15400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408 $ac_includes_default
15409 #include <$ac_header>
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_compile") 2>conftest.er1
15419   ac_status=$?
15420   grep -v '^ *+' conftest.er1 >conftest.err
15421   rm -f conftest.er1
15422   cat conftest.err >&5
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } &&
15425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426   { (case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_try") 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; } &&
15435          { ac_try='test -s conftest.$ac_objext'
15436   { (case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_try") 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   ac_header_compiler=yes
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450         ac_header_compiler=no
15451 fi
15452
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455 echo "${ECHO_T}$ac_header_compiler" >&6; }
15456
15457 # Is the header present?
15458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466 #include <$ac_header>
15467 _ACEOF
15468 if { (ac_try="$ac_cpp conftest.$ac_ext"
15469 case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } >/dev/null; then
15481   if test -s conftest.err; then
15482     ac_cpp_err=$ac_c_preproc_warn_flag
15483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15484   else
15485     ac_cpp_err=
15486   fi
15487 else
15488   ac_cpp_err=yes
15489 fi
15490 if test -z "$ac_cpp_err"; then
15491   ac_header_preproc=yes
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496   ac_header_preproc=no
15497 fi
15498
15499 rm -f conftest.err conftest.$ac_ext
15500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501 echo "${ECHO_T}$ac_header_preproc" >&6; }
15502
15503 # So?  What about this header?
15504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505   yes:no: )
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510     ac_header_preproc=yes
15511     ;;
15512   no:yes:* )
15513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525     ( cat <<\_ASBOX
15526 ## ------------------------------------ ##
15527 ## Report this to http://llvm.org/bugs/ ##
15528 ## ------------------------------------ ##
15529 _ASBOX
15530      ) | sed "s/^/$as_me: WARNING:     /" >&2
15531     ;;
15532 esac
15533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536   echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538   eval "$as_ac_Header=\$ac_header_preproc"
15539 fi
15540 ac_res=`eval echo '${'$as_ac_Header'}'`
15541                { echo "$as_me:$LINENO: result: $ac_res" >&5
15542 echo "${ECHO_T}$ac_res" >&6; }
15543
15544 fi
15545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546   cat >>confdefs.h <<_ACEOF
15547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15548 _ACEOF
15549
15550 fi
15551
15552 done
15553
15554
15555 for ac_header in fenv.h
15556 do
15557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 fi
15564 ac_res=`eval echo '${'$as_ac_Header'}'`
15565                { echo "$as_me:$LINENO: result: $ac_res" >&5
15566 echo "${ECHO_T}$ac_res" >&6; }
15567 else
15568   # Is the header compilable?
15569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15571 cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h.  */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h.  */
15577 $ac_includes_default
15578 #include <$ac_header>
15579 _ACEOF
15580 rm -f conftest.$ac_objext
15581 if { (ac_try="$ac_compile"
15582 case "(($ac_try" in
15583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584   *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587   (eval "$ac_compile") 2>conftest.er1
15588   ac_status=$?
15589   grep -v '^ *+' conftest.er1 >conftest.err
15590   rm -f conftest.er1
15591   cat conftest.err >&5
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); } &&
15594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15595   { (case "(($ac_try" in
15596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597   *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600   (eval "$ac_try") 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; } &&
15604          { ac_try='test -s conftest.$ac_objext'
15605   { (case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610   (eval "$ac_try") 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; }; then
15614   ac_header_compiler=yes
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619         ac_header_compiler=no
15620 fi
15621
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6; }
15625
15626 # Is the header present?
15627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h.  */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h.  */
15635 #include <$ac_header>
15636 _ACEOF
15637 if { (ac_try="$ac_cpp conftest.$ac_ext"
15638 case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } >/dev/null; then
15650   if test -s conftest.err; then
15651     ac_cpp_err=$ac_c_preproc_warn_flag
15652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15653   else
15654     ac_cpp_err=
15655   fi
15656 else
15657   ac_cpp_err=yes
15658 fi
15659 if test -z "$ac_cpp_err"; then
15660   ac_header_preproc=yes
15661 else
15662   echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665   ac_header_preproc=no
15666 fi
15667
15668 rm -f conftest.err conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15670 echo "${ECHO_T}$ac_header_preproc" >&6; }
15671
15672 # So?  What about this header?
15673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15674   yes:no: )
15675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15679     ac_header_preproc=yes
15680     ;;
15681   no:yes:* )
15682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15694     ( cat <<\_ASBOX
15695 ## ------------------------------------ ##
15696 ## Report this to http://llvm.org/bugs/ ##
15697 ## ------------------------------------ ##
15698 _ASBOX
15699      ) | sed "s/^/$as_me: WARNING:     /" >&2
15700     ;;
15701 esac
15702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707   eval "$as_ac_Header=\$ac_header_preproc"
15708 fi
15709 ac_res=`eval echo '${'$as_ac_Header'}'`
15710                { echo "$as_me:$LINENO: result: $ac_res" >&5
15711 echo "${ECHO_T}$ac_res" >&6; }
15712
15713 fi
15714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15717 _ACEOF
15718
15719 fi
15720
15721 done
15722
15723 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15724
15725 for ac_header in pthread.h
15726 do
15727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732   echo $ECHO_N "(cached) $ECHO_C" >&6
15733 fi
15734 ac_res=`eval echo '${'$as_ac_Header'}'`
15735                { echo "$as_me:$LINENO: result: $ac_res" >&5
15736 echo "${ECHO_T}$ac_res" >&6; }
15737 else
15738   # Is the header compilable?
15739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15741 cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h.  */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h.  */
15747 $ac_includes_default
15748 #include <$ac_header>
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754   *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757   (eval "$ac_compile") 2>conftest.er1
15758   ac_status=$?
15759   grep -v '^ *+' conftest.er1 >conftest.err
15760   rm -f conftest.er1
15761   cat conftest.err >&5
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } &&
15764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15765   { (case "(($ac_try" in
15766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767   *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770   (eval "$ac_try") 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; } &&
15774          { ac_try='test -s conftest.$ac_objext'
15775   { (case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_try") 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   ac_header_compiler=yes
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789         ac_header_compiler=no
15790 fi
15791
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15794 echo "${ECHO_T}$ac_header_compiler" >&6; }
15795
15796 # Is the header present?
15797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805 #include <$ac_header>
15806 _ACEOF
15807 if { (ac_try="$ac_cpp conftest.$ac_ext"
15808 case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } >/dev/null; then
15820   if test -s conftest.err; then
15821     ac_cpp_err=$ac_c_preproc_warn_flag
15822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15823   else
15824     ac_cpp_err=
15825   fi
15826 else
15827   ac_cpp_err=yes
15828 fi
15829 if test -z "$ac_cpp_err"; then
15830   ac_header_preproc=yes
15831 else
15832   echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835   ac_header_preproc=no
15836 fi
15837
15838 rm -f conftest.err conftest.$ac_ext
15839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15840 echo "${ECHO_T}$ac_header_preproc" >&6; }
15841
15842 # So?  What about this header?
15843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844   yes:no: )
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15849     ac_header_preproc=yes
15850     ;;
15851   no:yes:* )
15852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15864     ( cat <<\_ASBOX
15865 ## ------------------------------------ ##
15866 ## Report this to http://llvm.org/bugs/ ##
15867 ## ------------------------------------ ##
15868 _ASBOX
15869      ) | sed "s/^/$as_me: WARNING:     /" >&2
15870     ;;
15871 esac
15872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877   eval "$as_ac_Header=\$ac_header_preproc"
15878 fi
15879 ac_res=`eval echo '${'$as_ac_Header'}'`
15880                { echo "$as_me:$LINENO: result: $ac_res" >&5
15881 echo "${ECHO_T}$ac_res" >&6; }
15882
15883 fi
15884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15885   cat >>confdefs.h <<_ACEOF
15886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15887 _ACEOF
15888  HAVE_PTHREAD=1
15889
15890 else
15891   HAVE_PTHREAD=0
15892
15893 fi
15894
15895 done
15896
15897 else
15898   HAVE_PTHREAD=0
15899
15900 fi
15901
15902 if test "$llvm_cv_enable_libffi" = "yes" ; then
15903
15904
15905 for ac_header in ffi.h ffi/ffi.h
15906 do
15907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912   echo $ECHO_N "(cached) $ECHO_C" >&6
15913 fi
15914 ac_res=`eval echo '${'$as_ac_Header'}'`
15915                { echo "$as_me:$LINENO: result: $ac_res" >&5
15916 echo "${ECHO_T}$ac_res" >&6; }
15917 else
15918   # Is the header compilable?
15919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 $ac_includes_default
15928 #include <$ac_header>
15929 _ACEOF
15930 rm -f conftest.$ac_objext
15931 if { (ac_try="$ac_compile"
15932 case "(($ac_try" in
15933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934   *) ac_try_echo=$ac_try;;
15935 esac
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937   (eval "$ac_compile") 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945   { (case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_try") 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; } &&
15954          { ac_try='test -s conftest.$ac_objext'
15955   { (case "(($ac_try" in
15956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957   *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960   (eval "$ac_try") 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; }; then
15964   ac_header_compiler=yes
15965 else
15966   echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969         ac_header_compiler=no
15970 fi
15971
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974 echo "${ECHO_T}$ac_header_compiler" >&6; }
15975
15976 # Is the header present?
15977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h.  */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h.  */
15985 #include <$ac_header>
15986 _ACEOF
15987 if { (ac_try="$ac_cpp conftest.$ac_ext"
15988 case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } >/dev/null; then
16000   if test -s conftest.err; then
16001     ac_cpp_err=$ac_c_preproc_warn_flag
16002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003   else
16004     ac_cpp_err=
16005   fi
16006 else
16007   ac_cpp_err=yes
16008 fi
16009 if test -z "$ac_cpp_err"; then
16010   ac_header_preproc=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015   ac_header_preproc=no
16016 fi
16017
16018 rm -f conftest.err conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 echo "${ECHO_T}$ac_header_preproc" >&6; }
16021
16022 # So?  What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16024   yes:no: )
16025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029     ac_header_preproc=yes
16030     ;;
16031   no:yes:* )
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16044     ( cat <<\_ASBOX
16045 ## ------------------------------------ ##
16046 ## Report this to http://llvm.org/bugs/ ##
16047 ## ------------------------------------ ##
16048 _ASBOX
16049      ) | sed "s/^/$as_me: WARNING:     /" >&2
16050     ;;
16051 esac
16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   eval "$as_ac_Header=\$ac_header_preproc"
16058 fi
16059 ac_res=`eval echo '${'$as_ac_Header'}'`
16060                { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16062
16063 fi
16064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16065   cat >>confdefs.h <<_ACEOF
16066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16067 _ACEOF
16068
16069 fi
16070
16071 done
16072
16073 fi
16074
16075
16076 for ac_header in CrashReporterClient.h
16077 do
16078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 fi
16085 ac_res=`eval echo '${'$as_ac_Header'}'`
16086                { echo "$as_me:$LINENO: result: $ac_res" >&5
16087 echo "${ECHO_T}$ac_res" >&6; }
16088 else
16089   # Is the header compilable?
16090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h.  */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h.  */
16098 $ac_includes_default
16099 #include <$ac_header>
16100 _ACEOF
16101 rm -f conftest.$ac_objext
16102 if { (ac_try="$ac_compile"
16103 case "(($ac_try" in
16104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105   *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108   (eval "$ac_compile") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } &&
16115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16116   { (case "(($ac_try" in
16117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118   *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121   (eval "$ac_try") 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; } &&
16125          { ac_try='test -s conftest.$ac_objext'
16126   { (case "(($ac_try" in
16127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128   *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131   (eval "$ac_try") 2>&5
16132   ac_status=$?
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); }; }; then
16135   ac_header_compiler=yes
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140         ac_header_compiler=no
16141 fi
16142
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6; }
16146
16147 # Is the header present?
16148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156 #include <$ac_header>
16157 _ACEOF
16158 if { (ac_try="$ac_cpp conftest.$ac_ext"
16159 case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16165   ac_status=$?
16166   grep -v '^ *+' conftest.er1 >conftest.err
16167   rm -f conftest.er1
16168   cat conftest.err >&5
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } >/dev/null; then
16171   if test -s conftest.err; then
16172     ac_cpp_err=$ac_c_preproc_warn_flag
16173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16174   else
16175     ac_cpp_err=
16176   fi
16177 else
16178   ac_cpp_err=yes
16179 fi
16180 if test -z "$ac_cpp_err"; then
16181   ac_header_preproc=yes
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186   ac_header_preproc=no
16187 fi
16188
16189 rm -f conftest.err conftest.$ac_ext
16190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16191 echo "${ECHO_T}$ac_header_preproc" >&6; }
16192
16193 # So?  What about this header?
16194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16195   yes:no: )
16196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16200     ac_header_preproc=yes
16201     ;;
16202   no:yes:* )
16203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16215     ( cat <<\_ASBOX
16216 ## ------------------------------------ ##
16217 ## Report this to http://llvm.org/bugs/ ##
16218 ## ------------------------------------ ##
16219 _ASBOX
16220      ) | sed "s/^/$as_me: WARNING:     /" >&2
16221     ;;
16222 esac
16223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228   eval "$as_ac_Header=\$ac_header_preproc"
16229 fi
16230 ac_res=`eval echo '${'$as_ac_Header'}'`
16231                { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16233
16234 fi
16235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236   cat >>confdefs.h <<_ACEOF
16237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16238 _ACEOF
16239
16240 fi
16241
16242 done
16243
16244
16245 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16246 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 extern const char *__crashreporter_info__;
16254       int main() {
16255         __crashreporter_info__ = "test";
16256         return 0;
16257       }
16258
16259 _ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_link") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } &&
16274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275   { (case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_try") 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; } &&
16284          { ac_try='test -s conftest$ac_exeext'
16285   { (case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_try") 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   { echo "$as_me:$LINENO: result: yes" >&5
16295 echo "${ECHO_T}yes" >&6; }
16296
16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE_CRASHREPORTER_INFO 1
16299 _ACEOF
16300
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305         { echo "$as_me:$LINENO: result: no" >&5
16306 echo "${ECHO_T}no" >&6; }
16307
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_CRASHREPORTER_INFO 0
16310 _ACEOF
16311
16312 fi
16313
16314 rm -f core conftest.err conftest.$ac_objext \
16315       conftest$ac_exeext conftest.$ac_ext
16316
16317
16318
16319
16320   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16321 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16322 if test "${ac_cv_huge_val_sanity+set}" = set; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325
16326     ac_ext=cpp
16327 ac_cpp='$CXXCPP $CPPFLAGS'
16328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16331
16332     ac_save_CXXFLAGS=$CXXFLAGS
16333     CXXFLAGS="$CXXFLAGS -pedantic"
16334     if test "$cross_compiling" = yes; then
16335   ac_cv_huge_val_sanity=yes
16336 else
16337   cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343 #include <math.h>
16344 int
16345 main ()
16346 {
16347 double x = HUGE_VAL; return x != x;
16348   ;
16349   return 0;
16350 }
16351 _ACEOF
16352 rm -f conftest$ac_exeext
16353 if { (ac_try="$ac_link"
16354 case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_link") 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16363   { (case "(($ac_try" in
16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365   *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368   (eval "$ac_try") 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_cv_huge_val_sanity=yes
16373 else
16374   echo "$as_me: program exited with status $ac_status" >&5
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378 ( exit $ac_status )
16379 ac_cv_huge_val_sanity=no
16380 fi
16381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16382 fi
16383
16384
16385     CXXFLAGS=$ac_save_CXXFLAGS
16386     ac_ext=c
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16391
16392
16393 fi
16394 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16395 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16396   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16397
16398
16399 { echo "$as_me:$LINENO: checking for pid_t" >&5
16400 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16401 if test "${ac_cv_type_pid_t+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 $ac_includes_default
16411 typedef pid_t ac__type_new_;
16412 int
16413 main ()
16414 {
16415 if ((ac__type_new_ *) 0)
16416   return 0;
16417 if (sizeof (ac__type_new_))
16418   return 0;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_compile") 2>conftest.er1
16431   ac_status=$?
16432   grep -v '^ *+' conftest.er1 >conftest.err
16433   rm -f conftest.er1
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } &&
16437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438   { (case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_try") 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); }; } &&
16447          { ac_try='test -s conftest.$ac_objext'
16448   { (case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_try") 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }; then
16457   ac_cv_type_pid_t=yes
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462         ac_cv_type_pid_t=no
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 fi
16467 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16468 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16469 if test $ac_cv_type_pid_t = yes; then
16470   :
16471 else
16472
16473 cat >>confdefs.h <<_ACEOF
16474 #define pid_t int
16475 _ACEOF
16476
16477 fi
16478
16479 { echo "$as_me:$LINENO: checking for size_t" >&5
16480 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16481 if test "${ac_cv_type_size_t+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h.  */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h.  */
16490 $ac_includes_default
16491 typedef size_t ac__type_new_;
16492 int
16493 main ()
16494 {
16495 if ((ac__type_new_ *) 0)
16496   return 0;
16497 if (sizeof (ac__type_new_))
16498   return 0;
16499   ;
16500   return 0;
16501 }
16502 _ACEOF
16503 rm -f conftest.$ac_objext
16504 if { (ac_try="$ac_compile"
16505 case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510   (eval "$ac_compile") 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518   { (case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_try") 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; } &&
16527          { ac_try='test -s conftest.$ac_objext'
16528   { (case "(($ac_try" in
16529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530   *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533   (eval "$ac_try") 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); }; }; then
16537   ac_cv_type_size_t=yes
16538 else
16539   echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542         ac_cv_type_size_t=no
16543 fi
16544
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 fi
16547 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16548 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16549 if test $ac_cv_type_size_t = yes; then
16550   :
16551 else
16552
16553 cat >>confdefs.h <<_ACEOF
16554 #define size_t unsigned int
16555 _ACEOF
16556
16557 fi
16558
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define RETSIGTYPE void
16562 _ACEOF
16563
16564 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16565 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16566 if test "${ac_cv_struct_tm+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h.  */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h.  */
16575 #include <sys/types.h>
16576 #include <time.h>
16577
16578 int
16579 main ()
16580 {
16581 struct tm *tp; tp->tm_sec;
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 rm -f conftest.$ac_objext
16587 if { (ac_try="$ac_compile"
16588 case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_compile") 2>conftest.er1
16594   ac_status=$?
16595   grep -v '^ *+' conftest.er1 >conftest.err
16596   rm -f conftest.er1
16597   cat conftest.err >&5
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } &&
16600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601   { (case "(($ac_try" in
16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603   *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606   (eval "$ac_try") 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; } &&
16610          { ac_try='test -s conftest.$ac_objext'
16611   { (case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_try") 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; }; then
16620   ac_cv_struct_tm=time.h
16621 else
16622   echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16624
16625         ac_cv_struct_tm=sys/time.h
16626 fi
16627
16628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 fi
16630 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16631 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16632 if test $ac_cv_struct_tm = sys/time.h; then
16633
16634 cat >>confdefs.h <<\_ACEOF
16635 #define TM_IN_SYS_TIME 1
16636 _ACEOF
16637
16638 fi
16639
16640 { echo "$as_me:$LINENO: checking for int64_t" >&5
16641 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16642 if test "${ac_cv_type_int64_t+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651 $ac_includes_default
16652 typedef int64_t ac__type_new_;
16653 int
16654 main ()
16655 {
16656 if ((ac__type_new_ *) 0)
16657   return 0;
16658 if (sizeof (ac__type_new_))
16659   return 0;
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_compile") 2>conftest.er1
16672   ac_status=$?
16673   grep -v '^ *+' conftest.er1 >conftest.err
16674   rm -f conftest.er1
16675   cat conftest.err >&5
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } &&
16678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679   { (case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_try") 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; } &&
16688          { ac_try='test -s conftest.$ac_objext'
16689   { (case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_try") 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; }; then
16698   ac_cv_type_int64_t=yes
16699 else
16700   echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703         ac_cv_type_int64_t=no
16704 fi
16705
16706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16707 fi
16708 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16709 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16710 if test $ac_cv_type_int64_t = yes; then
16711
16712 cat >>confdefs.h <<_ACEOF
16713 #define HAVE_INT64_T 1
16714 _ACEOF
16715
16716
16717 else
16718   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16719 echo "$as_me: error: Type int64_t required but not found" >&2;}
16720    { (exit 1); exit 1; }; }
16721 fi
16722
16723 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16724 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16725 if test "${ac_cv_type_uint64_t+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h.  */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h.  */
16734 $ac_includes_default
16735 typedef uint64_t ac__type_new_;
16736 int
16737 main ()
16738 {
16739 if ((ac__type_new_ *) 0)
16740   return 0;
16741 if (sizeof (ac__type_new_))
16742   return 0;
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754   (eval "$ac_compile") 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; } &&
16771          { ac_try='test -s conftest.$ac_objext'
16772   { (case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_try") 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781   ac_cv_type_uint64_t=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786         ac_cv_type_uint64_t=no
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16792 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16793 if test $ac_cv_type_uint64_t = yes; then
16794
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_UINT64_T 1
16797 _ACEOF
16798
16799
16800 else
16801   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16802 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16803 if test "${ac_cv_type_u_int64_t+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h.  */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h.  */
16812 $ac_includes_default
16813 typedef u_int64_t ac__type_new_;
16814 int
16815 main ()
16816 {
16817 if ((ac__type_new_ *) 0)
16818   return 0;
16819 if (sizeof (ac__type_new_))
16820   return 0;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_compile") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } &&
16839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840   { (case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_try") 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; } &&
16849          { ac_try='test -s conftest.$ac_objext'
16850   { (case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855   (eval "$ac_try") 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; }; then
16859   ac_cv_type_u_int64_t=yes
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864         ac_cv_type_u_int64_t=no
16865 fi
16866
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 fi
16869 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16870 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16871 if test $ac_cv_type_u_int64_t = yes; then
16872
16873 cat >>confdefs.h <<_ACEOF
16874 #define HAVE_U_INT64_T 1
16875 _ACEOF
16876
16877
16878 else
16879   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16880 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16881    { (exit 1); exit 1; }; }
16882 fi
16883
16884 fi
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16896 do
16897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h.  */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h.  */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16911 #define $ac_func innocuous_$ac_func
16912
16913 /* System header to define __stub macros and hopefully few prototypes,
16914     which can conflict with char $ac_func (); below.
16915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916     <limits.h> exists even on freestanding compilers.  */
16917
16918 #ifdef __STDC__
16919 # include <limits.h>
16920 #else
16921 # include <assert.h>
16922 #endif
16923
16924 #undef $ac_func
16925
16926 /* Override any GCC internal prototype to avoid an error.
16927    Use char because int might match the return type of a GCC
16928    builtin and then its argument prototype would still apply.  */
16929 #ifdef __cplusplus
16930 extern "C"
16931 #endif
16932 char $ac_func ();
16933 /* The GNU C library defines this for functions which it implements
16934     to always fail with ENOSYS.  Some functions are actually named
16935     something starting with __ and the normal name is an alias.  */
16936 #if defined __stub_$ac_func || defined __stub___$ac_func
16937 choke me
16938 #endif
16939
16940 int
16941 main ()
16942 {
16943 return $ac_func ();
16944   ;
16945   return 0;
16946 }
16947 _ACEOF
16948 rm -f conftest.$ac_objext conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_link") 2>conftest.er1
16956   ac_status=$?
16957   grep -v '^ *+' conftest.er1 >conftest.err
16958   rm -f conftest.er1
16959   cat conftest.err >&5
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } &&
16962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963   { (case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_try") 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; } &&
16972          { ac_try='test -s conftest$ac_exeext'
16973   { (case "(($ac_try" in
16974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975   *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978   (eval "$ac_try") 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); }; }; then
16982   eval "$as_ac_var=yes"
16983 else
16984   echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987         eval "$as_ac_var=no"
16988 fi
16989
16990 rm -f core conftest.err conftest.$ac_objext \
16991       conftest$ac_exeext conftest.$ac_ext
16992 fi
16993 ac_res=`eval echo '${'$as_ac_var'}'`
16994                { echo "$as_me:$LINENO: result: $ac_res" >&5
16995 echo "${ECHO_T}$ac_res" >&6; }
16996 if test `eval echo '${'$as_ac_var'}'` = yes; then
16997   cat >>confdefs.h <<_ACEOF
16998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16999 _ACEOF
17000
17001 fi
17002 done
17003
17004
17005
17006
17007
17008 for ac_func in powf fmodf strtof round
17009 do
17010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17024 #define $ac_func innocuous_$ac_func
17025
17026 /* System header to define __stub macros and hopefully few prototypes,
17027     which can conflict with char $ac_func (); below.
17028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029     <limits.h> exists even on freestanding compilers.  */
17030
17031 #ifdef __STDC__
17032 # include <limits.h>
17033 #else
17034 # include <assert.h>
17035 #endif
17036
17037 #undef $ac_func
17038
17039 /* Override any GCC internal prototype to avoid an error.
17040    Use char because int might match the return type of a GCC
17041    builtin and then its argument prototype would still apply.  */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 char $ac_func ();
17046 /* The GNU C library defines this for functions which it implements
17047     to always fail with ENOSYS.  Some functions are actually named
17048     something starting with __ and the normal name is an alias.  */
17049 #if defined __stub_$ac_func || defined __stub___$ac_func
17050 choke me
17051 #endif
17052
17053 int
17054 main ()
17055 {
17056 return $ac_func ();
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_link") 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076   { (case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_try") 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; } &&
17085          { ac_try='test -s conftest$ac_exeext'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   eval "$as_ac_var=yes"
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100         eval "$as_ac_var=no"
17101 fi
17102
17103 rm -f core conftest.err conftest.$ac_objext \
17104       conftest$ac_exeext conftest.$ac_ext
17105 fi
17106 ac_res=`eval echo '${'$as_ac_var'}'`
17107                { echo "$as_me:$LINENO: result: $ac_res" >&5
17108 echo "${ECHO_T}$ac_res" >&6; }
17109 if test `eval echo '${'$as_ac_var'}'` = yes; then
17110   cat >>confdefs.h <<_ACEOF
17111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17112 _ACEOF
17113
17114 fi
17115 done
17116
17117
17118
17119
17120
17121
17122 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17123 do
17124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17138 #define $ac_func innocuous_$ac_func
17139
17140 /* System header to define __stub macros and hopefully few prototypes,
17141     which can conflict with char $ac_func (); below.
17142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143     <limits.h> exists even on freestanding compilers.  */
17144
17145 #ifdef __STDC__
17146 # include <limits.h>
17147 #else
17148 # include <assert.h>
17149 #endif
17150
17151 #undef $ac_func
17152
17153 /* Override any GCC internal prototype to avoid an error.
17154    Use char because int might match the return type of a GCC
17155    builtin and then its argument prototype would still apply.  */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char $ac_func ();
17160 /* The GNU C library defines this for functions which it implements
17161     to always fail with ENOSYS.  Some functions are actually named
17162     something starting with __ and the normal name is an alias.  */
17163 #if defined __stub_$ac_func || defined __stub___$ac_func
17164 choke me
17165 #endif
17166
17167 int
17168 main ()
17169 {
17170 return $ac_func ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179   *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182   (eval "$ac_link") 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } &&
17189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190   { (case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_try") 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; } &&
17199          { ac_try='test -s conftest$ac_exeext'
17200   { (case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_try") 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; }; then
17209   eval "$as_ac_var=yes"
17210 else
17211   echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214         eval "$as_ac_var=no"
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext \
17218       conftest$ac_exeext conftest.$ac_ext
17219 fi
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221                { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224   cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17226 _ACEOF
17227
17228 fi
17229 done
17230
17231
17232
17233
17234 for ac_func in isatty mkdtemp mkstemp
17235 do
17236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17240   echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242   cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17250 #define $ac_func innocuous_$ac_func
17251
17252 /* System header to define __stub macros and hopefully few prototypes,
17253     which can conflict with char $ac_func (); below.
17254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17255     <limits.h> exists even on freestanding compilers.  */
17256
17257 #ifdef __STDC__
17258 # include <limits.h>
17259 #else
17260 # include <assert.h>
17261 #endif
17262
17263 #undef $ac_func
17264
17265 /* Override any GCC internal prototype to avoid an error.
17266    Use char because int might match the return type of a GCC
17267    builtin and then its argument prototype would still apply.  */
17268 #ifdef __cplusplus
17269 extern "C"
17270 #endif
17271 char $ac_func ();
17272 /* The GNU C library defines this for functions which it implements
17273     to always fail with ENOSYS.  Some functions are actually named
17274     something starting with __ and the normal name is an alias.  */
17275 #if defined __stub_$ac_func || defined __stub___$ac_func
17276 choke me
17277 #endif
17278
17279 int
17280 main ()
17281 {
17282 return $ac_func ();
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_link") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } &&
17301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17302   { (case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_try") 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest$ac_exeext'
17312   { (case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_try") 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; }; then
17321   eval "$as_ac_var=yes"
17322 else
17323   echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326         eval "$as_ac_var=no"
17327 fi
17328
17329 rm -f core conftest.err conftest.$ac_objext \
17330       conftest$ac_exeext conftest.$ac_ext
17331 fi
17332 ac_res=`eval echo '${'$as_ac_var'}'`
17333                { echo "$as_me:$LINENO: result: $ac_res" >&5
17334 echo "${ECHO_T}$ac_res" >&6; }
17335 if test `eval echo '${'$as_ac_var'}'` = yes; then
17336   cat >>confdefs.h <<_ACEOF
17337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17338 _ACEOF
17339
17340 fi
17341 done
17342
17343
17344
17345
17346
17347
17348
17349
17350 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17351 do
17352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17366 #define $ac_func innocuous_$ac_func
17367
17368 /* System header to define __stub macros and hopefully few prototypes,
17369     which can conflict with char $ac_func (); below.
17370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17371     <limits.h> exists even on freestanding compilers.  */
17372
17373 #ifdef __STDC__
17374 # include <limits.h>
17375 #else
17376 # include <assert.h>
17377 #endif
17378
17379 #undef $ac_func
17380
17381 /* Override any GCC internal prototype to avoid an error.
17382    Use char because int might match the return type of a GCC
17383    builtin and then its argument prototype would still apply.  */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 char $ac_func ();
17388 /* The GNU C library defines this for functions which it implements
17389     to always fail with ENOSYS.  Some functions are actually named
17390     something starting with __ and the normal name is an alias.  */
17391 #if defined __stub_$ac_func || defined __stub___$ac_func
17392 choke me
17393 #endif
17394
17395 int
17396 main ()
17397 {
17398 return $ac_func ();
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_link") 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418   { (case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_try") 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest$ac_exeext'
17428   { (case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_try") 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   eval "$as_ac_var=yes"
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         eval "$as_ac_var=no"
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext \
17446       conftest$ac_exeext conftest.$ac_ext
17447 fi
17448 ac_res=`eval echo '${'$as_ac_var'}'`
17449                { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452   cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 _ACEOF
17455
17456 fi
17457 done
17458
17459
17460
17461
17462
17463 for ac_func in strerror strerror_r setenv arc4random
17464 do
17465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471   cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17479 #define $ac_func innocuous_$ac_func
17480
17481 /* System header to define __stub macros and hopefully few prototypes,
17482     which can conflict with char $ac_func (); below.
17483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17484     <limits.h> exists even on freestanding compilers.  */
17485
17486 #ifdef __STDC__
17487 # include <limits.h>
17488 #else
17489 # include <assert.h>
17490 #endif
17491
17492 #undef $ac_func
17493
17494 /* Override any GCC internal prototype to avoid an error.
17495    Use char because int might match the return type of a GCC
17496    builtin and then its argument prototype would still apply.  */
17497 #ifdef __cplusplus
17498 extern "C"
17499 #endif
17500 char $ac_func ();
17501 /* The GNU C library defines this for functions which it implements
17502     to always fail with ENOSYS.  Some functions are actually named
17503     something starting with __ and the normal name is an alias.  */
17504 #if defined __stub_$ac_func || defined __stub___$ac_func
17505 choke me
17506 #endif
17507
17508 int
17509 main ()
17510 {
17511 return $ac_func ();
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_link") 2>conftest.er1
17524   ac_status=$?
17525   grep -v '^ *+' conftest.er1 >conftest.err
17526   rm -f conftest.er1
17527   cat conftest.err >&5
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } &&
17530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531   { (case "(($ac_try" in
17532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533   *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536   (eval "$ac_try") 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; } &&
17540          { ac_try='test -s conftest$ac_exeext'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; }; then
17550   eval "$as_ac_var=yes"
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555         eval "$as_ac_var=no"
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext \
17559       conftest$ac_exeext conftest.$ac_ext
17560 fi
17561 ac_res=`eval echo '${'$as_ac_var'}'`
17562                { echo "$as_me:$LINENO: result: $ac_res" >&5
17563 echo "${ECHO_T}$ac_res" >&6; }
17564 if test `eval echo '${'$as_ac_var'}'` = yes; then
17565   cat >>confdefs.h <<_ACEOF
17566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17567 _ACEOF
17568
17569 fi
17570 done
17571
17572
17573
17574
17575
17576 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17577 do
17578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584   cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h.  */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h.  */
17590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17592 #define $ac_func innocuous_$ac_func
17593
17594 /* System header to define __stub macros and hopefully few prototypes,
17595     which can conflict with char $ac_func (); below.
17596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17597     <limits.h> exists even on freestanding compilers.  */
17598
17599 #ifdef __STDC__
17600 # include <limits.h>
17601 #else
17602 # include <assert.h>
17603 #endif
17604
17605 #undef $ac_func
17606
17607 /* Override any GCC internal prototype to avoid an error.
17608    Use char because int might match the return type of a GCC
17609    builtin and then its argument prototype would still apply.  */
17610 #ifdef __cplusplus
17611 extern "C"
17612 #endif
17613 char $ac_func ();
17614 /* The GNU C library defines this for functions which it implements
17615     to always fail with ENOSYS.  Some functions are actually named
17616     something starting with __ and the normal name is an alias.  */
17617 #if defined __stub_$ac_func || defined __stub___$ac_func
17618 choke me
17619 #endif
17620
17621 int
17622 main ()
17623 {
17624 return $ac_func ();
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_link") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644   { (case "(($ac_try" in
17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646   *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649   (eval "$ac_try") 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; } &&
17653          { ac_try='test -s conftest$ac_exeext'
17654   { (case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_try") 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663   eval "$as_ac_var=yes"
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         eval "$as_ac_var=no"
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext \
17672       conftest$ac_exeext conftest.$ac_ext
17673 fi
17674 ac_res=`eval echo '${'$as_ac_var'}'`
17675                { echo "$as_me:$LINENO: result: $ac_res" >&5
17676 echo "${ECHO_T}$ac_res" >&6; }
17677 if test `eval echo '${'$as_ac_var'}'` = yes; then
17678   cat >>confdefs.h <<_ACEOF
17679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17680 _ACEOF
17681
17682 fi
17683 done
17684
17685
17686
17687
17688
17689
17690 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17691 do
17692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696   echo $ECHO_N "(cached) $ECHO_C" >&6
17697 else
17698   cat >conftest.$ac_ext <<_ACEOF
17699 /* confdefs.h.  */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h.  */
17704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17706 #define $ac_func innocuous_$ac_func
17707
17708 /* System header to define __stub macros and hopefully few prototypes,
17709     which can conflict with char $ac_func (); below.
17710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711     <limits.h> exists even on freestanding compilers.  */
17712
17713 #ifdef __STDC__
17714 # include <limits.h>
17715 #else
17716 # include <assert.h>
17717 #endif
17718
17719 #undef $ac_func
17720
17721 /* Override any GCC internal prototype to avoid an error.
17722    Use char because int might match the return type of a GCC
17723    builtin and then its argument prototype would still apply.  */
17724 #ifdef __cplusplus
17725 extern "C"
17726 #endif
17727 char $ac_func ();
17728 /* The GNU C library defines this for functions which it implements
17729     to always fail with ENOSYS.  Some functions are actually named
17730     something starting with __ and the normal name is an alias.  */
17731 #if defined __stub_$ac_func || defined __stub___$ac_func
17732 choke me
17733 #endif
17734
17735 int
17736 main ()
17737 {
17738 return $ac_func ();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (ac_try="$ac_link"
17745 case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_link") 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758   { (case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_try") 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest$ac_exeext'
17768   { (case "(($ac_try" in
17769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770   *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773   (eval "$ac_try") 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; }; then
17777   eval "$as_ac_var=yes"
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782         eval "$as_ac_var=no"
17783 fi
17784
17785 rm -f core conftest.err conftest.$ac_objext \
17786       conftest$ac_exeext conftest.$ac_ext
17787 fi
17788 ac_res=`eval echo '${'$as_ac_var'}'`
17789                { echo "$as_me:$LINENO: result: $ac_res" >&5
17790 echo "${ECHO_T}$ac_res" >&6; }
17791 if test `eval echo '${'$as_ac_var'}'` = yes; then
17792   cat >>confdefs.h <<_ACEOF
17793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17794 _ACEOF
17795
17796 fi
17797 done
17798
17799 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17800 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17801 if test "${llvm_cv_c_printf_a+set}" = set; then
17802   echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804   ac_ext=c
17805 ac_cpp='$CPP $CPPFLAGS'
17806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17809
17810  if test "$cross_compiling" = yes; then
17811   llvmac_cv_c_printf_a=no
17812 else
17813   cat >conftest.$ac_ext <<_ACEOF
17814
17815   /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820
17821 #include <stdio.h>
17822 #include <stdlib.h>
17823
17824 int
17825 main ()
17826 {
17827
17828 volatile double A, B;
17829 char Buffer[100];
17830 A = 1;
17831 A /= 10.0;
17832 sprintf(Buffer, "%a", A);
17833 B = atof(Buffer);
17834 if (A != B)
17835   return (1);
17836 if (A != 0x1.999999999999ap-4)
17837   return (1);
17838 return (0);
17839   ;
17840   return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest$ac_exeext
17844 if { (ac_try="$ac_link"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_link") 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17854   { (case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859   (eval "$ac_try") 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; }; then
17863   llvm_cv_c_printf_a=yes
17864 else
17865   echo "$as_me: program exited with status $ac_status" >&5
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869 ( exit $ac_status )
17870 llvmac_cv_c_printf_a=no
17871 fi
17872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17873 fi
17874
17875
17876  ac_ext=c
17877 ac_cpp='$CPP $CPPFLAGS'
17878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17881
17882 fi
17883 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17884 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17885  if test "$llvm_cv_c_printf_a" = "yes"; then
17886
17887 cat >>confdefs.h <<\_ACEOF
17888 #define HAVE_PRINTF_A 1
17889 _ACEOF
17890
17891  fi
17892
17893
17894 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17895 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17896 if test "${ac_cv_func_rand48+set}" = set; then
17897   echo $ECHO_N "(cached) $ECHO_C" >&6
17898 else
17899   ac_ext=cpp
17900 ac_cpp='$CXXCPP $CPPFLAGS'
17901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17904
17905    cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911 #include <stdlib.h>
17912 int
17913 main ()
17914 {
17915 srand48(0);lrand48();drand48();
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_compile") 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } &&
17934          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17935   { (case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_try") 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest.$ac_objext'
17945   { (case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_try") 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   ac_cv_func_rand48=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959         ac_cv_func_rand48=no
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963   ac_ext=c
17964 ac_cpp='$CPP $CPPFLAGS'
17965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17968
17969 fi
17970 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17971 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17972
17973 if test "$ac_cv_func_rand48" = "yes" ; then
17974
17975 cat >>confdefs.h <<\_ACEOF
17976 #define HAVE_RAND48 1
17977 _ACEOF
17978
17979 fi
17980
17981
17982 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17983 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17984 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17985   echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987   cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 $ac_includes_default
17994 int
17995 main ()
17996 {
17997 #ifndef strerror_s
17998   char *p = (char *) strerror_s;
17999   return !p;
18000 #endif
18001
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (ac_try="$ac_compile"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_compile") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest.$ac_objext'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040   ac_cv_have_decl_strerror_s=yes
18041 else
18042   echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045         ac_cv_have_decl_strerror_s=no
18046 fi
18047
18048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049 fi
18050 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18051 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18052 if test $ac_cv_have_decl_strerror_s = yes; then
18053
18054 cat >>confdefs.h <<_ACEOF
18055 #define HAVE_DECL_STRERROR_S 1
18056 _ACEOF
18057
18058
18059 else
18060   cat >>confdefs.h <<_ACEOF
18061 #define HAVE_DECL_STRERROR_S 0
18062 _ACEOF
18063
18064
18065 fi
18066
18067
18068
18069 if test "$llvm_cv_os_type" = "MingW" ; then
18070   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18071 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18072 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   ac_check_lib_save_LIBS=$LIBS
18076 LIBS="-lgcc  $LIBS"
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083
18084 /* Override any GCC internal prototype to avoid an error.
18085    Use char because int might match the return type of a GCC
18086    builtin and then its argument prototype would still apply.  */
18087 #ifdef __cplusplus
18088 extern "C"
18089 #endif
18090 char _alloca ();
18091 int
18092 main ()
18093 {
18094 return _alloca ();
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_link") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114   { (case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_try") 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest$ac_exeext'
18124   { (case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_try") 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   ac_cv_lib_gcc__alloca=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         ac_cv_lib_gcc__alloca=no
18139 fi
18140
18141 rm -f core conftest.err conftest.$ac_objext \
18142       conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_check_lib_save_LIBS
18144 fi
18145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18146 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18147 if test $ac_cv_lib_gcc__alloca = yes; then
18148
18149 cat >>confdefs.h <<\_ACEOF
18150 #define HAVE__ALLOCA 1
18151 _ACEOF
18152
18153 fi
18154
18155   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18156 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18157 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   ac_check_lib_save_LIBS=$LIBS
18161 LIBS="-lgcc  $LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h.  */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h.  */
18168
18169 /* Override any GCC internal prototype to avoid an error.
18170    Use char because int might match the return type of a GCC
18171    builtin and then its argument prototype would still apply.  */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char __alloca ();
18176 int
18177 main ()
18178 {
18179 return __alloca ();
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } &&
18198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199   { (case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_try") 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; } &&
18208          { ac_try='test -s conftest$ac_exeext'
18209   { (case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_try") 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; }; then
18218   ac_cv_lib_gcc___alloca=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223         ac_cv_lib_gcc___alloca=no
18224 fi
18225
18226 rm -f core conftest.err conftest.$ac_objext \
18227       conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18229 fi
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18231 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18232 if test $ac_cv_lib_gcc___alloca = yes; then
18233
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE___ALLOCA 1
18236 _ACEOF
18237
18238 fi
18239
18240   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18241 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18242 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18243   echo $ECHO_N "(cached) $ECHO_C" >&6
18244 else
18245   ac_check_lib_save_LIBS=$LIBS
18246 LIBS="-lgcc  $LIBS"
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h.  */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h.  */
18253
18254 /* Override any GCC internal prototype to avoid an error.
18255    Use char because int might match the return type of a GCC
18256    builtin and then its argument prototype would still apply.  */
18257 #ifdef __cplusplus
18258 extern "C"
18259 #endif
18260 char __chkstk ();
18261 int
18262 main ()
18263 {
18264 return __chkstk ();
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18277   ac_status=$?
18278   grep -v '^ *+' conftest.er1 >conftest.err
18279   rm -f conftest.er1
18280   cat conftest.err >&5
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } &&
18283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18284   { (case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_try") 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }; } &&
18293          { ac_try='test -s conftest$ac_exeext'
18294   { (case "(($ac_try" in
18295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296   *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299   (eval "$ac_try") 2>&5
18300   ac_status=$?
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); }; }; then
18303   ac_cv_lib_gcc___chkstk=yes
18304 else
18305   echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308         ac_cv_lib_gcc___chkstk=no
18309 fi
18310
18311 rm -f core conftest.err conftest.$ac_objext \
18312       conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18314 fi
18315 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18316 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18317 if test $ac_cv_lib_gcc___chkstk = yes; then
18318
18319 cat >>confdefs.h <<\_ACEOF
18320 #define HAVE___CHKSTK 1
18321 _ACEOF
18322
18323 fi
18324
18325   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18326 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18327 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-lgcc  $LIBS"
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338
18339 /* Override any GCC internal prototype to avoid an error.
18340    Use char because int might match the return type of a GCC
18341    builtin and then its argument prototype would still apply.  */
18342 #ifdef __cplusplus
18343 extern "C"
18344 #endif
18345 char ___chkstk ();
18346 int
18347 main ()
18348 {
18349 return ___chkstk ();
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } &&
18368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18369   { (case "(($ac_try" in
18370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371   *) ac_try_echo=$ac_try;;
18372 esac
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374   (eval "$ac_try") 2>&5
18375   ac_status=$?
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); }; } &&
18378          { ac_try='test -s conftest$ac_exeext'
18379   { (case "(($ac_try" in
18380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381   *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384   (eval "$ac_try") 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; }; then
18388   ac_cv_lib_gcc____chkstk=yes
18389 else
18390   echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393         ac_cv_lib_gcc____chkstk=no
18394 fi
18395
18396 rm -f core conftest.err conftest.$ac_objext \
18397       conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18399 fi
18400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18401 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18402 if test $ac_cv_lib_gcc____chkstk = yes; then
18403
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE____CHKSTK 1
18406 _ACEOF
18407
18408 fi
18409
18410
18411   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18412 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18413 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18414   echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416   ac_check_lib_save_LIBS=$LIBS
18417 LIBS="-lgcc  $LIBS"
18418 cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424
18425 /* Override any GCC internal prototype to avoid an error.
18426    Use char because int might match the return type of a GCC
18427    builtin and then its argument prototype would still apply.  */
18428 #ifdef __cplusplus
18429 extern "C"
18430 #endif
18431 char __ashldi3 ();
18432 int
18433 main ()
18434 {
18435 return __ashldi3 ();
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_link") 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455   { (case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_try") 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest$ac_exeext'
18465   { (case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_try") 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474   ac_cv_lib_gcc___ashldi3=yes
18475 else
18476   echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479         ac_cv_lib_gcc___ashldi3=no
18480 fi
18481
18482 rm -f core conftest.err conftest.$ac_objext \
18483       conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18487 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18488 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE___ASHLDI3 1
18492 _ACEOF
18493
18494 fi
18495
18496   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18497 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18498 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lgcc  $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509
18510 /* Override any GCC internal prototype to avoid an error.
18511    Use char because int might match the return type of a GCC
18512    builtin and then its argument prototype would still apply.  */
18513 #ifdef __cplusplus
18514 extern "C"
18515 #endif
18516 char __ashrdi3 ();
18517 int
18518 main ()
18519 {
18520 return __ashrdi3 ();
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18533   ac_status=$?
18534   grep -v '^ *+' conftest.er1 >conftest.err
18535   rm -f conftest.er1
18536   cat conftest.err >&5
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } &&
18539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540   { (case "(($ac_try" in
18541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542   *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545   (eval "$ac_try") 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; } &&
18549          { ac_try='test -s conftest$ac_exeext'
18550   { (case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_try") 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   ac_cv_lib_gcc___ashrdi3=yes
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564         ac_cv_lib_gcc___ashrdi3=no
18565 fi
18566
18567 rm -f core conftest.err conftest.$ac_objext \
18568       conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18570 fi
18571 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18572 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18573 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18574
18575 cat >>confdefs.h <<\_ACEOF
18576 #define HAVE___ASHRDI3 1
18577 _ACEOF
18578
18579 fi
18580
18581   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18582 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18583 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586   ac_check_lib_save_LIBS=$LIBS
18587 LIBS="-lgcc  $LIBS"
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594
18595 /* Override any GCC internal prototype to avoid an error.
18596    Use char because int might match the return type of a GCC
18597    builtin and then its argument prototype would still apply.  */
18598 #ifdef __cplusplus
18599 extern "C"
18600 #endif
18601 char __divdi3 ();
18602 int
18603 main ()
18604 {
18605 return __divdi3 ();
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } &&
18624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625   { (case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest$ac_exeext'
18635   { (case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_try") 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; }; then
18644   ac_cv_lib_gcc___divdi3=yes
18645 else
18646   echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649         ac_cv_lib_gcc___divdi3=no
18650 fi
18651
18652 rm -f core conftest.err conftest.$ac_objext \
18653       conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18655 fi
18656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18657 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18658 if test $ac_cv_lib_gcc___divdi3 = yes; then
18659
18660 cat >>confdefs.h <<\_ACEOF
18661 #define HAVE___DIVDI3 1
18662 _ACEOF
18663
18664 fi
18665
18666   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18667 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18668 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18669   echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671   ac_check_lib_save_LIBS=$LIBS
18672 LIBS="-lgcc  $LIBS"
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h.  */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h.  */
18679
18680 /* Override any GCC internal prototype to avoid an error.
18681    Use char because int might match the return type of a GCC
18682    builtin and then its argument prototype would still apply.  */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 char __fixdfdi ();
18687 int
18688 main ()
18689 {
18690 return __fixdfdi ();
18691   ;
18692   return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18703   ac_status=$?
18704   grep -v '^ *+' conftest.er1 >conftest.err
18705   rm -f conftest.er1
18706   cat conftest.err >&5
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); } &&
18709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710   { (case "(($ac_try" in
18711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712   *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715   (eval "$ac_try") 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; } &&
18719          { ac_try='test -s conftest$ac_exeext'
18720   { (case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_try") 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_cv_lib_gcc___fixdfdi=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         ac_cv_lib_gcc___fixdfdi=no
18735 fi
18736
18737 rm -f core conftest.err conftest.$ac_objext \
18738       conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18740 fi
18741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18742 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18743 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18744
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE___FIXDFDI 1
18747 _ACEOF
18748
18749 fi
18750
18751   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18752 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18753 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   ac_check_lib_save_LIBS=$LIBS
18757 LIBS="-lgcc  $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764
18765 /* Override any GCC internal prototype to avoid an error.
18766    Use char because int might match the return type of a GCC
18767    builtin and then its argument prototype would still apply.  */
18768 #ifdef __cplusplus
18769 extern "C"
18770 #endif
18771 char __fixsfdi ();
18772 int
18773 main ()
18774 {
18775 return __fixsfdi ();
18776   ;
18777   return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18788   ac_status=$?
18789   grep -v '^ *+' conftest.er1 >conftest.err
18790   rm -f conftest.er1
18791   cat conftest.err >&5
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); } &&
18794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795   { (case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_try") 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; } &&
18804          { ac_try='test -s conftest$ac_exeext'
18805   { (case "(($ac_try" in
18806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807   *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810   (eval "$ac_try") 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); }; }; then
18814   ac_cv_lib_gcc___fixsfdi=yes
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819         ac_cv_lib_gcc___fixsfdi=no
18820 fi
18821
18822 rm -f core conftest.err conftest.$ac_objext \
18823       conftest$ac_exeext conftest.$ac_ext
18824 LIBS=$ac_check_lib_save_LIBS
18825 fi
18826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18827 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18828 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE___FIXSFDI 1
18832 _ACEOF
18833
18834 fi
18835
18836   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18837 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18838 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18839   echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841   ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lgcc  $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h.  */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h.  */
18849
18850 /* Override any GCC internal prototype to avoid an error.
18851    Use char because int might match the return type of a GCC
18852    builtin and then its argument prototype would still apply.  */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 char __floatdidf ();
18857 int
18858 main ()
18859 {
18860 return __floatdidf ();
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } &&
18879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880   { (case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_try") 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; } &&
18889          { ac_try='test -s conftest$ac_exeext'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ac_cv_lib_gcc___floatdidf=yes
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904         ac_cv_lib_gcc___floatdidf=no
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18910 fi
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18912 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18913 if test $ac_cv_lib_gcc___floatdidf = yes; then
18914
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE___FLOATDIDF 1
18917 _ACEOF
18918
18919 fi
18920
18921   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18922 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   ac_check_lib_save_LIBS=$LIBS
18927 LIBS="-lgcc  $LIBS"
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936    Use char because int might match the return type of a GCC
18937    builtin and then its argument prototype would still apply.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char __lshrdi3 ();
18942 int
18943 main ()
18944 {
18945 return __lshrdi3 ();
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } &&
18964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965   { (case "(($ac_try" in
18966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967   *) ac_try_echo=$ac_try;;
18968 esac
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970   (eval "$ac_try") 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; } &&
18974          { ac_try='test -s conftest$ac_exeext'
18975   { (case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_try") 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; }; then
18984   ac_cv_lib_gcc___lshrdi3=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989         ac_cv_lib_gcc___lshrdi3=no
18990 fi
18991
18992 rm -f core conftest.err conftest.$ac_objext \
18993       conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18995 fi
18996 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18997 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18998 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18999
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE___LSHRDI3 1
19002 _ACEOF
19003
19004 fi
19005
19006   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19007 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19008 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19009   echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011   ac_check_lib_save_LIBS=$LIBS
19012 LIBS="-lgcc  $LIBS"
19013 cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019
19020 /* Override any GCC internal prototype to avoid an error.
19021    Use char because int might match the return type of a GCC
19022    builtin and then its argument prototype would still apply.  */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 char __moddi3 ();
19027 int
19028 main ()
19029 {
19030 return __moddi3 ();
19031   ;
19032   return 0;
19033 }
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19043   ac_status=$?
19044   grep -v '^ *+' conftest.er1 >conftest.err
19045   rm -f conftest.er1
19046   cat conftest.err >&5
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); } &&
19049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050   { (case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_try") 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; } &&
19059          { ac_try='test -s conftest$ac_exeext'
19060   { (case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_try") 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069   ac_cv_lib_gcc___moddi3=yes
19070 else
19071   echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074         ac_cv_lib_gcc___moddi3=no
19075 fi
19076
19077 rm -f core conftest.err conftest.$ac_objext \
19078       conftest$ac_exeext conftest.$ac_ext
19079 LIBS=$ac_check_lib_save_LIBS
19080 fi
19081 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19082 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19083 if test $ac_cv_lib_gcc___moddi3 = yes; then
19084
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE___MODDI3 1
19087 _ACEOF
19088
19089 fi
19090
19091   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19092 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19093 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19094   echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096   ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lgcc  $LIBS"
19098 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104
19105 /* Override any GCC internal prototype to avoid an error.
19106    Use char because int might match the return type of a GCC
19107    builtin and then its argument prototype would still apply.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char __udivdi3 ();
19112 int
19113 main ()
19114 {
19115 return __udivdi3 ();
19116   ;
19117   return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19135   { (case "(($ac_try" in
19136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137   *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140   (eval "$ac_try") 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; } &&
19144          { ac_try='test -s conftest$ac_exeext'
19145   { (case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_try") 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; }; then
19154   ac_cv_lib_gcc___udivdi3=yes
19155 else
19156   echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159         ac_cv_lib_gcc___udivdi3=no
19160 fi
19161
19162 rm -f core conftest.err conftest.$ac_objext \
19163       conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19167 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19168 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19169
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE___UDIVDI3 1
19172 _ACEOF
19173
19174 fi
19175
19176   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19177 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19178 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19179   echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181   ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lgcc  $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189
19190 /* Override any GCC internal prototype to avoid an error.
19191    Use char because int might match the return type of a GCC
19192    builtin and then its argument prototype would still apply.  */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 char __umoddi3 ();
19197 int
19198 main ()
19199 {
19200 return __umoddi3 ();
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } &&
19219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19220   { (case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225   (eval "$ac_try") 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; } &&
19229          { ac_try='test -s conftest$ac_exeext'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; }; then
19239   ac_cv_lib_gcc___umoddi3=yes
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244         ac_cv_lib_gcc___umoddi3=no
19245 fi
19246
19247 rm -f core conftest.err conftest.$ac_objext \
19248       conftest$ac_exeext conftest.$ac_ext
19249 LIBS=$ac_check_lib_save_LIBS
19250 fi
19251 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19252 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19253 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19254
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE___UMODDI3 1
19257 _ACEOF
19258
19259 fi
19260
19261
19262   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19263 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19264 if test "${ac_cv_lib_gcc___main+set}" = set; then
19265   echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267   ac_check_lib_save_LIBS=$LIBS
19268 LIBS="-lgcc  $LIBS"
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275
19276 /* Override any GCC internal prototype to avoid an error.
19277    Use char because int might match the return type of a GCC
19278    builtin and then its argument prototype would still apply.  */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 char __main ();
19283 int
19284 main ()
19285 {
19286 return __main ();
19287   ;
19288   return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
19293 case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_link") 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } &&
19305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19306   { (case "(($ac_try" in
19307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308   *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311   (eval "$ac_try") 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; } &&
19315          { ac_try='test -s conftest$ac_exeext'
19316   { (case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321   (eval "$ac_try") 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; }; then
19325   ac_cv_lib_gcc___main=yes
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330         ac_cv_lib_gcc___main=no
19331 fi
19332
19333 rm -f core conftest.err conftest.$ac_objext \
19334       conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19336 fi
19337 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19338 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19339 if test $ac_cv_lib_gcc___main = yes; then
19340
19341 cat >>confdefs.h <<\_ACEOF
19342 #define HAVE___MAIN 1
19343 _ACEOF
19344
19345 fi
19346
19347   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19348 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19349 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   ac_check_lib_save_LIBS=$LIBS
19353 LIBS="-lgcc  $LIBS"
19354 cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h.  */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h.  */
19360
19361 /* Override any GCC internal prototype to avoid an error.
19362    Use char because int might match the return type of a GCC
19363    builtin and then its argument prototype would still apply.  */
19364 #ifdef __cplusplus
19365 extern "C"
19366 #endif
19367 char __cmpdi2 ();
19368 int
19369 main ()
19370 {
19371 return __cmpdi2 ();
19372   ;
19373   return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext conftest$ac_exeext
19377 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19384   ac_status=$?
19385   grep -v '^ *+' conftest.er1 >conftest.err
19386   rm -f conftest.er1
19387   cat conftest.err >&5
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); } &&
19390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19391   { (case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396   (eval "$ac_try") 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); }; } &&
19400          { ac_try='test -s conftest$ac_exeext'
19401   { (case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_try") 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; }; then
19410   ac_cv_lib_gcc___cmpdi2=yes
19411 else
19412   echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415         ac_cv_lib_gcc___cmpdi2=no
19416 fi
19417
19418 rm -f core conftest.err conftest.$ac_objext \
19419       conftest$ac_exeext conftest.$ac_ext
19420 LIBS=$ac_check_lib_save_LIBS
19421 fi
19422 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19423 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19424 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19425
19426 cat >>confdefs.h <<\_ACEOF
19427 #define HAVE___CMPDI2 1
19428 _ACEOF
19429
19430 fi
19431
19432 fi
19433
19434 if test "$llvm_cv_os_type" = "MingW" ; then
19435   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19436 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19437   cat >conftest.$ac_ext <<_ACEOF
19438 #include <windows.h>
19439 #include <imagehlp.h>
19440 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19441 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19442 _ACEOF
19443 rm -f conftest.$ac_objext
19444 if { (ac_try="$ac_compile"
19445 case "(($ac_try" in
19446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447   *) ac_try_echo=$ac_try;;
19448 esac
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450   (eval "$ac_compile") 2>conftest.er1
19451   ac_status=$?
19452   grep -v '^ *+' conftest.er1 >conftest.err
19453   rm -f conftest.er1
19454   cat conftest.err >&5
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); } &&
19457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19458   { (case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_try") 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; } &&
19467          { ac_try='test -s conftest.$ac_objext'
19468   { (case "(($ac_try" in
19469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470   *) ac_try_echo=$ac_try;;
19471 esac
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473   (eval "$ac_try") 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; }; then
19477
19478   { echo "$as_me:$LINENO: result: yes" >&5
19479 echo "${ECHO_T}yes" >&6; }
19480   llvm_cv_win32_elmcb_pcstr="PCSTR"
19481
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486
19487   { echo "$as_me:$LINENO: result: no" >&5
19488 echo "${ECHO_T}no" >&6; }
19489   llvm_cv_win32_elmcb_pcstr="PSTR"
19490
19491 fi
19492
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494
19495 cat >>confdefs.h <<_ACEOF
19496 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19497 _ACEOF
19498
19499 fi
19500
19501
19502 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19503 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   ac_ext=cpp
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513    cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 #include <math.h>
19520 int
19521 main ()
19522 {
19523 float f; isnan(f);
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } &&
19542          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543   { (case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_try") 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (case "(($ac_try" in
19554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555   *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558   (eval "$ac_try") 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; }; then
19562   ac_cv_func_isnan_in_math_h=yes
19563 else
19564   echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567         ac_cv_func_isnan_in_math_h=no
19568 fi
19569
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571   ac_ext=c
19572 ac_cpp='$CPP $CPPFLAGS'
19573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19579 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19580
19581
19582 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_ISNAN_IN_MATH_H 1
19586 _ACEOF
19587
19588 fi
19589
19590 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19591 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   ac_ext=cpp
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
19601    cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #include <cmath>
19608 int
19609 main ()
19610 {
19611 float f; isnan(f);
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_compile") 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631   { (case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_try") 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest.$ac_objext'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_func_isnan_in_cmath=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655         ac_cv_func_isnan_in_cmath=no
19656 fi
19657
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659   ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665 fi
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19667 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19668
19669 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19670
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_ISNAN_IN_CMATH 1
19673 _ACEOF
19674
19675 fi
19676
19677 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19678 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19679 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19680   echo $ECHO_N "(cached) $ECHO_C" >&6
19681 else
19682   ac_ext=cpp
19683 ac_cpp='$CXXCPP $CPPFLAGS'
19684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19687
19688    cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h.  */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h.  */
19694 #include <cmath>
19695 int
19696 main ()
19697 {
19698 float f; std::isnan(f);
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext
19704 if { (ac_try="$ac_compile"
19705 case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_compile") 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718   { (case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_try") 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; } &&
19727          { ac_try='test -s conftest.$ac_objext'
19728   { (case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_try") 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_cv_func_std_isnan_in_cmath=yes
19738 else
19739   echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742         ac_cv_func_std_isnan_in_cmath=no
19743 fi
19744
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746   ac_ext=c
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752 fi
19753 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19754 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19755
19756 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19757
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_STD_ISNAN_IN_CMATH 1
19760 _ACEOF
19761
19762 fi
19763
19764
19765 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19766 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19767 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19768   echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770   ac_ext=cpp
19771 ac_cpp='$CXXCPP $CPPFLAGS'
19772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19775
19776    cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 #include <math.h>
19783 int
19784 main ()
19785 {
19786 float f; isinf(f);
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext
19792 if { (ac_try="$ac_compile"
19793 case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_compile") 2>conftest.er1
19799   ac_status=$?
19800   grep -v '^ *+' conftest.er1 >conftest.err
19801   rm -f conftest.er1
19802   cat conftest.err >&5
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); } &&
19805          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19806   { (case "(($ac_try" in
19807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808   *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811   (eval "$ac_try") 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; } &&
19815          { ac_try='test -s conftest.$ac_objext'
19816   { (case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821   (eval "$ac_try") 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   ac_cv_func_isinf_in_math_h=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830         ac_cv_func_isinf_in_math_h=no
19831 fi
19832
19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19834   ac_ext=c
19835 ac_cpp='$CPP $CPPFLAGS'
19836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19839
19840 fi
19841 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19842 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19843
19844 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19845
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE_ISINF_IN_MATH_H 1
19848 _ACEOF
19849
19850 fi
19851
19852 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19853 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19854 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19855   echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857   ac_ext=cpp
19858 ac_cpp='$CXXCPP $CPPFLAGS'
19859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19862
19863    cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h.  */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h.  */
19869 #include <cmath>
19870 int
19871 main ()
19872 {
19873 float f; isinf(f);
19874   ;
19875   return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885   (eval "$ac_compile") 2>conftest.er1
19886   ac_status=$?
19887   grep -v '^ *+' conftest.er1 >conftest.err
19888   rm -f conftest.er1
19889   cat conftest.err >&5
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } &&
19892          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19893   { (case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_try") 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; } &&
19902          { ac_try='test -s conftest.$ac_objext'
19903   { (case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_try") 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; }; then
19912   ac_cv_func_isinf_in_cmath=yes
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917         ac_cv_func_isinf_in_cmath=no
19918 fi
19919
19920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19921   ac_ext=c
19922 ac_cpp='$CPP $CPPFLAGS'
19923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19926
19927 fi
19928 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19929 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19930
19931 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19932
19933 cat >>confdefs.h <<\_ACEOF
19934 #define HAVE_ISINF_IN_CMATH 1
19935 _ACEOF
19936
19937 fi
19938
19939 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19940 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19941 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944   ac_ext=cpp
19945 ac_cpp='$CXXCPP $CPPFLAGS'
19946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19949
19950    cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956 #include <cmath>
19957 int
19958 main ()
19959 {
19960 float f; std::isinf(f);
19961   ;
19962   return 0;
19963 }
19964 _ACEOF
19965 rm -f conftest.$ac_objext
19966 if { (ac_try="$ac_compile"
19967 case "(($ac_try" in
19968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969   *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972   (eval "$ac_compile") 2>conftest.er1
19973   ac_status=$?
19974   grep -v '^ *+' conftest.er1 >conftest.err
19975   rm -f conftest.er1
19976   cat conftest.err >&5
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } &&
19979          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19980   { (case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_try") 2>&5
19986   ac_status=$?
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); }; } &&
19989          { ac_try='test -s conftest.$ac_objext'
19990   { (case "(($ac_try" in
19991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992   *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995   (eval "$ac_try") 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   ac_cv_func_std_isinf_in_cmath=yes
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004         ac_cv_func_std_isinf_in_cmath=no
20005 fi
20006
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008   ac_ext=c
20009 ac_cpp='$CPP $CPPFLAGS'
20010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20013
20014 fi
20015 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20016 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20017
20018 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20019
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_STD_ISINF_IN_CMATH 1
20022 _ACEOF
20023
20024 fi
20025
20026 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20027 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20028 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   ac_ext=cpp
20032 ac_cpp='$CXXCPP $CPPFLAGS'
20033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20036
20037    cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043 #include <ieeefp.h>
20044 int
20045 main ()
20046 {
20047 float f; finite(f);
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056   *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059   (eval "$ac_compile") 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } &&
20066          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20067   { (case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_try") 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; } &&
20076          { ac_try='test -s conftest.$ac_objext'
20077   { (case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082   (eval "$ac_try") 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_func_finite_in_ieeefp_h=yes
20087 else
20088   echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091         ac_cv_func_finite_in_ieeefp_h=no
20092 fi
20093
20094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20095   ac_ext=c
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20100
20101 fi
20102 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20103 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20104
20105 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20106
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_FINITE_IN_IEEEFP_H 1
20109 _ACEOF
20110
20111 fi
20112
20113
20114
20115 if test "$llvm_cv_platform_type" = "Unix" ; then
20116
20117
20118 for ac_header in stdlib.h unistd.h
20119 do
20120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20122   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 fi
20127 ac_res=`eval echo '${'$as_ac_Header'}'`
20128                { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20130 else
20131   # Is the header compilable?
20132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 $ac_includes_default
20141 #include <$ac_header>
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_compile") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20158   { (case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_try") 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; } &&
20167          { ac_try='test -s conftest.$ac_objext'
20168   { (case "(($ac_try" in
20169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170   *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173   (eval "$ac_try") 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; }; then
20177   ac_header_compiler=yes
20178 else
20179   echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182         ac_header_compiler=no
20183 fi
20184
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20187 echo "${ECHO_T}$ac_header_compiler" >&6; }
20188
20189 # Is the header present?
20190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 #include <$ac_header>
20199 _ACEOF
20200 if { (ac_try="$ac_cpp conftest.$ac_ext"
20201 case "(($ac_try" in
20202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203   *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } >/dev/null; then
20213   if test -s conftest.err; then
20214     ac_cpp_err=$ac_c_preproc_warn_flag
20215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20216   else
20217     ac_cpp_err=
20218   fi
20219 else
20220   ac_cpp_err=yes
20221 fi
20222 if test -z "$ac_cpp_err"; then
20223   ac_header_preproc=yes
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228   ac_header_preproc=no
20229 fi
20230
20231 rm -f conftest.err conftest.$ac_ext
20232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20233 echo "${ECHO_T}$ac_header_preproc" >&6; }
20234
20235 # So?  What about this header?
20236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20237   yes:no: )
20238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20242     ac_header_preproc=yes
20243     ;;
20244   no:yes:* )
20245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20257     ( cat <<\_ASBOX
20258 ## ------------------------------------ ##
20259 ## Report this to http://llvm.org/bugs/ ##
20260 ## ------------------------------------ ##
20261 _ASBOX
20262      ) | sed "s/^/$as_me: WARNING:     /" >&2
20263     ;;
20264 esac
20265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270   eval "$as_ac_Header=\$ac_header_preproc"
20271 fi
20272 ac_res=`eval echo '${'$as_ac_Header'}'`
20273                { echo "$as_me:$LINENO: result: $ac_res" >&5
20274 echo "${ECHO_T}$ac_res" >&6; }
20275
20276 fi
20277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20278   cat >>confdefs.h <<_ACEOF
20279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20280 _ACEOF
20281
20282 fi
20283
20284 done
20285
20286
20287 for ac_func in getpagesize
20288 do
20289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20293   echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20303 #define $ac_func innocuous_$ac_func
20304
20305 /* System header to define __stub macros and hopefully few prototypes,
20306     which can conflict with char $ac_func (); below.
20307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20308     <limits.h> exists even on freestanding compilers.  */
20309
20310 #ifdef __STDC__
20311 # include <limits.h>
20312 #else
20313 # include <assert.h>
20314 #endif
20315
20316 #undef $ac_func
20317
20318 /* Override any GCC internal prototype to avoid an error.
20319    Use char because int might match the return type of a GCC
20320    builtin and then its argument prototype would still apply.  */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 char $ac_func ();
20325 /* The GNU C library defines this for functions which it implements
20326     to always fail with ENOSYS.  Some functions are actually named
20327     something starting with __ and the normal name is an alias.  */
20328 #if defined __stub_$ac_func || defined __stub___$ac_func
20329 choke me
20330 #endif
20331
20332 int
20333 main ()
20334 {
20335 return $ac_func ();
20336   ;
20337   return 0;
20338 }
20339 _ACEOF
20340 rm -f conftest.$ac_objext conftest$ac_exeext
20341 if { (ac_try="$ac_link"
20342 case "(($ac_try" in
20343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344   *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347   (eval "$ac_link") 2>conftest.er1
20348   ac_status=$?
20349   grep -v '^ *+' conftest.er1 >conftest.err
20350   rm -f conftest.er1
20351   cat conftest.err >&5
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); } &&
20354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355   { (case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360   (eval "$ac_try") 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; } &&
20364          { ac_try='test -s conftest$ac_exeext'
20365   { (case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_try") 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); }; }; then
20374   eval "$as_ac_var=yes"
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379         eval "$as_ac_var=no"
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext \
20383       conftest$ac_exeext conftest.$ac_ext
20384 fi
20385 ac_res=`eval echo '${'$as_ac_var'}'`
20386                { echo "$as_me:$LINENO: result: $ac_res" >&5
20387 echo "${ECHO_T}$ac_res" >&6; }
20388 if test `eval echo '${'$as_ac_var'}'` = yes; then
20389   cat >>confdefs.h <<_ACEOF
20390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20391 _ACEOF
20392
20393 fi
20394 done
20395
20396 { echo "$as_me:$LINENO: checking for working mmap" >&5
20397 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20398 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401   if test "$cross_compiling" = yes; then
20402   ac_cv_func_mmap_fixed_mapped=no
20403 else
20404   cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h.  */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h.  */
20410 $ac_includes_default
20411 /* malloc might have been renamed as rpl_malloc. */
20412 #undef malloc
20413
20414 /* Thanks to Mike Haertel and Jim Avera for this test.
20415    Here is a matrix of mmap possibilities:
20416         mmap private not fixed
20417         mmap private fixed at somewhere currently unmapped
20418         mmap private fixed at somewhere already mapped
20419         mmap shared not fixed
20420         mmap shared fixed at somewhere currently unmapped
20421         mmap shared fixed at somewhere already mapped
20422    For private mappings, we should verify that changes cannot be read()
20423    back from the file, nor mmap's back from the file at a different
20424    address.  (There have been systems where private was not correctly
20425    implemented like the infamous i386 svr4.0, and systems where the
20426    VM page cache was not coherent with the file system buffer cache
20427    like early versions of FreeBSD and possibly contemporary NetBSD.)
20428    For shared mappings, we should conversely verify that changes get
20429    propagated back to all the places they're supposed to be.
20430
20431    Grep wants private fixed already mapped.
20432    The main things grep needs to know about mmap are:
20433    * does it exist and is it safe to write into the mmap'd area
20434    * how to use it (BSD variants)  */
20435
20436 #include <fcntl.h>
20437 #include <sys/mman.h>
20438
20439 #if !STDC_HEADERS && !HAVE_STDLIB_H
20440 char *malloc ();
20441 #endif
20442
20443 /* This mess was copied from the GNU getpagesize.h.  */
20444 #if !HAVE_GETPAGESIZE
20445 /* Assume that all systems that can run configure have sys/param.h.  */
20446 # if !HAVE_SYS_PARAM_H
20447 #  define HAVE_SYS_PARAM_H 1
20448 # endif
20449
20450 # ifdef _SC_PAGESIZE
20451 #  define getpagesize() sysconf(_SC_PAGESIZE)
20452 # else /* no _SC_PAGESIZE */
20453 #  if HAVE_SYS_PARAM_H
20454 #   include <sys/param.h>
20455 #   ifdef EXEC_PAGESIZE
20456 #    define getpagesize() EXEC_PAGESIZE
20457 #   else /* no EXEC_PAGESIZE */
20458 #    ifdef NBPG
20459 #     define getpagesize() NBPG * CLSIZE
20460 #     ifndef CLSIZE
20461 #      define CLSIZE 1
20462 #     endif /* no CLSIZE */
20463 #    else /* no NBPG */
20464 #     ifdef NBPC
20465 #      define getpagesize() NBPC
20466 #     else /* no NBPC */
20467 #      ifdef PAGESIZE
20468 #       define getpagesize() PAGESIZE
20469 #      endif /* PAGESIZE */
20470 #     endif /* no NBPC */
20471 #    endif /* no NBPG */
20472 #   endif /* no EXEC_PAGESIZE */
20473 #  else /* no HAVE_SYS_PARAM_H */
20474 #   define getpagesize() 8192   /* punt totally */
20475 #  endif /* no HAVE_SYS_PARAM_H */
20476 # endif /* no _SC_PAGESIZE */
20477
20478 #endif /* no HAVE_GETPAGESIZE */
20479
20480 int
20481 main ()
20482 {
20483   char *data, *data2, *data3;
20484   int i, pagesize;
20485   int fd;
20486
20487   pagesize = getpagesize ();
20488
20489   /* First, make a file with some known garbage in it. */
20490   data = (char *) malloc (pagesize);
20491   if (!data)
20492     return 1;
20493   for (i = 0; i < pagesize; ++i)
20494     *(data + i) = rand ();
20495   umask (0);
20496   fd = creat ("conftest.mmap", 0600);
20497   if (fd < 0)
20498     return 1;
20499   if (write (fd, data, pagesize) != pagesize)
20500     return 1;
20501   close (fd);
20502
20503   /* Next, try to mmap the file at a fixed address which already has
20504      something else allocated at it.  If we can, also make sure that
20505      we see the same garbage.  */
20506   fd = open ("conftest.mmap", O_RDWR);
20507   if (fd < 0)
20508     return 1;
20509   data2 = (char *) malloc (2 * pagesize);
20510   if (!data2)
20511     return 1;
20512   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20513   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20514                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20515     return 1;
20516   for (i = 0; i < pagesize; ++i)
20517     if (*(data + i) != *(data2 + i))
20518       return 1;
20519
20520   /* Finally, make sure that changes to the mapped area do not
20521      percolate back to the file as seen by read().  (This is a bug on
20522      some variants of i386 svr4.0.)  */
20523   for (i = 0; i < pagesize; ++i)
20524     *(data2 + i) = *(data2 + i) + 1;
20525   data3 = (char *) malloc (pagesize);
20526   if (!data3)
20527     return 1;
20528   if (read (fd, data3, pagesize) != pagesize)
20529     return 1;
20530   for (i = 0; i < pagesize; ++i)
20531     if (*(data + i) != *(data3 + i))
20532       return 1;
20533   close (fd);
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544   (eval "$ac_link") 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20548   { (case "(($ac_try" in
20549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550   *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553   (eval "$ac_try") 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; }; then
20557   ac_cv_func_mmap_fixed_mapped=yes
20558 else
20559   echo "$as_me: program exited with status $ac_status" >&5
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 ( exit $ac_status )
20564 ac_cv_func_mmap_fixed_mapped=no
20565 fi
20566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20567 fi
20568
20569
20570 fi
20571 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20572 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20573 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20574
20575 cat >>confdefs.h <<\_ACEOF
20576 #define HAVE_MMAP 1
20577 _ACEOF
20578
20579 fi
20580 rm -f conftest.mmap
20581
20582   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20583 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20584 if test "${ac_cv_func_mmap_file+set}" = set; then
20585   echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587    ac_ext=c
20588 ac_cpp='$CPP $CPPFLAGS'
20589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592
20593   if test "$cross_compiling" = yes; then
20594   ac_cv_func_mmap_file=no
20595 else
20596   cat >conftest.$ac_ext <<_ACEOF
20597
20598     /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603
20604 #include <sys/types.h>
20605 #include <sys/mman.h>
20606 #include <fcntl.h>
20607
20608 int
20609 main ()
20610 {
20611
20612   int fd;
20613   fd = creat ("foo",0777);
20614   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20615   unlink ("foo");
20616   return (fd != (int) MAP_FAILED);
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_link") 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20632   { (case "(($ac_try" in
20633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634   *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637   (eval "$ac_try") 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); }; }; then
20641   ac_cv_func_mmap_file=yes
20642 else
20643   echo "$as_me: program exited with status $ac_status" >&5
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ( exit $ac_status )
20648 ac_cv_func_mmap_file=no
20649 fi
20650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20651 fi
20652
20653
20654   ac_ext=c
20655 ac_cpp='$CPP $CPPFLAGS'
20656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659
20660
20661 fi
20662 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20663 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20664 if test "$ac_cv_func_mmap_file" = yes; then
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_MMAP_FILE
20668 _ACEOF
20669
20670    MMAP_FILE=yes
20671
20672 fi
20673
20674   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20675 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20676 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20677   echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679   if test "$llvm_cv_os_type" = "Interix" ; then
20680    ac_cv_need_dev_zero_for_mmap=yes
20681  else
20682    ac_cv_need_dev_zero_for_mmap=no
20683  fi
20684
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20687 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20688 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define NEED_DEV_ZERO_FOR_MMAP 1
20692 _ACEOF
20693
20694 fi
20695
20696   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20697   then
20698     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20699 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20700   fi
20701   if test "$ac_cv_func_mmap_file" = "no"
20702   then
20703     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20704 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20705   fi
20706 fi
20707
20708 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20709 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20710 ac_ext=cpp
20711 ac_cpp='$CXXCPP $CPPFLAGS'
20712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20715
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h.  */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h.  */
20722 int main() {
20723         volatile unsigned long val = 1;
20724         __sync_synchronize();
20725         __sync_val_compare_and_swap(&val, 1, 0);
20726         __sync_add_and_fetch(&val, 1);
20727         __sync_sub_and_fetch(&val, 1);
20728         return 0;
20729       }
20730
20731 _ACEOF
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_link") 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } &&
20746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20747   { (case "(($ac_try" in
20748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749   *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752   (eval "$ac_try") 2>&5
20753   ac_status=$?
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); }; } &&
20756          { ac_try='test -s conftest$ac_exeext'
20757   { (case "(($ac_try" in
20758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759   *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762   (eval "$ac_try") 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); }; }; then
20766   ac_ext=c
20767 ac_cpp='$CPP $CPPFLAGS'
20768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20771
20772   { echo "$as_me:$LINENO: result: yes" >&5
20773 echo "${ECHO_T}yes" >&6; }
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define LLVM_HAS_ATOMICS 1
20777 _ACEOF
20778
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783         { echo "$as_me:$LINENO: result: no" >&5
20784 echo "${ECHO_T}no" >&6; }
20785
20786 cat >>confdefs.h <<\_ACEOF
20787 #define LLVM_HAS_ATOMICS 0
20788 _ACEOF
20789
20790   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20791 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20792 fi
20793
20794 rm -f core conftest.err conftest.$ac_objext \
20795       conftest$ac_exeext conftest.$ac_ext
20796
20797
20798 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20799   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20800 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20801 if test "${llvm_cv_linux_mixed+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804    ac_ext=c
20805 ac_cpp='$CPP $CPPFLAGS'
20806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20809
20810   cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 #ifndef __x86_64__
20817        error: Not x86-64 even if uname says so!
20818       #endif
20819
20820 int
20821 main ()
20822 {
20823
20824   ;
20825   return 0;
20826 }
20827 _ACEOF
20828 rm -f conftest.$ac_objext
20829 if { (ac_try="$ac_compile"
20830 case "(($ac_try" in
20831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832   *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835   (eval "$ac_compile") 2>conftest.er1
20836   ac_status=$?
20837   grep -v '^ *+' conftest.er1 >conftest.err
20838   rm -f conftest.er1
20839   cat conftest.err >&5
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); } &&
20842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20843   { (case "(($ac_try" in
20844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845   *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848   (eval "$ac_try") 2>&5
20849   ac_status=$?
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); }; } &&
20852          { ac_try='test -s conftest.$ac_objext'
20853   { (case "(($ac_try" in
20854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855   *) ac_try_echo=$ac_try;;
20856 esac
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858   (eval "$ac_try") 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; }; then
20862   llvm_cv_linux_mixed=no
20863 else
20864   echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867         llvm_cv_linux_mixed=yes
20868 fi
20869
20870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871   ac_ext=c
20872 ac_cpp='$CPP $CPPFLAGS'
20873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20876
20877
20878 fi
20879 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20880 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20881
20882   if test "$llvm_cv_linux_mixed" = "yes"; then
20883     llvm_cv_target_arch="x86"
20884     ARCH="x86"
20885   fi
20886 fi
20887
20888
20889 for ac_func in __dso_handle
20890 do
20891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20895   echo $ECHO_N "(cached) $ECHO_C" >&6
20896 else
20897   cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20905 #define $ac_func innocuous_$ac_func
20906
20907 /* System header to define __stub macros and hopefully few prototypes,
20908     which can conflict with char $ac_func (); below.
20909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910     <limits.h> exists even on freestanding compilers.  */
20911
20912 #ifdef __STDC__
20913 # include <limits.h>
20914 #else
20915 # include <assert.h>
20916 #endif
20917
20918 #undef $ac_func
20919
20920 /* Override any GCC internal prototype to avoid an error.
20921    Use char because int might match the return type of a GCC
20922    builtin and then its argument prototype would still apply.  */
20923 #ifdef __cplusplus
20924 extern "C"
20925 #endif
20926 char $ac_func ();
20927 /* The GNU C library defines this for functions which it implements
20928     to always fail with ENOSYS.  Some functions are actually named
20929     something starting with __ and the normal name is an alias.  */
20930 #if defined __stub_$ac_func || defined __stub___$ac_func
20931 choke me
20932 #endif
20933
20934 int
20935 main ()
20936 {
20937 return $ac_func ();
20938   ;
20939   return 0;
20940 }
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_link") 2>conftest.er1
20950   ac_status=$?
20951   grep -v '^ *+' conftest.er1 >conftest.err
20952   rm -f conftest.er1
20953   cat conftest.err >&5
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); } &&
20956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20957   { (case "(($ac_try" in
20958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959   *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962   (eval "$ac_try") 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); }; } &&
20966          { ac_try='test -s conftest$ac_exeext'
20967   { (case "(($ac_try" in
20968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969   *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972   (eval "$ac_try") 2>&5
20973   ac_status=$?
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); }; }; then
20976   eval "$as_ac_var=yes"
20977 else
20978   echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981         eval "$as_ac_var=no"
20982 fi
20983
20984 rm -f core conftest.err conftest.$ac_objext \
20985       conftest$ac_exeext conftest.$ac_ext
20986 fi
20987 ac_res=`eval echo '${'$as_ac_var'}'`
20988                { echo "$as_me:$LINENO: result: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20990 if test `eval echo '${'$as_ac_var'}'` = yes; then
20991   cat >>confdefs.h <<_ACEOF
20992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20993 _ACEOF
20994
20995 fi
20996 done
20997
20998
20999 SHLIBEXT=$libltdl_cv_shlibext
21000
21001
21002 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21003
21004
21005 if test "${prefix}" = "NONE" ; then
21006   prefix="/usr/local"
21007 fi
21008 eval LLVM_PREFIX="${prefix}";
21009 eval LLVM_BINDIR="${prefix}/bin";
21010 eval LLVM_LIBDIR="${prefix}/lib";
21011 eval LLVM_DATADIR="${prefix}/share/llvm";
21012 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21013 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21014 eval LLVM_INCLUDEDIR="${prefix}/include";
21015 eval LLVM_INFODIR="${prefix}/info";
21016 eval LLVM_MANDIR="${prefix}/man";
21017 LLVM_CONFIGTIME=`date`
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21030   LLVM_CONFIGTIME="(timestamp not enabled)"
21031 fi
21032
21033
21034 cat >>confdefs.h <<_ACEOF
21035 #define LLVM_PREFIX "$LLVM_PREFIX"
21036 _ACEOF
21037
21038
21039 cat >>confdefs.h <<_ACEOF
21040 #define LLVM_BINDIR "$LLVM_BINDIR"
21041 _ACEOF
21042
21043
21044 cat >>confdefs.h <<_ACEOF
21045 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21046 _ACEOF
21047
21048
21049 cat >>confdefs.h <<_ACEOF
21050 #define LLVM_DATADIR "$LLVM_DATADIR"
21051 _ACEOF
21052
21053
21054 cat >>confdefs.h <<_ACEOF
21055 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21056 _ACEOF
21057
21058
21059 cat >>confdefs.h <<_ACEOF
21060 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21061 _ACEOF
21062
21063
21064 cat >>confdefs.h <<_ACEOF
21065 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21066 _ACEOF
21067
21068
21069 cat >>confdefs.h <<_ACEOF
21070 #define LLVM_INFODIR "$LLVM_INFODIR"
21071 _ACEOF
21072
21073
21074 cat >>confdefs.h <<_ACEOF
21075 #define LLVM_MANDIR "$LLVM_MANDIR"
21076 _ACEOF
21077
21078
21079 cat >>confdefs.h <<_ACEOF
21080 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21081 _ACEOF
21082
21083
21084 cat >>confdefs.h <<_ACEOF
21085 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21086 _ACEOF
21087
21088
21089 if test "$BINDINGS_TO_BUILD" = auto ; then
21090   BINDINGS_TO_BUILD=""
21091   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21092     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21093   fi
21094 fi
21095 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21096
21097
21098 ALL_BINDINGS=ocaml
21099
21100
21101 binding_prereqs_failed=0
21102 for a_binding in $BINDINGS_TO_BUILD ; do
21103   case "$a_binding" in
21104   ocaml)
21105     if test "x$OCAMLC" = x ; then
21106       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21107 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21108       binding_prereqs_failed=1
21109     fi
21110     if test "x$OCAMLDEP" = x ; then
21111       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21112 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21113       binding_prereqs_failed=1
21114     fi
21115     if test "x$OCAMLOPT" = x ; then
21116       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21117 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21118           fi
21119     if test "x$with_ocaml_libdir" != xauto ; then
21120       OCAML_LIBDIR=$with_ocaml_libdir
21121
21122     else
21123       ocaml_stdlib="`"$OCAMLC" -where`"
21124       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21125       then
21126         # ocaml stdlib is beneath our prefix; use stdlib
21127         OCAML_LIBDIR=$ocaml_stdlib
21128
21129       else
21130         # ocaml stdlib is outside our prefix; use libdir/ocaml
21131         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21132
21133       fi
21134     fi
21135     ;;
21136   esac
21137 done
21138 if test "$binding_prereqs_failed" = 1 ; then
21139   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21140 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21141    { (exit 1); exit 1; }; }
21142 fi
21143
21144 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21145 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21146 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21147   echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149    ac_ext=cpp
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155   oldcxxflags="$CXXFLAGS"
21156   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21157   cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21164 int
21165 main ()
21166 {
21167 X<int>().f();
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_compile") 2>conftest.er1
21180   ac_status=$?
21181   grep -v '^ *+' conftest.er1 >conftest.err
21182   rm -f conftest.er1
21183   cat conftest.err >&5
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); } &&
21186          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21187   { (case "(($ac_try" in
21188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189   *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192   (eval "$ac_try") 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); }; } &&
21196          { ac_try='test -s conftest.$ac_objext'
21197   { (case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_try") 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); }; }; then
21206   llvm_cv_cxx_visibility_inlines_hidden=yes
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211         llvm_cv_cxx_visibility_inlines_hidden=no
21212 fi
21213
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215   CXXFLAGS="$oldcxxflags"
21216   ac_ext=c
21217 ac_cpp='$CPP $CPPFLAGS'
21218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21221
21222
21223 fi
21224 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21225 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21226 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21227   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21228
21229 else
21230   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21231
21232 fi
21233
21234
21235 if test "$llvm_cv_link_use_r" = "yes" ; then
21236   RPATH="-Wl,-R"
21237 else
21238   RPATH="-Wl,-rpath"
21239 fi
21240
21241
21242 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21243   RDYNAMIC="-Wl,-export-dynamic"
21244 else
21245   RDYNAMIC=""
21246 fi
21247
21248
21249
21250 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21251
21252
21253
21254
21255
21256
21257 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21258
21259 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21260
21261 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21262
21263 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21264
21265 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21266
21267
21268 ac_config_files="$ac_config_files Makefile.config"
21269
21270
21271 ac_config_files="$ac_config_files llvm.spec"
21272
21273
21274 ac_config_files="$ac_config_files docs/doxygen.cfg"
21275
21276
21277 if test "${clang_src_root}" = ""; then
21278   clang_src_root="$srcdir/tools/clang"
21279 fi
21280 if test -f ${clang_src_root}/README.txt; then
21281     configh="include/clang/Config/config.h"
21282   doxy="docs/doxygen.cfg"
21283   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21284
21285   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21286
21287 fi
21288
21289 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21290
21291
21292 ac_config_commands="$ac_config_commands setup"
21293
21294 ac_config_commands="$ac_config_commands Makefile"
21295
21296
21297 ac_config_commands="$ac_config_commands Makefile.common"
21298
21299
21300 ac_config_commands="$ac_config_commands examples/Makefile"
21301
21302
21303 ac_config_commands="$ac_config_commands lib/Makefile"
21304
21305
21306 ac_config_commands="$ac_config_commands runtime/Makefile"
21307
21308
21309 ac_config_commands="$ac_config_commands test/Makefile"
21310
21311
21312 ac_config_commands="$ac_config_commands test/Makefile.tests"
21313
21314
21315 ac_config_commands="$ac_config_commands unittests/Makefile"
21316
21317
21318 ac_config_commands="$ac_config_commands tools/Makefile"
21319
21320
21321 ac_config_commands="$ac_config_commands utils/Makefile"
21322
21323
21324 ac_config_commands="$ac_config_commands projects/Makefile"
21325
21326
21327 ac_config_commands="$ac_config_commands bindings/Makefile"
21328
21329
21330 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21331
21332
21333
21334 cat >confcache <<\_ACEOF
21335 # This file is a shell script that caches the results of configure
21336 # tests run on this system so they can be shared between configure
21337 # scripts and configure runs, see configure's option --config-cache.
21338 # It is not useful on other systems.  If it contains results you don't
21339 # want to keep, you may remove or edit it.
21340 #
21341 # config.status only pays attention to the cache file if you give it
21342 # the --recheck option to rerun configure.
21343 #
21344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21346 # following values.
21347
21348 _ACEOF
21349
21350 # The following way of writing the cache mishandles newlines in values,
21351 # but we know of no workaround that is simple, portable, and efficient.
21352 # So, we kill variables containing newlines.
21353 # Ultrix sh set writes to stderr and can't be redirected directly,
21354 # and sets the high bit in the cache file unless we assign to the vars.
21355 (
21356   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21357     eval ac_val=\$$ac_var
21358     case $ac_val in #(
21359     *${as_nl}*)
21360       case $ac_var in #(
21361       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21362 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21363       esac
21364       case $ac_var in #(
21365       _ | IFS | as_nl) ;; #(
21366       *) $as_unset $ac_var ;;
21367       esac ;;
21368     esac
21369   done
21370
21371   (set) 2>&1 |
21372     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21373     *${as_nl}ac_space=\ *)
21374       # `set' does not quote correctly, so add quotes (double-quote
21375       # substitution turns \\\\ into \\, and sed turns \\ into \).
21376       sed -n \
21377         "s/'/'\\\\''/g;
21378           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21379       ;; #(
21380     *)
21381       # `set' quotes correctly as required by POSIX, so do not add quotes.
21382       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21383       ;;
21384     esac |
21385     sort
21386 ) |
21387   sed '
21388      /^ac_cv_env_/b end
21389      t clear
21390      :clear
21391      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21392      t end
21393      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21394      :end' >>confcache
21395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21396   if test -w "$cache_file"; then
21397     test "x$cache_file" != "x/dev/null" &&
21398       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21399 echo "$as_me: updating cache $cache_file" >&6;}
21400     cat confcache >$cache_file
21401   else
21402     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21403 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21404   fi
21405 fi
21406 rm -f confcache
21407
21408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21409 # Let make expand exec_prefix.
21410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21411
21412 DEFS=-DHAVE_CONFIG_H
21413
21414 ac_libobjs=
21415 ac_ltlibobjs=
21416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21417   # 1. Remove the extension, and $U if already installed.
21418   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21419   ac_i=`echo "$ac_i" | sed "$ac_script"`
21420   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21421   #    will be set to the directory where LIBOBJS objects are built.
21422   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21423   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21424 done
21425 LIBOBJS=$ac_libobjs
21426
21427 LTLIBOBJS=$ac_ltlibobjs
21428
21429
21430 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21431   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21432 Usually this means the macro was only invoked conditionally." >&5
21433 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21434 Usually this means the macro was only invoked conditionally." >&2;}
21435    { (exit 1); exit 1; }; }
21436 fi
21437 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21438   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21439 Usually this means the macro was only invoked conditionally." >&5
21440 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21441 Usually this means the macro was only invoked conditionally." >&2;}
21442    { (exit 1); exit 1; }; }
21443 fi
21444
21445 : ${CONFIG_STATUS=./config.status}
21446 ac_clean_files_save=$ac_clean_files
21447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21448 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21449 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21450 cat >$CONFIG_STATUS <<_ACEOF
21451 #! $SHELL
21452 # Generated by $as_me.
21453 # Run this file to recreate the current configuration.
21454 # Compiler output produced by configure, useful for debugging
21455 # configure, is in config.log if it exists.
21456
21457 debug=false
21458 ac_cs_recheck=false
21459 ac_cs_silent=false
21460 SHELL=\${CONFIG_SHELL-$SHELL}
21461 _ACEOF
21462
21463 cat >>$CONFIG_STATUS <<\_ACEOF
21464 ## --------------------- ##
21465 ## M4sh Initialization.  ##
21466 ## --------------------- ##
21467
21468 # Be Bourne compatible
21469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21470   emulate sh
21471   NULLCMD=:
21472   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21473   # is contrary to our usage.  Disable this feature.
21474   alias -g '${1+"$@"}'='"$@"'
21475   setopt NO_GLOB_SUBST
21476 else
21477   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21478 fi
21479 BIN_SH=xpg4; export BIN_SH # for Tru64
21480 DUALCASE=1; export DUALCASE # for MKS sh
21481
21482
21483 # PATH needs CR
21484 # Avoid depending upon Character Ranges.
21485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21488 as_cr_digits='0123456789'
21489 as_cr_alnum=$as_cr_Letters$as_cr_digits
21490
21491 # The user is always right.
21492 if test "${PATH_SEPARATOR+set}" != set; then
21493   echo "#! /bin/sh" >conf$$.sh
21494   echo  "exit 0"   >>conf$$.sh
21495   chmod +x conf$$.sh
21496   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21497     PATH_SEPARATOR=';'
21498   else
21499     PATH_SEPARATOR=:
21500   fi
21501   rm -f conf$$.sh
21502 fi
21503
21504 # Support unset when possible.
21505 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21506   as_unset=unset
21507 else
21508   as_unset=false
21509 fi
21510
21511
21512 # IFS
21513 # We need space, tab and new line, in precisely that order.  Quoting is
21514 # there to prevent editors from complaining about space-tab.
21515 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21516 # splitting by setting IFS to empty value.)
21517 as_nl='
21518 '
21519 IFS=" ""        $as_nl"
21520
21521 # Find who we are.  Look in the path if we contain no directory separator.
21522 case $0 in
21523   *[\\/]* ) as_myself=$0 ;;
21524   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21525 for as_dir in $PATH
21526 do
21527   IFS=$as_save_IFS
21528   test -z "$as_dir" && as_dir=.
21529   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21530 done
21531 IFS=$as_save_IFS
21532
21533      ;;
21534 esac
21535 # We did not find ourselves, most probably we were run as `sh COMMAND'
21536 # in which case we are not to be found in the path.
21537 if test "x$as_myself" = x; then
21538   as_myself=$0
21539 fi
21540 if test ! -f "$as_myself"; then
21541   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21542   { (exit 1); exit 1; }
21543 fi
21544
21545 # Work around bugs in pre-3.0 UWIN ksh.
21546 for as_var in ENV MAIL MAILPATH
21547 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21548 done
21549 PS1='$ '
21550 PS2='> '
21551 PS4='+ '
21552
21553 # NLS nuisances.
21554 for as_var in \
21555   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21556   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21557   LC_TELEPHONE LC_TIME
21558 do
21559   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21560     eval $as_var=C; export $as_var
21561   else
21562     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21563   fi
21564 done
21565
21566 # Required to use basename.
21567 if expr a : '\(a\)' >/dev/null 2>&1 &&
21568    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21569   as_expr=expr
21570 else
21571   as_expr=false
21572 fi
21573
21574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21575   as_basename=basename
21576 else
21577   as_basename=false
21578 fi
21579
21580
21581 # Name of the executable.
21582 as_me=`$as_basename -- "$0" ||
21583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21584          X"$0" : 'X\(//\)$' \| \
21585          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21586 echo X/"$0" |
21587     sed '/^.*\/\([^/][^/]*\)\/*$/{
21588             s//\1/
21589             q
21590           }
21591           /^X\/\(\/\/\)$/{
21592             s//\1/
21593             q
21594           }
21595           /^X\/\(\/\).*/{
21596             s//\1/
21597             q
21598           }
21599           s/.*/./; q'`
21600
21601 # CDPATH.
21602 $as_unset CDPATH
21603
21604
21605
21606   as_lineno_1=$LINENO
21607   as_lineno_2=$LINENO
21608   test "x$as_lineno_1" != "x$as_lineno_2" &&
21609   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21610
21611   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21612   # uniformly replaced by the line number.  The first 'sed' inserts a
21613   # line-number line after each line using $LINENO; the second 'sed'
21614   # does the real work.  The second script uses 'N' to pair each
21615   # line-number line with the line containing $LINENO, and appends
21616   # trailing '-' during substitution so that $LINENO is not a special
21617   # case at line end.
21618   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21619   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21620   # E. McMahon (1931-1989) for sed's syntax.  :-)
21621   sed -n '
21622     p
21623     /[$]LINENO/=
21624   ' <$as_myself |
21625     sed '
21626       s/[$]LINENO.*/&-/
21627       t lineno
21628       b
21629       :lineno
21630       N
21631       :loop
21632       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21633       t loop
21634       s/-\n.*//
21635     ' >$as_me.lineno &&
21636   chmod +x "$as_me.lineno" ||
21637     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21638    { (exit 1); exit 1; }; }
21639
21640   # Don't try to exec as it changes $[0], causing all sort of problems
21641   # (the dirname of $[0] is not the place where we might find the
21642   # original and so on.  Autoconf is especially sensitive to this).
21643   . "./$as_me.lineno"
21644   # Exit status is that of the last command.
21645   exit
21646 }
21647
21648
21649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21650   as_dirname=dirname
21651 else
21652   as_dirname=false
21653 fi
21654
21655 ECHO_C= ECHO_N= ECHO_T=
21656 case `echo -n x` in
21657 -n*)
21658   case `echo 'x\c'` in
21659   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21660   *)   ECHO_C='\c';;
21661   esac;;
21662 *)
21663   ECHO_N='-n';;
21664 esac
21665
21666 if expr a : '\(a\)' >/dev/null 2>&1 &&
21667    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21668   as_expr=expr
21669 else
21670   as_expr=false
21671 fi
21672
21673 rm -f conf$$ conf$$.exe conf$$.file
21674 if test -d conf$$.dir; then
21675   rm -f conf$$.dir/conf$$.file
21676 else
21677   rm -f conf$$.dir
21678   mkdir conf$$.dir
21679 fi
21680 echo >conf$$.file
21681 if ln -s conf$$.file conf$$ 2>/dev/null; then
21682   as_ln_s='ln -s'
21683   # ... but there are two gotchas:
21684   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21685   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21686   # In both cases, we have to default to `cp -p'.
21687   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21688     as_ln_s='cp -p'
21689 elif ln conf$$.file conf$$ 2>/dev/null; then
21690   as_ln_s=ln
21691 else
21692   as_ln_s='cp -p'
21693 fi
21694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21695 rmdir conf$$.dir 2>/dev/null
21696
21697 if mkdir -p . 2>/dev/null; then
21698   as_mkdir_p=:
21699 else
21700   test -d ./-p && rmdir ./-p
21701   as_mkdir_p=false
21702 fi
21703
21704 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21705 # systems may use methods other than mode bits to determine executability.
21706 cat >conf$$.file <<_ASEOF
21707 #! /bin/sh
21708 exit 0
21709 _ASEOF
21710 chmod +x conf$$.file
21711 if test -x conf$$.file >/dev/null 2>&1; then
21712   as_executable_p="test -x"
21713 else
21714   as_executable_p=:
21715 fi
21716 rm -f conf$$.file
21717
21718 # Sed expression to map a string onto a valid CPP name.
21719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21720
21721 # Sed expression to map a string onto a valid variable name.
21722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21723
21724
21725 exec 6>&1
21726
21727 # Save the log message, to keep $[0] and so on meaningful, and to
21728 # report actual input values of CONFIG_FILES etc. instead of their
21729 # values after options handling.
21730 ac_log="
21731 This file was extended by LLVM $as_me 3.2svn, which was
21732 generated by GNU Autoconf 2.60.  Invocation command line was
21733
21734   CONFIG_FILES    = $CONFIG_FILES
21735   CONFIG_HEADERS  = $CONFIG_HEADERS
21736   CONFIG_LINKS    = $CONFIG_LINKS
21737   CONFIG_COMMANDS = $CONFIG_COMMANDS
21738   $ $0 $@
21739
21740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21741 "
21742
21743 _ACEOF
21744
21745 cat >>$CONFIG_STATUS <<_ACEOF
21746 # Files that config.status was made for.
21747 config_files="$ac_config_files"
21748 config_headers="$ac_config_headers"
21749 config_commands="$ac_config_commands"
21750
21751 _ACEOF
21752
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 ac_cs_usage="\
21755 \`$as_me' instantiates files from templates according to the
21756 current configuration.
21757
21758 Usage: $0 [OPTIONS] [FILE]...
21759
21760   -h, --help       print this help, then exit
21761   -V, --version    print version number, then exit
21762   -q, --quiet      do not print progress messages
21763   -d, --debug      don't remove temporary files
21764       --recheck    update $as_me by reconfiguring in the same conditions
21765   --file=FILE[:TEMPLATE]
21766                    instantiate the configuration file FILE
21767   --header=FILE[:TEMPLATE]
21768                    instantiate the configuration header FILE
21769
21770 Configuration files:
21771 $config_files
21772
21773 Configuration headers:
21774 $config_headers
21775
21776 Configuration commands:
21777 $config_commands
21778
21779 Report bugs to <bug-autoconf@gnu.org>."
21780
21781 _ACEOF
21782 cat >>$CONFIG_STATUS <<_ACEOF
21783 ac_cs_version="\\
21784 LLVM config.status 3.2svn
21785 configured by $0, generated by GNU Autoconf 2.60,
21786   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21787
21788 Copyright (C) 2006 Free Software Foundation, Inc.
21789 This config.status script is free software; the Free Software Foundation
21790 gives unlimited permission to copy, distribute and modify it."
21791
21792 ac_pwd='$ac_pwd'
21793 srcdir='$srcdir'
21794 INSTALL='$INSTALL'
21795 _ACEOF
21796
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 # If no file are specified by the user, then we need to provide default
21799 # value.  By we need to know if files were specified by the user.
21800 ac_need_defaults=:
21801 while test $# != 0
21802 do
21803   case $1 in
21804   --*=*)
21805     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21806     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21807     ac_shift=:
21808     ;;
21809   *)
21810     ac_option=$1
21811     ac_optarg=$2
21812     ac_shift=shift
21813     ;;
21814   esac
21815
21816   case $ac_option in
21817   # Handling of the options.
21818   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21819     ac_cs_recheck=: ;;
21820   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21821     echo "$ac_cs_version"; exit ;;
21822   --debug | --debu | --deb | --de | --d | -d )
21823     debug=: ;;
21824   --file | --fil | --fi | --f )
21825     $ac_shift
21826     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21827     ac_need_defaults=false;;
21828   --header | --heade | --head | --hea )
21829     $ac_shift
21830     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21831     ac_need_defaults=false;;
21832   --he | --h)
21833     # Conflict between --help and --header
21834     { echo "$as_me: error: ambiguous option: $1
21835 Try \`$0 --help' for more information." >&2
21836    { (exit 1); exit 1; }; };;
21837   --help | --hel | -h )
21838     echo "$ac_cs_usage"; exit ;;
21839   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21840   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21841     ac_cs_silent=: ;;
21842
21843   # This is an error.
21844   -*) { echo "$as_me: error: unrecognized option: $1
21845 Try \`$0 --help' for more information." >&2
21846    { (exit 1); exit 1; }; } ;;
21847
21848   *) ac_config_targets="$ac_config_targets $1"
21849      ac_need_defaults=false ;;
21850
21851   esac
21852   shift
21853 done
21854
21855 ac_configure_extra_args=
21856
21857 if $ac_cs_silent; then
21858   exec 6>/dev/null
21859   ac_configure_extra_args="$ac_configure_extra_args --silent"
21860 fi
21861
21862 _ACEOF
21863 cat >>$CONFIG_STATUS <<_ACEOF
21864 if \$ac_cs_recheck; then
21865   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21866   CONFIG_SHELL=$SHELL
21867   export CONFIG_SHELL
21868   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21869 fi
21870
21871 _ACEOF
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21873 exec 5>>config.log
21874 {
21875   echo
21876   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21877 ## Running $as_me. ##
21878 _ASBOX
21879   echo "$ac_log"
21880 } >&5
21881
21882 _ACEOF
21883 cat >>$CONFIG_STATUS <<_ACEOF
21884 #
21885 # INIT-COMMANDS
21886 #
21887 llvm_src="${srcdir}"
21888
21889 _ACEOF
21890
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21892
21893 # Handling of arguments.
21894 for ac_config_target in $ac_config_targets
21895 do
21896   case $ac_config_target in
21897     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21898     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21899     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21900     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21901     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21902     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21903     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21904     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21905     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21906     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21907     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21908     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21909     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21910     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21911     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21912     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21913     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21914     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21915     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21916     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21917     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21918     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21919     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21920     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21921     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21922     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21923     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21924
21925   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21926 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21927    { (exit 1); exit 1; }; };;
21928   esac
21929 done
21930
21931
21932 # If the user did not use the arguments to specify the items to instantiate,
21933 # then the envvar interface is used.  Set only those that are not.
21934 # We use the long form for the default assignment because of an extremely
21935 # bizarre bug on SunOS 4.1.3.
21936 if $ac_need_defaults; then
21937   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21938   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21939   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21940 fi
21941
21942 # Have a temporary directory for convenience.  Make it in the build tree
21943 # simply because there is no reason against having it here, and in addition,
21944 # creating and moving files from /tmp can sometimes cause problems.
21945 # Hook for its removal unless debugging.
21946 # Note that there is a small window in which the directory will not be cleaned:
21947 # after its creation but before its name has been assigned to `$tmp'.
21948 $debug ||
21949 {
21950   tmp=
21951   trap 'exit_status=$?
21952   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21953 ' 0
21954   trap '{ (exit 1); exit 1; }' 1 2 13 15
21955 }
21956 # Create a (secure) tmp directory for tmp files.
21957
21958 {
21959   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21960   test -n "$tmp" && test -d "$tmp"
21961 }  ||
21962 {
21963   tmp=./conf$$-$RANDOM
21964   (umask 077 && mkdir "$tmp")
21965 } ||
21966 {
21967    echo "$me: cannot create a temporary directory in ." >&2
21968    { (exit 1); exit 1; }
21969 }
21970
21971 #
21972 # Set up the sed scripts for CONFIG_FILES section.
21973 #
21974
21975 # No need to generate the scripts if there are no CONFIG_FILES.
21976 # This happens for instance when ./config.status config.h
21977 if test -n "$CONFIG_FILES"; then
21978
21979 _ACEOF
21980
21981
21982
21983 ac_delim='%!_!# '
21984 for ac_last_try in false false false false false :; do
21985   cat >conf$$subs.sed <<_ACEOF
21986 SHELL!$SHELL$ac_delim
21987 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21988 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21989 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21990 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21991 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21992 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21993 exec_prefix!$exec_prefix$ac_delim
21994 prefix!$prefix$ac_delim
21995 program_transform_name!$program_transform_name$ac_delim
21996 bindir!$bindir$ac_delim
21997 sbindir!$sbindir$ac_delim
21998 libexecdir!$libexecdir$ac_delim
21999 datarootdir!$datarootdir$ac_delim
22000 datadir!$datadir$ac_delim
22001 sysconfdir!$sysconfdir$ac_delim
22002 sharedstatedir!$sharedstatedir$ac_delim
22003 localstatedir!$localstatedir$ac_delim
22004 includedir!$includedir$ac_delim
22005 oldincludedir!$oldincludedir$ac_delim
22006 docdir!$docdir$ac_delim
22007 infodir!$infodir$ac_delim
22008 htmldir!$htmldir$ac_delim
22009 dvidir!$dvidir$ac_delim
22010 pdfdir!$pdfdir$ac_delim
22011 psdir!$psdir$ac_delim
22012 libdir!$libdir$ac_delim
22013 localedir!$localedir$ac_delim
22014 mandir!$mandir$ac_delim
22015 DEFS!$DEFS$ac_delim
22016 ECHO_C!$ECHO_C$ac_delim
22017 ECHO_N!$ECHO_N$ac_delim
22018 ECHO_T!$ECHO_T$ac_delim
22019 LIBS!$LIBS$ac_delim
22020 build_alias!$build_alias$ac_delim
22021 host_alias!$host_alias$ac_delim
22022 target_alias!$target_alias$ac_delim
22023 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22024 CC!$CC$ac_delim
22025 CFLAGS!$CFLAGS$ac_delim
22026 LDFLAGS!$LDFLAGS$ac_delim
22027 CPPFLAGS!$CPPFLAGS$ac_delim
22028 ac_ct_CC!$ac_ct_CC$ac_delim
22029 EXEEXT!$EXEEXT$ac_delim
22030 OBJEXT!$OBJEXT$ac_delim
22031 CXX!$CXX$ac_delim
22032 CXXFLAGS!$CXXFLAGS$ac_delim
22033 ac_ct_CXX!$ac_ct_CXX$ac_delim
22034 CPP!$CPP$ac_delim
22035 subdirs!$subdirs$ac_delim
22036 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22037 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22038 build!$build$ac_delim
22039 build_cpu!$build_cpu$ac_delim
22040 build_vendor!$build_vendor$ac_delim
22041 build_os!$build_os$ac_delim
22042 host!$host$ac_delim
22043 host_cpu!$host_cpu$ac_delim
22044 host_vendor!$host_vendor$ac_delim
22045 host_os!$host_os$ac_delim
22046 target!$target$ac_delim
22047 target_cpu!$target_cpu$ac_delim
22048 target_vendor!$target_vendor$ac_delim
22049 target_os!$target_os$ac_delim
22050 OS!$OS$ac_delim
22051 HOST_OS!$HOST_OS$ac_delim
22052 TARGET_OS!$TARGET_OS$ac_delim
22053 LINKALL!$LINKALL$ac_delim
22054 NOLINKALL!$NOLINKALL$ac_delim
22055 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22056 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22057 ARCH!$ARCH$ac_delim
22058 HOST_ARCH!$HOST_ARCH$ac_delim
22059 ENDIAN!$ENDIAN$ac_delim
22060 GREP!$GREP$ac_delim
22061 EGREP!$EGREP$ac_delim
22062 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22063 BUILD_CC!$BUILD_CC$ac_delim
22064 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22065 BUILD_CXX!$BUILD_CXX$ac_delim
22066 CVSBUILD!$CVSBUILD$ac_delim
22067 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22068 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22069 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22070 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22071 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22072 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22073 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22074 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22075 JIT!$JIT$ac_delim
22076 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22077 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22078 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22079 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22080 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22081 ENABLE_PIC!$ENABLE_PIC$ac_delim
22082 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22083 _ACEOF
22084
22085   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22086     break
22087   elif $ac_last_try; then
22088     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22089 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22090    { (exit 1); exit 1; }; }
22091   else
22092     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22093   fi
22094 done
22095
22096 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22097 if test -n "$ac_eof"; then
22098   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22099   ac_eof=`expr $ac_eof + 1`
22100 fi
22101
22102 cat >>$CONFIG_STATUS <<_ACEOF
22103 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22105 _ACEOF
22106 sed '
22107 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22108 s/^/s,@/; s/!/@,|#_!!_#|/
22109 :n
22110 t n
22111 s/'"$ac_delim"'$/,g/; t
22112 s/$/\\/; p
22113 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22114 ' >>$CONFIG_STATUS <conf$$subs.sed
22115 rm -f conf$$subs.sed
22116 cat >>$CONFIG_STATUS <<_ACEOF
22117 CEOF$ac_eof
22118 _ACEOF
22119
22120
22121 ac_delim='%!_!# '
22122 for ac_last_try in false false false false false :; do
22123   cat >conf$$subs.sed <<_ACEOF
22124 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22125 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22126 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22127 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22128 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22129 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22130 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22131 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22132 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22133 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22134 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22135 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22136 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22137 NM!$NM$ac_delim
22138 ifGNUmake!$ifGNUmake$ac_delim
22139 LN_S!$LN_S$ac_delim
22140 CMP!$CMP$ac_delim
22141 CP!$CP$ac_delim
22142 DATE!$DATE$ac_delim
22143 FIND!$FIND$ac_delim
22144 MKDIR!$MKDIR$ac_delim
22145 MV!$MV$ac_delim
22146 RANLIB!$RANLIB$ac_delim
22147 AR!$AR$ac_delim
22148 RM!$RM$ac_delim
22149 SED!$SED$ac_delim
22150 TAR!$TAR$ac_delim
22151 BINPWD!$BINPWD$ac_delim
22152 GRAPHVIZ!$GRAPHVIZ$ac_delim
22153 DOT!$DOT$ac_delim
22154 FDP!$FDP$ac_delim
22155 NEATO!$NEATO$ac_delim
22156 TWOPI!$TWOPI$ac_delim
22157 CIRCO!$CIRCO$ac_delim
22158 GV!$GV$ac_delim
22159 DOTTY!$DOTTY$ac_delim
22160 XDOT_PY!$XDOT_PY$ac_delim
22161 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22162 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22163 INSTALL_DATA!$INSTALL_DATA$ac_delim
22164 BZIP2!$BZIP2$ac_delim
22165 CAT!$CAT$ac_delim
22166 DOXYGEN!$DOXYGEN$ac_delim
22167 GROFF!$GROFF$ac_delim
22168 GZIPBIN!$GZIPBIN$ac_delim
22169 PDFROFF!$PDFROFF$ac_delim
22170 RUNTEST!$RUNTEST$ac_delim
22171 TCLSH!$TCLSH$ac_delim
22172 ZIP!$ZIP$ac_delim
22173 OCAMLC!$OCAMLC$ac_delim
22174 OCAMLOPT!$OCAMLOPT$ac_delim
22175 OCAMLDEP!$OCAMLDEP$ac_delim
22176 OCAMLDOC!$OCAMLDOC$ac_delim
22177 GAS!$GAS$ac_delim
22178 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22179 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22180 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22181 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22182 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22183 LIBADD_DL!$LIBADD_DL$ac_delim
22184 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22185 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22186 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22187 USE_UDIS86!$USE_UDIS86$ac_delim
22188 USE_OPROFILE!$USE_OPROFILE$ac_delim
22189 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22190 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22191 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22192 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22193 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22194 MMAP_FILE!$MMAP_FILE$ac_delim
22195 SHLIBEXT!$SHLIBEXT$ac_delim
22196 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22197 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22198 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22199 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22200 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22201 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22202 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22203 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22204 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22205 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22206 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22207 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22208 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22209 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22210 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22211 RPATH!$RPATH$ac_delim
22212 RDYNAMIC!$RDYNAMIC$ac_delim
22213 LIBOBJS!$LIBOBJS$ac_delim
22214 LTLIBOBJS!$LTLIBOBJS$ac_delim
22215 _ACEOF
22216
22217   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22218     break
22219   elif $ac_last_try; then
22220     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22221 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22222    { (exit 1); exit 1; }; }
22223   else
22224     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22225   fi
22226 done
22227
22228 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22229 if test -n "$ac_eof"; then
22230   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22231   ac_eof=`expr $ac_eof + 1`
22232 fi
22233
22234 cat >>$CONFIG_STATUS <<_ACEOF
22235 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22237 _ACEOF
22238 sed '
22239 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22240 s/^/s,@/; s/!/@,|#_!!_#|/
22241 :n
22242 t n
22243 s/'"$ac_delim"'$/,g/; t
22244 s/$/\\/; p
22245 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22246 ' >>$CONFIG_STATUS <conf$$subs.sed
22247 rm -f conf$$subs.sed
22248 cat >>$CONFIG_STATUS <<_ACEOF
22249 :end
22250 s/|#_!!_#|//g
22251 CEOF$ac_eof
22252 _ACEOF
22253
22254
22255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22257 # trailing colons and then remove the whole line if VPATH becomes empty
22258 # (actually we leave an empty line to preserve line numbers).
22259 if test "x$srcdir" = x.; then
22260   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22261 s/:*\$(srcdir):*/:/
22262 s/:*\${srcdir}:*/:/
22263 s/:*@srcdir@:*/:/
22264 s/^\([^=]*=[     ]*\):*/\1/
22265 s/:*$//
22266 s/^[^=]*=[       ]*$//
22267 }'
22268 fi
22269
22270 cat >>$CONFIG_STATUS <<\_ACEOF
22271 fi # test -n "$CONFIG_FILES"
22272
22273
22274 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22275 do
22276   case $ac_tag in
22277   :[FHLC]) ac_mode=$ac_tag; continue;;
22278   esac
22279   case $ac_mode$ac_tag in
22280   :[FHL]*:*);;
22281   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22282 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22283    { (exit 1); exit 1; }; };;
22284   :[FH]-) ac_tag=-:-;;
22285   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22286   esac
22287   ac_save_IFS=$IFS
22288   IFS=:
22289   set x $ac_tag
22290   IFS=$ac_save_IFS
22291   shift
22292   ac_file=$1
22293   shift
22294
22295   case $ac_mode in
22296   :L) ac_source=$1;;
22297   :[FH])
22298     ac_file_inputs=
22299     for ac_f
22300     do
22301       case $ac_f in
22302       -) ac_f="$tmp/stdin";;
22303       *) # Look for the file first in the build tree, then in the source tree
22304          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22305          # because $ac_f cannot contain `:'.
22306          test -f "$ac_f" ||
22307            case $ac_f in
22308            [\\/$]*) false;;
22309            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22310            esac ||
22311            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22312 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22313    { (exit 1); exit 1; }; };;
22314       esac
22315       ac_file_inputs="$ac_file_inputs $ac_f"
22316     done
22317
22318     # Let's still pretend it is `configure' which instantiates (i.e., don't
22319     # use $as_me), people would be surprised to read:
22320     #    /* config.h.  Generated by config.status.  */
22321     configure_input="Generated from "`IFS=:
22322           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22323     if test x"$ac_file" != x-; then
22324       configure_input="$ac_file.  $configure_input"
22325       { echo "$as_me:$LINENO: creating $ac_file" >&5
22326 echo "$as_me: creating $ac_file" >&6;}
22327     fi
22328
22329     case $ac_tag in
22330     *:-:* | *:-) cat >"$tmp/stdin";;
22331     esac
22332     ;;
22333   esac
22334
22335   ac_dir=`$as_dirname -- "$ac_file" ||
22336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22337          X"$ac_file" : 'X\(//\)[^/]' \| \
22338          X"$ac_file" : 'X\(//\)$' \| \
22339          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22340 echo X"$ac_file" |
22341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22342             s//\1/
22343             q
22344           }
22345           /^X\(\/\/\)[^/].*/{
22346             s//\1/
22347             q
22348           }
22349           /^X\(\/\/\)$/{
22350             s//\1/
22351             q
22352           }
22353           /^X\(\/\).*/{
22354             s//\1/
22355             q
22356           }
22357           s/.*/./; q'`
22358   { as_dir="$ac_dir"
22359   case $as_dir in #(
22360   -*) as_dir=./$as_dir;;
22361   esac
22362   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22363     as_dirs=
22364     while :; do
22365       case $as_dir in #(
22366       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22367       *) as_qdir=$as_dir;;
22368       esac
22369       as_dirs="'$as_qdir' $as_dirs"
22370       as_dir=`$as_dirname -- "$as_dir" ||
22371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22372          X"$as_dir" : 'X\(//\)[^/]' \| \
22373          X"$as_dir" : 'X\(//\)$' \| \
22374          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22375 echo X"$as_dir" |
22376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22377             s//\1/
22378             q
22379           }
22380           /^X\(\/\/\)[^/].*/{
22381             s//\1/
22382             q
22383           }
22384           /^X\(\/\/\)$/{
22385             s//\1/
22386             q
22387           }
22388           /^X\(\/\).*/{
22389             s//\1/
22390             q
22391           }
22392           s/.*/./; q'`
22393       test -d "$as_dir" && break
22394     done
22395     test -z "$as_dirs" || eval "mkdir $as_dirs"
22396   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22397 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22398    { (exit 1); exit 1; }; }; }
22399   ac_builddir=.
22400
22401 case "$ac_dir" in
22402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22403 *)
22404   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22405   # A ".." for each directory in $ac_dir_suffix.
22406   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22407   case $ac_top_builddir_sub in
22408   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22410   esac ;;
22411 esac
22412 ac_abs_top_builddir=$ac_pwd
22413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22414 # for backward compatibility:
22415 ac_top_builddir=$ac_top_build_prefix
22416
22417 case $srcdir in
22418   .)  # We are building in place.
22419     ac_srcdir=.
22420     ac_top_srcdir=$ac_top_builddir_sub
22421     ac_abs_top_srcdir=$ac_pwd ;;
22422   [\\/]* | ?:[\\/]* )  # Absolute name.
22423     ac_srcdir=$srcdir$ac_dir_suffix;
22424     ac_top_srcdir=$srcdir
22425     ac_abs_top_srcdir=$srcdir ;;
22426   *) # Relative name.
22427     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22428     ac_top_srcdir=$ac_top_build_prefix$srcdir
22429     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22430 esac
22431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22432
22433
22434   case $ac_mode in
22435   :F)
22436   #
22437   # CONFIG_FILE
22438   #
22439
22440   case $INSTALL in
22441   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22442   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22443   esac
22444 _ACEOF
22445
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447 # If the template does not know about datarootdir, expand it.
22448 # FIXME: This hack should be removed a few years after 2.60.
22449 ac_datarootdir_hack=; ac_datarootdir_seen=
22450
22451 case `sed -n '/datarootdir/ {
22452   p
22453   q
22454 }
22455 /@datadir@/p
22456 /@docdir@/p
22457 /@infodir@/p
22458 /@localedir@/p
22459 /@mandir@/p
22460 ' $ac_file_inputs` in
22461 *datarootdir*) ac_datarootdir_seen=yes;;
22462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22463   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22464 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22465 _ACEOF
22466 cat >>$CONFIG_STATUS <<_ACEOF
22467   ac_datarootdir_hack='
22468   s&@datadir@&$datadir&g
22469   s&@docdir@&$docdir&g
22470   s&@infodir@&$infodir&g
22471   s&@localedir@&$localedir&g
22472   s&@mandir@&$mandir&g
22473     s&\\\${datarootdir}&$datarootdir&g' ;;
22474 esac
22475 _ACEOF
22476
22477 # Neutralize VPATH when `$srcdir' = `.'.
22478 # Shell code in configure.ac might set extrasub.
22479 # FIXME: do we really want to maintain this feature?
22480 cat >>$CONFIG_STATUS <<_ACEOF
22481   sed "$ac_vpsub
22482 $extrasub
22483 _ACEOF
22484 cat >>$CONFIG_STATUS <<\_ACEOF
22485 :t
22486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22487 s&@configure_input@&$configure_input&;t t
22488 s&@top_builddir@&$ac_top_builddir_sub&;t t
22489 s&@srcdir@&$ac_srcdir&;t t
22490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22491 s&@top_srcdir@&$ac_top_srcdir&;t t
22492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22493 s&@builddir@&$ac_builddir&;t t
22494 s&@abs_builddir@&$ac_abs_builddir&;t t
22495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22496 s&@INSTALL@&$ac_INSTALL&;t t
22497 $ac_datarootdir_hack
22498 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22499
22500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22501   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22502   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22503   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22504 which seems to be undefined.  Please make sure it is defined." >&5
22505 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22506 which seems to be undefined.  Please make sure it is defined." >&2;}
22507
22508   rm -f "$tmp/stdin"
22509   case $ac_file in
22510   -) cat "$tmp/out"; rm -f "$tmp/out";;
22511   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22512   esac
22513  ;;
22514   :H)
22515   #
22516   # CONFIG_HEADER
22517   #
22518 _ACEOF
22519
22520 # Transform confdefs.h into a sed script `conftest.defines', that
22521 # substitutes the proper values into config.h.in to produce config.h.
22522 rm -f conftest.defines conftest.tail
22523 # First, append a space to every undef/define line, to ease matching.
22524 echo 's/$/ /' >conftest.defines
22525 # Then, protect against being on the right side of a sed subst, or in
22526 # an unquoted here document, in config.status.  If some macros were
22527 # called several times there might be several #defines for the same
22528 # symbol, which is useless.  But do not sort them, since the last
22529 # AC_DEFINE must be honored.
22530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22531 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22532 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22533 # PARAMS is the parameter list in the macro definition--in most cases, it's
22534 # just an empty string.
22535 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22536 ac_dB='\\)[      (].*,\\1define\\2'
22537 ac_dC=' '
22538 ac_dD=' ,'
22539
22540 uniq confdefs.h |
22541   sed -n '
22542         t rset
22543         :rset
22544         s/^[     ]*#[    ]*define[       ][      ]*//
22545         t ok
22546         d
22547         :ok
22548         s/[\\&,]/\\&/g
22549         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22550         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22551   ' >>conftest.defines
22552
22553 # Remove the space that was appended to ease matching.
22554 # Then replace #undef with comments.  This is necessary, for
22555 # example, in the case of _POSIX_SOURCE, which is predefined and required
22556 # on some systems where configure will not decide to define it.
22557 # (The regexp can be short, since the line contains either #define or #undef.)
22558 echo 's/ $//
22559 s,^[     #]*u.*,/* & */,' >>conftest.defines
22560
22561 # Break up conftest.defines:
22562 ac_max_sed_lines=50
22563
22564 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22565 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22566 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22567 # et cetera.
22568 ac_in='$ac_file_inputs'
22569 ac_out='"$tmp/out1"'
22570 ac_nxt='"$tmp/out2"'
22571
22572 while :
22573 do
22574   # Write a here document:
22575     cat >>$CONFIG_STATUS <<_ACEOF
22576     # First, check the format of the line:
22577     cat >"\$tmp/defines.sed" <<\\CEOF
22578 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22579 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22580 b
22581 :def
22582 _ACEOF
22583   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22584   echo 'CEOF
22585     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22586   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22587   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22588   grep . conftest.tail >/dev/null || break
22589   rm -f conftest.defines
22590   mv conftest.tail conftest.defines
22591 done
22592 rm -f conftest.defines conftest.tail
22593
22594 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22596   if test x"$ac_file" != x-; then
22597     echo "/* $configure_input  */" >"$tmp/config.h"
22598     cat "$ac_result" >>"$tmp/config.h"
22599     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22600       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22601 echo "$as_me: $ac_file is unchanged" >&6;}
22602     else
22603       rm -f $ac_file
22604       mv "$tmp/config.h" $ac_file
22605     fi
22606   else
22607     echo "/* $configure_input  */"
22608     cat "$ac_result"
22609   fi
22610   rm -f "$tmp/out12"
22611  ;;
22612
22613   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22614 echo "$as_me: executing $ac_file commands" >&6;}
22615  ;;
22616   esac
22617
22618
22619   case $ac_file$ac_mode in
22620     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22621    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22622     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22623    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22624     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22625    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22626     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22627    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22628     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22629    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22630     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22631    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22632     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22633    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22634     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22635    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22636     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22637    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22638     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22639    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22640     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22641    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22642     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22643    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22644     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22645    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22646
22647   esac
22648 done # for ac_tag
22649
22650
22651 { (exit 0); exit 0; }
22652 _ACEOF
22653 chmod +x $CONFIG_STATUS
22654 ac_clean_files=$ac_clean_files_save
22655
22656
22657 # configure is writing to config.log, and then calls config.status.
22658 # config.status does its own redirection, appending to config.log.
22659 # Unfortunately, on DOS this fails, as config.log is still kept open
22660 # by configure, so config.status won't be able to write to it; its
22661 # output is simply discarded.  So we exec the FD to /dev/null,
22662 # effectively closing config.log, so it can be properly (re)opened and
22663 # appended to by config.status.  When coming back to configure, we
22664 # need to make the FD available again.
22665 if test "$no_create" != yes; then
22666   ac_cs_success=:
22667   ac_config_status_args=
22668   test "$silent" = yes &&
22669     ac_config_status_args="$ac_config_status_args --quiet"
22670   exec 5>/dev/null
22671   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22672   exec 5>>config.log
22673   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22674   # would make configure fail if this is the last instruction.
22675   $ac_cs_success || { (exit 1); exit 1; }
22676 fi
22677
22678 #
22679 # CONFIG_SUBDIRS section.
22680 #
22681 if test "$no_recursion" != yes; then
22682
22683   # Remove --cache-file and --srcdir arguments so they do not pile up.
22684   ac_sub_configure_args=
22685   ac_prev=
22686   eval "set x $ac_configure_args"
22687   shift
22688   for ac_arg
22689   do
22690     if test -n "$ac_prev"; then
22691       ac_prev=
22692       continue
22693     fi
22694     case $ac_arg in
22695     -cache-file | --cache-file | --cache-fil | --cache-fi \
22696     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22697       ac_prev=cache_file ;;
22698     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22699     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22700     | --c=*)
22701       ;;
22702     --config-cache | -C)
22703       ;;
22704     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22705       ac_prev=srcdir ;;
22706     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22707       ;;
22708     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22709       ac_prev=prefix ;;
22710     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22711       ;;
22712     *)
22713       case $ac_arg in
22714       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22715       esac
22716       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22717     esac
22718   done
22719
22720   # Always prepend --prefix to ensure using the same prefix
22721   # in subdir configurations.
22722   ac_arg="--prefix=$prefix"
22723   case $ac_arg in
22724   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22725   esac
22726   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22727
22728   ac_popdir=`pwd`
22729   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22730
22731     # Do not complain, so a configure script can configure whichever
22732     # parts of a large source tree are present.
22733     test -d "$srcdir/$ac_dir" || continue
22734
22735     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22736     echo "$as_me:$LINENO: $ac_msg" >&5
22737     echo "$ac_msg" >&6
22738     { as_dir="$ac_dir"
22739   case $as_dir in #(
22740   -*) as_dir=./$as_dir;;
22741   esac
22742   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22743     as_dirs=
22744     while :; do
22745       case $as_dir in #(
22746       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22747       *) as_qdir=$as_dir;;
22748       esac
22749       as_dirs="'$as_qdir' $as_dirs"
22750       as_dir=`$as_dirname -- "$as_dir" ||
22751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22752          X"$as_dir" : 'X\(//\)[^/]' \| \
22753          X"$as_dir" : 'X\(//\)$' \| \
22754          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22755 echo X"$as_dir" |
22756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22757             s//\1/
22758             q
22759           }
22760           /^X\(\/\/\)[^/].*/{
22761             s//\1/
22762             q
22763           }
22764           /^X\(\/\/\)$/{
22765             s//\1/
22766             q
22767           }
22768           /^X\(\/\).*/{
22769             s//\1/
22770             q
22771           }
22772           s/.*/./; q'`
22773       test -d "$as_dir" && break
22774     done
22775     test -z "$as_dirs" || eval "mkdir $as_dirs"
22776   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22777 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22778    { (exit 1); exit 1; }; }; }
22779     ac_builddir=.
22780
22781 case "$ac_dir" in
22782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22783 *)
22784   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22785   # A ".." for each directory in $ac_dir_suffix.
22786   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22787   case $ac_top_builddir_sub in
22788   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22790   esac ;;
22791 esac
22792 ac_abs_top_builddir=$ac_pwd
22793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22794 # for backward compatibility:
22795 ac_top_builddir=$ac_top_build_prefix
22796
22797 case $srcdir in
22798   .)  # We are building in place.
22799     ac_srcdir=.
22800     ac_top_srcdir=$ac_top_builddir_sub
22801     ac_abs_top_srcdir=$ac_pwd ;;
22802   [\\/]* | ?:[\\/]* )  # Absolute name.
22803     ac_srcdir=$srcdir$ac_dir_suffix;
22804     ac_top_srcdir=$srcdir
22805     ac_abs_top_srcdir=$srcdir ;;
22806   *) # Relative name.
22807     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22808     ac_top_srcdir=$ac_top_build_prefix$srcdir
22809     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22810 esac
22811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22812
22813
22814     cd "$ac_dir"
22815
22816     # Check for guested configure; otherwise get Cygnus style configure.
22817     if test -f "$ac_srcdir/configure.gnu"; then
22818       ac_sub_configure=$ac_srcdir/configure.gnu
22819     elif test -f "$ac_srcdir/configure"; then
22820       ac_sub_configure=$ac_srcdir/configure
22821     elif test -f "$ac_srcdir/configure.in"; then
22822       # This should be Cygnus configure.
22823       ac_sub_configure=$ac_aux_dir/configure
22824     else
22825       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22826 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22827       ac_sub_configure=
22828     fi
22829
22830     # The recursion is here.
22831     if test -n "$ac_sub_configure"; then
22832       # Make the cache file name correct relative to the subdirectory.
22833       case $cache_file in
22834       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22835       *) # Relative name.
22836         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22837       esac
22838
22839       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22840 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22841       # The eval makes quoting arguments work.
22842       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22843            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22844         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22845 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22846    { (exit 1); exit 1; }; }
22847     fi
22848
22849     cd "$ac_popdir"
22850   done
22851 fi
22852