Remove extra semicolons.
[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, ptx, 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   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3905   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3906   *)                      llvm_cv_target_arch="Unknown" ;;
3907 esac
3908 fi
3909 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911
3912 if test "$llvm_cv_target_arch" = "Unknown" ; then
3913   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3915 fi
3916
3917 case "$llvm_cv_target_arch" in
3918     x86)     LLVM_NATIVE_ARCH="X86" ;;
3919     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3920     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3921 esac
3922
3923 ARCH=$llvm_cv_target_arch
3924
3925
3926 case $host in
3927   i?86-*)                 host_arch="x86" ;;
3928   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3929   sparc*-*)               host_arch="Sparc" ;;
3930   powerpc*-*)             host_arch="PowerPC" ;;
3931   arm*-*)                 host_arch="ARM" ;;
3932   mips-*)                 host_arch="Mips" ;;
3933   mipsel-*)               host_arch="Mips" ;;
3934   xcore-*)                host_arch="XCore" ;;
3935   msp430-*)               host_arch="MSP430" ;;
3936   hexagon-*)              host_arch="Hexagon" ;;
3937   mblaze-*)               host_arch="MBlaze" ;;
3938   ptx-*)                  host_arch="PTX" ;;
3939   *)                      host_arch="Unknown" ;;
3940 esac
3941
3942 if test "$host_arch" = "Unknown" ; then
3943   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3945 fi
3946
3947 HOST_ARCH=$host_arch
3948
3949
3950
3951
3952 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_GREP+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   # Extract the first word of "grep ggrep" to use in msg output
3958 if test -z "$GREP"; then
3959 set dummy grep ggrep; ac_prog_name=$2
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   ac_path_GREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for ac_prog in grep ggrep; do
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974     # Check for GNU ac_path_GREP and select it if it is found.
3975   # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3977 *GNU*)
3978   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979 *)
3980   ac_count=0
3981   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3982   while :
3983   do
3984     cat "conftest.in" "conftest.in" >"conftest.tmp"
3985     mv "conftest.tmp" "conftest.in"
3986     cp "conftest.in" "conftest.nl"
3987     echo 'GREP' >> "conftest.nl"
3988     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990     ac_count=`expr $ac_count + 1`
3991     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992       # Best one so far, save it but keep looking for a better one
3993       ac_cv_path_GREP="$ac_path_GREP"
3994       ac_path_GREP_max=$ac_count
3995     fi
3996     # 10*(2^10) chars as input seems more than enough
3997     test $ac_count -gt 10 && break
3998   done
3999   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 esac
4001
4002
4003     $ac_path_GREP_found && break 3
4004   done
4005 done
4006
4007 done
4008 IFS=$as_save_IFS
4009
4010
4011 fi
4012
4013 GREP="$ac_cv_path_GREP"
4014 if test -z "$GREP"; then
4015   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017    { (exit 1); exit 1; }; }
4018 fi
4019
4020 else
4021   ac_cv_path_GREP=$GREP
4022 fi
4023
4024
4025 fi
4026 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4028  GREP="$ac_cv_path_GREP"
4029
4030
4031 { echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033 if test "${ac_cv_path_EGREP+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037    then ac_cv_path_EGREP="$GREP -E"
4038    else
4039      # Extract the first word of "egrep" to use in msg output
4040 if test -z "$EGREP"; then
4041 set dummy egrep; ac_prog_name=$2
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   ac_path_EGREP_found=false
4046 # Loop through the user's path and test for each of PROGNAME-LIST
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_prog in egrep; do
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056     # Check for GNU ac_path_EGREP and select it if it is found.
4057   # Check for GNU $ac_path_EGREP
4058 case `"$ac_path_EGREP" --version 2>&1` in
4059 *GNU*)
4060   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061 *)
4062   ac_count=0
4063   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4064   while :
4065   do
4066     cat "conftest.in" "conftest.in" >"conftest.tmp"
4067     mv "conftest.tmp" "conftest.in"
4068     cp "conftest.in" "conftest.nl"
4069     echo 'EGREP' >> "conftest.nl"
4070     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072     ac_count=`expr $ac_count + 1`
4073     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074       # Best one so far, save it but keep looking for a better one
4075       ac_cv_path_EGREP="$ac_path_EGREP"
4076       ac_path_EGREP_max=$ac_count
4077     fi
4078     # 10*(2^10) chars as input seems more than enough
4079     test $ac_count -gt 10 && break
4080   done
4081   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 esac
4083
4084
4085     $ac_path_EGREP_found && break 3
4086   done
4087 done
4088
4089 done
4090 IFS=$as_save_IFS
4091
4092
4093 fi
4094
4095 EGREP="$ac_cv_path_EGREP"
4096 if test -z "$EGREP"; then
4097   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099    { (exit 1); exit 1; }; }
4100 fi
4101
4102 else
4103   ac_cv_path_EGREP=$EGREP
4104 fi
4105
4106
4107    fi
4108 fi
4109 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4111  EGREP="$ac_cv_path_EGREP"
4112
4113
4114 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116 if test "${ac_cv_header_stdc+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 #include <stdlib.h>
4126 #include <stdarg.h>
4127 #include <string.h>
4128 #include <float.h>
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_compile") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } &&
4152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153   { (case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158   (eval "$ac_try") 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_try") 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; }; then
4172   ac_cv_header_stdc=yes
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177         ac_cv_header_stdc=no
4178 fi
4179
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182 if test $ac_cv_header_stdc = yes; then
4183   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <string.h>
4191
4192 _ACEOF
4193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194   $EGREP "memchr" >/dev/null 2>&1; then
4195   :
4196 else
4197   ac_cv_header_stdc=no
4198 fi
4199 rm -f conftest*
4200
4201 fi
4202
4203 if test $ac_cv_header_stdc = yes; then
4204   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 #include <stdlib.h>
4212
4213 _ACEOF
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215   $EGREP "free" >/dev/null 2>&1; then
4216   :
4217 else
4218   ac_cv_header_stdc=no
4219 fi
4220 rm -f conftest*
4221
4222 fi
4223
4224 if test $ac_cv_header_stdc = yes; then
4225   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226   if test "$cross_compiling" = yes; then
4227   :
4228 else
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 #include <ctype.h>
4236 #include <stdlib.h>
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240 #else
4241 # define ISLOWER(c) \
4242                    (('a' <= (c) && (c) <= 'i') \
4243                      || ('j' <= (c) && (c) <= 'r') \
4244                      || ('s' <= (c) && (c) <= 'z'))
4245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246 #endif
4247
4248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249 int
4250 main ()
4251 {
4252   int i;
4253   for (i = 0; i < 256; i++)
4254     if (XOR (islower (i), ISLOWER (i))
4255         || toupper (i) != TOUPPER (i))
4256       return 2;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest$ac_exeext
4261 if { (ac_try="$ac_link"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_link") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; }; then
4280   :
4281 else
4282   echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ( exit $ac_status )
4287 ac_cv_header_stdc=no
4288 fi
4289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290 fi
4291
4292
4293 fi
4294 fi
4295 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4297 if test $ac_cv_header_stdc = yes; then
4298
4299 cat >>confdefs.h <<\_ACEOF
4300 #define STDC_HEADERS 1
4301 _ACEOF
4302
4303 fi
4304
4305 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316                   inttypes.h stdint.h unistd.h
4317 do
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 $ac_includes_default
4331
4332 #include <$ac_header>
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4336 case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341   (eval "$ac_compile") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349   { (case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354   (eval "$ac_try") 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; } &&
4358          { ac_try='test -s conftest.$ac_objext'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; }; then
4368   eval "$as_ac_Header=yes"
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373         eval "$as_ac_Header=no"
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 ac_res=`eval echo '${'$as_ac_Header'}'`
4379                { echo "$as_me:$LINENO: result: $ac_res" >&5
4380 echo "${ECHO_T}$ac_res" >&6; }
4381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382   cat >>confdefs.h <<_ACEOF
4383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4384 _ACEOF
4385
4386 fi
4387
4388 done
4389
4390
4391 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393 if test "${ac_cv_c_bigendian+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   # See if sys/param.h defines the BYTE_ORDER macro.
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <sys/types.h>
4404 #include <sys/param.h>
4405
4406 int
4407 main ()
4408 {
4409 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410  bogus endian macros
4411 #endif
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_compile") 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } &&
4431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432   { (case "(($ac_try" in
4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434   *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437   (eval "$ac_try") 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; }; then
4451   # It does; now see whether it defined to BIG_ENDIAN or not.
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458 #include <sys/types.h>
4459 #include <sys/param.h>
4460
4461 int
4462 main ()
4463 {
4464 #if BYTE_ORDER != BIG_ENDIAN
4465  not big endian
4466 #endif
4467
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4474 case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_compile") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } &&
4486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487   { (case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_try") 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; } &&
4496          { ac_try='test -s conftest.$ac_objext'
4497   { (case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_try") 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506   ac_cv_c_bigendian=yes
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511         ac_cv_c_bigendian=no
4512 fi
4513
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519         # It does not; compile a test program.
4520 if test "$cross_compiling" = yes; then
4521   # try to guess the endianness by grepping values into an object file
4522   ac_cv_c_bigendian=unknown
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4535 int
4536 main ()
4537 {
4538  _ascii (); _ebcdic ();
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_compile") 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } &&
4557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558   { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (case "(($ac_try" in
4569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570   *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573   (eval "$ac_try") 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; }; then
4577   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4578   ac_cv_c_bigendian=yes
4579 fi
4580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581   if test "$ac_cv_c_bigendian" = unknown; then
4582     ac_cv_c_bigendian=no
4583   else
4584     # finding both strings is unlikely to happen, but who knows?
4585     ac_cv_c_bigendian=unknown
4586   fi
4587 fi
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592
4593 fi
4594
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 else
4597   cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 $ac_includes_default
4604 int
4605 main ()
4606 {
4607
4608   /* Are we little or big endian?  From Harbison&Steele.  */
4609   union
4610   {
4611     long int l;
4612     char c[sizeof (long int)];
4613   } u;
4614   u.l = 1;
4615   return u.c[sizeof (long int) - 1] == 1;
4616
4617   ;
4618   return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4623 case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628   (eval "$ac_link") 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632   { (case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637   (eval "$ac_try") 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; }; then
4641   ac_cv_c_bigendian=no
4642 else
4643   echo "$as_me: program exited with status $ac_status" >&5
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ( exit $ac_status )
4648 ac_cv_c_bigendian=yes
4649 fi
4650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651 fi
4652
4653
4654 fi
4655
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660 case $ac_cv_c_bigendian in
4661   yes)
4662     ENDIAN=big
4663  ;;
4664   no)
4665     ENDIAN=little
4666  ;;
4667   *)
4668     { { echo "$as_me:$LINENO: error: unknown endianness
4669 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670 echo "$as_me: error: unknown endianness
4671 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672    { (exit 1); exit 1; }; } ;;
4673 esac
4674
4675
4676 if test "$cross_compiling" = yes; then
4677   LLVM_CROSS_COMPILING=1
4678
4679
4680 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682 if test "${ac_cv_build_exeext+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686   ac_cv_build_exeext=.exe
4687 else
4688   ac_build_prefix=${build_alias}-
4689
4690   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691 set dummy ${ac_build_prefix}gcc; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   if test -n "$BUILD_CC"; then
4698   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705   for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 BUILD_CC=$ac_cv_prog_BUILD_CC
4718 if test -n "$BUILD_CC"; then
4719   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720 echo "${ECHO_T}$BUILD_CC" >&6; }
4721 else
4722   { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4724 fi
4725
4726
4727   if test -z "$BUILD_CC"; then
4728      # Extract the first word of "gcc", so it can be a program name with args.
4729 set dummy gcc; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   if test -n "$BUILD_CC"; then
4736   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743   for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_prog_BUILD_CC="gcc"
4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 BUILD_CC=$ac_cv_prog_BUILD_CC
4756 if test -n "$BUILD_CC"; then
4757   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758 echo "${ECHO_T}$BUILD_CC" >&6; }
4759 else
4760   { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4762 fi
4763
4764
4765      if test -z "$BUILD_CC"; then
4766        # Extract the first word of "cc", so it can be a program name with args.
4767 set dummy cc; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   if test -n "$BUILD_CC"; then
4774   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4775 else
4776   ac_prog_rejected=no
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_exec_ext in '' $ac_executable_extensions; do
4783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4784     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785        ac_prog_rejected=yes
4786        continue
4787      fi
4788     ac_cv_prog_BUILD_CC="cc"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 if test $ac_prog_rejected = yes; then
4797   # We found a bogon in the path, so make sure we never use it.
4798   set dummy $ac_cv_prog_BUILD_CC
4799   shift
4800   if test $# != 0; then
4801     # We chose a different compiler from the bogus one.
4802     # However, it has the same basename, so the bogon will be chosen
4803     # first if we set BUILD_CC to just the basename; use the full file name.
4804     shift
4805     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4806   fi
4807 fi
4808 fi
4809 fi
4810 BUILD_CC=$ac_cv_prog_BUILD_CC
4811 if test -n "$BUILD_CC"; then
4812   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813 echo "${ECHO_T}$BUILD_CC" >&6; }
4814 else
4815   { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4817 fi
4818
4819
4820      fi
4821   fi
4822   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824    { (exit 1); exit 1; }; }
4825   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4826   rm -f conftest*
4827   echo 'int main () { return 0; }' > conftest.$ac_ext
4828   ac_cv_build_exeext=
4829   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4830   (eval $ac_build_link) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; then
4834     for file in conftest.*; do
4835       case $file in
4836       *.c | *.o | *.obj | *.dSYM) ;;
4837       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4838       esac
4839     done
4840   else
4841     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843    { (exit 1); exit 1; }; }
4844   fi
4845   rm -f conftest*
4846   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4847 fi
4848 fi
4849
4850 BUILD_EXEEXT=""
4851 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4852 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4854 ac_build_exeext=$BUILD_EXEEXT
4855
4856   ac_build_prefix=${build_alias}-
4857   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858 set dummy ${ac_build_prefix}g++; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   if test -n "$BUILD_CXX"; then
4865   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885 if test -n "$BUILD_CXX"; then
4886   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887 echo "${ECHO_T}$BUILD_CXX" >&6; }
4888 else
4889   { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4891 fi
4892
4893
4894   if test -z "$BUILD_CXX"; then
4895      # Extract the first word of "g++", so it can be a program name with args.
4896 set dummy g++; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$BUILD_CXX"; then
4903   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_BUILD_CXX="g++"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923 if test -n "$BUILD_CXX"; then
4924   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925 echo "${ECHO_T}$BUILD_CXX" >&6; }
4926 else
4927   { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4929 fi
4930
4931
4932      if test -z "$BUILD_CXX"; then
4933        # Extract the first word of "c++", so it can be a program name with args.
4934 set dummy c++; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   if test -n "$BUILD_CXX"; then
4941   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4942 else
4943   ac_prog_rejected=no
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952        ac_prog_rejected=yes
4953        continue
4954      fi
4955     ac_cv_prog_BUILD_CXX="c++"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 if test $ac_prog_rejected = yes; then
4964   # We found a bogon in the path, so make sure we never use it.
4965   set dummy $ac_cv_prog_BUILD_CXX
4966   shift
4967   if test $# != 0; then
4968     # We chose a different compiler from the bogus one.
4969     # However, it has the same basename, so the bogon will be chosen
4970     # first if we set BUILD_CXX to just the basename; use the full file name.
4971     shift
4972     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4973   fi
4974 fi
4975 fi
4976 fi
4977 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978 if test -n "$BUILD_CXX"; then
4979   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980 echo "${ECHO_T}$BUILD_CXX" >&6; }
4981 else
4982   { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4984 fi
4985
4986
4987      fi
4988   fi
4989 else
4990   LLVM_CROSS_COMPILING=0
4991
4992 fi
4993
4994 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4995   cvsbuild="yes"
4996   optimize="no"
4997   CVSBUILD=CVSBUILD=1
4998
4999 else
5000   cvsbuild="no"
5001   optimize="yes"
5002 fi
5003
5004
5005 # Check whether --enable-libcpp was given.
5006 if test "${enable_libcpp+set}" = set; then
5007   enableval=$enable_libcpp;
5008 else
5009   enableval=default
5010 fi
5011
5012 case "$enableval" in
5013   yes) ENABLE_LIBCPP=1
5014  ;;
5015   no)  ENABLE_LIBCPP=0
5016  ;;
5017   default) ENABLE_LIBCPP=0
5018 ;;
5019   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021    { (exit 1); exit 1; }; } ;;
5022 esac
5023
5024 # Check whether --enable-optimized was given.
5025 if test "${enable_optimized+set}" = set; then
5026   enableval=$enable_optimized;
5027 else
5028   enableval=$optimize
5029 fi
5030
5031 if test ${enableval} = "no" ; then
5032   ENABLE_OPTIMIZED=
5033
5034 else
5035   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5036
5037 fi
5038
5039 # Check whether --enable-profiling was given.
5040 if test "${enable_profiling+set}" = set; then
5041   enableval=$enable_profiling;
5042 else
5043   enableval="no"
5044 fi
5045
5046 if test ${enableval} = "no" ; then
5047   ENABLE_PROFILING=
5048
5049 else
5050   ENABLE_PROFILING=ENABLE_PROFILING=1
5051
5052 fi
5053
5054 # Check whether --enable-assertions was given.
5055 if test "${enable_assertions+set}" = set; then
5056   enableval=$enable_assertions;
5057 else
5058   enableval="yes"
5059 fi
5060
5061 if test ${enableval} = "yes" ; then
5062   DISABLE_ASSERTIONS=
5063
5064 else
5065   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5066
5067 fi
5068
5069 # Check whether --enable-expensive-checks was given.
5070 if test "${enable_expensive_checks+set}" = set; then
5071   enableval=$enable_expensive_checks;
5072 else
5073   enableval="no"
5074 fi
5075
5076 if test ${enableval} = "yes" ; then
5077   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5078
5079   EXPENSIVE_CHECKS=yes
5080
5081 else
5082   ENABLE_EXPENSIVE_CHECKS=
5083
5084   EXPENSIVE_CHECKS=no
5085
5086 fi
5087
5088 # Check whether --enable-debug-runtime was given.
5089 if test "${enable_debug_runtime+set}" = set; then
5090   enableval=$enable_debug_runtime;
5091 else
5092   enableval=no
5093 fi
5094
5095 if test ${enableval} = "no" ; then
5096   DEBUG_RUNTIME=
5097
5098 else
5099   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5100
5101 fi
5102
5103 # Check whether --enable-debug-symbols was given.
5104 if test "${enable_debug_symbols+set}" = set; then
5105   enableval=$enable_debug_symbols;
5106 else
5107   enableval=no
5108 fi
5109
5110 if test ${enableval} = "no" ; then
5111   DEBUG_SYMBOLS=
5112
5113 else
5114   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5115
5116 fi
5117
5118 # Check whether --enable-jit was given.
5119 if test "${enable_jit+set}" = set; then
5120   enableval=$enable_jit;
5121 else
5122   enableval=default
5123 fi
5124
5125 if test ${enableval} = "no"
5126 then
5127   JIT=
5128
5129 else
5130   case "$llvm_cv_target_arch" in
5131     x86)         TARGET_HAS_JIT=1
5132  ;;
5133     Sparc)       TARGET_HAS_JIT=0
5134  ;;
5135     PowerPC)     TARGET_HAS_JIT=1
5136  ;;
5137     x86_64)      TARGET_HAS_JIT=1
5138  ;;
5139     ARM)         TARGET_HAS_JIT=1
5140  ;;
5141     Mips)        TARGET_HAS_JIT=1
5142  ;;
5143     XCore)       TARGET_HAS_JIT=0
5144  ;;
5145     MSP430)      TARGET_HAS_JIT=0
5146  ;;
5147     Hexagon)     TARGET_HAS_JIT=0
5148  ;;
5149     MBlaze)      TARGET_HAS_JIT=0
5150  ;;
5151     PTX)         TARGET_HAS_JIT=0
5152  ;;
5153     NVPTX)       TARGET_HAS_JIT=0
5154  ;;
5155     *)           TARGET_HAS_JIT=0
5156  ;;
5157   esac
5158 fi
5159
5160 # Check whether --enable-docs was given.
5161 if test "${enable_docs+set}" = set; then
5162   enableval=$enable_docs;
5163 else
5164   enableval=default
5165 fi
5166
5167 case "$enableval" in
5168   yes) ENABLE_DOCS=1
5169  ;;
5170   no)  ENABLE_DOCS=0
5171  ;;
5172   default) ENABLE_DOCS=1
5173  ;;
5174   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5176    { (exit 1); exit 1; }; } ;;
5177 esac
5178
5179 # Check whether --enable-doxygen was given.
5180 if test "${enable_doxygen+set}" = set; then
5181   enableval=$enable_doxygen;
5182 else
5183   enableval=default
5184 fi
5185
5186 case "$enableval" in
5187   yes) ENABLE_DOXYGEN=1
5188  ;;
5189   no)  ENABLE_DOXYGEN=0
5190  ;;
5191   default) ENABLE_DOXYGEN=0
5192  ;;
5193   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5195    { (exit 1); exit 1; }; } ;;
5196 esac
5197
5198 # Check whether --enable-threads was given.
5199 if test "${enable_threads+set}" = set; then
5200   enableval=$enable_threads;
5201 else
5202   enableval=default
5203 fi
5204
5205 case "$enableval" in
5206   yes) LLVM_ENABLE_THREADS=1
5207  ;;
5208   no)  LLVM_ENABLE_THREADS=0
5209  ;;
5210   default) LLVM_ENABLE_THREADS=1
5211  ;;
5212   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5214    { (exit 1); exit 1; }; } ;;
5215 esac
5216
5217 cat >>confdefs.h <<_ACEOF
5218 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5219 _ACEOF
5220
5221
5222 # Check whether --enable-pthreads was given.
5223 if test "${enable_pthreads+set}" = set; then
5224   enableval=$enable_pthreads;
5225 else
5226   enableval=default
5227 fi
5228
5229 case "$enableval" in
5230   yes) ENABLE_PTHREADS=1
5231  ;;
5232   no)  ENABLE_PTHREADS=0
5233  ;;
5234   default) ENABLE_PTHREADS=1
5235  ;;
5236   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5238    { (exit 1); exit 1; }; } ;;
5239 esac
5240
5241 # Check whether --enable-pic was given.
5242 if test "${enable_pic+set}" = set; then
5243   enableval=$enable_pic;
5244 else
5245   enableval=default
5246 fi
5247
5248 case "$enableval" in
5249   yes) ENABLE_PIC=1
5250  ;;
5251   no)  ENABLE_PIC=0
5252  ;;
5253   default) ENABLE_PIC=1
5254  ;;
5255   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5257    { (exit 1); exit 1; }; } ;;
5258 esac
5259
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_PIC $ENABLE_PIC
5262 _ACEOF
5263
5264
5265 # Check whether --enable-shared was given.
5266 if test "${enable_shared+set}" = set; then
5267   enableval=$enable_shared;
5268 else
5269   enableval=default
5270 fi
5271
5272 case "$enableval" in
5273   yes) ENABLE_SHARED=1
5274  ;;
5275   no)  ENABLE_SHARED=0
5276  ;;
5277   default) ENABLE_SHARED=0
5278  ;;
5279   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5280 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5281    { (exit 1); exit 1; }; } ;;
5282 esac
5283
5284 # Check whether --enable-embed-stdcxx was given.
5285 if test "${enable_embed_stdcxx+set}" = set; then
5286   enableval=$enable_embed_stdcxx;
5287 else
5288   enableval=default
5289 fi
5290
5291 case "$enableval" in
5292   yes) ENABLE_EMBED_STDCXX=1
5293  ;;
5294   no)  ENABLE_EMBED_STDCXX=0
5295  ;;
5296   default) ENABLE_EMBED_STDCXX=0
5297  ;;
5298   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301 esac
5302
5303 # Check whether --enable-timestamps was given.
5304 if test "${enable_timestamps+set}" = set; then
5305   enableval=$enable_timestamps;
5306 else
5307   enableval=default
5308 fi
5309
5310 case "$enableval" in
5311   yes) ENABLE_TIMESTAMPS=1
5312  ;;
5313   no)  ENABLE_TIMESTAMPS=0
5314  ;;
5315   default) ENABLE_TIMESTAMPS=1
5316  ;;
5317   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5318 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5319    { (exit 1); exit 1; }; } ;;
5320 esac
5321
5322 cat >>confdefs.h <<_ACEOF
5323 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5324 _ACEOF
5325
5326
5327 TARGETS_TO_BUILD=""
5328 # Check whether --enable-targets was given.
5329 if test "${enable_targets+set}" = set; then
5330   enableval=$enable_targets;
5331 else
5332   enableval=all
5333 fi
5334
5335 if test "$enableval" = host-only ; then
5336   enableval=host
5337 fi
5338 case "$enableval" in
5339   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5340   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5341       case "$a_target" in
5342         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5343         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5344         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5345         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5346         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5347         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5348         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5349         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5350         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5351         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5352         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5353         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5355         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5356         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5357         host) case "$llvm_cv_target_arch" in
5358             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5359             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5361             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5362             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5363             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5365             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5366             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5370             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5371             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372 echo "$as_me: error: Can not set target to build" >&2;}
5373    { (exit 1); exit 1; }; } ;;
5374           esac ;;
5375         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377    { (exit 1); exit 1; }; } ;;
5378       esac
5379   done
5380   ;;
5381 esac
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5383
5384
5385 for a_target in $TARGETS_TO_BUILD; do
5386   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5390 _ACEOF
5391
5392     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398     fi
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5401     fi
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5405 _ACEOF
5406
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410 _ACEOF
5411
5412
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5415 _ACEOF
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5420 _ACEOF
5421
5422     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426 _ACEOF
5427
5428     fi
5429     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433 _ACEOF
5434
5435     fi
5436   fi
5437 done
5438
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447   fi
5448   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450   fi
5451   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453   fi
5454 done
5455
5456
5457
5458
5459
5460
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463   withval=$with_optimize_option;
5464 else
5465   withval=default
5466 fi
5467
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5470 case "$withval" in
5471   default)
5472     case "$llvm_cv_os_type" in
5473     FreeBSD) optimize_option=-O2 ;;
5474     MingW) optimize_option=-O2 ;;
5475     *)     optimize_option=-O3 ;;
5476     esac ;;
5477   *) optimize_option="$withval" ;;
5478 esac
5479 OPTIMIZE_OPTION=$optimize_option
5480
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5483
5484
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487   withval=$with_extra_options;
5488 else
5489   withval=default
5490 fi
5491
5492 case "$withval" in
5493   default) EXTRA_OPTIONS= ;;
5494   *) EXTRA_OPTIONS=$withval ;;
5495 esac
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5497
5498
5499
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502   withval=$with_extra_ld_options;
5503 else
5504   withval=default
5505 fi
5506
5507 case "$withval" in
5508   default) EXTRA_LD_OPTIONS= ;;
5509   *) EXTRA_LD_OPTIONS=$withval ;;
5510 esac
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512
5513
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516   enableval=$enable_bindings;
5517 else
5518   enableval=default
5519 fi
5520
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524   all ) BINDINGS_TO_BUILD="ocaml" ;;
5525   none | no) BINDINGS_TO_BUILD="" ;;
5526   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527       case "$a_binding" in
5528         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532       esac
5533   done
5534   ;;
5535 esac
5536
5537
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540   withval=$with_ocaml_libdir;
5541 else
5542   withval=auto
5543 fi
5544
5545 case "$withval" in
5546   auto) with_ocaml_libdir="$withval" ;;
5547   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550    { (exit 1); exit 1; }; } ;;
5551 esac
5552
5553
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556   withval=$with_clang_srcdir;
5557 else
5558   withval="-"
5559 fi
5560
5561 case "$withval" in
5562   -) clang_src_root="" ;;
5563   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564   *) clang_src_root="$ac_pwd/$withval" ;;
5565 esac
5566 CLANG_SRC_ROOT=$clang_src_root
5567
5568
5569
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572   withval=$with_clang_resource_dir;
5573 else
5574   withval=""
5575 fi
5576
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5580 _ACEOF
5581
5582
5583
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586   withval=$with_c_include_dirs;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5594 _ACEOF
5595
5596
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5600
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603   withval=$with_gcc_toolchain;
5604 else
5605   withval=""
5606 fi
5607
5608
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5611 _ACEOF
5612
5613
5614
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617   withval=$with_default_sysroot;
5618 else
5619   withval=""
5620 fi
5621
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5625 _ACEOF
5626
5627
5628
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631   withval=$with_binutils_include;
5632 else
5633   withval=default
5634 fi
5635
5636 case "$withval" in
5637   default) WITH_BINUTILS_INCDIR=default ;;
5638   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5639   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641    { (exit 1); exit 1; }; } ;;
5642 esac
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645
5646   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650    { (exit 1); exit 1; }; };
5651   fi
5652 fi
5653
5654
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657   withval=$with_bug_report_url;
5658 else
5659   withval="http://llvm.org/bugs/"
5660 fi
5661
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5665 _ACEOF
5666
5667
5668 # Check whether --enable-libffi was given.
5669 if test "${enable_libffi+set}" = set; then
5670   enableval=$enable_libffi; case "$enableval" in
5671     yes) llvm_cv_enable_libffi="yes" ;;
5672     no)  llvm_cv_enable_libffi="no"  ;;
5673     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5675    { (exit 1); exit 1; }; } ;;
5676   esac
5677 else
5678   llvm_cv_enable_libffi=no
5679 fi
5680
5681
5682
5683 # Check whether --with-internal-prefix was given.
5684 if test "${with_internal_prefix+set}" = set; then
5685   withval=$with_internal_prefix;
5686 else
5687   withval=""
5688 fi
5689
5690 INTERNAL_PREFIX=$withval
5691
5692
5693
5694 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5695 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5696 if test "${lt_cv_path_NM+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test -n "$NM"; then
5700   # Let the user override the test.
5701   lt_cv_path_NM="$NM"
5702 else
5703   lt_nm_to_check="${ac_tool_prefix}nm"
5704   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5705     lt_nm_to_check="$lt_nm_to_check nm"
5706   fi
5707   for lt_tmp_nm in $lt_nm_to_check; do
5708     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5710       IFS="$lt_save_ifs"
5711       test -z "$ac_dir" && ac_dir=.
5712       tmp_nm="$ac_dir/$lt_tmp_nm"
5713       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5714         # Check to see if the nm accepts a BSD-compat flag.
5715         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716         #   nm: unknown option "B" ignored
5717         # Tru64's nm complains that /dev/null is an invalid object file
5718         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5719         */dev/null* | *'Invalid file or object type'*)
5720           lt_cv_path_NM="$tmp_nm -B"
5721           break
5722           ;;
5723         *)
5724           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5725           */dev/null*)
5726             lt_cv_path_NM="$tmp_nm -p"
5727             break
5728             ;;
5729           *)
5730             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5731             continue # so that we can try to find one that supports BSD flags
5732             ;;
5733           esac
5734           ;;
5735         esac
5736       fi
5737     done
5738     IFS="$lt_save_ifs"
5739   done
5740   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5741 fi
5742 fi
5743 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5744 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5745 NM="$lt_cv_path_NM"
5746
5747
5748
5749 { echo "$as_me:$LINENO: checking for GNU make" >&5
5750 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5751 if test "${llvm_cv_gnu_make_command+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   llvm_cv_gnu_make_command=''
5755  for a in "$MAKE" make gmake gnumake ; do
5756   if test -z "$a" ; then continue ; fi ;
5757   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5758   then
5759    llvm_cv_gnu_make_command=$a ;
5760    break;
5761   fi
5762  done
5763 fi
5764 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5765 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5766  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5767    ifGNUmake='' ;
5768  else
5769    ifGNUmake='#' ;
5770    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5771 echo "${ECHO_T}\"Not found\"" >&6; };
5772  fi
5773
5774
5775 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5776 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5777 LN_S=$as_ln_s
5778 if test "$LN_S" = "ln -s"; then
5779   { echo "$as_me:$LINENO: result: yes" >&5
5780 echo "${ECHO_T}yes" >&6; }
5781 else
5782   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5783 echo "${ECHO_T}no, using $LN_S" >&6; }
5784 fi
5785
5786 # Extract the first word of "cmp", so it can be a program name with args.
5787 set dummy cmp; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_CMP+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   case $CMP in
5794   [\\/]* | ?:[\\/]*)
5795   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5796   ;;
5797   *)
5798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801   IFS=$as_save_IFS
5802   test -z "$as_dir" && as_dir=.
5803   for ac_exec_ext in '' $ac_executable_extensions; do
5804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807     break 2
5808   fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5814   ;;
5815 esac
5816 fi
5817 CMP=$ac_cv_path_CMP
5818 if test -n "$CMP"; then
5819   { echo "$as_me:$LINENO: result: $CMP" >&5
5820 echo "${ECHO_T}$CMP" >&6; }
5821 else
5822   { echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6; }
5824 fi
5825
5826
5827 # Extract the first word of "cp", so it can be a program name with args.
5828 set dummy cp; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_CP+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   case $CP in
5835   [\\/]* | ?:[\\/]*)
5836   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5837   ;;
5838   *)
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844   for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5855   ;;
5856 esac
5857 fi
5858 CP=$ac_cv_path_CP
5859 if test -n "$CP"; then
5860   { echo "$as_me:$LINENO: result: $CP" >&5
5861 echo "${ECHO_T}$CP" >&6; }
5862 else
5863   { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5865 fi
5866
5867
5868 # Extract the first word of "date", so it can be a program name with args.
5869 set dummy date; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_DATE+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   case $DATE in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5896   ;;
5897 esac
5898 fi
5899 DATE=$ac_cv_path_DATE
5900 if test -n "$DATE"; then
5901   { echo "$as_me:$LINENO: result: $DATE" >&5
5902 echo "${ECHO_T}$DATE" >&6; }
5903 else
5904   { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906 fi
5907
5908
5909 # Extract the first word of "find", so it can be a program name with args.
5910 set dummy find; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_path_FIND+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   case $FIND in
5917   [\\/]* | ?:[\\/]*)
5918   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5919   ;;
5920   *)
5921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5937   ;;
5938 esac
5939 fi
5940 FIND=$ac_cv_path_FIND
5941 if test -n "$FIND"; then
5942   { echo "$as_me:$LINENO: result: $FIND" >&5
5943 echo "${ECHO_T}$FIND" >&6; }
5944 else
5945   { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5947 fi
5948
5949
5950 # Extract the first word of "grep", so it can be a program name with args.
5951 set dummy grep; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_path_GREP+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   case $GREP in
5958   [\\/]* | ?:[\\/]*)
5959   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5960   ;;
5961   *)
5962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5978   ;;
5979 esac
5980 fi
5981 GREP=$ac_cv_path_GREP
5982 if test -n "$GREP"; then
5983   { echo "$as_me:$LINENO: result: $GREP" >&5
5984 echo "${ECHO_T}$GREP" >&6; }
5985 else
5986   { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5988 fi
5989
5990
5991 # Extract the first word of "mkdir", so it can be a program name with args.
5992 set dummy mkdir; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_MKDIR+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   case $MKDIR in
5999   [\\/]* | ?:[\\/]*)
6000   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6001   ;;
6002   *)
6003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016 IFS=$as_save_IFS
6017
6018   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6019   ;;
6020 esac
6021 fi
6022 MKDIR=$ac_cv_path_MKDIR
6023 if test -n "$MKDIR"; then
6024   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6025 echo "${ECHO_T}$MKDIR" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031
6032 # Extract the first word of "mv", so it can be a program name with args.
6033 set dummy mv; ac_word=$2
6034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036 if test "${ac_cv_path_MV+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   case $MV in
6040   [\\/]* | ?:[\\/]*)
6041   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6042   ;;
6043   *)
6044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049   for ac_exec_ext in '' $ac_executable_extensions; do
6050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6051     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6060   ;;
6061 esac
6062 fi
6063 MV=$ac_cv_path_MV
6064 if test -n "$MV"; then
6065   { echo "$as_me:$LINENO: result: $MV" >&5
6066 echo "${ECHO_T}$MV" >&6; }
6067 else
6068   { echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6; }
6070 fi
6071
6072
6073 if test -n "$ac_tool_prefix"; then
6074   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078 if test "${ac_cv_prog_RANLIB+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   if test -n "$RANLIB"; then
6082   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089   for ac_exec_ext in '' $ac_executable_extensions; do
6090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6091     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 RANLIB=$ac_cv_prog_RANLIB
6102 if test -n "$RANLIB"; then
6103   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6104 echo "${ECHO_T}$RANLIB" >&6; }
6105 else
6106   { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_RANLIB"; then
6113   ac_ct_RANLIB=$RANLIB
6114   # Extract the first word of "ranlib", so it can be a program name with args.
6115 set dummy ranlib; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   if test -n "$ac_ct_RANLIB"; then
6122   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131     ac_cv_prog_ac_ct_RANLIB="ranlib"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142 if test -n "$ac_ct_RANLIB"; then
6143   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6148 fi
6149
6150   if test "x$ac_ct_RANLIB" = x; then
6151     RANLIB=":"
6152   else
6153     case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6156 whose name does not start with the host triplet.  If you think this
6157 configuration is useful to you, please write to autoconf@gnu.org." >&5
6158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6159 whose name does not start with the host triplet.  If you think this
6160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6161 ac_tool_warned=yes ;;
6162 esac
6163     RANLIB=$ac_ct_RANLIB
6164   fi
6165 else
6166   RANLIB="$ac_cv_prog_RANLIB"
6167 fi
6168
6169 if test -n "$ac_tool_prefix"; then
6170   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}ar; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_AR+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   if test -n "$AR"; then
6178   ac_cv_prog_AR="$AR" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185   for ac_exec_ext in '' $ac_executable_extensions; do
6186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187     ac_cv_prog_AR="${ac_tool_prefix}ar"
6188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 AR=$ac_cv_prog_AR
6198 if test -n "$AR"; then
6199   { echo "$as_me:$LINENO: result: $AR" >&5
6200 echo "${ECHO_T}$AR" >&6; }
6201 else
6202   { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6204 fi
6205
6206
6207 fi
6208 if test -z "$ac_cv_prog_AR"; then
6209   ac_ct_AR=$AR
6210   # Extract the first word of "ar", so it can be a program name with args.
6211 set dummy ar; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$ac_ct_AR"; then
6218   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_ac_ct_AR="ar"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6238 if test -n "$ac_ct_AR"; then
6239   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6240 echo "${ECHO_T}$ac_ct_AR" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6245
6246   if test "x$ac_ct_AR" = x; then
6247     AR="false"
6248   else
6249     case $cross_compiling:$ac_tool_warned in
6250 yes:)
6251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet.  If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&5
6254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet.  If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259     AR=$ac_ct_AR
6260   fi
6261 else
6262   AR="$ac_cv_prog_AR"
6263 fi
6264
6265 # Extract the first word of "rm", so it can be a program name with args.
6266 set dummy rm; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_RM+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272   case $RM in
6273   [\\/]* | ?:[\\/]*)
6274   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6275   ;;
6276   *)
6277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282   for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6293   ;;
6294 esac
6295 fi
6296 RM=$ac_cv_path_RM
6297 if test -n "$RM"; then
6298   { echo "$as_me:$LINENO: result: $RM" >&5
6299 echo "${ECHO_T}$RM" >&6; }
6300 else
6301   { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303 fi
6304
6305
6306 # Extract the first word of "sed", so it can be a program name with args.
6307 set dummy sed; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_SED+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   case $SED in
6314   [\\/]* | ?:[\\/]*)
6315   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6316   ;;
6317   *)
6318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323   for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6334   ;;
6335 esac
6336 fi
6337 SED=$ac_cv_path_SED
6338 if test -n "$SED"; then
6339   { echo "$as_me:$LINENO: result: $SED" >&5
6340 echo "${ECHO_T}$SED" >&6; }
6341 else
6342   { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6344 fi
6345
6346
6347 # Extract the first word of "tar", so it can be a program name with args.
6348 set dummy tar; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_path_TAR+set}" = set; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   case $TAR in
6355   [\\/]* | ?:[\\/]*)
6356   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6357   ;;
6358   *)
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6375   ;;
6376 esac
6377 fi
6378 TAR=$ac_cv_path_TAR
6379 if test -n "$TAR"; then
6380   { echo "$as_me:$LINENO: result: $TAR" >&5
6381 echo "${ECHO_T}$TAR" >&6; }
6382 else
6383   { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6385 fi
6386
6387
6388 # Extract the first word of "pwd", so it can be a program name with args.
6389 set dummy pwd; ac_word=$2
6390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392 if test "${ac_cv_path_BINPWD+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   case $BINPWD in
6396   [\\/]* | ?:[\\/]*)
6397   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6398   ;;
6399   *)
6400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405   for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6416   ;;
6417 esac
6418 fi
6419 BINPWD=$ac_cv_path_BINPWD
6420 if test -n "$BINPWD"; then
6421   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6422 echo "${ECHO_T}$BINPWD" >&6; }
6423 else
6424   { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 fi
6427
6428
6429
6430 # Extract the first word of "Graphviz", so it can be a program name with args.
6431 set dummy Graphviz; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   case $GRAPHVIZ in
6438   [\\/]* | ?:[\\/]*)
6439   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6440   ;;
6441   *)
6442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447   for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6458   ;;
6459 esac
6460 fi
6461 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6462 if test -n "$GRAPHVIZ"; then
6463   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6464 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6472
6473 cat >>confdefs.h <<\_ACEOF
6474 #define HAVE_GRAPHVIZ 1
6475 _ACEOF
6476
6477     if test "$llvm_cv_os_type" = "MingW" ; then
6478     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6479   fi
6480
6481 cat >>confdefs.h <<_ACEOF
6482 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6483 _ACEOF
6484
6485 fi
6486 # Extract the first word of "dot", so it can be a program name with args.
6487 set dummy dot; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_path_DOT+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   case $DOT in
6494   [\\/]* | ?:[\\/]*)
6495   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6496   ;;
6497   *)
6498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6514   ;;
6515 esac
6516 fi
6517 DOT=$ac_cv_path_DOT
6518 if test -n "$DOT"; then
6519   { echo "$as_me:$LINENO: result: $DOT" >&5
6520 echo "${ECHO_T}$DOT" >&6; }
6521 else
6522   { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6524 fi
6525
6526
6527 if test "$DOT" != "echo dot" ; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define HAVE_DOT 1
6531 _ACEOF
6532
6533     if test "$llvm_cv_os_type" = "MingW" ; then
6534     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6535   fi
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6539 _ACEOF
6540
6541 fi
6542 # Extract the first word of "fdp", so it can be a program name with args.
6543 set dummy fdp; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_path_FDP+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   case $FDP in
6550   [\\/]* | ?:[\\/]*)
6551   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6552   ;;
6553   *)
6554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559   for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6570   ;;
6571 esac
6572 fi
6573 FDP=$ac_cv_path_FDP
6574 if test -n "$FDP"; then
6575   { echo "$as_me:$LINENO: result: $FDP" >&5
6576 echo "${ECHO_T}$FDP" >&6; }
6577 else
6578   { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6580 fi
6581
6582
6583 if test "$FDP" != "echo fdp" ; then
6584
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_FDP 1
6587 _ACEOF
6588
6589     if test "$llvm_cv_os_type" = "MingW" ; then
6590     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6591   fi
6592
6593 cat >>confdefs.h <<_ACEOF
6594 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6595 _ACEOF
6596
6597 fi
6598 # Extract the first word of "neato", so it can be a program name with args.
6599 set dummy neato; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_NEATO+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   case $NEATO in
6606   [\\/]* | ?:[\\/]*)
6607   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6608   ;;
6609   *)
6610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6626   ;;
6627 esac
6628 fi
6629 NEATO=$ac_cv_path_NEATO
6630 if test -n "$NEATO"; then
6631   { echo "$as_me:$LINENO: result: $NEATO" >&5
6632 echo "${ECHO_T}$NEATO" >&6; }
6633 else
6634   { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6636 fi
6637
6638
6639 if test "$NEATO" != "echo neato" ; then
6640
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_NEATO 1
6643 _ACEOF
6644
6645     if test "$llvm_cv_os_type" = "MingW" ; then
6646     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6647   fi
6648
6649 cat >>confdefs.h <<_ACEOF
6650 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6651 _ACEOF
6652
6653 fi
6654 # Extract the first word of "twopi", so it can be a program name with args.
6655 set dummy twopi; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TWOPI+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $TWOPI in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6682   ;;
6683 esac
6684 fi
6685 TWOPI=$ac_cv_path_TWOPI
6686 if test -n "$TWOPI"; then
6687   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6688 echo "${ECHO_T}$TWOPI" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695 if test "$TWOPI" != "echo twopi" ; then
6696
6697 cat >>confdefs.h <<\_ACEOF
6698 #define HAVE_TWOPI 1
6699 _ACEOF
6700
6701     if test "$llvm_cv_os_type" = "MingW" ; then
6702     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6703   fi
6704
6705 cat >>confdefs.h <<_ACEOF
6706 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6707 _ACEOF
6708
6709 fi
6710 # Extract the first word of "circo", so it can be a program name with args.
6711 set dummy circo; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_path_CIRCO+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   case $CIRCO in
6718   [\\/]* | ?:[\\/]*)
6719   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6720   ;;
6721   *)
6722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727   for ac_exec_ext in '' $ac_executable_extensions; do
6728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6729     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6738   ;;
6739 esac
6740 fi
6741 CIRCO=$ac_cv_path_CIRCO
6742 if test -n "$CIRCO"; then
6743   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6744 echo "${ECHO_T}$CIRCO" >&6; }
6745 else
6746   { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6748 fi
6749
6750
6751 if test "$CIRCO" != "echo circo" ; then
6752
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_CIRCO 1
6755 _ACEOF
6756
6757     if test "$llvm_cv_os_type" = "MingW" ; then
6758     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6759   fi
6760
6761 cat >>confdefs.h <<_ACEOF
6762 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6763 _ACEOF
6764
6765 fi
6766 for ac_prog in gv gsview32
6767 do
6768   # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_GV+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   case $GV in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795   ;;
6796 esac
6797 fi
6798 GV=$ac_cv_path_GV
6799 if test -n "$GV"; then
6800   { echo "$as_me:$LINENO: result: $GV" >&5
6801 echo "${ECHO_T}$GV" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808   test -n "$GV" && break
6809 done
6810 test -n "$GV" || GV="echo gv"
6811
6812 if test "$GV" != "echo gv" ; then
6813
6814 cat >>confdefs.h <<\_ACEOF
6815 #define HAVE_GV 1
6816 _ACEOF
6817
6818     if test "$llvm_cv_os_type" = "MingW" ; then
6819     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820   fi
6821
6822 cat >>confdefs.h <<_ACEOF
6823 #define LLVM_PATH_GV "$GV${EXEEXT}"
6824 _ACEOF
6825
6826 fi
6827 # Extract the first word of "dotty", so it can be a program name with args.
6828 set dummy dotty; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_DOTTY+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   case $DOTTY in
6835   [\\/]* | ?:[\\/]*)
6836   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6837   ;;
6838   *)
6839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844   for ac_exec_ext in '' $ac_executable_extensions; do
6845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6855   ;;
6856 esac
6857 fi
6858 DOTTY=$ac_cv_path_DOTTY
6859 if test -n "$DOTTY"; then
6860   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6861 echo "${ECHO_T}$DOTTY" >&6; }
6862 else
6863   { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6865 fi
6866
6867
6868 if test "$DOTTY" != "echo dotty" ; then
6869
6870 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_DOTTY 1
6872 _ACEOF
6873
6874     if test "$llvm_cv_os_type" = "MingW" ; then
6875     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6876   fi
6877
6878 cat >>confdefs.h <<_ACEOF
6879 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6880 _ACEOF
6881
6882 fi
6883 # Extract the first word of "xdot.py", so it can be a program name with args.
6884 set dummy xdot.py; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   case $XDOT_PY in
6891   [\\/]* | ?:[\\/]*)
6892   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6893   ;;
6894   *)
6895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900   for ac_exec_ext in '' $ac_executable_extensions; do
6901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6911   ;;
6912 esac
6913 fi
6914 XDOT_PY=$ac_cv_path_XDOT_PY
6915 if test -n "$XDOT_PY"; then
6916   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6917 echo "${ECHO_T}$XDOT_PY" >&6; }
6918 else
6919   { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6921 fi
6922
6923
6924 if test "$XDOT_PY" != "echo xdot.py" ; then
6925
6926 cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_XDOT_PY 1
6928 _ACEOF
6929
6930     if test "$llvm_cv_os_type" = "MingW" ; then
6931     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6932   fi
6933
6934 cat >>confdefs.h <<_ACEOF
6935 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6936 _ACEOF
6937
6938 fi
6939
6940 # Find a good install program.  We prefer a C program (faster),
6941 # so one script is as good as another.  But avoid the broken or
6942 # incompatible versions:
6943 # SysV /etc/install, /usr/sbin/install
6944 # SunOS /usr/etc/install
6945 # IRIX /sbin/install
6946 # AIX /bin/install
6947 # AmigaOS /C/install, which installs bootblocks on floppy discs
6948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6951 # OS/2's system install, which has a completely different semantic
6952 # ./install, which can be erroneously created by make from ./install.sh.
6953 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6954 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6955 if test -z "$INSTALL"; then
6956 if test "${ac_cv_path_install+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   # Account for people who put trailing slashes in PATH elements.
6965 case $as_dir/ in
6966   ./ | .// | /cC/* | \
6967   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6968   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6969   /usr/ucb/* ) ;;
6970   *)
6971     # OSF1 and SCO ODT 3.0 have their own names for install.
6972     # Don't use installbsd from OSF since it installs stuff as root
6973     # by default.
6974     for ac_prog in ginstall scoinst install; do
6975       for ac_exec_ext in '' $ac_executable_extensions; do
6976         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6977           if test $ac_prog = install &&
6978             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979             # AIX install.  It has an incompatible calling convention.
6980             :
6981           elif test $ac_prog = install &&
6982             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6983             # program-specific install script used by HP pwplus--don't use.
6984             :
6985           else
6986             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6987             break 3
6988           fi
6989         fi
6990       done
6991     done
6992     ;;
6993 esac
6994 done
6995 IFS=$as_save_IFS
6996
6997
6998 fi
6999   if test "${ac_cv_path_install+set}" = set; then
7000     INSTALL=$ac_cv_path_install
7001   else
7002     # As a last resort, use the slow shell script.  Don't cache a
7003     # value for INSTALL within a source directory, because that will
7004     # break other packages using the cache if that directory is
7005     # removed, or if the value is a relative name.
7006     INSTALL=$ac_install_sh
7007   fi
7008 fi
7009 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7010 echo "${ECHO_T}$INSTALL" >&6; }
7011
7012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7013 # It thinks the first close brace ends the variable substitution.
7014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7015
7016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7017
7018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7019
7020 case "$INSTALL" in
7021  [\\/$]* | ?:[\\/]* ) ;;
7022  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7023 esac
7024
7025 # Extract the first word of "bzip2", so it can be a program name with args.
7026 set dummy bzip2; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_BZIP2+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   case $BZIP2 in
7033   [\\/]* | ?:[\\/]*)
7034   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7035   ;;
7036   *)
7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042   for ac_exec_ext in '' $ac_executable_extensions; do
7043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046     break 2
7047   fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052   ;;
7053 esac
7054 fi
7055 BZIP2=$ac_cv_path_BZIP2
7056 if test -n "$BZIP2"; then
7057   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7058 echo "${ECHO_T}$BZIP2" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064
7065 # Extract the first word of "cat", so it can be a program name with args.
7066 set dummy cat; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_CAT+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   case $CAT in
7073   [\\/]* | ?:[\\/]*)
7074   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7075   ;;
7076   *)
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092   ;;
7093 esac
7094 fi
7095 CAT=$ac_cv_path_CAT
7096 if test -n "$CAT"; then
7097   { echo "$as_me:$LINENO: result: $CAT" >&5
7098 echo "${ECHO_T}$CAT" >&6; }
7099 else
7100   { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104
7105 # Extract the first word of "doxygen", so it can be a program name with args.
7106 set dummy doxygen; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $DOXYGEN in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132   ;;
7133 esac
7134 fi
7135 DOXYGEN=$ac_cv_path_DOXYGEN
7136 if test -n "$DOXYGEN"; then
7137   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7138 echo "${ECHO_T}$DOXYGEN" >&6; }
7139 else
7140   { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7143
7144
7145 # Extract the first word of "groff", so it can be a program name with args.
7146 set dummy groff; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_GROFF+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   case $GROFF in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172   ;;
7173 esac
7174 fi
7175 GROFF=$ac_cv_path_GROFF
7176 if test -n "$GROFF"; then
7177   { echo "$as_me:$LINENO: result: $GROFF" >&5
7178 echo "${ECHO_T}$GROFF" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 # Extract the first word of "gzip", so it can be a program name with args.
7186 set dummy gzip; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   case $GZIPBIN in
7193   [\\/]* | ?:[\\/]*)
7194   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7195   ;;
7196   *)
7197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202   for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209 done
7210 IFS=$as_save_IFS
7211
7212   ;;
7213 esac
7214 fi
7215 GZIPBIN=$ac_cv_path_GZIPBIN
7216 if test -n "$GZIPBIN"; then
7217   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7218 echo "${ECHO_T}$GZIPBIN" >&6; }
7219 else
7220   { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7222 fi
7223
7224
7225 # Extract the first word of "pdfroff", so it can be a program name with args.
7226 set dummy pdfroff; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_PDFROFF+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $PDFROFF in
7233   [\\/]* | ?:[\\/]*)
7234   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7235   ;;
7236   *)
7237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252   ;;
7253 esac
7254 fi
7255 PDFROFF=$ac_cv_path_PDFROFF
7256 if test -n "$PDFROFF"; then
7257   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7258 echo "${ECHO_T}$PDFROFF" >&6; }
7259 else
7260   { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7262 fi
7263
7264
7265 # Extract the first word of "runtest", so it can be a program name with args.
7266 set dummy runtest; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_RUNTEST+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   case $RUNTEST in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292   ;;
7293 esac
7294 fi
7295 RUNTEST=$ac_cv_path_RUNTEST
7296 if test -n "$RUNTEST"; then
7297   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7298 echo "${ECHO_T}$RUNTEST" >&6; }
7299 else
7300   { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7302 fi
7303
7304
7305
7306 no_itcl=true
7307 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7308 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7309
7310 # Check whether --with-tclinclude was given.
7311 if test "${with_tclinclude+set}" = set; then
7312   withval=$with_tclinclude; with_tclinclude=${withval}
7313 else
7314   with_tclinclude=''
7315 fi
7316
7317 if test "${ac_cv_path_tclsh+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320
7321 if test x"${with_tclinclude}" != x ; then
7322   if test -f ${with_tclinclude}/tclsh ; then
7323     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7324   elif test -f ${with_tclinclude}/src/tclsh ; then
7325     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7326   else
7327     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7328 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7329    { (exit 1); exit 1; }; }
7330   fi
7331 fi
7332 fi
7333
7334
7335 if test x"${ac_cv_path_tclsh}" = x ; then
7336   { echo "$as_me:$LINENO: result: none" >&5
7337 echo "${ECHO_T}none" >&6; }
7338   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
7339 do
7340   # Extract the first word of "$ac_prog", so it can be a program name with args.
7341 set dummy $ac_prog; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_TCLSH+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   case $TCLSH in
7348   [\\/]* | ?:[\\/]*)
7349   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7350   ;;
7351   *)
7352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367   ;;
7368 esac
7369 fi
7370 TCLSH=$ac_cv_path_TCLSH
7371 if test -n "$TCLSH"; then
7372   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7373 echo "${ECHO_T}$TCLSH" >&6; }
7374 else
7375   { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7377 fi
7378
7379
7380   test -n "$TCLSH" && break
7381 done
7382
7383   if test x"${TCLSH}" = x ; then
7384     ac_cv_path_tclsh='';
7385   else
7386     ac_cv_path_tclsh="${TCLSH}";
7387   fi
7388 else
7389   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7390 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7391   TCLSH="${ac_cv_path_tclsh}"
7392
7393 fi
7394
7395 # Extract the first word of "zip", so it can be a program name with args.
7396 set dummy zip; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_path_ZIP+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   case $ZIP in
7403   [\\/]* | ?:[\\/]*)
7404   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7405   ;;
7406   *)
7407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412   for ac_exec_ext in '' $ac_executable_extensions; do
7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422   ;;
7423 esac
7424 fi
7425 ZIP=$ac_cv_path_ZIP
7426 if test -n "$ZIP"; then
7427   { echo "$as_me:$LINENO: result: $ZIP" >&5
7428 echo "${ECHO_T}$ZIP" >&6; }
7429 else
7430   { echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6; }
7432 fi
7433
7434
7435 for ac_prog in ocamlc
7436 do
7437   # Extract the first word of "$ac_prog", so it can be a program name with args.
7438 set dummy $ac_prog; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_OCAMLC+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   case $OCAMLC in
7445   [\\/]* | ?:[\\/]*)
7446   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7447   ;;
7448   *)
7449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454   for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464   ;;
7465 esac
7466 fi
7467 OCAMLC=$ac_cv_path_OCAMLC
7468 if test -n "$OCAMLC"; then
7469   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7470 echo "${ECHO_T}$OCAMLC" >&6; }
7471 else
7472   { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474 fi
7475
7476
7477   test -n "$OCAMLC" && break
7478 done
7479
7480 for ac_prog in ocamlopt
7481 do
7482   # Extract the first word of "$ac_prog", so it can be a program name with args.
7483 set dummy $ac_prog; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   case $OCAMLOPT in
7490   [\\/]* | ?:[\\/]*)
7491   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7492   ;;
7493   *)
7494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499   for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509   ;;
7510 esac
7511 fi
7512 OCAMLOPT=$ac_cv_path_OCAMLOPT
7513 if test -n "$OCAMLOPT"; then
7514   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7515 echo "${ECHO_T}$OCAMLOPT" >&6; }
7516 else
7517   { echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6; }
7519 fi
7520
7521
7522   test -n "$OCAMLOPT" && break
7523 done
7524
7525 for ac_prog in ocamldep
7526 do
7527   # Extract the first word of "$ac_prog", so it can be a program name with args.
7528 set dummy $ac_prog; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $OCAMLDEP in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7537   ;;
7538   *)
7539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554   ;;
7555 esac
7556 fi
7557 OCAMLDEP=$ac_cv_path_OCAMLDEP
7558 if test -n "$OCAMLDEP"; then
7559   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7560 echo "${ECHO_T}$OCAMLDEP" >&6; }
7561 else
7562   { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7564 fi
7565
7566
7567   test -n "$OCAMLDEP" && break
7568 done
7569
7570 for ac_prog in ocamldoc
7571 do
7572   # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $OCAMLDOC in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599   ;;
7600 esac
7601 fi
7602 OCAMLDOC=$ac_cv_path_OCAMLDOC
7603 if test -n "$OCAMLDOC"; then
7604   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7605 echo "${ECHO_T}$OCAMLDOC" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7610
7611
7612   test -n "$OCAMLDOC" && break
7613 done
7614
7615 for ac_prog in gas as
7616 do
7617   # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_GAS+set}" = set; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624   case $GAS in
7625   [\\/]* | ?:[\\/]*)
7626   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7627   ;;
7628   *)
7629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632   IFS=$as_save_IFS
7633   test -z "$as_dir" && as_dir=.
7634   for ac_exec_ext in '' $ac_executable_extensions; do
7635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638     break 2
7639   fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644   ;;
7645 esac
7646 fi
7647 GAS=$ac_cv_path_GAS
7648 if test -n "$GAS"; then
7649   { echo "$as_me:$LINENO: result: $GAS" >&5
7650 echo "${ECHO_T}$GAS" >&6; }
7651 else
7652   { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7654 fi
7655
7656
7657   test -n "$GAS" && break
7658 done
7659
7660
7661 { echo "$as_me:$LINENO: checking for linker version" >&5
7662 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7663 if test "${llvm_cv_link_version+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666
7667    version_string="$(ld -v 2>&1 | head -1)"
7668
7669    # Check for ld64.
7670    if (echo "$version_string" | grep -q "ld64"); then
7671      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7672    else
7673      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7674    fi
7675
7676 fi
7677 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7678 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7679
7680 cat >>confdefs.h <<_ACEOF
7681 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7682 _ACEOF
7683
7684
7685
7686 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7687 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7688 if test "${llvm_cv_link_use_r+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691    ac_ext=c
7692 ac_cpp='$CPP $CPPFLAGS'
7693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697   oldcflags="$CFLAGS"
7698   CFLAGS="$CFLAGS -Wl,-R."
7699   cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705
7706 int
7707 main ()
7708 {
7709
7710   ;
7711   return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (ac_try="$ac_link"
7716 case "(($ac_try" in
7717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718   *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721   (eval "$ac_link") 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729   { (case "(($ac_try" in
7730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731   *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734   (eval "$ac_try") 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; } &&
7738          { ac_try='test -s conftest$ac_exeext'
7739   { (case "(($ac_try" in
7740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741   *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744   (eval "$ac_try") 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; }; then
7748   llvm_cv_link_use_r=yes
7749 else
7750   echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753         llvm_cv_link_use_r=no
7754 fi
7755
7756 rm -f core conftest.err conftest.$ac_objext \
7757       conftest$ac_exeext conftest.$ac_ext
7758   CFLAGS="$oldcflags"
7759   ac_ext=c
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765
7766 fi
7767 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7768 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7769 if test "$llvm_cv_link_use_r" = yes ; then
7770
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_LINK_R 1
7773 _ACEOF
7774
7775   fi
7776
7777
7778 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7779 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7780 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783    ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
7789   oldcflags="$CFLAGS"
7790   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7791   cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h.  */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h.  */
7797
7798 int
7799 main ()
7800 {
7801
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext conftest$ac_exeext
7807 if { (ac_try="$ac_link"
7808 case "(($ac_try" in
7809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810   *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813   (eval "$ac_link") 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821   { (case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826   (eval "$ac_try") 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; } &&
7830          { ac_try='test -s conftest$ac_exeext'
7831   { (case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_try") 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   llvm_cv_link_use_export_dynamic=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845         llvm_cv_link_use_export_dynamic=no
7846 fi
7847
7848 rm -f core conftest.err conftest.$ac_objext \
7849       conftest$ac_exeext conftest.$ac_ext
7850   CFLAGS="$oldcflags"
7851   ac_ext=c
7852 ac_cpp='$CPP $CPPFLAGS'
7853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856
7857
7858 fi
7859 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7860 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7861 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_LINK_EXPORT_DYNAMIC 1
7865 _ACEOF
7866
7867   fi
7868
7869
7870 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7871 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7872 if test "${llvm_cv_link_use_version_script+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875    ac_ext=c
7876 ac_cpp='$CPP $CPPFLAGS'
7877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880
7881   oldcflags="$CFLAGS"
7882
7883   # The following code is from the autoconf manual,
7884   # "11.13: Limitations of Usual Tools".
7885   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7886   # Use mktemp if possible; otherwise fall back on mkdir,
7887   # with $RANDOM to make collisions less likely.
7888   : ${TMPDIR=/tmp}
7889   {
7890     tmp=`
7891       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7892     ` &&
7893     test -n "$tmp" && test -d "$tmp"
7894   } || {
7895     tmp=$TMPDIR/foo$$-$RANDOM
7896     (umask 077 && mkdir "$tmp")
7897   } || exit $?
7898
7899   echo "{" > "$tmp/export.map"
7900   echo "  global: main;" >> "$tmp/export.map"
7901   echo "  local: *;" >> "$tmp/export.map"
7902   echo "};" >> "$tmp/export.map"
7903
7904   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7905   cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h.  */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h.  */
7911
7912 int
7913 main ()
7914 {
7915
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (ac_try="$ac_link"
7922 case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_link") 2>conftest.er1
7928   ac_status=$?
7929   grep -v '^ *+' conftest.er1 >conftest.err
7930   rm -f conftest.er1
7931   cat conftest.err >&5
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } &&
7934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935   { (case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940   (eval "$ac_try") 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; } &&
7944          { ac_try='test -s conftest$ac_exeext'
7945   { (case "(($ac_try" in
7946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947   *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950   (eval "$ac_try") 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; }; then
7954   llvm_cv_link_use_version_script=yes
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959         llvm_cv_link_use_version_script=no
7960 fi
7961
7962 rm -f core conftest.err conftest.$ac_objext \
7963       conftest$ac_exeext conftest.$ac_ext
7964   rm "$tmp/export.map"
7965   rmdir "$tmp"
7966   CFLAGS="$oldcflags"
7967   ac_ext=c
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973
7974 fi
7975 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7976 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7977 if test "$llvm_cv_link_use_version_script" = yes ; then
7978   HAVE_LINK_VERSION_SCRIPT=1
7979
7980   fi
7981
7982
7983
7984
7985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987 if test "${ac_cv_c_const+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996
7997 int
7998 main ()
7999 {
8000 /* FIXME: Include the comments suggested by Paul. */
8001 #ifndef __cplusplus
8002   /* Ultrix mips cc rejects this.  */
8003   typedef int charset[2];
8004   const charset x;
8005   /* SunOS 4.1.1 cc rejects this.  */
8006   char const *const *ccp;
8007   char **p;
8008   /* NEC SVR4.0.2 mips cc rejects this.  */
8009   struct point {int x, y;};
8010   static struct point const zero = {0,0};
8011   /* AIX XL C 1.02.0.0 rejects this.
8012      It does not let you subtract one const X* pointer from another in
8013      an arm of an if-expression whose if-part is not a constant
8014      expression */
8015   const char *g = "string";
8016   ccp = &g + (g ? g-g : 0);
8017   /* HPUX 7.0 cc rejects these. */
8018   ++ccp;
8019   p = (char**) ccp;
8020   ccp = (char const *const *) p;
8021   { /* SCO 3.2v4 cc rejects this.  */
8022     char *t;
8023     char const *s = 0 ? (char *) 0 : (char const *) 0;
8024
8025     *t++ = 0;
8026     if (s) return 0;
8027   }
8028   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8029     int x[] = {25, 17};
8030     const int *foo = &x[0];
8031     ++foo;
8032   }
8033   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034     typedef const int *iptr;
8035     iptr p = 0;
8036     ++p;
8037   }
8038   { /* AIX XL C 1.02.0.0 rejects this saying
8039        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040     struct s { int j; const int *ap[3]; };
8041     struct s *b; b->j = 5;
8042   }
8043   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8044     const int foo = 10;
8045     if (!foo) return 0;
8046   }
8047   return !x[0] && !zero.x;
8048 #endif
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_compile") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } &&
8068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8069   { (case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074   (eval "$ac_try") 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; } &&
8078          { ac_try='test -s conftest.$ac_objext'
8079   { (case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084   (eval "$ac_try") 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   ac_cv_c_const=yes
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093         ac_cv_c_const=no
8094 fi
8095
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8099 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8100 if test $ac_cv_c_const = no; then
8101
8102 cat >>confdefs.h <<\_ACEOF
8103 #define const
8104 _ACEOF
8105
8106 fi
8107
8108
8109
8110
8111
8112
8113 ac_header_dirent=no
8114 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8115   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8116 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8117 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 #include <sys/types.h>
8128 #include <$ac_hdr>
8129
8130 int
8131 main ()
8132 {
8133 if ((DIR *) 0)
8134 return 0;
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8141 case "(($ac_try" in
8142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143   *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146   (eval "$ac_compile") 2>conftest.er1
8147   ac_status=$?
8148   grep -v '^ *+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } &&
8153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8154   { (case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_try") 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); }; } &&
8163          { ac_try='test -s conftest.$ac_objext'
8164   { (case "(($ac_try" in
8165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166   *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169   (eval "$ac_try") 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   eval "$as_ac_Header=yes"
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178         eval "$as_ac_Header=no"
8179 fi
8180
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 fi
8183 ac_res=`eval echo '${'$as_ac_Header'}'`
8184                { echo "$as_me:$LINENO: result: $ac_res" >&5
8185 echo "${ECHO_T}$ac_res" >&6; }
8186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8187   cat >>confdefs.h <<_ACEOF
8188 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8189 _ACEOF
8190
8191 ac_header_dirent=$ac_hdr; break
8192 fi
8193
8194 done
8195 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8196 if test $ac_header_dirent = dirent.h; then
8197   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8198 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8199 if test "${ac_cv_search_opendir+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   ac_func_search_save_LIBS=$LIBS
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209
8210 /* Override any GCC internal prototype to avoid an error.
8211    Use char because int might match the return type of a GCC
8212    builtin and then its argument prototype would still apply.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 char opendir ();
8217 int
8218 main ()
8219 {
8220 return opendir ();
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 for ac_lib in '' dir; do
8226   if test -z "$ac_lib"; then
8227     ac_res="none required"
8228   else
8229     ac_res=-l$ac_lib
8230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8231   fi
8232   rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (ac_try="$ac_link"
8234 case "(($ac_try" in
8235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236   *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239   (eval "$ac_link") 2>conftest.er1
8240   ac_status=$?
8241   grep -v '^ *+' conftest.er1 >conftest.err
8242   rm -f conftest.er1
8243   cat conftest.err >&5
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8247   { (case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_try") 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; } &&
8256          { ac_try='test -s conftest$ac_exeext'
8257   { (case "(($ac_try" in
8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259   *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262   (eval "$ac_try") 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; }; then
8266   ac_cv_search_opendir=$ac_res
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271
8272 fi
8273
8274 rm -f core conftest.err conftest.$ac_objext \
8275       conftest$ac_exeext
8276   if test "${ac_cv_search_opendir+set}" = set; then
8277   break
8278 fi
8279 done
8280 if test "${ac_cv_search_opendir+set}" = set; then
8281   :
8282 else
8283   ac_cv_search_opendir=no
8284 fi
8285 rm conftest.$ac_ext
8286 LIBS=$ac_func_search_save_LIBS
8287 fi
8288 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8289 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8290 ac_res=$ac_cv_search_opendir
8291 if test "$ac_res" != no; then
8292   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8293
8294 fi
8295
8296 else
8297   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8298 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8299 if test "${ac_cv_search_opendir+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   ac_func_search_save_LIBS=$LIBS
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309
8310 /* Override any GCC internal prototype to avoid an error.
8311    Use char because int might match the return type of a GCC
8312    builtin and then its argument prototype would still apply.  */
8313 #ifdef __cplusplus
8314 extern "C"
8315 #endif
8316 char opendir ();
8317 int
8318 main ()
8319 {
8320 return opendir ();
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 for ac_lib in '' x; do
8326   if test -z "$ac_lib"; then
8327     ac_res="none required"
8328   else
8329     ac_res=-l$ac_lib
8330     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8331   fi
8332   rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (ac_try="$ac_link"
8334 case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_link") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347   { (case "(($ac_try" in
8348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349   *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352   (eval "$ac_try") 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362   (eval "$ac_try") 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; }; then
8366   ac_cv_search_opendir=$ac_res
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371
8372 fi
8373
8374 rm -f core conftest.err conftest.$ac_objext \
8375       conftest$ac_exeext
8376   if test "${ac_cv_search_opendir+set}" = set; then
8377   break
8378 fi
8379 done
8380 if test "${ac_cv_search_opendir+set}" = set; then
8381   :
8382 else
8383   ac_cv_search_opendir=no
8384 fi
8385 rm conftest.$ac_ext
8386 LIBS=$ac_func_search_save_LIBS
8387 fi
8388 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8389 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8390 ac_res=$ac_cv_search_opendir
8391 if test "$ac_res" != no; then
8392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8393
8394 fi
8395
8396 fi
8397
8398
8399 for ac_header in dlfcn.h
8400 do
8401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 fi
8408 ac_res=`eval echo '${'$as_ac_Header'}'`
8409                { echo "$as_me:$LINENO: result: $ac_res" >&5
8410 echo "${ECHO_T}$ac_res" >&6; }
8411 else
8412   # Is the header compilable?
8413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 $ac_includes_default
8422 #include <$ac_header>
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8426 case "(($ac_try" in
8427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428   *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431   (eval "$ac_compile") 2>conftest.er1
8432   ac_status=$?
8433   grep -v '^ *+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } &&
8438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439   { (case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444   (eval "$ac_try") 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_try") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_header_compiler=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463         ac_header_compiler=no
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8468 echo "${ECHO_T}$ac_header_compiler" >&6; }
8469
8470 # Is the header present?
8471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 #include <$ac_header>
8480 _ACEOF
8481 if { (ac_try="$ac_cpp conftest.$ac_ext"
8482 case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } >/dev/null; then
8494   if test -s conftest.err; then
8495     ac_cpp_err=$ac_c_preproc_warn_flag
8496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497   else
8498     ac_cpp_err=
8499   fi
8500 else
8501   ac_cpp_err=yes
8502 fi
8503 if test -z "$ac_cpp_err"; then
8504   ac_header_preproc=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509   ac_header_preproc=no
8510 fi
8511
8512 rm -f conftest.err conftest.$ac_ext
8513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8514 echo "${ECHO_T}$ac_header_preproc" >&6; }
8515
8516 # So?  What about this header?
8517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8518   yes:no: )
8519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8523     ac_header_preproc=yes
8524     ;;
8525   no:yes:* )
8526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8538     ( cat <<\_ASBOX
8539 ## ------------------------------------ ##
8540 ## Report this to http://llvm.org/bugs/ ##
8541 ## ------------------------------------ ##
8542 _ASBOX
8543      ) | sed "s/^/$as_me: WARNING:     /" >&2
8544     ;;
8545 esac
8546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   eval "$as_ac_Header=\$ac_header_preproc"
8552 fi
8553 ac_res=`eval echo '${'$as_ac_Header'}'`
8554                { echo "$as_me:$LINENO: result: $ac_res" >&5
8555 echo "${ECHO_T}$ac_res" >&6; }
8556
8557 fi
8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559   cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 _ACEOF
8562
8563 fi
8564
8565 done
8566
8567 # Check whether --enable-ltdl-install was given.
8568 if test "${enable_ltdl_install+set}" = set; then
8569   enableval=$enable_ltdl_install;
8570 fi
8571
8572
8573
8574
8575 if test x"${enable_ltdl_install-no}" != xno; then
8576   INSTALL_LTDL_TRUE=
8577   INSTALL_LTDL_FALSE='#'
8578 else
8579   INSTALL_LTDL_TRUE='#'
8580   INSTALL_LTDL_FALSE=
8581 fi
8582
8583
8584
8585 if test x"${enable_ltdl_convenience-no}" != xno; then
8586   CONVENIENCE_LTDL_TRUE=
8587   CONVENIENCE_LTDL_FALSE='#'
8588 else
8589   CONVENIENCE_LTDL_TRUE='#'
8590   CONVENIENCE_LTDL_FALSE=
8591 fi
8592
8593
8594 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8596 library_names_spec=
8597 libname_spec='lib$name'
8598 soname_spec=
8599 shrext_cmds=".so"
8600 postinstall_cmds=
8601 postuninstall_cmds=
8602 finish_cmds=
8603 finish_eval=
8604 shlibpath_var=
8605 shlibpath_overrides_runpath=unknown
8606 version_type=none
8607 dynamic_linker="$host_os ld.so"
8608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8609 if test "$GCC" = yes; then
8610   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8611   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8612     # if the path contains ";" then we assume it to be the separator
8613     # otherwise default to the standard path separator (i.e. ":") - it is
8614     # assumed that no part of a normal pathname contains ";" but that should
8615     # okay in the real world where ";" in dirpaths is itself problematic.
8616     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8617   else
8618     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8619   fi
8620 else
8621   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8622 fi
8623 need_lib_prefix=unknown
8624 hardcode_into_libs=no
8625
8626 # when you set need_version to no, make sure it does not cause -set_version
8627 # flags to be left without arguments
8628 need_version=unknown
8629
8630 case $host_os in
8631 aix3*)
8632   version_type=linux
8633   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8634   shlibpath_var=LIBPATH
8635
8636   # AIX 3 has no versioning support, so we append a major version to the name.
8637   soname_spec='${libname}${release}${shared_ext}$major'
8638   ;;
8639
8640 aix4* | aix5*)
8641   version_type=linux
8642   need_lib_prefix=no
8643   need_version=no
8644   hardcode_into_libs=yes
8645   if test "$host_cpu" = ia64; then
8646     # AIX 5 supports IA64
8647     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8648     shlibpath_var=LD_LIBRARY_PATH
8649   else
8650     # With GCC up to 2.95.x, collect2 would create an import file
8651     # for dependence libraries.  The import file would start with
8652     # the line `#! .'.  This would cause the generated library to
8653     # depend on `.', always an invalid library.  This was fixed in
8654     # development snapshots of GCC prior to 3.0.
8655     case $host_os in
8656       aix4 | aix4.[01] | aix4.[01].*)
8657       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8658            echo ' yes '
8659            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8660         :
8661       else
8662         can_build_shared=no
8663       fi
8664       ;;
8665     esac
8666     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8667     # soname into executable. Probably we can add versioning support to
8668     # collect2, so additional links can be useful in future.
8669     if test "$aix_use_runtimelinking" = yes; then
8670       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8671       # instead of lib<name>.a to let people know that these are not
8672       # typical AIX shared libraries.
8673       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674     else
8675       # We preserve .a as extension for shared libraries through AIX4.2
8676       # and later when we are not doing run time linking.
8677       library_names_spec='${libname}${release}.a $libname.a'
8678       soname_spec='${libname}${release}${shared_ext}$major'
8679     fi
8680     shlibpath_var=LIBPATH
8681   fi
8682   ;;
8683
8684 amigaos*)
8685   library_names_spec='$libname.ixlibrary $libname.a'
8686   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8687   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'
8688   ;;
8689
8690 beos*)
8691   library_names_spec='${libname}${shared_ext}'
8692   dynamic_linker="$host_os ld.so"
8693   shlibpath_var=LIBRARY_PATH
8694   ;;
8695
8696 bsdi[45]*)
8697   version_type=linux
8698   need_version=no
8699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700   soname_spec='${libname}${release}${shared_ext}$major'
8701   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8702   shlibpath_var=LD_LIBRARY_PATH
8703   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8704   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8705   # the default ld.so.conf also contains /usr/contrib/lib and
8706   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8707   # libtool to hard-code these into programs
8708   ;;
8709
8710 cygwin* | mingw* | pw32*)
8711   version_type=windows
8712   shrext_cmds=".dll"
8713   need_version=no
8714   need_lib_prefix=no
8715
8716   case $GCC,$host_os in
8717   yes,cygwin* | yes,mingw* | yes,pw32*)
8718     library_names_spec='$libname.dll.a'
8719     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8720     postinstall_cmds='base_file=`basename \${file}`~
8721       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8722       dldir=$destdir/`dirname \$dlpath`~
8723       test -d \$dldir || mkdir -p \$dldir~
8724       $install_prog $dir/$dlname \$dldir/$dlname~
8725       chmod a+x \$dldir/$dlname'
8726     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8727       dlpath=$dir/\$dldll~
8728        $rm \$dlpath'
8729     shlibpath_overrides_runpath=yes
8730
8731     case $host_os in
8732     cygwin*)
8733       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8734       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8736       ;;
8737     mingw*)
8738       # MinGW DLLs use traditional 'lib' prefix
8739       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8740       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8741       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8742         # It is most probably a Windows format PATH printed by
8743         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8744         # path with ; separators, and with drive letters. We can handle the
8745         # drive letters (cygwin fileutils understands them), so leave them,
8746         # especially as we might pass files found there to a mingw objdump,
8747         # which wouldn't understand a cygwinified path. Ahh.
8748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8749       else
8750         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8751       fi
8752       ;;
8753     pw32*)
8754       # pw32 DLLs use 'pw' prefix rather than 'lib'
8755       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756       ;;
8757     esac
8758     ;;
8759
8760   *)
8761     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8762     ;;
8763   esac
8764   dynamic_linker='Win32 ld.exe'
8765   # FIXME: first we should search . and the directory the executable is in
8766   shlibpath_var=PATH
8767   ;;
8768
8769 darwin* | rhapsody*)
8770   dynamic_linker="$host_os dyld"
8771   version_type=darwin
8772   need_lib_prefix=no
8773   need_version=no
8774   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8775   soname_spec='${libname}${release}${major}$shared_ext'
8776   shlibpath_overrides_runpath=yes
8777   shlibpath_var=DYLD_LIBRARY_PATH
8778   shrext_cmds='.dylib'
8779   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8780   if test "$GCC" = yes; then
8781     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"`
8782   else
8783     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8784   fi
8785   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8786   ;;
8787
8788 dgux*)
8789   version_type=linux
8790   need_lib_prefix=no
8791   need_version=no
8792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8793   soname_spec='${libname}${release}${shared_ext}$major'
8794   shlibpath_var=LD_LIBRARY_PATH
8795   ;;
8796
8797 freebsd1.*)
8798   dynamic_linker=no
8799   ;;
8800
8801 kfreebsd*-gnu)
8802   version_type=linux
8803   need_lib_prefix=no
8804   need_version=no
8805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8806   soname_spec='${libname}${release}${shared_ext}$major'
8807   shlibpath_var=LD_LIBRARY_PATH
8808   shlibpath_overrides_runpath=no
8809   hardcode_into_libs=yes
8810   dynamic_linker='GNU ld.so'
8811   ;;
8812
8813 freebsd* | dragonfly*)
8814   # DragonFly does not have aout.  When/if they implement a new
8815   # versioning mechanism, adjust this.
8816   if test -x /usr/bin/objformat; then
8817     objformat=`/usr/bin/objformat`
8818   else
8819     case $host_os in
8820     freebsd[123].*) objformat=aout ;;
8821     *) objformat=elf ;;
8822     esac
8823   fi
8824   version_type=freebsd-$objformat
8825   case $version_type in
8826     freebsd-elf*)
8827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8828       need_version=no
8829       need_lib_prefix=no
8830       ;;
8831     freebsd-*)
8832       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8833       need_version=yes
8834       ;;
8835   esac
8836   shlibpath_var=LD_LIBRARY_PATH
8837   case $host_os in
8838   freebsd2.*)
8839     shlibpath_overrides_runpath=yes
8840     ;;
8841   freebsd3.[01]* | freebsdelf3.[01]*)
8842     shlibpath_overrides_runpath=yes
8843     hardcode_into_libs=yes
8844     ;;
8845   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8847     shlibpath_overrides_runpath=no
8848     hardcode_into_libs=yes
8849     ;;
8850   freebsd*) # from 4.6 on
8851     shlibpath_overrides_runpath=yes
8852     hardcode_into_libs=yes
8853     ;;
8854   esac
8855   ;;
8856
8857 gnu*)
8858   version_type=linux
8859   need_lib_prefix=no
8860   need_version=no
8861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862   soname_spec='${libname}${release}${shared_ext}$major'
8863   shlibpath_var=LD_LIBRARY_PATH
8864   hardcode_into_libs=yes
8865   ;;
8866
8867 hpux9* | hpux10* | hpux11*)
8868   # Give a soname corresponding to the major version so that dld.sl refuses to
8869   # link against other versions.
8870   version_type=sunos
8871   need_lib_prefix=no
8872   need_version=no
8873   case $host_cpu in
8874   ia64*)
8875     shrext_cmds='.so'
8876     hardcode_into_libs=yes
8877     dynamic_linker="$host_os dld.so"
8878     shlibpath_var=LD_LIBRARY_PATH
8879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881     soname_spec='${libname}${release}${shared_ext}$major'
8882     if test "X$HPUX_IA64_MODE" = X32; then
8883       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8884     else
8885       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8886     fi
8887     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8888     ;;
8889    hppa*64*)
8890      shrext_cmds='.sl'
8891      hardcode_into_libs=yes
8892      dynamic_linker="$host_os dld.sl"
8893      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896      soname_spec='${libname}${release}${shared_ext}$major'
8897      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899      ;;
8900    *)
8901     shrext_cmds='.sl'
8902     dynamic_linker="$host_os dld.sl"
8903     shlibpath_var=SHLIB_PATH
8904     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906     soname_spec='${libname}${release}${shared_ext}$major'
8907     ;;
8908   esac
8909   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910   postinstall_cmds='chmod 555 $lib'
8911   ;;
8912
8913 interix3*)
8914   version_type=linux
8915   need_lib_prefix=no
8916   need_version=no
8917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918   soname_spec='${libname}${release}${shared_ext}$major'
8919   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920   shlibpath_var=LD_LIBRARY_PATH
8921   shlibpath_overrides_runpath=no
8922   hardcode_into_libs=yes
8923   ;;
8924
8925 irix5* | irix6* | nonstopux*)
8926   case $host_os in
8927     nonstopux*) version_type=nonstopux ;;
8928     *)
8929         if test "$lt_cv_prog_gnu_ld" = yes; then
8930                 version_type=linux
8931         else
8932                 version_type=irix
8933         fi ;;
8934   esac
8935   need_lib_prefix=no
8936   need_version=no
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8939   case $host_os in
8940   irix5* | nonstopux*)
8941     libsuff= shlibsuff=
8942     ;;
8943   *)
8944     case $LD in # libtool.m4 will add one of these switches to LD
8945     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946       libsuff= shlibsuff= libmagic=32-bit;;
8947     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948       libsuff=32 shlibsuff=N32 libmagic=N32;;
8949     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951     *) libsuff= shlibsuff= libmagic=never-match;;
8952     esac
8953     ;;
8954   esac
8955   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956   shlibpath_overrides_runpath=no
8957   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959   hardcode_into_libs=yes
8960   ;;
8961
8962 # No shared lib support for Linux oldld, aout, or coff.
8963 linux*oldld* | linux*aout* | linux*coff*)
8964   dynamic_linker=no
8965   ;;
8966
8967 # This must be Linux ELF.
8968 linux*)
8969   version_type=linux
8970   need_lib_prefix=no
8971   need_version=no
8972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973   soname_spec='${libname}${release}${shared_ext}$major'
8974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975   shlibpath_var=LD_LIBRARY_PATH
8976   shlibpath_overrides_runpath=no
8977   # This implies no fast_install, which is unacceptable.
8978   # Some rework will be needed to allow for fast_install
8979   # before this can be enabled.
8980   hardcode_into_libs=yes
8981
8982   # Append ld.so.conf contents to the search path
8983   if test -f /etc/ld.so.conf; then
8984     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' ' '`
8985     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8986   fi
8987
8988   # We used to test for /lib/ld.so.1 and disable shared libraries on
8989   # powerpc, because MkLinux only supported shared libraries with the
8990   # GNU dynamic linker.  Since this was broken with cross compilers,
8991   # most powerpc-linux boxes support dynamic linking these days and
8992   # people can always --disable-shared, the test was removed, and we
8993   # assume the GNU/Linux dynamic linker is in use.
8994   dynamic_linker='GNU/Linux ld.so'
8995   ;;
8996
8997 knetbsd*-gnu)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   shlibpath_overrides_runpath=no
9005   hardcode_into_libs=yes
9006   dynamic_linker='GNU ld.so'
9007   ;;
9008
9009 netbsd*)
9010   version_type=sunos
9011   need_lib_prefix=no
9012   need_version=no
9013   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016     dynamic_linker='NetBSD (a.out) ld.so'
9017   else
9018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019     soname_spec='${libname}${release}${shared_ext}$major'
9020     dynamic_linker='NetBSD ld.elf_so'
9021   fi
9022   shlibpath_var=LD_LIBRARY_PATH
9023   shlibpath_overrides_runpath=yes
9024   hardcode_into_libs=yes
9025   ;;
9026
9027 newsos6)
9028   version_type=linux
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   shlibpath_overrides_runpath=yes
9032   ;;
9033
9034 nto-qnx*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   shlibpath_overrides_runpath=yes
9042   ;;
9043
9044 openbsd*)
9045   version_type=sunos
9046   sys_lib_dlsearch_path_spec="/usr/lib"
9047   need_lib_prefix=no
9048   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049   case $host_os in
9050     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051     *)                         need_version=no  ;;
9052   esac
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057     case $host_os in
9058       openbsd2.[89] | openbsd2.[89].*)
9059         shlibpath_overrides_runpath=no
9060         ;;
9061       *)
9062         shlibpath_overrides_runpath=yes
9063         ;;
9064       esac
9065   else
9066     shlibpath_overrides_runpath=yes
9067   fi
9068   ;;
9069
9070 os2*)
9071   libname_spec='$name'
9072   shrext_cmds=".dll"
9073   need_lib_prefix=no
9074   library_names_spec='$libname${shared_ext} $libname.a'
9075   dynamic_linker='OS/2 ld.exe'
9076   shlibpath_var=LIBPATH
9077   ;;
9078
9079 osf3* | osf4* | osf5*)
9080   version_type=osf
9081   need_lib_prefix=no
9082   need_version=no
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088   ;;
9089
9090 solaris*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   shlibpath_overrides_runpath=yes
9098   hardcode_into_libs=yes
9099   # ldd complains unless libraries are executable
9100   postinstall_cmds='chmod +x $lib'
9101   ;;
9102
9103 sunos4*)
9104   version_type=sunos
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   shlibpath_overrides_runpath=yes
9109   if test "$with_gnu_ld" = yes; then
9110     need_lib_prefix=no
9111   fi
9112   need_version=yes
9113   ;;
9114
9115 sysv4 | sysv4.3*)
9116   version_type=linux
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   shlibpath_var=LD_LIBRARY_PATH
9120   case $host_vendor in
9121     sni)
9122       shlibpath_overrides_runpath=no
9123       need_lib_prefix=no
9124       export_dynamic_flag_spec='${wl}-Blargedynsym'
9125       runpath_var=LD_RUN_PATH
9126       ;;
9127     siemens)
9128       need_lib_prefix=no
9129       ;;
9130     motorola)
9131       need_lib_prefix=no
9132       need_version=no
9133       shlibpath_overrides_runpath=no
9134       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9135       ;;
9136   esac
9137   ;;
9138
9139 sysv4*MP*)
9140   if test -d /usr/nec ;then
9141     version_type=linux
9142     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143     soname_spec='$libname${shared_ext}.$major'
9144     shlibpath_var=LD_LIBRARY_PATH
9145   fi
9146   ;;
9147
9148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149   version_type=freebsd-elf
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   hardcode_into_libs=yes
9156   if test "$with_gnu_ld" = yes; then
9157     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158     shlibpath_overrides_runpath=no
9159   else
9160     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161     shlibpath_overrides_runpath=yes
9162     case $host_os in
9163       sco3.2v5*)
9164         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9165         ;;
9166     esac
9167   fi
9168   sys_lib_dlsearch_path_spec='/usr/lib'
9169   ;;
9170
9171 uts4*)
9172   version_type=linux
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174   soname_spec='${libname}${release}${shared_ext}$major'
9175   shlibpath_var=LD_LIBRARY_PATH
9176   ;;
9177
9178 *)
9179   dynamic_linker=no
9180   ;;
9181 esac
9182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183 echo "${ECHO_T}$dynamic_linker" >&6; }
9184 test "$dynamic_linker" = no && can_build_shared=no
9185
9186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187 if test "$GCC" = yes; then
9188   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9189 fi
9190
9191
9192 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9193 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9194 if test "${libltdl_cv_shlibext+set}" = set; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197
9198 module=yes
9199 eval libltdl_cv_shlibext=$shrext_cmds
9200
9201 fi
9202 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9203 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9204 if test -n "$libltdl_cv_shlibext"; then
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9208 _ACEOF
9209
9210 fi
9211
9212
9213 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9214 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9215 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   libltdl_cv_shlibpath_var="$shlibpath_var"
9219 fi
9220 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9221 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9222 if test -n "$libltdl_cv_shlibpath_var"; then
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9226 _ACEOF
9227
9228 fi
9229
9230
9231 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9232 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9233 if test "${libltdl_cv_sys_search_path+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9237 fi
9238 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9239 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9240 if test -n "$libltdl_cv_sys_search_path"; then
9241   sys_search_path=
9242   for dir in $libltdl_cv_sys_search_path; do
9243     if test -z "$sys_search_path"; then
9244       sys_search_path="$dir"
9245     else
9246       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9247     fi
9248   done
9249
9250 cat >>confdefs.h <<_ACEOF
9251 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9252 _ACEOF
9253
9254 fi
9255
9256 { echo "$as_me:$LINENO: checking for objdir" >&5
9257 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9258 if test "${libltdl_cv_objdir+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261   libltdl_cv_objdir="$objdir"
9262   if test -n "$objdir"; then
9263     :
9264   else
9265     rm -f .libs 2>/dev/null
9266     mkdir .libs 2>/dev/null
9267     if test -d .libs; then
9268       libltdl_cv_objdir=.libs
9269     else
9270       # MS-DOS does not allow filenames that begin with a dot.
9271       libltdl_cv_objdir=_libs
9272     fi
9273   rmdir .libs 2>/dev/null
9274   fi
9275
9276 fi
9277 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9278 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9279
9280 cat >>confdefs.h <<_ACEOF
9281 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9282 _ACEOF
9283
9284
9285
9286
9287
9288
9289 # Check for command to grab the raw symbol name followed by C symbol from nm.
9290 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9291 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9292 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295
9296 # These are sane defaults that work on at least a few old systems.
9297 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9298
9299 # Character class describing NM global symbol codes.
9300 symcode='[BCDEGRST]'
9301
9302 # Regexp to match symbols that can be accessed directly from C.
9303 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9304
9305 # Transform an extracted symbol line into a proper C declaration
9306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9307
9308 # Transform an extracted symbol line into symbol name and symbol address
9309 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'"
9310
9311 # Define system-specific variables.
9312 case $host_os in
9313 aix*)
9314   symcode='[BCDT]'
9315   ;;
9316 cygwin* | mingw* | pw32*)
9317   symcode='[ABCDGISTW]'
9318   ;;
9319 hpux*) # Its linker distinguishes data from code symbols
9320   if test "$host_cpu" = ia64; then
9321     symcode='[ABCDEGRST]'
9322   fi
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   ;;
9326 linux*)
9327   if test "$host_cpu" = ia64; then
9328     symcode='[ABCDGIRSTW]'
9329     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9330     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'"
9331   fi
9332   ;;
9333 irix* | nonstopux*)
9334   symcode='[BCDEGRST]'
9335   ;;
9336 osf*)
9337   symcode='[BCDEGQRST]'
9338   ;;
9339 solaris*)
9340   symcode='[BDRT]'
9341   ;;
9342 sco3.2v5*)
9343   symcode='[DT]'
9344   ;;
9345 sysv4.2uw2*)
9346   symcode='[DT]'
9347   ;;
9348 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9349   symcode='[ABDT]'
9350   ;;
9351 sysv4)
9352   symcode='[DFNSTU]'
9353   ;;
9354 esac
9355
9356 # Handle CRLF in mingw tool chain
9357 opt_cr=
9358 case $build_os in
9359 mingw*)
9360   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9361   ;;
9362 esac
9363
9364 # If we're using GNU nm, then use its standard symbol codes.
9365 case `$NM -V 2>&1` in
9366 *GNU* | *'with BFD'*)
9367   symcode='[ABCDGIRSTW]' ;;
9368 esac
9369
9370 # Try without a prefix undercore, then with it.
9371 for ac_symprfx in "" "_"; do
9372
9373   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9374   symxfrm="\\1 $ac_symprfx\\2 \\2"
9375
9376   # Write the raw and C identifiers.
9377   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9378
9379   # Check to see that the pipe works correctly.
9380   pipe_works=no
9381
9382   rm -f conftest*
9383   cat > conftest.$ac_ext <<EOF
9384 #ifdef __cplusplus
9385 extern "C" {
9386 #endif
9387 char nm_test_var;
9388 void nm_test_func(){}
9389 #ifdef __cplusplus
9390 }
9391 #endif
9392 int main(){nm_test_var='a';nm_test_func();return(0);}
9393 EOF
9394
9395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396   (eval $ac_compile) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; then
9400     # Now try to grab the symbols.
9401     nlist=conftest.nm
9402     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9403   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && test -s "$nlist"; then
9407       # Try sorting and uniquifying the output.
9408       if sort "$nlist" | uniq > "$nlist"T; then
9409         mv -f "$nlist"T "$nlist"
9410       else
9411         rm -f "$nlist"T
9412       fi
9413
9414       # Make sure that we snagged all the symbols we need.
9415       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9416         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9417           cat <<EOF > conftest.$ac_ext
9418 #ifdef __cplusplus
9419 extern "C" {
9420 #endif
9421
9422 EOF
9423           # Now generate the symbol file.
9424           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9425
9426           cat <<EOF >> conftest.$ac_ext
9427 #if defined (__STDC__) && __STDC__
9428 # define lt_ptr_t void *
9429 #else
9430 # define lt_ptr_t char *
9431 # define const
9432 #endif
9433
9434 /* The mapping between symbol names and symbols. */
9435 const struct {
9436   const char *name;
9437   lt_ptr_t address;
9438 }
9439 lt_preloaded_symbols[] =
9440 {
9441 EOF
9442           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9443           cat <<\EOF >> conftest.$ac_ext
9444   {0, (lt_ptr_t) 0}
9445 };
9446
9447 #ifdef __cplusplus
9448 }
9449 #endif
9450 EOF
9451           # Now try linking the two files.
9452           mv conftest.$ac_objext conftstm.$ac_objext
9453           lt_save_LIBS="$LIBS"
9454           lt_save_CFLAGS="$CFLAGS"
9455           LIBS="conftstm.$ac_objext"
9456           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9457           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458   (eval $ac_link) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9462             pipe_works=yes
9463           fi
9464           LIBS="$lt_save_LIBS"
9465           CFLAGS="$lt_save_CFLAGS"
9466         else
9467           echo "cannot find nm_test_func in $nlist" >&5
9468         fi
9469       else
9470         echo "cannot find nm_test_var in $nlist" >&5
9471       fi
9472     else
9473       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9474     fi
9475   else
9476     echo "$progname: failed program was:" >&5
9477     cat conftest.$ac_ext >&5
9478   fi
9479   rm -f conftest* conftst*
9480
9481   # Do not use the global_symbol_pipe unless it works.
9482   if test "$pipe_works" = yes; then
9483     break
9484   else
9485     lt_cv_sys_global_symbol_pipe=
9486   fi
9487 done
9488
9489 fi
9490
9491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9492   lt_cv_sys_global_symbol_to_cdecl=
9493 fi
9494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9495   { echo "$as_me:$LINENO: result: failed" >&5
9496 echo "${ECHO_T}failed" >&6; }
9497 else
9498   { echo "$as_me:$LINENO: result: ok" >&5
9499 echo "${ECHO_T}ok" >&6; }
9500 fi
9501
9502
9503 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9504 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9505 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9509     libltdl_cv_preloaded_symbols=yes
9510   else
9511     libltdl_cv_preloaded_symbols=no
9512   fi
9513
9514 fi
9515 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9516 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9517 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_PRELOADED_SYMBOLS 1
9521 _ACEOF
9522
9523 fi
9524
9525 LIBADD_DL=
9526
9527 ac_ext=c
9528 ac_cpp='$CPP $CPPFLAGS'
9529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532
9533
9534 { echo "$as_me:$LINENO: checking for shl_load" >&5
9535 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9536 if test "${ac_cv_func_shl_load+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9547 #define shl_load innocuous_shl_load
9548
9549 /* System header to define __stub macros and hopefully few prototypes,
9550     which can conflict with char shl_load (); below.
9551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552     <limits.h> exists even on freestanding compilers.  */
9553
9554 #ifdef __STDC__
9555 # include <limits.h>
9556 #else
9557 # include <assert.h>
9558 #endif
9559
9560 #undef shl_load
9561
9562 /* Override any GCC internal prototype to avoid an error.
9563    Use char because int might match the return type of a GCC
9564    builtin and then its argument prototype would still apply.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char shl_load ();
9569 /* The GNU C library defines this for functions which it implements
9570     to always fail with ENOSYS.  Some functions are actually named
9571     something starting with __ and the normal name is an alias.  */
9572 #if defined __stub_shl_load || defined __stub___shl_load
9573 choke me
9574 #endif
9575
9576 int
9577 main ()
9578 {
9579 return shl_load ();
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9586 case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_link") 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599   { (case "(($ac_try" in
9600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601   *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604   (eval "$ac_try") 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; } &&
9608          { ac_try='test -s conftest$ac_exeext'
9609   { (case "(($ac_try" in
9610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611   *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614   (eval "$ac_try") 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   ac_cv_func_shl_load=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623         ac_cv_func_shl_load=no
9624 fi
9625
9626 rm -f core conftest.err conftest.$ac_objext \
9627       conftest$ac_exeext conftest.$ac_ext
9628 fi
9629 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9631 if test $ac_cv_func_shl_load = yes; then
9632
9633 cat >>confdefs.h <<\_ACEOF
9634 #define HAVE_SHL_LOAD 1
9635 _ACEOF
9636
9637 else
9638   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9639 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9640 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643   ac_check_lib_save_LIBS=$LIBS
9644 LIBS="-ldld  $LIBS"
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651
9652 /* Override any GCC internal prototype to avoid an error.
9653    Use char because int might match the return type of a GCC
9654    builtin and then its argument prototype would still apply.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char shl_load ();
9659 int
9660 main ()
9661 {
9662 return shl_load ();
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9669 case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_link") 2>conftest.er1
9675   ac_status=$?
9676   grep -v '^ *+' conftest.er1 >conftest.err
9677   rm -f conftest.er1
9678   cat conftest.err >&5
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } &&
9681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682   { (case "(($ac_try" in
9683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684   *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687   (eval "$ac_try") 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; } &&
9691          { ac_try='test -s conftest$ac_exeext'
9692   { (case "(($ac_try" in
9693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694   *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697   (eval "$ac_try") 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); }; }; then
9701   ac_cv_lib_dld_shl_load=yes
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706         ac_cv_lib_dld_shl_load=no
9707 fi
9708
9709 rm -f core conftest.err conftest.$ac_objext \
9710       conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9712 fi
9713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9714 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9715 if test $ac_cv_lib_dld_shl_load = yes; then
9716
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_SHL_LOAD 1
9719 _ACEOF
9720
9721         LIBADD_DL="$LIBADD_DL -ldld"
9722 else
9723   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-ldl  $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 /* Override any GCC internal prototype to avoid an error.
9738    Use char because int might match the return type of a GCC
9739    builtin and then its argument prototype would still apply.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char dlopen ();
9744 int
9745 main ()
9746 {
9747 return dlopen ();
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759   (eval "$ac_link") 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767   { (case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_try") 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; } &&
9776          { ac_try='test -s conftest$ac_exeext'
9777   { (case "(($ac_try" in
9778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779   *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782   (eval "$ac_try") 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; }; then
9786   ac_cv_lib_dl_dlopen=yes
9787 else
9788   echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791         ac_cv_lib_dl_dlopen=no
9792 fi
9793
9794 rm -f core conftest.err conftest.$ac_objext \
9795       conftest$ac_exeext conftest.$ac_ext
9796 LIBS=$ac_check_lib_save_LIBS
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9799 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9800 if test $ac_cv_lib_dl_dlopen = yes; then
9801
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_LIBDL 1
9804 _ACEOF
9805
9806                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9807 else
9808   cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814 #if HAVE_DLFCN_H
9815 #  include <dlfcn.h>
9816 #endif
9817
9818 int
9819 main ()
9820 {
9821 dlopen(0, 0);
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9828 case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_link") 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } &&
9840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841   { (case "(($ac_try" in
9842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843   *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846   (eval "$ac_try") 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (case "(($ac_try" in
9852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853   *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856   (eval "$ac_try") 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_LIBDL 1
9863 _ACEOF
9864  libltdl_cv_func_dlopen="yes"
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9871 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   ac_check_lib_save_LIBS=$LIBS
9875 LIBS="-lsvld  $LIBS"
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 /* Override any GCC internal prototype to avoid an error.
9884    Use char because int might match the return type of a GCC
9885    builtin and then its argument prototype would still apply.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 char dlopen ();
9890 int
9891 main ()
9892 {
9893 return dlopen ();
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9900 case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_link") 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913   { (case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_try") 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; } &&
9922          { ac_try='test -s conftest$ac_exeext'
9923   { (case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_try") 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; }; then
9932   ac_cv_lib_svld_dlopen=yes
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937         ac_cv_lib_svld_dlopen=no
9938 fi
9939
9940 rm -f core conftest.err conftest.$ac_objext \
9941       conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9945 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9946 if test $ac_cv_lib_svld_dlopen = yes; then
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_LIBDL 1
9950 _ACEOF
9951
9952                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9953 else
9954   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959   ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-ldld  $LIBS"
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967
9968 /* Override any GCC internal prototype to avoid an error.
9969    Use char because int might match the return type of a GCC
9970    builtin and then its argument prototype would still apply.  */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 char dld_link ();
9975 int
9976 main ()
9977 {
9978 return dld_link ();
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9985 case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_link") 2>conftest.er1
9991   ac_status=$?
9992   grep -v '^ *+' conftest.er1 >conftest.err
9993   rm -f conftest.er1
9994   cat conftest.err >&5
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } &&
9997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998   { (case "(($ac_try" in
9999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000   *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003   (eval "$ac_try") 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; } &&
10007          { ac_try='test -s conftest$ac_exeext'
10008   { (case "(($ac_try" in
10009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010   *) ac_try_echo=$ac_try;;
10011 esac
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013   (eval "$ac_try") 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; }; then
10017   ac_cv_lib_dld_dld_link=yes
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022         ac_cv_lib_dld_dld_link=no
10023 fi
10024
10025 rm -f core conftest.err conftest.$ac_objext \
10026       conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10028 fi
10029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10030 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10031 if test $ac_cv_lib_dld_dld_link = yes; then
10032
10033 cat >>confdefs.h <<\_ACEOF
10034 #define HAVE_DLD 1
10035 _ACEOF
10036
10037                 LIBADD_DL="$LIBADD_DL -ldld"
10038 else
10039   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10040 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10041 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044   cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10052 #define _dyld_func_lookup innocuous__dyld_func_lookup
10053
10054 /* System header to define __stub macros and hopefully few prototypes,
10055     which can conflict with char _dyld_func_lookup (); below.
10056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10057     <limits.h> exists even on freestanding compilers.  */
10058
10059 #ifdef __STDC__
10060 # include <limits.h>
10061 #else
10062 # include <assert.h>
10063 #endif
10064
10065 #undef _dyld_func_lookup
10066
10067 /* Override any GCC internal prototype to avoid an error.
10068    Use char because int might match the return type of a GCC
10069    builtin and then its argument prototype would still apply.  */
10070 #ifdef __cplusplus
10071 extern "C"
10072 #endif
10073 char _dyld_func_lookup ();
10074 /* The GNU C library defines this for functions which it implements
10075     to always fail with ENOSYS.  Some functions are actually named
10076     something starting with __ and the normal name is an alias.  */
10077 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10078 choke me
10079 #endif
10080
10081 int
10082 main ()
10083 {
10084 return _dyld_func_lookup ();
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_link") 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104   { (case "(($ac_try" in
10105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106   *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109   (eval "$ac_try") 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; } &&
10113          { ac_try='test -s conftest$ac_exeext'
10114   { (case "(($ac_try" in
10115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116   *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119   (eval "$ac_try") 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; }; then
10123   ac_cv_func__dyld_func_lookup=yes
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128         ac_cv_func__dyld_func_lookup=no
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext \
10132       conftest$ac_exeext conftest.$ac_ext
10133 fi
10134 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10135 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10136 if test $ac_cv_func__dyld_func_lookup = yes; then
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_DYLD 1
10140 _ACEOF
10141
10142 fi
10143
10144
10145 fi
10146
10147
10148 fi
10149
10150
10151 fi
10152
10153 rm -f core conftest.err conftest.$ac_objext \
10154       conftest$ac_exeext conftest.$ac_ext
10155
10156 fi
10157
10158
10159 fi
10160
10161
10162 fi
10163
10164
10165 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10166 then
10167   lt_save_LIBS="$LIBS"
10168   LIBS="$LIBS $LIBADD_DL"
10169
10170 for ac_func in dlerror
10171 do
10172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10186 #define $ac_func innocuous_$ac_func
10187
10188 /* System header to define __stub macros and hopefully few prototypes,
10189     which can conflict with char $ac_func (); below.
10190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191     <limits.h> exists even on freestanding compilers.  */
10192
10193 #ifdef __STDC__
10194 # include <limits.h>
10195 #else
10196 # include <assert.h>
10197 #endif
10198
10199 #undef $ac_func
10200
10201 /* Override any GCC internal prototype to avoid an error.
10202    Use char because int might match the return type of a GCC
10203    builtin and then its argument prototype would still apply.  */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char $ac_func ();
10208 /* The GNU C library defines this for functions which it implements
10209     to always fail with ENOSYS.  Some functions are actually named
10210     something starting with __ and the normal name is an alias.  */
10211 #if defined __stub_$ac_func || defined __stub___$ac_func
10212 choke me
10213 #endif
10214
10215 int
10216 main ()
10217 {
10218 return $ac_func ();
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_link") 2>conftest.er1
10231   ac_status=$?
10232   grep -v '^ *+' conftest.er1 >conftest.err
10233   rm -f conftest.er1
10234   cat conftest.err >&5
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238   { (case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_try") 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; } &&
10247          { ac_try='test -s conftest$ac_exeext'
10248   { (case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253   (eval "$ac_try") 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   eval "$as_ac_var=yes"
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262         eval "$as_ac_var=no"
10263 fi
10264
10265 rm -f core conftest.err conftest.$ac_objext \
10266       conftest$ac_exeext conftest.$ac_ext
10267 fi
10268 ac_res=`eval echo '${'$as_ac_var'}'`
10269                { echo "$as_me:$LINENO: result: $ac_res" >&5
10270 echo "${ECHO_T}$ac_res" >&6; }
10271 if test `eval echo '${'$as_ac_var'}'` = yes; then
10272   cat >>confdefs.h <<_ACEOF
10273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10274 _ACEOF
10275
10276 fi
10277 done
10278
10279   LIBS="$lt_save_LIBS"
10280 fi
10281 ac_ext=c
10282 ac_cpp='$CPP $CPPFLAGS'
10283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286
10287
10288
10289 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10290 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10291 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   ac_cv_sys_symbol_underscore=no
10295   cat > conftest.$ac_ext <<EOF
10296 void nm_test_func(){}
10297 int main(){nm_test_func;return 0;}
10298 EOF
10299   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300   (eval $ac_compile) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; then
10304     # Now try to grab the symbols.
10305     ac_nlist=conftest.nm
10306     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10307   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } && test -s "$ac_nlist"; then
10311       # See whether the symbols have a leading underscore.
10312       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10313         ac_cv_sys_symbol_underscore=yes
10314       else
10315         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10316           :
10317         else
10318           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10319         fi
10320       fi
10321     else
10322       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10323     fi
10324   else
10325     echo "configure: failed program was:" >&5
10326     cat conftest.c >&5
10327   fi
10328   rm -rf conftest*
10329
10330 fi
10331 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10332 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10333
10334
10335 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10336   if test x"$libltdl_cv_func_dlopen" = xyes ||
10337      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10338         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10339 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10340 if test "${libltdl_cv_need_uscore+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   libltdl_cv_need_uscore=unknown
10344           save_LIBS="$LIBS"
10345           LIBS="$LIBS $LIBADD_DL"
10346           if test "$cross_compiling" = yes; then :
10347   libltdl_cv_need_uscore=cross
10348 else
10349   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10350   lt_status=$lt_dlunknown
10351   cat > conftest.$ac_ext <<EOF
10352 #line 10352 "configure"
10353 #include "confdefs.h"
10354
10355 #if HAVE_DLFCN_H
10356 #include <dlfcn.h>
10357 #endif
10358
10359 #include <stdio.h>
10360
10361 #ifdef RTLD_GLOBAL
10362 #  define LT_DLGLOBAL           RTLD_GLOBAL
10363 #else
10364 #  ifdef DL_GLOBAL
10365 #    define LT_DLGLOBAL         DL_GLOBAL
10366 #  else
10367 #    define LT_DLGLOBAL         0
10368 #  endif
10369 #endif
10370
10371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10372    find out it does not work in some platform. */
10373 #ifndef LT_DLLAZY_OR_NOW
10374 #  ifdef RTLD_LAZY
10375 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10376 #  else
10377 #    ifdef DL_LAZY
10378 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10379 #    else
10380 #      ifdef RTLD_NOW
10381 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10382 #      else
10383 #        ifdef DL_NOW
10384 #          define LT_DLLAZY_OR_NOW      DL_NOW
10385 #        else
10386 #          define LT_DLLAZY_OR_NOW      0
10387 #        endif
10388 #      endif
10389 #    endif
10390 #  endif
10391 #endif
10392
10393 #ifdef __cplusplus
10394 extern "C" void exit (int);
10395 #endif
10396
10397 void fnord() { int i=42;}
10398 int main ()
10399 {
10400   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10401   int status = $lt_dlunknown;
10402
10403   if (self)
10404     {
10405       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10406       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10407       /* dlclose (self); */
10408     }
10409   else
10410     puts (dlerror ());
10411
10412     exit (status);
10413 }
10414 EOF
10415   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416   (eval $ac_link) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420     (./conftest; exit; ) >&5 2>/dev/null
10421     lt_status=$?
10422     case x$lt_status in
10423       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10424       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10425       x$lt_dlunknown|x*)  ;;
10426     esac
10427   else :
10428     # compilation failed
10429
10430   fi
10431 fi
10432 rm -fr conftest*
10433
10434           LIBS="$save_LIBS"
10435
10436 fi
10437 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10438 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10439   fi
10440 fi
10441
10442 if test x"$libltdl_cv_need_uscore" = xyes; then
10443
10444 cat >>confdefs.h <<\_ACEOF
10445 #define NEED_USCORE 1
10446 _ACEOF
10447
10448 fi
10449
10450
10451 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10452 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10453 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   # PORTME does your system automatically load deplibs for dlopen?
10457   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10458   # For now, we just catch OSes we know something about -- in the
10459   # future, we'll try test this programmatically.
10460   libltdl_cv_sys_dlopen_deplibs=unknown
10461   case "$host_os" in
10462   aix3*|aix4.1.*|aix4.2.*)
10463     # Unknown whether this is true for these versions of AIX, but
10464     # we want this `case' here to explicitly catch those versions.
10465     libltdl_cv_sys_dlopen_deplibs=unknown
10466     ;;
10467   aix[45]*)
10468     libltdl_cv_sys_dlopen_deplibs=yes
10469     ;;
10470   darwin*)
10471     # Assuming the user has installed a libdl from somewhere, this is true
10472     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10473     libltdl_cv_sys_dlopen_deplibs=yes
10474     ;;
10475   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10476     # GNU and its variants, using gnu ld.so (Glibc)
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   hpux10*|hpux11*)
10480     libltdl_cv_sys_dlopen_deplibs=yes
10481     ;;
10482   interix*)
10483     libltdl_cv_sys_dlopen_deplibs=yes
10484     ;;
10485   irix[12345]*|irix6.[01]*)
10486     # Catch all versions of IRIX before 6.2, and indicate that we don't
10487     # know how it worked for any of those versions.
10488     libltdl_cv_sys_dlopen_deplibs=unknown
10489     ;;
10490   irix*)
10491     # The case above catches anything before 6.2, and it's known that
10492     # at 6.2 and later dlopen does load deplibs.
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   netbsd*)
10496     libltdl_cv_sys_dlopen_deplibs=yes
10497     ;;
10498   openbsd*)
10499     libltdl_cv_sys_dlopen_deplibs=yes
10500     ;;
10501   osf[1234]*)
10502     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10503     # it did *not* use an RPATH in a shared library to find objects the
10504     # library depends on, so we explicitly say `no'.
10505     libltdl_cv_sys_dlopen_deplibs=no
10506     ;;
10507   osf5.0|osf5.0a|osf5.1)
10508     # dlopen *does* load deplibs and with the right loader patch applied
10509     # it even uses RPATH in a shared library to search for shared objects
10510     # that the library depends on, but there's no easy way to know if that
10511     # patch is installed.  Since this is the case, all we can really
10512     # say is unknown -- it depends on the patch being installed.  If
10513     # it is, this changes to `yes'.  Without it, it would be `no'.
10514     libltdl_cv_sys_dlopen_deplibs=unknown
10515     ;;
10516   osf*)
10517     # the two cases above should catch all versions of osf <= 5.1.  Read
10518     # the comments above for what we know about them.
10519     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10520     # is used to find them so we can finally say `yes'.
10521     libltdl_cv_sys_dlopen_deplibs=yes
10522     ;;
10523   solaris*)
10524     libltdl_cv_sys_dlopen_deplibs=yes
10525     ;;
10526   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10527     libltdl_cv_sys_dlopen_deplibs=yes
10528     ;;
10529   esac
10530
10531 fi
10532 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10533 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10534 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10535
10536 cat >>confdefs.h <<\_ACEOF
10537 #define LTDL_DLOPEN_DEPLIBS 1
10538 _ACEOF
10539
10540 fi
10541
10542
10543 for ac_header in argz.h
10544 do
10545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 fi
10552 ac_res=`eval echo '${'$as_ac_Header'}'`
10553                { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10555 else
10556   # Is the header compilable?
10557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 $ac_includes_default
10566 #include <$ac_header>
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575   (eval "$ac_compile") 2>conftest.er1
10576   ac_status=$?
10577   grep -v '^ *+' conftest.er1 >conftest.err
10578   rm -f conftest.er1
10579   cat conftest.err >&5
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); } &&
10582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10583   { (case "(($ac_try" in
10584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585   *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588   (eval "$ac_try") 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; } &&
10592          { ac_try='test -s conftest.$ac_objext'
10593   { (case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598   (eval "$ac_try") 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }; }; then
10602   ac_header_compiler=yes
10603 else
10604   echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607         ac_header_compiler=no
10608 fi
10609
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10612 echo "${ECHO_T}$ac_header_compiler" >&6; }
10613
10614 # Is the header present?
10615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 #include <$ac_header>
10624 _ACEOF
10625 if { (ac_try="$ac_cpp conftest.$ac_ext"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } >/dev/null; then
10638   if test -s conftest.err; then
10639     ac_cpp_err=$ac_c_preproc_warn_flag
10640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10641   else
10642     ac_cpp_err=
10643   fi
10644 else
10645   ac_cpp_err=yes
10646 fi
10647 if test -z "$ac_cpp_err"; then
10648   ac_header_preproc=yes
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653   ac_header_preproc=no
10654 fi
10655
10656 rm -f conftest.err conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10658 echo "${ECHO_T}$ac_header_preproc" >&6; }
10659
10660 # So?  What about this header?
10661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10662   yes:no: )
10663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10667     ac_header_preproc=yes
10668     ;;
10669   no:yes:* )
10670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10682     ( cat <<\_ASBOX
10683 ## ------------------------------------ ##
10684 ## Report this to http://llvm.org/bugs/ ##
10685 ## ------------------------------------ ##
10686 _ASBOX
10687      ) | sed "s/^/$as_me: WARNING:     /" >&2
10688     ;;
10689 esac
10690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693   echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695   eval "$as_ac_Header=\$ac_header_preproc"
10696 fi
10697 ac_res=`eval echo '${'$as_ac_Header'}'`
10698                { echo "$as_me:$LINENO: result: $ac_res" >&5
10699 echo "${ECHO_T}$ac_res" >&6; }
10700
10701 fi
10702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10703   cat >>confdefs.h <<_ACEOF
10704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10705 _ACEOF
10706
10707 fi
10708
10709 done
10710
10711
10712 { echo "$as_me:$LINENO: checking for error_t" >&5
10713 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10714 if test "${ac_cv_type_error_t+set}" = set; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h.  */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h.  */
10723 #if HAVE_ARGZ_H
10724 #  include <argz.h>
10725 #endif
10726
10727 typedef error_t ac__type_new_;
10728 int
10729 main ()
10730 {
10731 if ((ac__type_new_ *) 0)
10732   return 0;
10733 if (sizeof (ac__type_new_))
10734   return 0;
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 rm -f conftest.$ac_objext
10740 if { (ac_try="$ac_compile"
10741 case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_compile") 2>conftest.er1
10747   ac_status=$?
10748   grep -v '^ *+' conftest.er1 >conftest.err
10749   rm -f conftest.er1
10750   cat conftest.err >&5
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } &&
10753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754   { (case "(($ac_try" in
10755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756   *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759   (eval "$ac_try") 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); }; } &&
10763          { ac_try='test -s conftest.$ac_objext'
10764   { (case "(($ac_try" in
10765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766   *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769   (eval "$ac_try") 2>&5
10770   ac_status=$?
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); }; }; then
10773   ac_cv_type_error_t=yes
10774 else
10775   echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778         ac_cv_type_error_t=no
10779 fi
10780
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10784 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10785 if test $ac_cv_type_error_t = yes; then
10786
10787 cat >>confdefs.h <<_ACEOF
10788 #define HAVE_ERROR_T 1
10789 _ACEOF
10790
10791
10792 else
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define error_t int
10796 _ACEOF
10797
10798 fi
10799
10800
10801
10802
10803
10804
10805
10806 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10807 do
10808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10822 #define $ac_func innocuous_$ac_func
10823
10824 /* System header to define __stub macros and hopefully few prototypes,
10825     which can conflict with char $ac_func (); below.
10826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10827     <limits.h> exists even on freestanding compilers.  */
10828
10829 #ifdef __STDC__
10830 # include <limits.h>
10831 #else
10832 # include <assert.h>
10833 #endif
10834
10835 #undef $ac_func
10836
10837 /* Override any GCC internal prototype to avoid an error.
10838    Use char because int might match the return type of a GCC
10839    builtin and then its argument prototype would still apply.  */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 char $ac_func ();
10844 /* The GNU C library defines this for functions which it implements
10845     to always fail with ENOSYS.  Some functions are actually named
10846     something starting with __ and the normal name is an alias.  */
10847 #if defined __stub_$ac_func || defined __stub___$ac_func
10848 choke me
10849 #endif
10850
10851 int
10852 main ()
10853 {
10854 return $ac_func ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_link") 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } &&
10873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10874   { (case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_try") 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); }; } &&
10883          { ac_try='test -s conftest$ac_exeext'
10884   { (case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_try") 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); }; }; then
10893   eval "$as_ac_var=yes"
10894 else
10895   echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898         eval "$as_ac_var=no"
10899 fi
10900
10901 rm -f core conftest.err conftest.$ac_objext \
10902       conftest$ac_exeext conftest.$ac_ext
10903 fi
10904 ac_res=`eval echo '${'$as_ac_var'}'`
10905                { echo "$as_me:$LINENO: result: $ac_res" >&5
10906 echo "${ECHO_T}$ac_res" >&6; }
10907 if test `eval echo '${'$as_ac_var'}'` = yes; then
10908   cat >>confdefs.h <<_ACEOF
10909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10910 _ACEOF
10911
10912 fi
10913 done
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10943                   stdio.h unistd.h
10944 do
10945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 fi
10952 ac_res=`eval echo '${'$as_ac_Header'}'`
10953                { echo "$as_me:$LINENO: result: $ac_res" >&5
10954 echo "${ECHO_T}$ac_res" >&6; }
10955 else
10956   # Is the header compilable?
10957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965 $ac_includes_default
10966 #include <$ac_header>
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (ac_try="$ac_compile"
10970 case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975   (eval "$ac_compile") 2>conftest.er1
10976   ac_status=$?
10977   grep -v '^ *+' conftest.er1 >conftest.err
10978   rm -f conftest.er1
10979   cat conftest.err >&5
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); } &&
10982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983   { (case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_try") 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }; } &&
10992          { ac_try='test -s conftest.$ac_objext'
10993   { (case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_try") 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   ac_header_compiler=yes
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007         ac_header_compiler=no
11008 fi
11009
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11012 echo "${ECHO_T}$ac_header_compiler" >&6; }
11013
11014 # Is the header present?
11015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11017 cat >conftest.$ac_ext <<_ACEOF
11018 /* confdefs.h.  */
11019 _ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h.  */
11023 #include <$ac_header>
11024 _ACEOF
11025 if { (ac_try="$ac_cpp conftest.$ac_ext"
11026 case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11032   ac_status=$?
11033   grep -v '^ *+' conftest.er1 >conftest.err
11034   rm -f conftest.er1
11035   cat conftest.err >&5
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); } >/dev/null; then
11038   if test -s conftest.err; then
11039     ac_cpp_err=$ac_c_preproc_warn_flag
11040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11041   else
11042     ac_cpp_err=
11043   fi
11044 else
11045   ac_cpp_err=yes
11046 fi
11047 if test -z "$ac_cpp_err"; then
11048   ac_header_preproc=yes
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053   ac_header_preproc=no
11054 fi
11055
11056 rm -f conftest.err conftest.$ac_ext
11057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058 echo "${ECHO_T}$ac_header_preproc" >&6; }
11059
11060 # So?  What about this header?
11061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11062   yes:no: )
11063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067     ac_header_preproc=yes
11068     ;;
11069   no:yes:* )
11070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11082     ( cat <<\_ASBOX
11083 ## ------------------------------------ ##
11084 ## Report this to http://llvm.org/bugs/ ##
11085 ## ------------------------------------ ##
11086 _ASBOX
11087      ) | sed "s/^/$as_me: WARNING:     /" >&2
11088     ;;
11089 esac
11090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   eval "$as_ac_Header=\$ac_header_preproc"
11096 fi
11097 ac_res=`eval echo '${'$as_ac_Header'}'`
11098                { echo "$as_me:$LINENO: result: $ac_res" >&5
11099 echo "${ECHO_T}$ac_res" >&6; }
11100
11101 fi
11102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11103   cat >>confdefs.h <<_ACEOF
11104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11105 _ACEOF
11106
11107 fi
11108
11109 done
11110
11111
11112
11113
11114
11115 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11116 do
11117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 fi
11124 ac_res=`eval echo '${'$as_ac_Header'}'`
11125                { echo "$as_me:$LINENO: result: $ac_res" >&5
11126 echo "${ECHO_T}$ac_res" >&6; }
11127 else
11128   # Is the header compilable?
11129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 $ac_includes_default
11138 #include <$ac_header>
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_compile") 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } &&
11154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155   { (case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_try") 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; } &&
11164          { ac_try='test -s conftest.$ac_objext'
11165   { (case "(($ac_try" in
11166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167   *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170   (eval "$ac_try") 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   ac_header_compiler=yes
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179         ac_header_compiler=no
11180 fi
11181
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184 echo "${ECHO_T}$ac_header_compiler" >&6; }
11185
11186 # Is the header present?
11187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h.  */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h.  */
11195 #include <$ac_header>
11196 _ACEOF
11197 if { (ac_try="$ac_cpp conftest.$ac_ext"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } >/dev/null; then
11210   if test -s conftest.err; then
11211     ac_cpp_err=$ac_c_preproc_warn_flag
11212     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11213   else
11214     ac_cpp_err=
11215   fi
11216 else
11217   ac_cpp_err=yes
11218 fi
11219 if test -z "$ac_cpp_err"; then
11220   ac_header_preproc=yes
11221 else
11222   echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225   ac_header_preproc=no
11226 fi
11227
11228 rm -f conftest.err conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11230 echo "${ECHO_T}$ac_header_preproc" >&6; }
11231
11232 # So?  What about this header?
11233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11234   yes:no: )
11235     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11239     ac_header_preproc=yes
11240     ;;
11241   no:yes:* )
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11245 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11248     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11249 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11254     ( cat <<\_ASBOX
11255 ## ------------------------------------ ##
11256 ## Report this to http://llvm.org/bugs/ ##
11257 ## ------------------------------------ ##
11258 _ASBOX
11259      ) | sed "s/^/$as_me: WARNING:     /" >&2
11260     ;;
11261 esac
11262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265   echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267   eval "$as_ac_Header=\$ac_header_preproc"
11268 fi
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270                { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11272
11273 fi
11274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11275   cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11277 _ACEOF
11278
11279 fi
11280
11281 done
11282
11283
11284
11285 for ac_header in string.h strings.h
11286 do
11287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 fi
11294 ac_res=`eval echo '${'$as_ac_Header'}'`
11295                { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11297 else
11298   # Is the header compilable?
11299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 $ac_includes_default
11308 #include <$ac_header>
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_compile") 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325   { (case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_try") 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; } &&
11334          { ac_try='test -s conftest.$ac_objext'
11335   { (case "(($ac_try" in
11336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337   *) ac_try_echo=$ac_try;;
11338 esac
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340   (eval "$ac_try") 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); }; }; then
11344   ac_header_compiler=yes
11345 else
11346   echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349         ac_header_compiler=no
11350 fi
11351
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 echo "${ECHO_T}$ac_header_compiler" >&6; }
11355
11356 # Is the header present?
11357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365 #include <$ac_header>
11366 _ACEOF
11367 if { (ac_try="$ac_cpp conftest.$ac_ext"
11368 case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11374   ac_status=$?
11375   grep -v '^ *+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } >/dev/null; then
11380   if test -s conftest.err; then
11381     ac_cpp_err=$ac_c_preproc_warn_flag
11382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11383   else
11384     ac_cpp_err=
11385   fi
11386 else
11387   ac_cpp_err=yes
11388 fi
11389 if test -z "$ac_cpp_err"; then
11390   ac_header_preproc=yes
11391 else
11392   echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395   ac_header_preproc=no
11396 fi
11397
11398 rm -f conftest.err conftest.$ac_ext
11399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11400 echo "${ECHO_T}$ac_header_preproc" >&6; }
11401
11402 # So?  What about this header?
11403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11404   yes:no: )
11405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11409     ac_header_preproc=yes
11410     ;;
11411   no:yes:* )
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11424     ( cat <<\_ASBOX
11425 ## ------------------------------------ ##
11426 ## Report this to http://llvm.org/bugs/ ##
11427 ## ------------------------------------ ##
11428 _ASBOX
11429      ) | sed "s/^/$as_me: WARNING:     /" >&2
11430     ;;
11431 esac
11432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   eval "$as_ac_Header=\$ac_header_preproc"
11438 fi
11439 ac_res=`eval echo '${'$as_ac_Header'}'`
11440                { echo "$as_me:$LINENO: result: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11442
11443 fi
11444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11445   cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11447 _ACEOF
11448  break
11449 fi
11450
11451 done
11452
11453
11454
11455
11456 for ac_func in strchr index
11457 do
11458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h.  */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h.  */
11470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11472 #define $ac_func innocuous_$ac_func
11473
11474 /* System header to define __stub macros and hopefully few prototypes,
11475     which can conflict with char $ac_func (); below.
11476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477     <limits.h> exists even on freestanding compilers.  */
11478
11479 #ifdef __STDC__
11480 # include <limits.h>
11481 #else
11482 # include <assert.h>
11483 #endif
11484
11485 #undef $ac_func
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488    Use char because int might match the return type of a GCC
11489    builtin and then its argument prototype would still apply.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char $ac_func ();
11494 /* The GNU C library defines this for functions which it implements
11495     to always fail with ENOSYS.  Some functions are actually named
11496     something starting with __ and the normal name is an alias.  */
11497 #if defined __stub_$ac_func || defined __stub___$ac_func
11498 choke me
11499 #endif
11500
11501 int
11502 main ()
11503 {
11504 return $ac_func ();
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516   (eval "$ac_link") 2>conftest.er1
11517   ac_status=$?
11518   grep -v '^ *+' conftest.er1 >conftest.err
11519   rm -f conftest.er1
11520   cat conftest.err >&5
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); } &&
11523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11524   { (case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529   (eval "$ac_try") 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; } &&
11533          { ac_try='test -s conftest$ac_exeext'
11534   { (case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539   (eval "$ac_try") 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; }; then
11543   eval "$as_ac_var=yes"
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548         eval "$as_ac_var=no"
11549 fi
11550
11551 rm -f core conftest.err conftest.$ac_objext \
11552       conftest$ac_exeext conftest.$ac_ext
11553 fi
11554 ac_res=`eval echo '${'$as_ac_var'}'`
11555                { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11557 if test `eval echo '${'$as_ac_var'}'` = yes; then
11558   cat >>confdefs.h <<_ACEOF
11559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11560 _ACEOF
11561  break
11562 fi
11563 done
11564
11565
11566
11567 for ac_func in strrchr rindex
11568 do
11569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11583 #define $ac_func innocuous_$ac_func
11584
11585 /* System header to define __stub macros and hopefully few prototypes,
11586     which can conflict with char $ac_func (); below.
11587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588     <limits.h> exists even on freestanding compilers.  */
11589
11590 #ifdef __STDC__
11591 # include <limits.h>
11592 #else
11593 # include <assert.h>
11594 #endif
11595
11596 #undef $ac_func
11597
11598 /* Override any GCC internal prototype to avoid an error.
11599    Use char because int might match the return type of a GCC
11600    builtin and then its argument prototype would still apply.  */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char $ac_func ();
11605 /* The GNU C library defines this for functions which it implements
11606     to always fail with ENOSYS.  Some functions are actually named
11607     something starting with __ and the normal name is an alias.  */
11608 #if defined __stub_$ac_func || defined __stub___$ac_func
11609 choke me
11610 #endif
11611
11612 int
11613 main ()
11614 {
11615 return $ac_func ();
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_link") 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } &&
11634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635   { (case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_try") 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; } &&
11644          { ac_try='test -s conftest$ac_exeext'
11645   { (case "(($ac_try" in
11646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647   *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650   (eval "$ac_try") 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; }; then
11654   eval "$as_ac_var=yes"
11655 else
11656   echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659         eval "$as_ac_var=no"
11660 fi
11661
11662 rm -f core conftest.err conftest.$ac_objext \
11663       conftest$ac_exeext conftest.$ac_ext
11664 fi
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666                { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669   cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 _ACEOF
11672  break
11673 fi
11674 done
11675
11676
11677
11678 for ac_func in memcpy bcopy
11679 do
11680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11694 #define $ac_func innocuous_$ac_func
11695
11696 /* System header to define __stub macros and hopefully few prototypes,
11697     which can conflict with char $ac_func (); below.
11698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699     <limits.h> exists even on freestanding compilers.  */
11700
11701 #ifdef __STDC__
11702 # include <limits.h>
11703 #else
11704 # include <assert.h>
11705 #endif
11706
11707 #undef $ac_func
11708
11709 /* Override any GCC internal prototype to avoid an error.
11710    Use char because int might match the return type of a GCC
11711    builtin and then its argument prototype would still apply.  */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char $ac_func ();
11716 /* The GNU C library defines this for functions which it implements
11717     to always fail with ENOSYS.  Some functions are actually named
11718     something starting with __ and the normal name is an alias.  */
11719 #if defined __stub_$ac_func || defined __stub___$ac_func
11720 choke me
11721 #endif
11722
11723 int
11724 main ()
11725 {
11726 return $ac_func ();
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735   *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738   (eval "$ac_link") 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } &&
11745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746   { (case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_try") 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; } &&
11755          { ac_try='test -s conftest$ac_exeext'
11756   { (case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_try") 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; }; then
11765   eval "$as_ac_var=yes"
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770         eval "$as_ac_var=no"
11771 fi
11772
11773 rm -f core conftest.err conftest.$ac_objext \
11774       conftest$ac_exeext conftest.$ac_ext
11775 fi
11776 ac_res=`eval echo '${'$as_ac_var'}'`
11777                { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780   cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11782 _ACEOF
11783  break
11784 fi
11785 done
11786
11787
11788
11789 for ac_func in memmove strcmp
11790 do
11791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11805 #define $ac_func innocuous_$ac_func
11806
11807 /* System header to define __stub macros and hopefully few prototypes,
11808     which can conflict with char $ac_func (); below.
11809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810     <limits.h> exists even on freestanding compilers.  */
11811
11812 #ifdef __STDC__
11813 # include <limits.h>
11814 #else
11815 # include <assert.h>
11816 #endif
11817
11818 #undef $ac_func
11819
11820 /* Override any GCC internal prototype to avoid an error.
11821    Use char because int might match the return type of a GCC
11822    builtin and then its argument prototype would still apply.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char $ac_func ();
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 choke me
11832 #endif
11833
11834 int
11835 main ()
11836 {
11837 return $ac_func ();
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_link") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857   { (case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_try") 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; } &&
11866          { ac_try='test -s conftest$ac_exeext'
11867   { (case "(($ac_try" in
11868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869   *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872   (eval "$ac_try") 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   eval "$as_ac_var=yes"
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881         eval "$as_ac_var=no"
11882 fi
11883
11884 rm -f core conftest.err conftest.$ac_objext \
11885       conftest$ac_exeext conftest.$ac_ext
11886 fi
11887 ac_res=`eval echo '${'$as_ac_var'}'`
11888                { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890 if test `eval echo '${'$as_ac_var'}'` = yes; then
11891   cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11893 _ACEOF
11894
11895 fi
11896 done
11897
11898
11899
11900
11901 for ac_func in closedir opendir readdir
11902 do
11903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909   cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11917 #define $ac_func innocuous_$ac_func
11918
11919 /* System header to define __stub macros and hopefully few prototypes,
11920     which can conflict with char $ac_func (); below.
11921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922     <limits.h> exists even on freestanding compilers.  */
11923
11924 #ifdef __STDC__
11925 # include <limits.h>
11926 #else
11927 # include <assert.h>
11928 #endif
11929
11930 #undef $ac_func
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933    Use char because int might match the return type of a GCC
11934    builtin and then its argument prototype would still apply.  */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char $ac_func ();
11939 /* The GNU C library defines this for functions which it implements
11940     to always fail with ENOSYS.  Some functions are actually named
11941     something starting with __ and the normal name is an alias.  */
11942 #if defined __stub_$ac_func || defined __stub___$ac_func
11943 choke me
11944 #endif
11945
11946 int
11947 main ()
11948 {
11949 return $ac_func ();
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (ac_try="$ac_link"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_link") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969   { (case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974   (eval "$ac_try") 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest$ac_exeext'
11979   { (case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_try") 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; }; then
11988   eval "$as_ac_var=yes"
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993         eval "$as_ac_var=no"
11994 fi
11995
11996 rm -f core conftest.err conftest.$ac_objext \
11997       conftest$ac_exeext conftest.$ac_ext
11998 fi
11999 ac_res=`eval echo '${'$as_ac_var'}'`
12000                { echo "$as_me:$LINENO: result: $ac_res" >&5
12001 echo "${ECHO_T}$ac_res" >&6; }
12002 if test `eval echo '${'$as_ac_var'}'` = yes; then
12003   cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005 _ACEOF
12006
12007 fi
12008 done
12009
12010
12011
12012 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12013 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12014
12015 ICC=no
12016 IXX=no
12017 case $CC in
12018   icc*|icpc*)
12019     ICC=yes
12020     IXX=yes
12021     ;;
12022    *)
12023     ;;
12024 esac
12025
12026 if test "$GCC" != "yes" && test "$ICC" != "yes"
12027 then
12028   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12029 echo "$as_me: error: gcc|icc required but not found" >&2;}
12030    { (exit 1); exit 1; }; }
12031 fi
12032
12033 if test "$GXX" != "yes" && test "$IXX" != "yes"
12034 then
12035   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12036 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12037    { (exit 1); exit 1; }; }
12038 fi
12039
12040 if test "$GCC" = "yes"
12041 then
12042   cat >conftest.$ac_ext <<_ACEOF
12043 #if !defined(__GNUC__) || __GNUC__ < 3
12044 #error Unsupported GCC version
12045 #endif
12046
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (ac_try="$ac_compile"
12050 case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055   (eval "$ac_compile") 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } &&
12062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063   { (case "(($ac_try" in
12064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065   *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068   (eval "$ac_try") 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (case "(($ac_try" in
12074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075   *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078   (eval "$ac_try") 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   :
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12088 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12089    { (exit 1); exit 1; }; }
12090 fi
12091
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 fi
12094
12095 if test -z "$llvm_cv_gnu_make_command"
12096 then
12097   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12098 echo "$as_me: error: GNU Make required but not found" >&2;}
12099    { (exit 1); exit 1; }; }
12100 fi
12101
12102 { echo "$as_me:$LINENO: result: ok" >&5
12103 echo "${ECHO_T}ok" >&6; }
12104
12105 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12106 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12107 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12108
12109 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12110
12111 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12112
12113 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12114 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12115
12116
12117
12118 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12119 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12120 if test "${ac_cv_lib_m_sin+set}" = set; then
12121   echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123   ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lm  $LIBS"
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133    Use char because int might match the return type of a GCC
12134    builtin and then its argument prototype would still apply.  */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char sin ();
12139 int
12140 main ()
12141 {
12142 return sin ();
12143   ;
12144   return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154   (eval "$ac_link") 2>conftest.er1
12155   ac_status=$?
12156   grep -v '^ *+' conftest.er1 >conftest.err
12157   rm -f conftest.er1
12158   cat conftest.err >&5
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } &&
12161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12162   { (case "(($ac_try" in
12163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164   *) ac_try_echo=$ac_try;;
12165 esac
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167   (eval "$ac_try") 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; } &&
12171          { ac_try='test -s conftest$ac_exeext'
12172   { (case "(($ac_try" in
12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174   *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177   (eval "$ac_try") 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; }; then
12181   ac_cv_lib_m_sin=yes
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186         ac_cv_lib_m_sin=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext \
12190       conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12192 fi
12193 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12194 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12195 if test $ac_cv_lib_m_sin = yes; then
12196   cat >>confdefs.h <<_ACEOF
12197 #define HAVE_LIBM 1
12198 _ACEOF
12199
12200   LIBS="-lm $LIBS"
12201
12202 fi
12203
12204 if test "$llvm_cv_os_type" = "MingW" ; then
12205
12206 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12207 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12208 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-limagehlp  $LIBS"
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h.  */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h.  */
12219
12220
12221 int
12222 main ()
12223 {
12224 return main ();
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_link") 2>conftest.er1
12237   ac_status=$?
12238   grep -v '^ *+' conftest.er1 >conftest.err
12239   rm -f conftest.er1
12240   cat conftest.err >&5
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } &&
12243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244   { (case "(($ac_try" in
12245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246   *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249   (eval "$ac_try") 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; } &&
12253          { ac_try='test -s conftest$ac_exeext'
12254   { (case "(($ac_try" in
12255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256   *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259   (eval "$ac_try") 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   ac_cv_lib_imagehlp_main=yes
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268         ac_cv_lib_imagehlp_main=no
12269 fi
12270
12271 rm -f core conftest.err conftest.$ac_objext \
12272       conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12276 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12277 if test $ac_cv_lib_imagehlp_main = yes; then
12278   cat >>confdefs.h <<_ACEOF
12279 #define HAVE_LIBIMAGEHLP 1
12280 _ACEOF
12281
12282   LIBS="-limagehlp $LIBS"
12283
12284 fi
12285
12286
12287 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12288 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12289 if test "${ac_cv_lib_psapi_main+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-lpsapi  $LIBS"
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h.  */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h.  */
12300
12301
12302 int
12303 main ()
12304 {
12305 return main ();
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_link") 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325   { (case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_try") 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest$ac_exeext'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_cv_lib_psapi_main=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349         ac_cv_lib_psapi_main=no
12350 fi
12351
12352 rm -f core conftest.err conftest.$ac_objext \
12353       conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12355 fi
12356 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12357 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12358 if test $ac_cv_lib_psapi_main = yes; then
12359   cat >>confdefs.h <<_ACEOF
12360 #define HAVE_LIBPSAPI 1
12361 _ACEOF
12362
12363   LIBS="-lpsapi $LIBS"
12364
12365 fi
12366
12367 fi
12368
12369 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12370 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_search_dlopen+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   ac_func_search_save_LIBS=$LIBS
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383    Use char because int might match the return type of a GCC
12384    builtin and then its argument prototype would still apply.  */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char dlopen ();
12389 int
12390 main ()
12391 {
12392 return dlopen ();
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 for ac_lib in '' dl; do
12398   if test -z "$ac_lib"; then
12399     ac_res="none required"
12400   else
12401     ac_res=-l$ac_lib
12402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12403   fi
12404   rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408   *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411   (eval "$ac_link") 2>conftest.er1
12412   ac_status=$?
12413   grep -v '^ *+' conftest.er1 >conftest.err
12414   rm -f conftest.er1
12415   cat conftest.err >&5
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419   { (case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_try") 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; } &&
12428          { ac_try='test -s conftest$ac_exeext'
12429   { (case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434   (eval "$ac_try") 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   ac_cv_search_dlopen=$ac_res
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443
12444 fi
12445
12446 rm -f core conftest.err conftest.$ac_objext \
12447       conftest$ac_exeext
12448   if test "${ac_cv_search_dlopen+set}" = set; then
12449   break
12450 fi
12451 done
12452 if test "${ac_cv_search_dlopen+set}" = set; then
12453   :
12454 else
12455   ac_cv_search_dlopen=no
12456 fi
12457 rm conftest.$ac_ext
12458 LIBS=$ac_func_search_save_LIBS
12459 fi
12460 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12461 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12462 ac_res=$ac_cv_search_dlopen
12463 if test "$ac_res" != no; then
12464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12465
12466 cat >>confdefs.h <<\_ACEOF
12467 #define HAVE_DLOPEN 1
12468 _ACEOF
12469
12470 else
12471   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12472 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12473 fi
12474
12475
12476 if test "$llvm_cv_enable_libffi" = "yes" ; then
12477   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12478 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12479 if test "${ac_cv_search_ffi_call+set}" = set; then
12480   echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482   ac_func_search_save_LIBS=$LIBS
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491    Use char because int might match the return type of a GCC
12492    builtin and then its argument prototype would still apply.  */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char ffi_call ();
12497 int
12498 main ()
12499 {
12500 return ffi_call ();
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 for ac_lib in '' ffi; do
12506   if test -z "$ac_lib"; then
12507     ac_res="none required"
12508   else
12509     ac_res=-l$ac_lib
12510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12511   fi
12512   rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_link") 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527   { (case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_try") 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest$ac_exeext'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   ac_cv_search_ffi_call=$ac_res
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext \
12555       conftest$ac_exeext
12556   if test "${ac_cv_search_ffi_call+set}" = set; then
12557   break
12558 fi
12559 done
12560 if test "${ac_cv_search_ffi_call+set}" = set; then
12561   :
12562 else
12563   ac_cv_search_ffi_call=no
12564 fi
12565 rm conftest.$ac_ext
12566 LIBS=$ac_func_search_save_LIBS
12567 fi
12568 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12569 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12570 ac_res=$ac_cv_search_ffi_call
12571 if test "$ac_res" != no; then
12572   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_FFI_CALL 1
12576 _ACEOF
12577
12578 else
12579   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12580 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12581    { (exit 1); exit 1; }; }
12582 fi
12583
12584 fi
12585
12586 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12587 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12588 if test "${ac_cv_search_mallinfo+set}" = set; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   ac_func_search_save_LIBS=$LIBS
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598
12599 /* Override any GCC internal prototype to avoid an error.
12600    Use char because int might match the return type of a GCC
12601    builtin and then its argument prototype would still apply.  */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 char mallinfo ();
12606 int
12607 main ()
12608 {
12609 return mallinfo ();
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 for ac_lib in '' malloc; do
12615   if test -z "$ac_lib"; then
12616     ac_res="none required"
12617   else
12618     ac_res=-l$ac_lib
12619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12620   fi
12621   rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625   *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628   (eval "$ac_link") 2>conftest.er1
12629   ac_status=$?
12630   grep -v '^ *+' conftest.er1 >conftest.err
12631   rm -f conftest.er1
12632   cat conftest.err >&5
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } &&
12635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636   { (case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; } &&
12645          { ac_try='test -s conftest$ac_exeext'
12646   { (case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_try") 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; }; then
12655   ac_cv_search_mallinfo=$ac_res
12656 else
12657   echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660
12661 fi
12662
12663 rm -f core conftest.err conftest.$ac_objext \
12664       conftest$ac_exeext
12665   if test "${ac_cv_search_mallinfo+set}" = set; then
12666   break
12667 fi
12668 done
12669 if test "${ac_cv_search_mallinfo+set}" = set; then
12670   :
12671 else
12672   ac_cv_search_mallinfo=no
12673 fi
12674 rm conftest.$ac_ext
12675 LIBS=$ac_func_search_save_LIBS
12676 fi
12677 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12678 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12679 ac_res=$ac_cv_search_mallinfo
12680 if test "$ac_res" != no; then
12681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_MALLINFO 1
12685 _ACEOF
12686
12687 fi
12688
12689
12690 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12691
12692 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12693 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12694 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-lpthread  $LIBS"
12699 cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705
12706 /* Override any GCC internal prototype to avoid an error.
12707    Use char because int might match the return type of a GCC
12708    builtin and then its argument prototype would still apply.  */
12709 #ifdef __cplusplus
12710 extern "C"
12711 #endif
12712 char pthread_mutex_init ();
12713 int
12714 main ()
12715 {
12716 return pthread_mutex_init ();
12717   ;
12718   return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_link") 2>conftest.er1
12729   ac_status=$?
12730   grep -v '^ *+' conftest.er1 >conftest.err
12731   rm -f conftest.er1
12732   cat conftest.err >&5
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); } &&
12735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736   { (case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_try") 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; } &&
12745          { ac_try='test -s conftest$ac_exeext'
12746   { (case "(($ac_try" in
12747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748   *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751   (eval "$ac_try") 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   ac_cv_lib_pthread_pthread_mutex_init=yes
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760         ac_cv_lib_pthread_pthread_mutex_init=no
12761 fi
12762
12763 rm -f core conftest.err conftest.$ac_objext \
12764       conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12766 fi
12767 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12768 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12769 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12770   cat >>confdefs.h <<_ACEOF
12771 #define HAVE_LIBPTHREAD 1
12772 _ACEOF
12773
12774   LIBS="-lpthread $LIBS"
12775
12776 fi
12777
12778   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12779 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12780 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12781   echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783   ac_func_search_save_LIBS=$LIBS
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790
12791 /* Override any GCC internal prototype to avoid an error.
12792    Use char because int might match the return type of a GCC
12793    builtin and then its argument prototype would still apply.  */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char pthread_mutex_lock ();
12798 int
12799 main ()
12800 {
12801 return pthread_mutex_lock ();
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 for ac_lib in '' pthread; do
12807   if test -z "$ac_lib"; then
12808     ac_res="none required"
12809   else
12810     ac_res=-l$ac_lib
12811     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12812   fi
12813   rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (ac_try="$ac_link"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820   (eval "$ac_link") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } &&
12827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828   { (case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_try") 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; } &&
12837          { ac_try='test -s conftest$ac_exeext'
12838   { (case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843   (eval "$ac_try") 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_cv_search_pthread_mutex_lock=$ac_res
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852
12853 fi
12854
12855 rm -f core conftest.err conftest.$ac_objext \
12856       conftest$ac_exeext
12857   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12858   break
12859 fi
12860 done
12861 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12862   :
12863 else
12864   ac_cv_search_pthread_mutex_lock=no
12865 fi
12866 rm conftest.$ac_ext
12867 LIBS=$ac_func_search_save_LIBS
12868 fi
12869 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12870 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12871 ac_res=$ac_cv_search_pthread_mutex_lock
12872 if test "$ac_res" != no; then
12873   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_PTHREAD_MUTEX_LOCK 1
12877 _ACEOF
12878
12879 fi
12880
12881   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12882 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12883 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   ac_func_search_save_LIBS=$LIBS
12887 cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h.  */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h.  */
12893
12894 /* Override any GCC internal prototype to avoid an error.
12895    Use char because int might match the return type of a GCC
12896    builtin and then its argument prototype would still apply.  */
12897 #ifdef __cplusplus
12898 extern "C"
12899 #endif
12900 char pthread_rwlock_init ();
12901 int
12902 main ()
12903 {
12904 return pthread_rwlock_init ();
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 for ac_lib in '' pthread; do
12910   if test -z "$ac_lib"; then
12911     ac_res="none required"
12912   else
12913     ac_res=-l$ac_lib
12914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12915   fi
12916   rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920   *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923   (eval "$ac_link") 2>conftest.er1
12924   ac_status=$?
12925   grep -v '^ *+' conftest.er1 >conftest.err
12926   rm -f conftest.er1
12927   cat conftest.err >&5
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } &&
12930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12931   { (case "(($ac_try" in
12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933   *) ac_try_echo=$ac_try;;
12934 esac
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936   (eval "$ac_try") 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; } &&
12940          { ac_try='test -s conftest$ac_exeext'
12941   { (case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_try") 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; }; then
12950   ac_cv_search_pthread_rwlock_init=$ac_res
12951 else
12952   echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12954
12955
12956 fi
12957
12958 rm -f core conftest.err conftest.$ac_objext \
12959       conftest$ac_exeext
12960   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12961   break
12962 fi
12963 done
12964 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12965   :
12966 else
12967   ac_cv_search_pthread_rwlock_init=no
12968 fi
12969 rm conftest.$ac_ext
12970 LIBS=$ac_func_search_save_LIBS
12971 fi
12972 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12973 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12974 ac_res=$ac_cv_search_pthread_rwlock_init
12975 if test "$ac_res" != no; then
12976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12977
12978 cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_PTHREAD_RWLOCK_INIT 1
12980 _ACEOF
12981
12982 fi
12983
12984   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12985 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12986 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   ac_func_search_save_LIBS=$LIBS
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996
12997 /* Override any GCC internal prototype to avoid an error.
12998    Use char because int might match the return type of a GCC
12999    builtin and then its argument prototype would still apply.  */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 char pthread_getspecific ();
13004 int
13005 main ()
13006 {
13007 return pthread_getspecific ();
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 for ac_lib in '' pthread; do
13013   if test -z "$ac_lib"; then
13014     ac_res="none required"
13015   else
13016     ac_res=-l$ac_lib
13017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13018   fi
13019   rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_link") 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034   { (case "(($ac_try" in
13035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036   *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039   (eval "$ac_try") 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; } &&
13043          { ac_try='test -s conftest$ac_exeext'
13044   { (case "(($ac_try" in
13045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046   *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049   (eval "$ac_try") 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; }; then
13053   ac_cv_search_pthread_getspecific=$ac_res
13054 else
13055   echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
13059 fi
13060
13061 rm -f core conftest.err conftest.$ac_objext \
13062       conftest$ac_exeext
13063   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13064   break
13065 fi
13066 done
13067 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13068   :
13069 else
13070   ac_cv_search_pthread_getspecific=no
13071 fi
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13074 fi
13075 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13076 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13077 ac_res=$ac_cv_search_pthread_getspecific
13078 if test "$ac_res" != no; then
13079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080
13081 cat >>confdefs.h <<\_ACEOF
13082 #define HAVE_PTHREAD_GETSPECIFIC 1
13083 _ACEOF
13084
13085 fi
13086
13087 fi
13088
13089
13090 # Check whether --with-udis86 was given.
13091 if test "${with_udis86+set}" = set; then
13092   withval=$with_udis86;
13093       USE_UDIS86=1
13094
13095       case "$withval" in
13096         /usr/lib|yes) ;;
13097         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13098       esac
13099
13100 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13101 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13102 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-ludis86  $LIBS"
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113
13114 /* Override any GCC internal prototype to avoid an error.
13115    Use char because int might match the return type of a GCC
13116    builtin and then its argument prototype would still apply.  */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 char ud_init ();
13121 int
13122 main ()
13123 {
13124 return ud_init ();
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (ac_try="$ac_link"
13131 case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_link") 2>conftest.er1
13137   ac_status=$?
13138   grep -v '^ *+' conftest.er1 >conftest.err
13139   rm -f conftest.er1
13140   cat conftest.err >&5
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } &&
13143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144   { (case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149   (eval "$ac_try") 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; } &&
13153          { ac_try='test -s conftest$ac_exeext'
13154   { (case "(($ac_try" in
13155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156   *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159   (eval "$ac_try") 2>&5
13160   ac_status=$?
13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); }; }; then
13163   ac_cv_lib_udis86_ud_init=yes
13164 else
13165   echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13167
13168         ac_cv_lib_udis86_ud_init=no
13169 fi
13170
13171 rm -f core conftest.err conftest.$ac_objext \
13172       conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13174 fi
13175 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13176 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13177 if test $ac_cv_lib_udis86_ud_init = yes; then
13178   cat >>confdefs.h <<_ACEOF
13179 #define HAVE_LIBUDIS86 1
13180 _ACEOF
13181
13182   LIBS="-ludis86 $LIBS"
13183
13184 else
13185
13186         echo "Error! You need to have libudis86 around."
13187         exit -1
13188
13189 fi
13190
13191
13192 else
13193   USE_UDIS86=0
13194
13195 fi
13196
13197
13198 cat >>confdefs.h <<_ACEOF
13199 #define USE_UDIS86 $USE_UDIS86
13200 _ACEOF
13201
13202
13203
13204 # Check whether --with-oprofile was given.
13205 if test "${with_oprofile+set}" = set; then
13206   withval=$with_oprofile;
13207       USE_OPROFILE=1
13208
13209       case "$withval" in
13210         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13211         no) llvm_cv_oppath=
13212             USE_OPROFILE=0
13213  ;;
13214         *) llvm_cv_oppath="${withval}/lib/oprofile"
13215            CPPFLAGS="-I${withval}/include";;
13216       esac
13217       case $llvm_cv_os_type in
13218         Linux)
13219           if test -n "$llvm_cv_oppath" ; then
13220             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13221                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13222 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13223 if test "${ac_cv_search_bfd_init+set}" = set; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   ac_func_search_save_LIBS=$LIBS
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 /* Override any GCC internal prototype to avoid an error.
13235    Use char because int might match the return type of a GCC
13236    builtin and then its argument prototype would still apply.  */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char bfd_init ();
13241 int
13242 main ()
13243 {
13244 return bfd_init ();
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 for ac_lib in '' bfd; do
13250   if test -z "$ac_lib"; then
13251     ac_res="none required"
13252   else
13253     ac_res=-l$ac_lib
13254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13255   fi
13256   rm -f conftest.$ac_objext conftest$ac_exeext
13257 if { (ac_try="$ac_link"
13258 case "(($ac_try" in
13259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260   *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263   (eval "$ac_link") 2>conftest.er1
13264   ac_status=$?
13265   grep -v '^ *+' conftest.er1 >conftest.err
13266   rm -f conftest.er1
13267   cat conftest.err >&5
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } &&
13270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13271   { (case "(($ac_try" in
13272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273   *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276   (eval "$ac_try") 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; } &&
13280          { ac_try='test -s conftest$ac_exeext'
13281   { (case "(($ac_try" in
13282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283   *) ac_try_echo=$ac_try;;
13284 esac
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286   (eval "$ac_try") 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); }; }; then
13290   ac_cv_search_bfd_init=$ac_res
13291 else
13292   echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13294
13295
13296 fi
13297
13298 rm -f core conftest.err conftest.$ac_objext \
13299       conftest$ac_exeext
13300   if test "${ac_cv_search_bfd_init+set}" = set; then
13301   break
13302 fi
13303 done
13304 if test "${ac_cv_search_bfd_init+set}" = set; then
13305   :
13306 else
13307   ac_cv_search_bfd_init=no
13308 fi
13309 rm conftest.$ac_ext
13310 LIBS=$ac_func_search_save_LIBS
13311 fi
13312 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13313 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13314 ac_res=$ac_cv_search_bfd_init
13315 if test "$ac_res" != no; then
13316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317
13318 fi
13319
13320             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13321 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13322 if test "${ac_cv_search_op_open_agent+set}" = set; then
13323   echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325   ac_func_search_save_LIBS=$LIBS
13326 cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332
13333 /* Override any GCC internal prototype to avoid an error.
13334    Use char because int might match the return type of a GCC
13335    builtin and then its argument prototype would still apply.  */
13336 #ifdef __cplusplus
13337 extern "C"
13338 #endif
13339 char op_open_agent ();
13340 int
13341 main ()
13342 {
13343 return op_open_agent ();
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 for ac_lib in '' opagent; do
13349   if test -z "$ac_lib"; then
13350     ac_res="none required"
13351   else
13352     ac_res=-l$ac_lib
13353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13354   fi
13355   rm -f conftest.$ac_objext conftest$ac_exeext
13356 if { (ac_try="$ac_link"
13357 case "(($ac_try" in
13358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359   *) ac_try_echo=$ac_try;;
13360 esac
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362   (eval "$ac_link") 2>conftest.er1
13363   ac_status=$?
13364   grep -v '^ *+' conftest.er1 >conftest.err
13365   rm -f conftest.er1
13366   cat conftest.err >&5
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } &&
13369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13370   { (case "(($ac_try" in
13371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372   *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375   (eval "$ac_try") 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; } &&
13379          { ac_try='test -s conftest$ac_exeext'
13380   { (case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_try") 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_cv_search_op_open_agent=$ac_res
13390 else
13391   echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394
13395 fi
13396
13397 rm -f core conftest.err conftest.$ac_objext \
13398       conftest$ac_exeext
13399   if test "${ac_cv_search_op_open_agent+set}" = set; then
13400   break
13401 fi
13402 done
13403 if test "${ac_cv_search_op_open_agent+set}" = set; then
13404   :
13405 else
13406   ac_cv_search_op_open_agent=no
13407 fi
13408 rm conftest.$ac_ext
13409 LIBS=$ac_func_search_save_LIBS
13410 fi
13411 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13412 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13413 ac_res=$ac_cv_search_op_open_agent
13414 if test "$ac_res" != no; then
13415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13416
13417 else
13418
13419               echo "Error! You need to have libopagent around."
13420               exit -1
13421
13422 fi
13423
13424             if test "${ac_cv_header_opagent_h+set}" = set; then
13425   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13426 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13427 if test "${ac_cv_header_opagent_h+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 fi
13430 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13431 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13432 else
13433   # Is the header compilable?
13434 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13435 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 $ac_includes_default
13443 #include <opagent.h>
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_compile") 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } &&
13459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460   { (case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_try") 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; } &&
13469          { ac_try='test -s conftest.$ac_objext'
13470   { (case "(($ac_try" in
13471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472   *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475   (eval "$ac_try") 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   ac_header_compiler=yes
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484         ac_header_compiler=no
13485 fi
13486
13487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13489 echo "${ECHO_T}$ac_header_compiler" >&6; }
13490
13491 # Is the header present?
13492 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13493 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500 #include <opagent.h>
13501 _ACEOF
13502 if { (ac_try="$ac_cpp conftest.$ac_ext"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } >/dev/null; then
13515   if test -s conftest.err; then
13516     ac_cpp_err=$ac_c_preproc_warn_flag
13517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13518   else
13519     ac_cpp_err=
13520   fi
13521 else
13522   ac_cpp_err=yes
13523 fi
13524 if test -z "$ac_cpp_err"; then
13525   ac_header_preproc=yes
13526 else
13527   echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530   ac_header_preproc=no
13531 fi
13532
13533 rm -f conftest.err conftest.$ac_ext
13534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13535 echo "${ECHO_T}$ac_header_preproc" >&6; }
13536
13537 # So?  What about this header?
13538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13539   yes:no: )
13540     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13541 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13542     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13543 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13544     ac_header_preproc=yes
13545     ;;
13546   no:yes:* )
13547     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13548 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13549     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13550 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13551     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13552 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13553     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13554 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13555     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13556 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13557     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13558 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13559     ( cat <<\_ASBOX
13560 ## ------------------------------------ ##
13561 ## Report this to http://llvm.org/bugs/ ##
13562 ## ------------------------------------ ##
13563 _ASBOX
13564      ) | sed "s/^/$as_me: WARNING:     /" >&2
13565     ;;
13566 esac
13567 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13568 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569 if test "${ac_cv_header_opagent_h+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   ac_cv_header_opagent_h=$ac_header_preproc
13573 fi
13574 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576
13577 fi
13578 if test $ac_cv_header_opagent_h = yes; then
13579   :
13580 else
13581
13582               echo "Error! You need to have opagent.h around."
13583               exit -1
13584
13585 fi
13586
13587
13588           fi ;;
13589         *)
13590           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13591 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13592    { (exit 1); exit 1; }; } ;;
13593       esac
13594
13595 else
13596
13597       USE_OPROFILE=0
13598
13599
13600 fi
13601
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define LLVM_USE_OPROFILE $USE_OPROFILE
13605 _ACEOF
13606
13607
13608
13609 # Check whether --with-intel-jitevents was given.
13610 if test "${with_intel_jitevents+set}" = set; then
13611   withval=$with_intel_jitevents;
13612       case $llvm_cv_os_type in
13613         Linux|Win32|Cygwin|MingW) ;;
13614         *)
13615           { { echo "$as_me:$LINENO: error:
13616             Intel JIT API support is available on Linux and Windows only.\"" >&5
13617 echo "$as_me: error:
13618             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13619    { (exit 1); exit 1; }; } ;;
13620       esac
13621
13622       USE_INTEL_JITEVENTS=1
13623
13624       case "$llvm_cv_target_arch" in
13625         x86)    llvm_intel_jitevents_archdir="lib32";;
13626         x86_64) llvm_intel_jitevents_archdir="lib64";;
13627         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13628                 exit -1;;
13629       esac
13630       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13631       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13632       case "$withval" in
13633         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13634                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13635         *) ;;
13636       esac
13637
13638
13639
13640
13641       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13642       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13643
13644       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13645 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13646 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   ac_func_search_save_LIBS=$LIBS
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char iJIT_IsProfilingActive ();
13664 int
13665 main ()
13666 {
13667 return iJIT_IsProfilingActive ();
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 for ac_lib in '' jitprofiling; do
13673   if test -z "$ac_lib"; then
13674     ac_res="none required"
13675   else
13676     ac_res=-l$ac_lib
13677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13678   fi
13679   rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_link") 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694   { (case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_try") 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest$ac_exeext'
13704   { (case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718
13719 fi
13720
13721 rm -f core conftest.err conftest.$ac_objext \
13722       conftest$ac_exeext
13723   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13724   break
13725 fi
13726 done
13727 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13728   :
13729 else
13730   ac_cv_search_iJIT_IsProfilingActive=no
13731 fi
13732 rm conftest.$ac_ext
13733 LIBS=$ac_func_search_save_LIBS
13734 fi
13735 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13736 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13737 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13738 if test "$ac_res" != no; then
13739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740
13741 else
13742
13743         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13744         exit -1
13745
13746 fi
13747
13748       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13749   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13750 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13751 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 fi
13754 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13755 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13756 else
13757   # Is the header compilable?
13758 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13759 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766 $ac_includes_default
13767 #include <jitprofiling.h>
13768 _ACEOF
13769 rm -f conftest.$ac_objext
13770 if { (ac_try="$ac_compile"
13771 case "(($ac_try" in
13772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773   *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776   (eval "$ac_compile") 2>conftest.er1
13777   ac_status=$?
13778   grep -v '^ *+' conftest.er1 >conftest.err
13779   rm -f conftest.er1
13780   cat conftest.err >&5
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); } &&
13783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13784   { (case "(($ac_try" in
13785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786   *) ac_try_echo=$ac_try;;
13787 esac
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789   (eval "$ac_try") 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; } &&
13793          { ac_try='test -s conftest.$ac_objext'
13794   { (case "(($ac_try" in
13795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796   *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799   (eval "$ac_try") 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; }; then
13803   ac_header_compiler=yes
13804 else
13805   echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808         ac_header_compiler=no
13809 fi
13810
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13813 echo "${ECHO_T}$ac_header_compiler" >&6; }
13814
13815 # Is the header present?
13816 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13817 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824 #include <jitprofiling.h>
13825 _ACEOF
13826 if { (ac_try="$ac_cpp conftest.$ac_ext"
13827 case "(($ac_try" in
13828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829   *) ac_try_echo=$ac_try;;
13830 esac
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13833   ac_status=$?
13834   grep -v '^ *+' conftest.er1 >conftest.err
13835   rm -f conftest.er1
13836   cat conftest.err >&5
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } >/dev/null; then
13839   if test -s conftest.err; then
13840     ac_cpp_err=$ac_c_preproc_warn_flag
13841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13842   else
13843     ac_cpp_err=
13844   fi
13845 else
13846   ac_cpp_err=yes
13847 fi
13848 if test -z "$ac_cpp_err"; then
13849   ac_header_preproc=yes
13850 else
13851   echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854   ac_header_preproc=no
13855 fi
13856
13857 rm -f conftest.err conftest.$ac_ext
13858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859 echo "${ECHO_T}$ac_header_preproc" >&6; }
13860
13861 # So?  What about this header?
13862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13863   yes:no: )
13864     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13865 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13867 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13868     ac_header_preproc=yes
13869     ;;
13870   no:yes:* )
13871     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13872 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13873     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13874 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13875     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13876 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13877     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13878 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13879     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13880 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13881     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13882 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13883     ( cat <<\_ASBOX
13884 ## ------------------------------------ ##
13885 ## Report this to http://llvm.org/bugs/ ##
13886 ## ------------------------------------ ##
13887 _ASBOX
13888      ) | sed "s/^/$as_me: WARNING:     /" >&2
13889     ;;
13890 esac
13891 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13892 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13893 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13894   echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896   ac_cv_header_jitprofiling_h=$ac_header_preproc
13897 fi
13898 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13899 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13900
13901 fi
13902 if test $ac_cv_header_jitprofiling_h = yes; then
13903   :
13904 else
13905
13906         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13907         exit -1
13908
13909 fi
13910
13911
13912
13913
13914 else
13915
13916       USE_INTEL_JITEVENTS=0
13917
13918
13919 fi
13920
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13924 _ACEOF
13925
13926
13927
13928
13929
13930
13931
13932
13933 ac_header_dirent=no
13934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13935   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13936 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13937 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941   cat >conftest.$ac_ext <<_ACEOF
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947 #include <sys/types.h>
13948 #include <$ac_hdr>
13949
13950 int
13951 main ()
13952 {
13953 if ((DIR *) 0)
13954 return 0;
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963   *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966   (eval "$ac_compile") 2>conftest.er1
13967   ac_status=$?
13968   grep -v '^ *+' conftest.er1 >conftest.err
13969   rm -f conftest.er1
13970   cat conftest.err >&5
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } &&
13973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974   { (case "(($ac_try" in
13975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976   *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979   (eval "$ac_try") 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; } &&
13983          { ac_try='test -s conftest.$ac_objext'
13984   { (case "(($ac_try" in
13985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986   *) ac_try_echo=$ac_try;;
13987 esac
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989   (eval "$ac_try") 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   eval "$as_ac_Header=yes"
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998         eval "$as_ac_Header=no"
13999 fi
14000
14001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002 fi
14003 ac_res=`eval echo '${'$as_ac_Header'}'`
14004                { echo "$as_me:$LINENO: result: $ac_res" >&5
14005 echo "${ECHO_T}$ac_res" >&6; }
14006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14007   cat >>confdefs.h <<_ACEOF
14008 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14009 _ACEOF
14010
14011 ac_header_dirent=$ac_hdr; break
14012 fi
14013
14014 done
14015 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14016 if test $ac_header_dirent = dirent.h; then
14017   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14018 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14019 if test "${ac_cv_search_opendir+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   ac_func_search_save_LIBS=$LIBS
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029
14030 /* Override any GCC internal prototype to avoid an error.
14031    Use char because int might match the return type of a GCC
14032    builtin and then its argument prototype would still apply.  */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 char opendir ();
14037 int
14038 main ()
14039 {
14040 return opendir ();
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 for ac_lib in '' dir; do
14046   if test -z "$ac_lib"; then
14047     ac_res="none required"
14048   else
14049     ac_res=-l$ac_lib
14050     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14051   fi
14052   rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056   *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059   (eval "$ac_link") 2>conftest.er1
14060   ac_status=$?
14061   grep -v '^ *+' conftest.er1 >conftest.err
14062   rm -f conftest.er1
14063   cat conftest.err >&5
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); } &&
14066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067   { (case "(($ac_try" in
14068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069   *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072   (eval "$ac_try") 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; } &&
14076          { ac_try='test -s conftest$ac_exeext'
14077   { (case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_try") 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; }; then
14086   ac_cv_search_opendir=$ac_res
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext \
14095       conftest$ac_exeext
14096   if test "${ac_cv_search_opendir+set}" = set; then
14097   break
14098 fi
14099 done
14100 if test "${ac_cv_search_opendir+set}" = set; then
14101   :
14102 else
14103   ac_cv_search_opendir=no
14104 fi
14105 rm conftest.$ac_ext
14106 LIBS=$ac_func_search_save_LIBS
14107 fi
14108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14110 ac_res=$ac_cv_search_opendir
14111 if test "$ac_res" != no; then
14112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14113
14114 fi
14115
14116 else
14117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119 if test "${ac_cv_search_opendir+set}" = set; then
14120   echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122   ac_func_search_save_LIBS=$LIBS
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129
14130 /* Override any GCC internal prototype to avoid an error.
14131    Use char because int might match the return type of a GCC
14132    builtin and then its argument prototype would still apply.  */
14133 #ifdef __cplusplus
14134 extern "C"
14135 #endif
14136 char opendir ();
14137 int
14138 main ()
14139 {
14140 return opendir ();
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 for ac_lib in '' x; do
14146   if test -z "$ac_lib"; then
14147     ac_res="none required"
14148   else
14149     ac_res=-l$ac_lib
14150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14151   fi
14152   rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (ac_try="$ac_link"
14154 case "(($ac_try" in
14155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156   *) ac_try_echo=$ac_try;;
14157 esac
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159   (eval "$ac_link") 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167   { (case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_try") 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); }; } &&
14176          { ac_try='test -s conftest$ac_exeext'
14177   { (case "(($ac_try" in
14178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179   *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182   (eval "$ac_try") 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; }; then
14186   ac_cv_search_opendir=$ac_res
14187 else
14188   echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191
14192 fi
14193
14194 rm -f core conftest.err conftest.$ac_objext \
14195       conftest$ac_exeext
14196   if test "${ac_cv_search_opendir+set}" = set; then
14197   break
14198 fi
14199 done
14200 if test "${ac_cv_search_opendir+set}" = set; then
14201   :
14202 else
14203   ac_cv_search_opendir=no
14204 fi
14205 rm conftest.$ac_ext
14206 LIBS=$ac_func_search_save_LIBS
14207 fi
14208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14210 ac_res=$ac_cv_search_opendir
14211 if test "$ac_res" != no; then
14212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14213
14214 fi
14215
14216 fi
14217
14218 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14219 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14220 if test "${ac_cv_header_mmap_anon+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223    ac_ext=c
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14228
14229   cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 #include <sys/mman.h>
14236 #include <unistd.h>
14237 #include <fcntl.h>
14238 int
14239 main ()
14240 {
14241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250   *) ac_try_echo=$ac_try;;
14251 esac
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253   (eval "$ac_compile") 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261   { (case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266   (eval "$ac_try") 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; } &&
14270          { ac_try='test -s conftest.$ac_objext'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_try") 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; }; then
14280   ac_cv_header_mmap_anon=yes
14281 else
14282   echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285         ac_cv_header_mmap_anon=no
14286 fi
14287
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289   ac_ext=c
14290 ac_cpp='$CPP $CPPFLAGS'
14291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294
14295
14296 fi
14297 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14298 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14299 if test "$ac_cv_header_mmap_anon" = yes; then
14300
14301 cat >>confdefs.h <<\_ACEOF
14302 #define HAVE_MMAP_ANONYMOUS 1
14303 _ACEOF
14304
14305 fi
14306
14307 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14308 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14309 if test "${ac_cv_header_stat_broken+set}" = set; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 #include <sys/types.h>
14319 #include <sys/stat.h>
14320
14321 #if defined S_ISBLK && defined S_IFDIR
14322 # if S_ISBLK (S_IFDIR)
14323 You lose.
14324 # endif
14325 #endif
14326
14327 #if defined S_ISBLK && defined S_IFCHR
14328 # if S_ISBLK (S_IFCHR)
14329 You lose.
14330 # endif
14331 #endif
14332
14333 #if defined S_ISLNK && defined S_IFREG
14334 # if S_ISLNK (S_IFREG)
14335 You lose.
14336 # endif
14337 #endif
14338
14339 #if defined S_ISSOCK && defined S_IFREG
14340 # if S_ISSOCK (S_IFREG)
14341 You lose.
14342 # endif
14343 #endif
14344
14345 _ACEOF
14346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14347   $EGREP "You lose" >/dev/null 2>&1; then
14348   ac_cv_header_stat_broken=yes
14349 else
14350   ac_cv_header_stat_broken=no
14351 fi
14352 rm -f conftest*
14353
14354 fi
14355 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14356 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14357 if test $ac_cv_header_stat_broken = yes; then
14358
14359 cat >>confdefs.h <<\_ACEOF
14360 #define STAT_MACROS_BROKEN 1
14361 _ACEOF
14362
14363 fi
14364
14365 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14366 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14367 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376 #include <sys/types.h>
14377 #include <sys/wait.h>
14378 #ifndef WEXITSTATUS
14379 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14380 #endif
14381 #ifndef WIFEXITED
14382 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14383 #endif
14384
14385 int
14386 main ()
14387 {
14388   int s;
14389   wait (&s);
14390   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399   *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402   (eval "$ac_compile") 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410   { (case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_try") 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest.$ac_objext'
14420   { (case "(($ac_try" in
14421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422   *) ac_try_echo=$ac_try;;
14423 esac
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425   (eval "$ac_try") 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; }; then
14429   ac_cv_header_sys_wait_h=yes
14430 else
14431   echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434         ac_cv_header_sys_wait_h=no
14435 fi
14436
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 fi
14439 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14440 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14441 if test $ac_cv_header_sys_wait_h = yes; then
14442
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_SYS_WAIT_H 1
14445 _ACEOF
14446
14447 fi
14448
14449 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14450 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14451 if test "${ac_cv_header_time+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460 #include <sys/types.h>
14461 #include <sys/time.h>
14462 #include <time.h>
14463
14464 int
14465 main ()
14466 {
14467 if ((struct tm *) 0)
14468 return 0;
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_compile") 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_try") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; } &&
14497          { ac_try='test -s conftest.$ac_objext'
14498   { (case "(($ac_try" in
14499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500   *) ac_try_echo=$ac_try;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503   (eval "$ac_try") 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507   ac_cv_header_time=yes
14508 else
14509   echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512         ac_cv_header_time=no
14513 fi
14514
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 fi
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14518 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14519 if test $ac_cv_header_time = yes; then
14520
14521 cat >>confdefs.h <<\_ACEOF
14522 #define TIME_WITH_SYS_TIME 1
14523 _ACEOF
14524
14525 fi
14526
14527
14528
14529
14530
14531
14532
14533
14534 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14535 do
14536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 fi
14543 ac_res=`eval echo '${'$as_ac_Header'}'`
14544                { echo "$as_me:$LINENO: result: $ac_res" >&5
14545 echo "${ECHO_T}$ac_res" >&6; }
14546 else
14547   # Is the header compilable?
14548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 $ac_includes_default
14557 #include <$ac_header>
14558 _ACEOF
14559 rm -f conftest.$ac_objext
14560 if { (ac_try="$ac_compile"
14561 case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566   (eval "$ac_compile") 2>conftest.er1
14567   ac_status=$?
14568   grep -v '^ *+' conftest.er1 >conftest.err
14569   rm -f conftest.er1
14570   cat conftest.err >&5
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } &&
14573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574   { (case "(($ac_try" in
14575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576   *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579   (eval "$ac_try") 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); }; } &&
14583          { ac_try='test -s conftest.$ac_objext'
14584   { (case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_try") 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; }; then
14593   ac_header_compiler=yes
14594 else
14595   echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14597
14598         ac_header_compiler=no
14599 fi
14600
14601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14603 echo "${ECHO_T}$ac_header_compiler" >&6; }
14604
14605 # Is the header present?
14606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14608 cat >conftest.$ac_ext <<_ACEOF
14609 /* confdefs.h.  */
14610 _ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h.  */
14614 #include <$ac_header>
14615 _ACEOF
14616 if { (ac_try="$ac_cpp conftest.$ac_ext"
14617 case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14623   ac_status=$?
14624   grep -v '^ *+' conftest.er1 >conftest.err
14625   rm -f conftest.er1
14626   cat conftest.err >&5
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } >/dev/null; then
14629   if test -s conftest.err; then
14630     ac_cpp_err=$ac_c_preproc_warn_flag
14631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14632   else
14633     ac_cpp_err=
14634   fi
14635 else
14636   ac_cpp_err=yes
14637 fi
14638 if test -z "$ac_cpp_err"; then
14639   ac_header_preproc=yes
14640 else
14641   echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644   ac_header_preproc=no
14645 fi
14646
14647 rm -f conftest.err conftest.$ac_ext
14648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649 echo "${ECHO_T}$ac_header_preproc" >&6; }
14650
14651 # So?  What about this header?
14652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653   yes:no: )
14654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14658     ac_header_preproc=yes
14659     ;;
14660   no:yes:* )
14661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14673     ( cat <<\_ASBOX
14674 ## ------------------------------------ ##
14675 ## Report this to http://llvm.org/bugs/ ##
14676 ## ------------------------------------ ##
14677 _ASBOX
14678      ) | sed "s/^/$as_me: WARNING:     /" >&2
14679     ;;
14680 esac
14681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   eval "$as_ac_Header=\$ac_header_preproc"
14687 fi
14688 ac_res=`eval echo '${'$as_ac_Header'}'`
14689                { echo "$as_me:$LINENO: result: $ac_res" >&5
14690 echo "${ECHO_T}$ac_res" >&6; }
14691
14692 fi
14693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14694   cat >>confdefs.h <<_ACEOF
14695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696 _ACEOF
14697
14698 fi
14699
14700 done
14701
14702
14703
14704
14705
14706
14707
14708 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14709 do
14710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 fi
14717 ac_res=`eval echo '${'$as_ac_Header'}'`
14718                { echo "$as_me:$LINENO: result: $ac_res" >&5
14719 echo "${ECHO_T}$ac_res" >&6; }
14720 else
14721   # Is the header compilable?
14722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730 $ac_includes_default
14731 #include <$ac_header>
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737   *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740   (eval "$ac_compile") 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } &&
14747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748   { (case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_try") 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest.$ac_objext'
14758   { (case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_try") 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767   ac_header_compiler=yes
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772         ac_header_compiler=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779 # Is the header present?
14780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788 #include <$ac_header>
14789 _ACEOF
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793   *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797   ac_status=$?
14798   grep -v '^ *+' conftest.er1 >conftest.err
14799   rm -f conftest.er1
14800   cat conftest.err >&5
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } >/dev/null; then
14803   if test -s conftest.err; then
14804     ac_cpp_err=$ac_c_preproc_warn_flag
14805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806   else
14807     ac_cpp_err=
14808   fi
14809 else
14810   ac_cpp_err=yes
14811 fi
14812 if test -z "$ac_cpp_err"; then
14813   ac_header_preproc=yes
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818   ac_header_preproc=no
14819 fi
14820
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825 # So?  What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827   yes:no: )
14828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832     ac_header_preproc=yes
14833     ;;
14834   no:yes:* )
14835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14847     ( cat <<\_ASBOX
14848 ## ------------------------------------ ##
14849 ## Report this to http://llvm.org/bugs/ ##
14850 ## ------------------------------------ ##
14851 _ASBOX
14852      ) | sed "s/^/$as_me: WARNING:     /" >&2
14853     ;;
14854 esac
14855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   eval "$as_ac_Header=\$ac_header_preproc"
14861 fi
14862 ac_res=`eval echo '${'$as_ac_Header'}'`
14863                { echo "$as_me:$LINENO: result: $ac_res" >&5
14864 echo "${ECHO_T}$ac_res" >&6; }
14865
14866 fi
14867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14868   cat >>confdefs.h <<_ACEOF
14869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14870 _ACEOF
14871
14872 fi
14873
14874 done
14875
14876
14877
14878 for ac_header in utime.h windows.h
14879 do
14880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 fi
14887 ac_res=`eval echo '${'$as_ac_Header'}'`
14888                { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14890 else
14891   # Is the header compilable?
14892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900 $ac_includes_default
14901 #include <$ac_header>
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910   (eval "$ac_compile") 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918   { (case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_try") 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; } &&
14927          { ac_try='test -s conftest.$ac_objext'
14928   { (case "(($ac_try" in
14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930   *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933   (eval "$ac_try") 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937   ac_header_compiler=yes
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942         ac_header_compiler=no
14943 fi
14944
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6; }
14948
14949 # Is the header present?
14950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 #include <$ac_header>
14959 _ACEOF
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963   *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } >/dev/null; then
14973   if test -s conftest.err; then
14974     ac_cpp_err=$ac_c_preproc_warn_flag
14975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976   else
14977     ac_cpp_err=
14978   fi
14979 else
14980   ac_cpp_err=yes
14981 fi
14982 if test -z "$ac_cpp_err"; then
14983   ac_header_preproc=yes
14984 else
14985   echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988   ac_header_preproc=no
14989 fi
14990
14991 rm -f conftest.err conftest.$ac_ext
14992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993 echo "${ECHO_T}$ac_header_preproc" >&6; }
14994
14995 # So?  What about this header?
14996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14997   yes:no: )
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002     ac_header_preproc=yes
15003     ;;
15004   no:yes:* )
15005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15017     ( cat <<\_ASBOX
15018 ## ------------------------------------ ##
15019 ## Report this to http://llvm.org/bugs/ ##
15020 ## ------------------------------------ ##
15021 _ASBOX
15022      ) | sed "s/^/$as_me: WARNING:     /" >&2
15023     ;;
15024 esac
15025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   eval "$as_ac_Header=\$ac_header_preproc"
15031 fi
15032 ac_res=`eval echo '${'$as_ac_Header'}'`
15033                { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035
15036 fi
15037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15040 _ACEOF
15041
15042 fi
15043
15044 done
15045
15046
15047
15048
15049
15050
15051 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15052 do
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 fi
15060 ac_res=`eval echo '${'$as_ac_Header'}'`
15061                { echo "$as_me:$LINENO: result: $ac_res" >&5
15062 echo "${ECHO_T}$ac_res" >&6; }
15063 else
15064   # Is the header compilable?
15065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 $ac_includes_default
15074 #include <$ac_header>
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080   *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083   (eval "$ac_compile") 2>conftest.er1
15084   ac_status=$?
15085   grep -v '^ *+' conftest.er1 >conftest.err
15086   rm -f conftest.er1
15087   cat conftest.err >&5
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); } &&
15090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; } &&
15100          { ac_try='test -s conftest.$ac_objext'
15101   { (case "(($ac_try" in
15102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103   *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106   (eval "$ac_try") 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }; then
15110   ac_header_compiler=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115         ac_header_compiler=no
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120 echo "${ECHO_T}$ac_header_compiler" >&6; }
15121
15122 # Is the header present?
15123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131 #include <$ac_header>
15132 _ACEOF
15133 if { (ac_try="$ac_cpp conftest.$ac_ext"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } >/dev/null; then
15146   if test -s conftest.err; then
15147     ac_cpp_err=$ac_c_preproc_warn_flag
15148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149   else
15150     ac_cpp_err=
15151   fi
15152 else
15153   ac_cpp_err=yes
15154 fi
15155 if test -z "$ac_cpp_err"; then
15156   ac_header_preproc=yes
15157 else
15158   echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161   ac_header_preproc=no
15162 fi
15163
15164 rm -f conftest.err conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166 echo "${ECHO_T}$ac_header_preproc" >&6; }
15167
15168 # So?  What about this header?
15169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170   yes:no: )
15171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175     ac_header_preproc=yes
15176     ;;
15177   no:yes:* )
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190     ( cat <<\_ASBOX
15191 ## ------------------------------------ ##
15192 ## Report this to http://llvm.org/bugs/ ##
15193 ## ------------------------------------ ##
15194 _ASBOX
15195      ) | sed "s/^/$as_me: WARNING:     /" >&2
15196     ;;
15197 esac
15198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   eval "$as_ac_Header=\$ac_header_preproc"
15204 fi
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206                { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15208
15209 fi
15210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211   cat >>confdefs.h <<_ACEOF
15212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213 _ACEOF
15214
15215 fi
15216
15217 done
15218
15219
15220
15221
15222
15223 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15224 do
15225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 fi
15232 ac_res=`eval echo '${'$as_ac_Header'}'`
15233                { echo "$as_me:$LINENO: result: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15235 else
15236   # Is the header compilable?
15237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245 $ac_includes_default
15246 #include <$ac_header>
15247 _ACEOF
15248 rm -f conftest.$ac_objext
15249 if { (ac_try="$ac_compile"
15250 case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_compile") 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } &&
15262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263   { (case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_try") 2>&5
15269   ac_status=$?
15270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271   (exit $ac_status); }; } &&
15272          { ac_try='test -s conftest.$ac_objext'
15273   { (case "(($ac_try" in
15274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275   *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278   (eval "$ac_try") 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282   ac_header_compiler=yes
15283 else
15284   echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287         ac_header_compiler=no
15288 fi
15289
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15292 echo "${ECHO_T}$ac_header_compiler" >&6; }
15293
15294 # Is the header present?
15295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15297 cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h.  */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h.  */
15303 #include <$ac_header>
15304 _ACEOF
15305 if { (ac_try="$ac_cpp conftest.$ac_ext"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } >/dev/null; then
15318   if test -s conftest.err; then
15319     ac_cpp_err=$ac_c_preproc_warn_flag
15320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15321   else
15322     ac_cpp_err=
15323   fi
15324 else
15325   ac_cpp_err=yes
15326 fi
15327 if test -z "$ac_cpp_err"; then
15328   ac_header_preproc=yes
15329 else
15330   echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333   ac_header_preproc=no
15334 fi
15335
15336 rm -f conftest.err conftest.$ac_ext
15337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15338 echo "${ECHO_T}$ac_header_preproc" >&6; }
15339
15340 # So?  What about this header?
15341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15342   yes:no: )
15343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15347     ac_header_preproc=yes
15348     ;;
15349   no:yes:* )
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15362     ( cat <<\_ASBOX
15363 ## ------------------------------------ ##
15364 ## Report this to http://llvm.org/bugs/ ##
15365 ## ------------------------------------ ##
15366 _ASBOX
15367      ) | sed "s/^/$as_me: WARNING:     /" >&2
15368     ;;
15369 esac
15370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   eval "$as_ac_Header=\$ac_header_preproc"
15376 fi
15377 ac_res=`eval echo '${'$as_ac_Header'}'`
15378                { echo "$as_me:$LINENO: result: $ac_res" >&5
15379 echo "${ECHO_T}$ac_res" >&6; }
15380
15381 fi
15382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15383   cat >>confdefs.h <<_ACEOF
15384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15385 _ACEOF
15386
15387 fi
15388
15389 done
15390
15391
15392 for ac_header in valgrind/valgrind.h
15393 do
15394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 fi
15401 ac_res=`eval echo '${'$as_ac_Header'}'`
15402                { echo "$as_me:$LINENO: result: $ac_res" >&5
15403 echo "${ECHO_T}$ac_res" >&6; }
15404 else
15405   # Is the header compilable?
15406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414 $ac_includes_default
15415 #include <$ac_header>
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (ac_try="$ac_compile"
15419 case "(($ac_try" in
15420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421   *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424   (eval "$ac_compile") 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } &&
15431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432   { (case "(($ac_try" in
15433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434   *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437   (eval "$ac_try") 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; } &&
15441          { ac_try='test -s conftest.$ac_objext'
15442   { (case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_try") 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   ac_header_compiler=yes
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456         ac_header_compiler=no
15457 fi
15458
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15461 echo "${ECHO_T}$ac_header_compiler" >&6; }
15462
15463 # Is the header present?
15464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 #include <$ac_header>
15473 _ACEOF
15474 if { (ac_try="$ac_cpp conftest.$ac_ext"
15475 case "(($ac_try" in
15476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477   *) ac_try_echo=$ac_try;;
15478 esac
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15481   ac_status=$?
15482   grep -v '^ *+' conftest.er1 >conftest.err
15483   rm -f conftest.er1
15484   cat conftest.err >&5
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); } >/dev/null; then
15487   if test -s conftest.err; then
15488     ac_cpp_err=$ac_c_preproc_warn_flag
15489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15490   else
15491     ac_cpp_err=
15492   fi
15493 else
15494   ac_cpp_err=yes
15495 fi
15496 if test -z "$ac_cpp_err"; then
15497   ac_header_preproc=yes
15498 else
15499   echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502   ac_header_preproc=no
15503 fi
15504
15505 rm -f conftest.err conftest.$ac_ext
15506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15507 echo "${ECHO_T}$ac_header_preproc" >&6; }
15508
15509 # So?  What about this header?
15510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15511   yes:no: )
15512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15516     ac_header_preproc=yes
15517     ;;
15518   no:yes:* )
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15531     ( cat <<\_ASBOX
15532 ## ------------------------------------ ##
15533 ## Report this to http://llvm.org/bugs/ ##
15534 ## ------------------------------------ ##
15535 _ASBOX
15536      ) | sed "s/^/$as_me: WARNING:     /" >&2
15537     ;;
15538 esac
15539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544   eval "$as_ac_Header=\$ac_header_preproc"
15545 fi
15546 ac_res=`eval echo '${'$as_ac_Header'}'`
15547                { echo "$as_me:$LINENO: result: $ac_res" >&5
15548 echo "${ECHO_T}$ac_res" >&6; }
15549
15550 fi
15551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15552   cat >>confdefs.h <<_ACEOF
15553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15554 _ACEOF
15555
15556 fi
15557
15558 done
15559
15560
15561 for ac_header in fenv.h
15562 do
15563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 fi
15570 ac_res=`eval echo '${'$as_ac_Header'}'`
15571                { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15573 else
15574   # Is the header compilable?
15575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 $ac_includes_default
15584 #include <$ac_header>
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_compile") 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601   { (case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_try") 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest.$ac_objext'
15611   { (case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616   (eval "$ac_try") 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620   ac_header_compiler=yes
15621 else
15622   echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625         ac_header_compiler=no
15626 fi
15627
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632 # Is the header present?
15633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 #include <$ac_header>
15642 _ACEOF
15643 if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 case "(($ac_try" in
15645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646   *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } >/dev/null; then
15656   if test -s conftest.err; then
15657     ac_cpp_err=$ac_c_preproc_warn_flag
15658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659   else
15660     ac_cpp_err=
15661   fi
15662 else
15663   ac_cpp_err=yes
15664 fi
15665 if test -z "$ac_cpp_err"; then
15666   ac_header_preproc=yes
15667 else
15668   echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671   ac_header_preproc=no
15672 fi
15673
15674 rm -f conftest.err conftest.$ac_ext
15675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678 # So?  What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680   yes:no: )
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685     ac_header_preproc=yes
15686     ;;
15687   no:yes:* )
15688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700     ( cat <<\_ASBOX
15701 ## ------------------------------------ ##
15702 ## Report this to http://llvm.org/bugs/ ##
15703 ## ------------------------------------ ##
15704 _ASBOX
15705      ) | sed "s/^/$as_me: WARNING:     /" >&2
15706     ;;
15707 esac
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711   echo $ECHO_N "(cached) $ECHO_C" >&6
15712 else
15713   eval "$as_ac_Header=\$ac_header_preproc"
15714 fi
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716                { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15718
15719 fi
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721   cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723 _ACEOF
15724
15725 fi
15726
15727 done
15728
15729 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15730
15731 for ac_header in pthread.h
15732 do
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738   echo $ECHO_N "(cached) $ECHO_C" >&6
15739 fi
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741                { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15743 else
15744   # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753 $ac_includes_default
15754 #include <$ac_header>
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_compile") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771   { (case "(($ac_try" in
15772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773   *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776   (eval "$ac_try") 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; } &&
15780          { ac_try='test -s conftest.$ac_objext'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_header_compiler=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795         ac_header_compiler=no
15796 fi
15797
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800 echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802 # Is the header present?
15803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 #include <$ac_header>
15812 _ACEOF
15813 if { (ac_try="$ac_cpp conftest.$ac_ext"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } >/dev/null; then
15826   if test -s conftest.err; then
15827     ac_cpp_err=$ac_c_preproc_warn_flag
15828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829   else
15830     ac_cpp_err=
15831   fi
15832 else
15833   ac_cpp_err=yes
15834 fi
15835 if test -z "$ac_cpp_err"; then
15836   ac_header_preproc=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841   ac_header_preproc=no
15842 fi
15843
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848 # So?  What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850   yes:no: )
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855     ac_header_preproc=yes
15856     ;;
15857   no:yes:* )
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870     ( cat <<\_ASBOX
15871 ## ------------------------------------ ##
15872 ## Report this to http://llvm.org/bugs/ ##
15873 ## ------------------------------------ ##
15874 _ASBOX
15875      ) | sed "s/^/$as_me: WARNING:     /" >&2
15876     ;;
15877 esac
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883   eval "$as_ac_Header=\$ac_header_preproc"
15884 fi
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886                { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15888
15889 fi
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891   cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893 _ACEOF
15894  HAVE_PTHREAD=1
15895
15896 else
15897   HAVE_PTHREAD=0
15898
15899 fi
15900
15901 done
15902
15903 else
15904   HAVE_PTHREAD=0
15905
15906 fi
15907
15908 if test "$llvm_cv_enable_libffi" = "yes" ; then
15909
15910
15911 for ac_header in ffi.h ffi/ffi.h
15912 do
15913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 fi
15920 ac_res=`eval echo '${'$as_ac_Header'}'`
15921                { echo "$as_me:$LINENO: result: $ac_res" >&5
15922 echo "${ECHO_T}$ac_res" >&6; }
15923 else
15924   # Is the header compilable?
15925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 $ac_includes_default
15934 #include <$ac_header>
15935 _ACEOF
15936 rm -f conftest.$ac_objext
15937 if { (ac_try="$ac_compile"
15938 case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_compile") 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951   { (case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_try") 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; } &&
15960          { ac_try='test -s conftest.$ac_objext'
15961   { (case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966   (eval "$ac_try") 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; }; then
15970   ac_header_compiler=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975         ac_header_compiler=no
15976 fi
15977
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980 echo "${ECHO_T}$ac_header_compiler" >&6; }
15981
15982 # Is the header present?
15983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 #include <$ac_header>
15992 _ACEOF
15993 if { (ac_try="$ac_cpp conftest.$ac_ext"
15994 case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } >/dev/null; then
16006   if test -s conftest.err; then
16007     ac_cpp_err=$ac_c_preproc_warn_flag
16008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009   else
16010     ac_cpp_err=
16011   fi
16012 else
16013   ac_cpp_err=yes
16014 fi
16015 if test -z "$ac_cpp_err"; then
16016   ac_header_preproc=yes
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021   ac_header_preproc=no
16022 fi
16023
16024 rm -f conftest.err conftest.$ac_ext
16025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026 echo "${ECHO_T}$ac_header_preproc" >&6; }
16027
16028 # So?  What about this header?
16029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030   yes:no: )
16031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035     ac_header_preproc=yes
16036     ;;
16037   no:yes:* )
16038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050     ( cat <<\_ASBOX
16051 ## ------------------------------------ ##
16052 ## Report this to http://llvm.org/bugs/ ##
16053 ## ------------------------------------ ##
16054 _ASBOX
16055      ) | sed "s/^/$as_me: WARNING:     /" >&2
16056     ;;
16057 esac
16058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   eval "$as_ac_Header=\$ac_header_preproc"
16064 fi
16065 ac_res=`eval echo '${'$as_ac_Header'}'`
16066                { echo "$as_me:$LINENO: result: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16068
16069 fi
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071   cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073 _ACEOF
16074
16075 fi
16076
16077 done
16078
16079 fi
16080
16081
16082 for ac_header in CrashReporterClient.h
16083 do
16084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 fi
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092                { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 else
16095   # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 #include <$ac_header>
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_compile") 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest.$ac_objext'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; }; then
16141   ac_header_compiler=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146         ac_header_compiler=no
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <$ac_header>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } >/dev/null; then
16177   if test -s conftest.err; then
16178     ac_cpp_err=$ac_c_preproc_warn_flag
16179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180   else
16181     ac_cpp_err=
16182   fi
16183 else
16184   ac_cpp_err=yes
16185 fi
16186 if test -z "$ac_cpp_err"; then
16187   ac_header_preproc=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192   ac_header_preproc=no
16193 fi
16194
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199 # So?  What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201   yes:no: )
16202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206     ac_header_preproc=yes
16207     ;;
16208   no:yes:* )
16209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221     ( cat <<\_ASBOX
16222 ## ------------------------------------ ##
16223 ## Report this to http://llvm.org/bugs/ ##
16224 ## ------------------------------------ ##
16225 _ASBOX
16226      ) | sed "s/^/$as_me: WARNING:     /" >&2
16227     ;;
16228 esac
16229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232   echo $ECHO_N "(cached) $ECHO_C" >&6
16233 else
16234   eval "$as_ac_Header=\$ac_header_preproc"
16235 fi
16236 ac_res=`eval echo '${'$as_ac_Header'}'`
16237                { echo "$as_me:$LINENO: result: $ac_res" >&5
16238 echo "${ECHO_T}$ac_res" >&6; }
16239
16240 fi
16241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16242   cat >>confdefs.h <<_ACEOF
16243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16244 _ACEOF
16245
16246 fi
16247
16248 done
16249
16250
16251 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16252 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259 extern const char *__crashreporter_info__;
16260       int main() {
16261         __crashreporter_info__ = "test";
16262         return 0;
16263       }
16264
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_link") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } &&
16280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281   { (case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_try") 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; } &&
16290          { ac_try='test -s conftest$ac_exeext'
16291   { (case "(($ac_try" in
16292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293   *) ac_try_echo=$ac_try;;
16294 esac
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296   (eval "$ac_try") 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; }; then
16300   { echo "$as_me:$LINENO: result: yes" >&5
16301 echo "${ECHO_T}yes" >&6; }
16302
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE_CRASHREPORTER_INFO 1
16305 _ACEOF
16306
16307 else
16308   echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311         { echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6; }
16313
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HAVE_CRASHREPORTER_INFO 0
16316 _ACEOF
16317
16318 fi
16319
16320 rm -f core conftest.err conftest.$ac_objext \
16321       conftest$ac_exeext conftest.$ac_ext
16322
16323
16324
16325
16326   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16327 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16328 if test "${ac_cv_huge_val_sanity+set}" = set; then
16329   echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331
16332     ac_ext=cpp
16333 ac_cpp='$CXXCPP $CPPFLAGS'
16334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16337
16338     ac_save_CXXFLAGS=$CXXFLAGS
16339     CXXFLAGS="$CXXFLAGS -pedantic"
16340     if test "$cross_compiling" = yes; then
16341   ac_cv_huge_val_sanity=yes
16342 else
16343   cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349 #include <math.h>
16350 int
16351 main ()
16352 {
16353 double x = HUGE_VAL; return x != x;
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest$ac_exeext
16359 if { (ac_try="$ac_link"
16360 case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_link") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369   { (case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374   (eval "$ac_try") 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }; }; then
16378   ac_cv_huge_val_sanity=yes
16379 else
16380   echo "$as_me: program exited with status $ac_status" >&5
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384 ( exit $ac_status )
16385 ac_cv_huge_val_sanity=no
16386 fi
16387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16388 fi
16389
16390
16391     CXXFLAGS=$ac_save_CXXFLAGS
16392     ac_ext=c
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16397
16398
16399 fi
16400 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16401 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16402   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16403
16404
16405 { echo "$as_me:$LINENO: checking for pid_t" >&5
16406 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16407 if test "${ac_cv_type_pid_t+set}" = set; then
16408   echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410   cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 $ac_includes_default
16417 typedef pid_t ac__type_new_;
16418 int
16419 main ()
16420 {
16421 if ((ac__type_new_ *) 0)
16422   return 0;
16423 if (sizeof (ac__type_new_))
16424   return 0;
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 rm -f conftest.$ac_objext
16430 if { (ac_try="$ac_compile"
16431 case "(($ac_try" in
16432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433   *) ac_try_echo=$ac_try;;
16434 esac
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436   (eval "$ac_compile") 2>conftest.er1
16437   ac_status=$?
16438   grep -v '^ *+' conftest.er1 >conftest.err
16439   rm -f conftest.er1
16440   cat conftest.err >&5
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } &&
16443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16444   { (case "(($ac_try" in
16445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446   *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449   (eval "$ac_try") 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }; } &&
16453          { ac_try='test -s conftest.$ac_objext'
16454   { (case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_try") 2>&5
16460   ac_status=$?
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); }; }; then
16463   ac_cv_type_pid_t=yes
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468         ac_cv_type_pid_t=no
16469 fi
16470
16471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 fi
16473 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16474 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16475 if test $ac_cv_type_pid_t = yes; then
16476   :
16477 else
16478
16479 cat >>confdefs.h <<_ACEOF
16480 #define pid_t int
16481 _ACEOF
16482
16483 fi
16484
16485 { echo "$as_me:$LINENO: checking for size_t" >&5
16486 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16487 if test "${ac_cv_type_size_t+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496 $ac_includes_default
16497 typedef size_t ac__type_new_;
16498 int
16499 main ()
16500 {
16501 if ((ac__type_new_ *) 0)
16502   return 0;
16503 if (sizeof (ac__type_new_))
16504   return 0;
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext
16510 if { (ac_try="$ac_compile"
16511 case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_compile") 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524   { (case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; } &&
16533          { ac_try='test -s conftest.$ac_objext'
16534   { (case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_try") 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; }; then
16543   ac_cv_type_size_t=yes
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_type_size_t=no
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 fi
16553 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16554 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16555 if test $ac_cv_type_size_t = yes; then
16556   :
16557 else
16558
16559 cat >>confdefs.h <<_ACEOF
16560 #define size_t unsigned int
16561 _ACEOF
16562
16563 fi
16564
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define RETSIGTYPE void
16568 _ACEOF
16569
16570 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16571 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16572 if test "${ac_cv_struct_tm+set}" = set; then
16573   echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575   cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 #include <sys/types.h>
16582 #include <time.h>
16583
16584 int
16585 main ()
16586 {
16587 struct tm *tp; tp->tm_sec;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_compile") 2>conftest.er1
16600   ac_status=$?
16601   grep -v '^ *+' conftest.er1 >conftest.err
16602   rm -f conftest.er1
16603   cat conftest.err >&5
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } &&
16606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; } &&
16616          { ac_try='test -s conftest.$ac_objext'
16617   { (case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_try") 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_struct_tm=time.h
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         ac_cv_struct_tm=sys/time.h
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 fi
16636 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16637 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16638 if test $ac_cv_struct_tm = sys/time.h; then
16639
16640 cat >>confdefs.h <<\_ACEOF
16641 #define TM_IN_SYS_TIME 1
16642 _ACEOF
16643
16644 fi
16645
16646 { echo "$as_me:$LINENO: checking for int64_t" >&5
16647 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16648 if test "${ac_cv_type_int64_t+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 $ac_includes_default
16658 typedef int64_t ac__type_new_;
16659 int
16660 main ()
16661 {
16662 if ((ac__type_new_ *) 0)
16663   return 0;
16664 if (sizeof (ac__type_new_))
16665   return 0;
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (ac_try="$ac_compile"
16672 case "(($ac_try" in
16673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674   *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677   (eval "$ac_compile") 2>conftest.er1
16678   ac_status=$?
16679   grep -v '^ *+' conftest.er1 >conftest.err
16680   rm -f conftest.er1
16681   cat conftest.err >&5
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } &&
16684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685   { (case "(($ac_try" in
16686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687   *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690   (eval "$ac_try") 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; } &&
16694          { ac_try='test -s conftest.$ac_objext'
16695   { (case "(($ac_try" in
16696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697   *) ac_try_echo=$ac_try;;
16698 esac
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700   (eval "$ac_try") 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; }; then
16704   ac_cv_type_int64_t=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709         ac_cv_type_int64_t=no
16710 fi
16711
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 fi
16714 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16715 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16716 if test $ac_cv_type_int64_t = yes; then
16717
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_INT64_T 1
16720 _ACEOF
16721
16722
16723 else
16724   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16725 echo "$as_me: error: Type int64_t required but not found" >&2;}
16726    { (exit 1); exit 1; }; }
16727 fi
16728
16729 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16730 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16731 if test "${ac_cv_type_uint64_t+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 $ac_includes_default
16741 typedef uint64_t ac__type_new_;
16742 int
16743 main ()
16744 {
16745 if ((ac__type_new_ *) 0)
16746   return 0;
16747 if (sizeof (ac__type_new_))
16748   return 0;
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_compile") 2>conftest.er1
16761   ac_status=$?
16762   grep -v '^ *+' conftest.er1 >conftest.err
16763   rm -f conftest.er1
16764   cat conftest.err >&5
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } &&
16767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768   { (case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_try") 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; } &&
16777          { ac_try='test -s conftest.$ac_objext'
16778   { (case "(($ac_try" in
16779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780   *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783   (eval "$ac_try") 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787   ac_cv_type_uint64_t=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792         ac_cv_type_uint64_t=no
16793 fi
16794
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 fi
16797 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16798 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16799 if test $ac_cv_type_uint64_t = yes; then
16800
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_UINT64_T 1
16803 _ACEOF
16804
16805
16806 else
16807   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16808 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16809 if test "${ac_cv_type_u_int64_t+set}" = set; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 $ac_includes_default
16819 typedef u_int64_t ac__type_new_;
16820 int
16821 main ()
16822 {
16823 if ((ac__type_new_ *) 0)
16824   return 0;
16825 if (sizeof (ac__type_new_))
16826   return 0;
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835   *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838   (eval "$ac_compile") 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16846   { (case "(($ac_try" in
16847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848   *) ac_try_echo=$ac_try;;
16849 esac
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851   (eval "$ac_try") 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; } &&
16855          { ac_try='test -s conftest.$ac_objext'
16856   { (case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_try") 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; }; then
16865   ac_cv_type_u_int64_t=yes
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870         ac_cv_type_u_int64_t=no
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16876 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16877 if test $ac_cv_type_u_int64_t = yes; then
16878
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_U_INT64_T 1
16881 _ACEOF
16882
16883
16884 else
16885   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16886 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16887    { (exit 1); exit 1; }; }
16888 fi
16889
16890 fi
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16902 do
16903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16907   echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909   cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16917 #define $ac_func innocuous_$ac_func
16918
16919 /* System header to define __stub macros and hopefully few prototypes,
16920     which can conflict with char $ac_func (); below.
16921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922     <limits.h> exists even on freestanding compilers.  */
16923
16924 #ifdef __STDC__
16925 # include <limits.h>
16926 #else
16927 # include <assert.h>
16928 #endif
16929
16930 #undef $ac_func
16931
16932 /* Override any GCC internal prototype to avoid an error.
16933    Use char because int might match the return type of a GCC
16934    builtin and then its argument prototype would still apply.  */
16935 #ifdef __cplusplus
16936 extern "C"
16937 #endif
16938 char $ac_func ();
16939 /* The GNU C library defines this for functions which it implements
16940     to always fail with ENOSYS.  Some functions are actually named
16941     something starting with __ and the normal name is an alias.  */
16942 #if defined __stub_$ac_func || defined __stub___$ac_func
16943 choke me
16944 #endif
16945
16946 int
16947 main ()
16948 {
16949 return $ac_func ();
16950   ;
16951   return 0;
16952 }
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (ac_try="$ac_link"
16956 case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_link") 2>conftest.er1
16962   ac_status=$?
16963   grep -v '^ *+' conftest.er1 >conftest.err
16964   rm -f conftest.er1
16965   cat conftest.err >&5
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } &&
16968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16969   { (case "(($ac_try" in
16970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971   *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974   (eval "$ac_try") 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; } &&
16978          { ac_try='test -s conftest$ac_exeext'
16979   { (case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984   (eval "$ac_try") 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); }; }; then
16988   eval "$as_ac_var=yes"
16989 else
16990   echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993         eval "$as_ac_var=no"
16994 fi
16995
16996 rm -f core conftest.err conftest.$ac_objext \
16997       conftest$ac_exeext conftest.$ac_ext
16998 fi
16999 ac_res=`eval echo '${'$as_ac_var'}'`
17000                { echo "$as_me:$LINENO: result: $ac_res" >&5
17001 echo "${ECHO_T}$ac_res" >&6; }
17002 if test `eval echo '${'$as_ac_var'}'` = yes; then
17003   cat >>confdefs.h <<_ACEOF
17004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17005 _ACEOF
17006
17007 fi
17008 done
17009
17010
17011
17012
17013
17014 for ac_func in powf fmodf strtof round
17015 do
17016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17020   echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022   cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17030 #define $ac_func innocuous_$ac_func
17031
17032 /* System header to define __stub macros and hopefully few prototypes,
17033     which can conflict with char $ac_func (); below.
17034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035     <limits.h> exists even on freestanding compilers.  */
17036
17037 #ifdef __STDC__
17038 # include <limits.h>
17039 #else
17040 # include <assert.h>
17041 #endif
17042
17043 #undef $ac_func
17044
17045 /* Override any GCC internal prototype to avoid an error.
17046    Use char because int might match the return type of a GCC
17047    builtin and then its argument prototype would still apply.  */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char $ac_func ();
17052 /* The GNU C library defines this for functions which it implements
17053     to always fail with ENOSYS.  Some functions are actually named
17054     something starting with __ and the normal name is an alias.  */
17055 #if defined __stub_$ac_func || defined __stub___$ac_func
17056 choke me
17057 #endif
17058
17059 int
17060 main ()
17061 {
17062 return $ac_func ();
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (ac_try="$ac_link"
17069 case "(($ac_try" in
17070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071   *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074   (eval "$ac_link") 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082   { (case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_try") 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; } &&
17091          { ac_try='test -s conftest$ac_exeext'
17092   { (case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_try") 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; }; then
17101   eval "$as_ac_var=yes"
17102 else
17103   echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17105
17106         eval "$as_ac_var=no"
17107 fi
17108
17109 rm -f core conftest.err conftest.$ac_objext \
17110       conftest$ac_exeext conftest.$ac_ext
17111 fi
17112 ac_res=`eval echo '${'$as_ac_var'}'`
17113                { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17115 if test `eval echo '${'$as_ac_var'}'` = yes; then
17116   cat >>confdefs.h <<_ACEOF
17117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17118 _ACEOF
17119
17120 fi
17121 done
17122
17123
17124
17125
17126
17127
17128 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17129 do
17130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17134   echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136   cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17144 #define $ac_func innocuous_$ac_func
17145
17146 /* System header to define __stub macros and hopefully few prototypes,
17147     which can conflict with char $ac_func (); below.
17148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149     <limits.h> exists even on freestanding compilers.  */
17150
17151 #ifdef __STDC__
17152 # include <limits.h>
17153 #else
17154 # include <assert.h>
17155 #endif
17156
17157 #undef $ac_func
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160    Use char because int might match the return type of a GCC
17161    builtin and then its argument prototype would still apply.  */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char $ac_func ();
17166 /* The GNU C library defines this for functions which it implements
17167     to always fail with ENOSYS.  Some functions are actually named
17168     something starting with __ and the normal name is an alias.  */
17169 #if defined __stub_$ac_func || defined __stub___$ac_func
17170 choke me
17171 #endif
17172
17173 int
17174 main ()
17175 {
17176 return $ac_func ();
17177   ;
17178   return 0;
17179 }
17180 _ACEOF
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188   (eval "$ac_link") 2>conftest.er1
17189   ac_status=$?
17190   grep -v '^ *+' conftest.er1 >conftest.err
17191   rm -f conftest.er1
17192   cat conftest.err >&5
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } &&
17195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196   { (case "(($ac_try" in
17197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198   *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201   (eval "$ac_try") 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; } &&
17205          { ac_try='test -s conftest$ac_exeext'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; }; then
17215   eval "$as_ac_var=yes"
17216 else
17217   echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220         eval "$as_ac_var=no"
17221 fi
17222
17223 rm -f core conftest.err conftest.$ac_objext \
17224       conftest$ac_exeext conftest.$ac_ext
17225 fi
17226 ac_res=`eval echo '${'$as_ac_var'}'`
17227                { echo "$as_me:$LINENO: result: $ac_res" >&5
17228 echo "${ECHO_T}$ac_res" >&6; }
17229 if test `eval echo '${'$as_ac_var'}'` = yes; then
17230   cat >>confdefs.h <<_ACEOF
17231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17232 _ACEOF
17233
17234 fi
17235 done
17236
17237
17238
17239
17240 for ac_func in isatty mkdtemp mkstemp
17241 do
17242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17256 #define $ac_func innocuous_$ac_func
17257
17258 /* System header to define __stub macros and hopefully few prototypes,
17259     which can conflict with char $ac_func (); below.
17260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261     <limits.h> exists even on freestanding compilers.  */
17262
17263 #ifdef __STDC__
17264 # include <limits.h>
17265 #else
17266 # include <assert.h>
17267 #endif
17268
17269 #undef $ac_func
17270
17271 /* Override any GCC internal prototype to avoid an error.
17272    Use char because int might match the return type of a GCC
17273    builtin and then its argument prototype would still apply.  */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 char $ac_func ();
17278 /* The GNU C library defines this for functions which it implements
17279     to always fail with ENOSYS.  Some functions are actually named
17280     something starting with __ and the normal name is an alias.  */
17281 #if defined __stub_$ac_func || defined __stub___$ac_func
17282 choke me
17283 #endif
17284
17285 int
17286 main ()
17287 {
17288 return $ac_func ();
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_link") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } &&
17307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308   { (case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_try") 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; } &&
17317          { ac_try='test -s conftest$ac_exeext'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   eval "$as_ac_var=yes"
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332         eval "$as_ac_var=no"
17333 fi
17334
17335 rm -f core conftest.err conftest.$ac_objext \
17336       conftest$ac_exeext conftest.$ac_ext
17337 fi
17338 ac_res=`eval echo '${'$as_ac_var'}'`
17339                { echo "$as_me:$LINENO: result: $ac_res" >&5
17340 echo "${ECHO_T}$ac_res" >&6; }
17341 if test `eval echo '${'$as_ac_var'}'` = yes; then
17342   cat >>confdefs.h <<_ACEOF
17343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17344 _ACEOF
17345
17346 fi
17347 done
17348
17349
17350
17351
17352
17353
17354
17355
17356 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17357 do
17358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h.  */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h.  */
17370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17372 #define $ac_func innocuous_$ac_func
17373
17374 /* System header to define __stub macros and hopefully few prototypes,
17375     which can conflict with char $ac_func (); below.
17376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377     <limits.h> exists even on freestanding compilers.  */
17378
17379 #ifdef __STDC__
17380 # include <limits.h>
17381 #else
17382 # include <assert.h>
17383 #endif
17384
17385 #undef $ac_func
17386
17387 /* Override any GCC internal prototype to avoid an error.
17388    Use char because int might match the return type of a GCC
17389    builtin and then its argument prototype would still apply.  */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 char $ac_func ();
17394 /* The GNU C library defines this for functions which it implements
17395     to always fail with ENOSYS.  Some functions are actually named
17396     something starting with __ and the normal name is an alias.  */
17397 #if defined __stub_$ac_func || defined __stub___$ac_func
17398 choke me
17399 #endif
17400
17401 int
17402 main ()
17403 {
17404 return $ac_func ();
17405   ;
17406   return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (ac_try="$ac_link"
17411 case "(($ac_try" in
17412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413   *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416   (eval "$ac_link") 2>conftest.er1
17417   ac_status=$?
17418   grep -v '^ *+' conftest.er1 >conftest.err
17419   rm -f conftest.er1
17420   cat conftest.err >&5
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); } &&
17423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17424   { (case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429   (eval "$ac_try") 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; } &&
17433          { ac_try='test -s conftest$ac_exeext'
17434   { (case "(($ac_try" in
17435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436   *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439   (eval "$ac_try") 2>&5
17440   ac_status=$?
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }; }; then
17443   eval "$as_ac_var=yes"
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448         eval "$as_ac_var=no"
17449 fi
17450
17451 rm -f core conftest.err conftest.$ac_objext \
17452       conftest$ac_exeext conftest.$ac_ext
17453 fi
17454 ac_res=`eval echo '${'$as_ac_var'}'`
17455                { echo "$as_me:$LINENO: result: $ac_res" >&5
17456 echo "${ECHO_T}$ac_res" >&6; }
17457 if test `eval echo '${'$as_ac_var'}'` = yes; then
17458   cat >>confdefs.h <<_ACEOF
17459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460 _ACEOF
17461
17462 fi
17463 done
17464
17465
17466
17467
17468
17469 for ac_func in strerror strerror_r setenv arc4random
17470 do
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17485 #define $ac_func innocuous_$ac_func
17486
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char $ac_func (); below.
17489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490     <limits.h> exists even on freestanding compilers.  */
17491
17492 #ifdef __STDC__
17493 # include <limits.h>
17494 #else
17495 # include <assert.h>
17496 #endif
17497
17498 #undef $ac_func
17499
17500 /* Override any GCC internal prototype to avoid an error.
17501    Use char because int might match the return type of a GCC
17502    builtin and then its argument prototype would still apply.  */
17503 #ifdef __cplusplus
17504 extern "C"
17505 #endif
17506 char $ac_func ();
17507 /* The GNU C library defines this for functions which it implements
17508     to always fail with ENOSYS.  Some functions are actually named
17509     something starting with __ and the normal name is an alias.  */
17510 #if defined __stub_$ac_func || defined __stub___$ac_func
17511 choke me
17512 #endif
17513
17514 int
17515 main ()
17516 {
17517 return $ac_func ();
17518   ;
17519   return 0;
17520 }
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526   *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529   (eval "$ac_link") 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } &&
17536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537   { (case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_try") 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; } &&
17546          { ac_try='test -s conftest$ac_exeext'
17547   { (case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552   (eval "$ac_try") 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }; }; then
17556   eval "$as_ac_var=yes"
17557 else
17558   echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561         eval "$as_ac_var=no"
17562 fi
17563
17564 rm -f core conftest.err conftest.$ac_objext \
17565       conftest$ac_exeext conftest.$ac_ext
17566 fi
17567 ac_res=`eval echo '${'$as_ac_var'}'`
17568                { echo "$as_me:$LINENO: result: $ac_res" >&5
17569 echo "${ECHO_T}$ac_res" >&6; }
17570 if test `eval echo '${'$as_ac_var'}'` = yes; then
17571   cat >>confdefs.h <<_ACEOF
17572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17573 _ACEOF
17574
17575 fi
17576 done
17577
17578
17579
17580
17581
17582 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17583 do
17584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h.  */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h.  */
17596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17598 #define $ac_func innocuous_$ac_func
17599
17600 /* System header to define __stub macros and hopefully few prototypes,
17601     which can conflict with char $ac_func (); below.
17602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603     <limits.h> exists even on freestanding compilers.  */
17604
17605 #ifdef __STDC__
17606 # include <limits.h>
17607 #else
17608 # include <assert.h>
17609 #endif
17610
17611 #undef $ac_func
17612
17613 /* Override any GCC internal prototype to avoid an error.
17614    Use char because int might match the return type of a GCC
17615    builtin and then its argument prototype would still apply.  */
17616 #ifdef __cplusplus
17617 extern "C"
17618 #endif
17619 char $ac_func ();
17620 /* The GNU C library defines this for functions which it implements
17621     to always fail with ENOSYS.  Some functions are actually named
17622     something starting with __ and the normal name is an alias.  */
17623 #if defined __stub_$ac_func || defined __stub___$ac_func
17624 choke me
17625 #endif
17626
17627 int
17628 main ()
17629 {
17630 return $ac_func ();
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext conftest$ac_exeext
17636 if { (ac_try="$ac_link"
17637 case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642   (eval "$ac_link") 2>conftest.er1
17643   ac_status=$?
17644   grep -v '^ *+' conftest.er1 >conftest.err
17645   rm -f conftest.er1
17646   cat conftest.err >&5
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } &&
17649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17650   { (case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_try") 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; } &&
17659          { ac_try='test -s conftest$ac_exeext'
17660   { (case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_try") 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; }; then
17669   eval "$as_ac_var=yes"
17670 else
17671   echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674         eval "$as_ac_var=no"
17675 fi
17676
17677 rm -f core conftest.err conftest.$ac_objext \
17678       conftest$ac_exeext conftest.$ac_ext
17679 fi
17680 ac_res=`eval echo '${'$as_ac_var'}'`
17681                { echo "$as_me:$LINENO: result: $ac_res" >&5
17682 echo "${ECHO_T}$ac_res" >&6; }
17683 if test `eval echo '${'$as_ac_var'}'` = yes; then
17684   cat >>confdefs.h <<_ACEOF
17685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686 _ACEOF
17687
17688 fi
17689 done
17690
17691
17692
17693
17694
17695
17696 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17697 do
17698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17702   echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704   cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h.  */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h.  */
17710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17712 #define $ac_func innocuous_$ac_func
17713
17714 /* System header to define __stub macros and hopefully few prototypes,
17715     which can conflict with char $ac_func (); below.
17716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717     <limits.h> exists even on freestanding compilers.  */
17718
17719 #ifdef __STDC__
17720 # include <limits.h>
17721 #else
17722 # include <assert.h>
17723 #endif
17724
17725 #undef $ac_func
17726
17727 /* Override any GCC internal prototype to avoid an error.
17728    Use char because int might match the return type of a GCC
17729    builtin and then its argument prototype would still apply.  */
17730 #ifdef __cplusplus
17731 extern "C"
17732 #endif
17733 char $ac_func ();
17734 /* The GNU C library defines this for functions which it implements
17735     to always fail with ENOSYS.  Some functions are actually named
17736     something starting with __ and the normal name is an alias.  */
17737 #if defined __stub_$ac_func || defined __stub___$ac_func
17738 choke me
17739 #endif
17740
17741 int
17742 main ()
17743 {
17744 return $ac_func ();
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753   *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756   (eval "$ac_link") 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764   { (case "(($ac_try" in
17765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766   *) ac_try_echo=$ac_try;;
17767 esac
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769   (eval "$ac_try") 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; } &&
17773          { ac_try='test -s conftest$ac_exeext'
17774   { (case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_try") 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   eval "$as_ac_var=yes"
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788         eval "$as_ac_var=no"
17789 fi
17790
17791 rm -f core conftest.err conftest.$ac_objext \
17792       conftest$ac_exeext conftest.$ac_ext
17793 fi
17794 ac_res=`eval echo '${'$as_ac_var'}'`
17795                { echo "$as_me:$LINENO: result: $ac_res" >&5
17796 echo "${ECHO_T}$ac_res" >&6; }
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798   cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800 _ACEOF
17801
17802 fi
17803 done
17804
17805 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17806 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17807 if test "${llvm_cv_c_printf_a+set}" = set; then
17808   echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810   ac_ext=c
17811 ac_cpp='$CPP $CPPFLAGS'
17812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17815
17816  if test "$cross_compiling" = yes; then
17817   llvmac_cv_c_printf_a=no
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820
17821   /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826
17827 #include <stdio.h>
17828 #include <stdlib.h>
17829
17830 int
17831 main ()
17832 {
17833
17834 volatile double A, B;
17835 char Buffer[100];
17836 A = 1;
17837 A /= 10.0;
17838 sprintf(Buffer, "%a", A);
17839 B = atof(Buffer);
17840 if (A != B)
17841   return (1);
17842 if (A != 0x1.999999999999ap-4)
17843   return (1);
17844 return (0);
17845   ;
17846   return 0;
17847 }
17848 _ACEOF
17849 rm -f conftest$ac_exeext
17850 if { (ac_try="$ac_link"
17851 case "(($ac_try" in
17852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853   *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856   (eval "$ac_link") 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17860   { (case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865   (eval "$ac_try") 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; }; then
17869   llvm_cv_c_printf_a=yes
17870 else
17871   echo "$as_me: program exited with status $ac_status" >&5
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ( exit $ac_status )
17876 llvmac_cv_c_printf_a=no
17877 fi
17878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17879 fi
17880
17881
17882  ac_ext=c
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
17888 fi
17889 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17890 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17891  if test "$llvm_cv_c_printf_a" = "yes"; then
17892
17893 cat >>confdefs.h <<\_ACEOF
17894 #define HAVE_PRINTF_A 1
17895 _ACEOF
17896
17897  fi
17898
17899
17900 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17901 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17902 if test "${ac_cv_func_rand48+set}" = set; then
17903   echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905   ac_ext=cpp
17906 ac_cpp='$CXXCPP $CPPFLAGS'
17907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17910
17911    cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 #include <stdlib.h>
17918 int
17919 main ()
17920 {
17921 srand48(0);lrand48();drand48();
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933   (eval "$ac_compile") 2>conftest.er1
17934   ac_status=$?
17935   grep -v '^ *+' conftest.er1 >conftest.err
17936   rm -f conftest.er1
17937   cat conftest.err >&5
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); } &&
17940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941   { (case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_try") 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; } &&
17950          { ac_try='test -s conftest.$ac_objext'
17951   { (case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_try") 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; }; then
17960   ac_cv_func_rand48=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965         ac_cv_func_rand48=no
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969   ac_ext=c
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975 fi
17976 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17977 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17978
17979 if test "$ac_cv_func_rand48" = "yes" ; then
17980
17981 cat >>confdefs.h <<\_ACEOF
17982 #define HAVE_RAND48 1
17983 _ACEOF
17984
17985 fi
17986
17987
17988 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17989 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17990 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999 $ac_includes_default
18000 int
18001 main ()
18002 {
18003 #ifndef strerror_s
18004   char *p = (char *) strerror_s;
18005   return !p;
18006 #endif
18007
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016   *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019   (eval "$ac_compile") 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } &&
18026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027   { (case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_try") 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } &&
18036          { ac_try='test -s conftest.$ac_objext'
18037   { (case "(($ac_try" in
18038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039   *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042   (eval "$ac_try") 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }; }; then
18046   ac_cv_have_decl_strerror_s=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051         ac_cv_have_decl_strerror_s=no
18052 fi
18053
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 fi
18056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18057 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18058 if test $ac_cv_have_decl_strerror_s = yes; then
18059
18060 cat >>confdefs.h <<_ACEOF
18061 #define HAVE_DECL_STRERROR_S 1
18062 _ACEOF
18063
18064
18065 else
18066   cat >>confdefs.h <<_ACEOF
18067 #define HAVE_DECL_STRERROR_S 0
18068 _ACEOF
18069
18070
18071 fi
18072
18073
18074
18075 if test "$llvm_cv_os_type" = "MingW" ; then
18076   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18077 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18078 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081   ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-lgcc  $LIBS"
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089
18090 /* Override any GCC internal prototype to avoid an error.
18091    Use char because int might match the return type of a GCC
18092    builtin and then its argument prototype would still apply.  */
18093 #ifdef __cplusplus
18094 extern "C"
18095 #endif
18096 char _alloca ();
18097 int
18098 main ()
18099 {
18100 return _alloca ();
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_link") 2>conftest.er1
18113   ac_status=$?
18114   grep -v '^ *+' conftest.er1 >conftest.err
18115   rm -f conftest.er1
18116   cat conftest.err >&5
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } &&
18119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120   { (case "(($ac_try" in
18121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122   *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125   (eval "$ac_try") 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; } &&
18129          { ac_try='test -s conftest$ac_exeext'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; }; then
18139   ac_cv_lib_gcc__alloca=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18143
18144         ac_cv_lib_gcc__alloca=no
18145 fi
18146
18147 rm -f core conftest.err conftest.$ac_objext \
18148       conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18150 fi
18151 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18152 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18153 if test $ac_cv_lib_gcc__alloca = yes; then
18154
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE__ALLOCA 1
18157 _ACEOF
18158
18159 fi
18160
18161   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18162 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18163 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166   ac_check_lib_save_LIBS=$LIBS
18167 LIBS="-lgcc  $LIBS"
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174
18175 /* Override any GCC internal prototype to avoid an error.
18176    Use char because int might match the return type of a GCC
18177    builtin and then its argument prototype would still apply.  */
18178 #ifdef __cplusplus
18179 extern "C"
18180 #endif
18181 char __alloca ();
18182 int
18183 main ()
18184 {
18185 return __alloca ();
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_link") 2>conftest.er1
18198   ac_status=$?
18199   grep -v '^ *+' conftest.er1 >conftest.err
18200   rm -f conftest.er1
18201   cat conftest.err >&5
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } &&
18204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205   { (case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210   (eval "$ac_try") 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; } &&
18214          { ac_try='test -s conftest$ac_exeext'
18215   { (case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220   (eval "$ac_try") 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_cv_lib_gcc___alloca=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229         ac_cv_lib_gcc___alloca=no
18230 fi
18231
18232 rm -f core conftest.err conftest.$ac_objext \
18233       conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18235 fi
18236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18237 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18238 if test $ac_cv_lib_gcc___alloca = yes; then
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE___ALLOCA 1
18242 _ACEOF
18243
18244 fi
18245
18246   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18247 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-lgcc  $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259
18260 /* Override any GCC internal prototype to avoid an error.
18261    Use char because int might match the return type of a GCC
18262    builtin and then its argument prototype would still apply.  */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 char __chkstk ();
18267 int
18268 main ()
18269 {
18270 return __chkstk ();
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_link") 2>conftest.er1
18283   ac_status=$?
18284   grep -v '^ *+' conftest.er1 >conftest.err
18285   rm -f conftest.er1
18286   cat conftest.err >&5
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } &&
18289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290   { (case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; } &&
18299          { ac_try='test -s conftest$ac_exeext'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; }; then
18309   ac_cv_lib_gcc___chkstk=yes
18310 else
18311   echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314         ac_cv_lib_gcc___chkstk=no
18315 fi
18316
18317 rm -f core conftest.err conftest.$ac_objext \
18318       conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18320 fi
18321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18322 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18323 if test $ac_cv_lib_gcc___chkstk = yes; then
18324
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE___CHKSTK 1
18327 _ACEOF
18328
18329 fi
18330
18331   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18332 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18333 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18334   echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336   ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-lgcc  $LIBS"
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344
18345 /* Override any GCC internal prototype to avoid an error.
18346    Use char because int might match the return type of a GCC
18347    builtin and then its argument prototype would still apply.  */
18348 #ifdef __cplusplus
18349 extern "C"
18350 #endif
18351 char ___chkstk ();
18352 int
18353 main ()
18354 {
18355 return ___chkstk ();
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_link") 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } &&
18374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375   { (case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_try") 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (case "(($ac_try" in
18386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387   *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390   (eval "$ac_try") 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; }; then
18394   ac_cv_lib_gcc____chkstk=yes
18395 else
18396   echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399         ac_cv_lib_gcc____chkstk=no
18400 fi
18401
18402 rm -f core conftest.err conftest.$ac_objext \
18403       conftest$ac_exeext conftest.$ac_ext
18404 LIBS=$ac_check_lib_save_LIBS
18405 fi
18406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18407 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18408 if test $ac_cv_lib_gcc____chkstk = yes; then
18409
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE____CHKSTK 1
18412 _ACEOF
18413
18414 fi
18415
18416
18417   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18418 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18419 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18420   echo $ECHO_N "(cached) $ECHO_C" >&6
18421 else
18422   ac_check_lib_save_LIBS=$LIBS
18423 LIBS="-lgcc  $LIBS"
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430
18431 /* Override any GCC internal prototype to avoid an error.
18432    Use char because int might match the return type of a GCC
18433    builtin and then its argument prototype would still apply.  */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 char __ashldi3 ();
18438 int
18439 main ()
18440 {
18441 return __ashldi3 ();
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_link") 2>conftest.er1
18454   ac_status=$?
18455   grep -v '^ *+' conftest.er1 >conftest.err
18456   rm -f conftest.er1
18457   cat conftest.err >&5
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); } &&
18460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461   { (case "(($ac_try" in
18462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463   *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466   (eval "$ac_try") 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; } &&
18470          { ac_try='test -s conftest$ac_exeext'
18471   { (case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_try") 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; }; then
18480   ac_cv_lib_gcc___ashldi3=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485         ac_cv_lib_gcc___ashldi3=no
18486 fi
18487
18488 rm -f core conftest.err conftest.$ac_objext \
18489       conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18491 fi
18492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18493 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18494 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18495
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE___ASHLDI3 1
18498 _ACEOF
18499
18500 fi
18501
18502   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18503 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   ac_check_lib_save_LIBS=$LIBS
18508 LIBS="-lgcc  $LIBS"
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515
18516 /* Override any GCC internal prototype to avoid an error.
18517    Use char because int might match the return type of a GCC
18518    builtin and then its argument prototype would still apply.  */
18519 #ifdef __cplusplus
18520 extern "C"
18521 #endif
18522 char __ashrdi3 ();
18523 int
18524 main ()
18525 {
18526 return __ashrdi3 ();
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_link") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } &&
18545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546   { (case "(($ac_try" in
18547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548   *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551   (eval "$ac_try") 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest$ac_exeext'
18556   { (case "(($ac_try" in
18557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558   *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561   (eval "$ac_try") 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; }; then
18565   ac_cv_lib_gcc___ashrdi3=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570         ac_cv_lib_gcc___ashrdi3=no
18571 fi
18572
18573 rm -f core conftest.err conftest.$ac_objext \
18574       conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18576 fi
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18579 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18580
18581 cat >>confdefs.h <<\_ACEOF
18582 #define HAVE___ASHRDI3 1
18583 _ACEOF
18584
18585 fi
18586
18587   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18588 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   ac_check_lib_save_LIBS=$LIBS
18593 LIBS="-lgcc  $LIBS"
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h.  */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h.  */
18600
18601 /* Override any GCC internal prototype to avoid an error.
18602    Use char because int might match the return type of a GCC
18603    builtin and then its argument prototype would still apply.  */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char __divdi3 ();
18608 int
18609 main ()
18610 {
18611 return __divdi3 ();
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_link") 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } &&
18630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631   { (case "(($ac_try" in
18632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633   *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636   (eval "$ac_try") 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; } &&
18640          { ac_try='test -s conftest$ac_exeext'
18641   { (case "(($ac_try" in
18642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643   *) ac_try_echo=$ac_try;;
18644 esac
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646   (eval "$ac_try") 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); }; }; then
18650   ac_cv_lib_gcc___divdi3=yes
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655         ac_cv_lib_gcc___divdi3=no
18656 fi
18657
18658 rm -f core conftest.err conftest.$ac_objext \
18659       conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18661 fi
18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18663 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18664 if test $ac_cv_lib_gcc___divdi3 = yes; then
18665
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE___DIVDI3 1
18668 _ACEOF
18669
18670 fi
18671
18672   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18673 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18674 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18675   echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677   ac_check_lib_save_LIBS=$LIBS
18678 LIBS="-lgcc  $LIBS"
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h.  */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h.  */
18685
18686 /* Override any GCC internal prototype to avoid an error.
18687    Use char because int might match the return type of a GCC
18688    builtin and then its argument prototype would still apply.  */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char __fixdfdi ();
18693 int
18694 main ()
18695 {
18696 return __fixdfdi ();
18697   ;
18698   return 0;
18699 }
18700 _ACEOF
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_link") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716   { (case "(($ac_try" in
18717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718   *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721   (eval "$ac_try") 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; } &&
18725          { ac_try='test -s conftest$ac_exeext'
18726   { (case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_try") 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_cv_lib_gcc___fixdfdi=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_cv_lib_gcc___fixdfdi=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext \
18744       conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18746 fi
18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18748 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18749 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18750
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE___FIXDFDI 1
18753 _ACEOF
18754
18755 fi
18756
18757   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18758 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18759 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18760   echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762   ac_check_lib_save_LIBS=$LIBS
18763 LIBS="-lgcc  $LIBS"
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770
18771 /* Override any GCC internal prototype to avoid an error.
18772    Use char because int might match the return type of a GCC
18773    builtin and then its argument prototype would still apply.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 char __fixsfdi ();
18778 int
18779 main ()
18780 {
18781 return __fixsfdi ();
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_link") 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } &&
18800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801   { (case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_try") 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; } &&
18810          { ac_try='test -s conftest$ac_exeext'
18811   { (case "(($ac_try" in
18812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813   *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816   (eval "$ac_try") 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; }; then
18820   ac_cv_lib_gcc___fixsfdi=yes
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825         ac_cv_lib_gcc___fixsfdi=no
18826 fi
18827
18828 rm -f core conftest.err conftest.$ac_objext \
18829       conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18831 fi
18832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18833 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18834 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18835
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE___FIXSFDI 1
18838 _ACEOF
18839
18840 fi
18841
18842   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18843 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18844 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   ac_check_lib_save_LIBS=$LIBS
18848 LIBS="-lgcc  $LIBS"
18849 cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855
18856 /* Override any GCC internal prototype to avoid an error.
18857    Use char because int might match the return type of a GCC
18858    builtin and then its argument prototype would still apply.  */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char __floatdidf ();
18863 int
18864 main ()
18865 {
18866 return __floatdidf ();
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_link") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886   { (case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_try") 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; } &&
18895          { ac_try='test -s conftest$ac_exeext'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; }; then
18905   ac_cv_lib_gcc___floatdidf=yes
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910         ac_cv_lib_gcc___floatdidf=no
18911 fi
18912
18913 rm -f core conftest.err conftest.$ac_objext \
18914       conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18916 fi
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18918 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18919 if test $ac_cv_lib_gcc___floatdidf = yes; then
18920
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE___FLOATDIDF 1
18923 _ACEOF
18924
18925 fi
18926
18927   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18928 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   ac_check_lib_save_LIBS=$LIBS
18933 LIBS="-lgcc  $LIBS"
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940
18941 /* Override any GCC internal prototype to avoid an error.
18942    Use char because int might match the return type of a GCC
18943    builtin and then its argument prototype would still apply.  */
18944 #ifdef __cplusplus
18945 extern "C"
18946 #endif
18947 char __lshrdi3 ();
18948 int
18949 main ()
18950 {
18951 return __lshrdi3 ();
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_link") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } &&
18970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971   { (case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_try") 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); }; } &&
18980          { ac_try='test -s conftest$ac_exeext'
18981   { (case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986   (eval "$ac_try") 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); }; }; then
18990   ac_cv_lib_gcc___lshrdi3=yes
18991 else
18992   echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         ac_cv_lib_gcc___lshrdi3=no
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext \
18999       conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19001 fi
19002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19003 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19004 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19005
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE___LSHRDI3 1
19008 _ACEOF
19009
19010 fi
19011
19012   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19013 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19014 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017   ac_check_lib_save_LIBS=$LIBS
19018 LIBS="-lgcc  $LIBS"
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025
19026 /* Override any GCC internal prototype to avoid an error.
19027    Use char because int might match the return type of a GCC
19028    builtin and then its argument prototype would still apply.  */
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032 char __moddi3 ();
19033 int
19034 main ()
19035 {
19036 return __moddi3 ();
19037   ;
19038   return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_link") 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } &&
19055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056   { (case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_try") 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest$ac_exeext'
19066   { (case "(($ac_try" in
19067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068   *) ac_try_echo=$ac_try;;
19069 esac
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071   (eval "$ac_try") 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; }; then
19075   ac_cv_lib_gcc___moddi3=yes
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080         ac_cv_lib_gcc___moddi3=no
19081 fi
19082
19083 rm -f core conftest.err conftest.$ac_objext \
19084       conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19086 fi
19087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19088 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19089 if test $ac_cv_lib_gcc___moddi3 = yes; then
19090
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE___MODDI3 1
19093 _ACEOF
19094
19095 fi
19096
19097   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19098 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19099 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19100   echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102   ac_check_lib_save_LIBS=$LIBS
19103 LIBS="-lgcc  $LIBS"
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110
19111 /* Override any GCC internal prototype to avoid an error.
19112    Use char because int might match the return type of a GCC
19113    builtin and then its argument prototype would still apply.  */
19114 #ifdef __cplusplus
19115 extern "C"
19116 #endif
19117 char __udivdi3 ();
19118 int
19119 main ()
19120 {
19121 return __udivdi3 ();
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_link") 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } &&
19140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; } &&
19150          { ac_try='test -s conftest$ac_exeext'
19151   { (case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_try") 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; }; then
19160   ac_cv_lib_gcc___udivdi3=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165         ac_cv_lib_gcc___udivdi3=no
19166 fi
19167
19168 rm -f core conftest.err conftest.$ac_objext \
19169       conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19171 fi
19172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19173 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19174 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE___UDIVDI3 1
19178 _ACEOF
19179
19180 fi
19181
19182   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19183 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19184 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19185   echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187   ac_check_lib_save_LIBS=$LIBS
19188 LIBS="-lgcc  $LIBS"
19189 cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195
19196 /* Override any GCC internal prototype to avoid an error.
19197    Use char because int might match the return type of a GCC
19198    builtin and then its argument prototype would still apply.  */
19199 #ifdef __cplusplus
19200 extern "C"
19201 #endif
19202 char __umoddi3 ();
19203 int
19204 main ()
19205 {
19206 return __umoddi3 ();
19207   ;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_link") 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } &&
19225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226   { (case "(($ac_try" in
19227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228   *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231   (eval "$ac_try") 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; } &&
19235          { ac_try='test -s conftest$ac_exeext'
19236   { (case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241   (eval "$ac_try") 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   ac_cv_lib_gcc___umoddi3=yes
19246 else
19247   echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250         ac_cv_lib_gcc___umoddi3=no
19251 fi
19252
19253 rm -f core conftest.err conftest.$ac_objext \
19254       conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19256 fi
19257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19258 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19259 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19260
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE___UMODDI3 1
19263 _ACEOF
19264
19265 fi
19266
19267
19268   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19269 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19270 if test "${ac_cv_lib_gcc___main+set}" = set; then
19271   echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273   ac_check_lib_save_LIBS=$LIBS
19274 LIBS="-lgcc  $LIBS"
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281
19282 /* Override any GCC internal prototype to avoid an error.
19283    Use char because int might match the return type of a GCC
19284    builtin and then its argument prototype would still apply.  */
19285 #ifdef __cplusplus
19286 extern "C"
19287 #endif
19288 char __main ();
19289 int
19290 main ()
19291 {
19292 return __main ();
19293   ;
19294   return 0;
19295 }
19296 _ACEOF
19297 rm -f conftest.$ac_objext conftest$ac_exeext
19298 if { (ac_try="$ac_link"
19299 case "(($ac_try" in
19300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301   *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304   (eval "$ac_link") 2>conftest.er1
19305   ac_status=$?
19306   grep -v '^ *+' conftest.er1 >conftest.err
19307   rm -f conftest.er1
19308   cat conftest.err >&5
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } &&
19311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19312   { (case "(($ac_try" in
19313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314   *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317   (eval "$ac_try") 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; } &&
19321          { ac_try='test -s conftest$ac_exeext'
19322   { (case "(($ac_try" in
19323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324   *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327   (eval "$ac_try") 2>&5
19328   ac_status=$?
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); }; }; then
19331   ac_cv_lib_gcc___main=yes
19332 else
19333   echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19335
19336         ac_cv_lib_gcc___main=no
19337 fi
19338
19339 rm -f core conftest.err conftest.$ac_objext \
19340       conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19342 fi
19343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19344 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19345 if test $ac_cv_lib_gcc___main = yes; then
19346
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE___MAIN 1
19349 _ACEOF
19350
19351 fi
19352
19353   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19354 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19355 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19356   echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358   ac_check_lib_save_LIBS=$LIBS
19359 LIBS="-lgcc  $LIBS"
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h.  */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h.  */
19366
19367 /* Override any GCC internal prototype to avoid an error.
19368    Use char because int might match the return type of a GCC
19369    builtin and then its argument prototype would still apply.  */
19370 #ifdef __cplusplus
19371 extern "C"
19372 #endif
19373 char __cmpdi2 ();
19374 int
19375 main ()
19376 {
19377 return __cmpdi2 ();
19378   ;
19379   return 0;
19380 }
19381 _ACEOF
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386   *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389   (eval "$ac_link") 2>conftest.er1
19390   ac_status=$?
19391   grep -v '^ *+' conftest.er1 >conftest.err
19392   rm -f conftest.er1
19393   cat conftest.err >&5
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); } &&
19396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397   { (case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_try") 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; } &&
19406          { ac_try='test -s conftest$ac_exeext'
19407   { (case "(($ac_try" in
19408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409   *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412   (eval "$ac_try") 2>&5
19413   ac_status=$?
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); }; }; then
19416   ac_cv_lib_gcc___cmpdi2=yes
19417 else
19418   echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421         ac_cv_lib_gcc___cmpdi2=no
19422 fi
19423
19424 rm -f core conftest.err conftest.$ac_objext \
19425       conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19427 fi
19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19429 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19430 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19431
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE___CMPDI2 1
19434 _ACEOF
19435
19436 fi
19437
19438 fi
19439
19440 if test "$llvm_cv_os_type" = "MingW" ; then
19441   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19442 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19443   cat >conftest.$ac_ext <<_ACEOF
19444 #include <windows.h>
19445 #include <imagehlp.h>
19446 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19447 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456   (eval "$ac_compile") 2>conftest.er1
19457   ac_status=$?
19458   grep -v '^ *+' conftest.er1 >conftest.err
19459   rm -f conftest.er1
19460   cat conftest.err >&5
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); } &&
19463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; } &&
19473          { ac_try='test -s conftest.$ac_objext'
19474   { (case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_try") 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; }; then
19483
19484   { echo "$as_me:$LINENO: result: yes" >&5
19485 echo "${ECHO_T}yes" >&6; }
19486   llvm_cv_win32_elmcb_pcstr="PCSTR"
19487
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492
19493   { echo "$as_me:$LINENO: result: no" >&5
19494 echo "${ECHO_T}no" >&6; }
19495   llvm_cv_win32_elmcb_pcstr="PSTR"
19496
19497 fi
19498
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500
19501 cat >>confdefs.h <<_ACEOF
19502 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19503 _ACEOF
19504
19505 fi
19506
19507
19508 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19509 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19510 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   ac_ext=cpp
19514 ac_cpp='$CXXCPP $CPPFLAGS'
19515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19518
19519    cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525 #include <math.h>
19526 int
19527 main ()
19528 {
19529 float f; isnan(f);
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541   (eval "$ac_compile") 2>conftest.er1
19542   ac_status=$?
19543   grep -v '^ *+' conftest.er1 >conftest.err
19544   rm -f conftest.er1
19545   cat conftest.err >&5
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); } &&
19548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19549   { (case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_try") 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; } &&
19558          { ac_try='test -s conftest.$ac_objext'
19559   { (case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_try") 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_cv_func_isnan_in_math_h=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573         ac_cv_func_isnan_in_math_h=no
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577   ac_ext=c
19578 ac_cpp='$CPP $CPPFLAGS'
19579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582
19583 fi
19584 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19585 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19586
19587
19588 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19589
19590 cat >>confdefs.h <<\_ACEOF
19591 #define HAVE_ISNAN_IN_MATH_H 1
19592 _ACEOF
19593
19594 fi
19595
19596 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19597 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19598 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19599   echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601   ac_ext=cpp
19602 ac_cpp='$CXXCPP $CPPFLAGS'
19603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606
19607    cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #include <cmath>
19614 int
19615 main ()
19616 {
19617 float f; isnan(f);
19618   ;
19619   return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (ac_try="$ac_compile"
19624 case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_compile") 2>conftest.er1
19630   ac_status=$?
19631   grep -v '^ *+' conftest.er1 >conftest.err
19632   rm -f conftest.er1
19633   cat conftest.err >&5
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } &&
19636          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19637   { (case "(($ac_try" in
19638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639   *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642   (eval "$ac_try") 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest.$ac_objext'
19647   { (case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652   (eval "$ac_try") 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; }; then
19656   ac_cv_func_isnan_in_cmath=yes
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661         ac_cv_func_isnan_in_cmath=no
19662 fi
19663
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665   ac_ext=c
19666 ac_cpp='$CPP $CPPFLAGS'
19667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670
19671 fi
19672 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19673 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19674
19675 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19676
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_ISNAN_IN_CMATH 1
19679 _ACEOF
19680
19681 fi
19682
19683 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19684 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19685 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19686   echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688   ac_ext=cpp
19689 ac_cpp='$CXXCPP $CPPFLAGS'
19690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
19694    cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700 #include <cmath>
19701 int
19702 main ()
19703 {
19704 float f; std::isnan(f);
19705   ;
19706   return 0;
19707 }
19708 _ACEOF
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713   *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716   (eval "$ac_compile") 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19724   { (case "(($ac_try" in
19725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726   *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729   (eval "$ac_try") 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; } &&
19733          { ac_try='test -s conftest.$ac_objext'
19734   { (case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739   (eval "$ac_try") 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); }; }; then
19743   ac_cv_func_std_isnan_in_cmath=yes
19744 else
19745   echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19747
19748         ac_cv_func_std_isnan_in_cmath=no
19749 fi
19750
19751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752   ac_ext=c
19753 ac_cpp='$CPP $CPPFLAGS'
19754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757
19758 fi
19759 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19760 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19761
19762 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19763
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_STD_ISNAN_IN_CMATH 1
19766 _ACEOF
19767
19768 fi
19769
19770
19771 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19772 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19773 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19774   echo $ECHO_N "(cached) $ECHO_C" >&6
19775 else
19776   ac_ext=cpp
19777 ac_cpp='$CXXCPP $CPPFLAGS'
19778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19781
19782    cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h.  */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h.  */
19788 #include <math.h>
19789 int
19790 main ()
19791 {
19792 float f; isinf(f);
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804   (eval "$ac_compile") 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } &&
19811          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19812   { (case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_try") 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; } &&
19821          { ac_try='test -s conftest.$ac_objext'
19822   { (case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827   (eval "$ac_try") 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   ac_cv_func_isinf_in_math_h=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836         ac_cv_func_isinf_in_math_h=no
19837 fi
19838
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840   ac_ext=c
19841 ac_cpp='$CPP $CPPFLAGS'
19842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19845
19846 fi
19847 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19848 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19849
19850 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19851
19852 cat >>confdefs.h <<\_ACEOF
19853 #define HAVE_ISINF_IN_MATH_H 1
19854 _ACEOF
19855
19856 fi
19857
19858 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19859 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19860 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   ac_ext=cpp
19864 ac_cpp='$CXXCPP $CPPFLAGS'
19865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19868
19869    cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 #include <cmath>
19876 int
19877 main ()
19878 {
19879 float f; isinf(f);
19880   ;
19881   return 0;
19882 }
19883 _ACEOF
19884 rm -f conftest.$ac_objext
19885 if { (ac_try="$ac_compile"
19886 case "(($ac_try" in
19887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888   *) ac_try_echo=$ac_try;;
19889 esac
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891   (eval "$ac_compile") 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } &&
19898          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19899   { (case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_try") 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; } &&
19908          { ac_try='test -s conftest.$ac_objext'
19909   { (case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_try") 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; }; then
19918   ac_cv_func_isinf_in_cmath=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923         ac_cv_func_isinf_in_cmath=no
19924 fi
19925
19926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927   ac_ext=c
19928 ac_cpp='$CPP $CPPFLAGS'
19929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932
19933 fi
19934 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19935 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19936
19937 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19938
19939 cat >>confdefs.h <<\_ACEOF
19940 #define HAVE_ISINF_IN_CMATH 1
19941 _ACEOF
19942
19943 fi
19944
19945 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19946 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19947 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19948   echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19950   ac_ext=cpp
19951 ac_cpp='$CXXCPP $CPPFLAGS'
19952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19955
19956    cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962 #include <cmath>
19963 int
19964 main ()
19965 {
19966 float f; std::isinf(f);
19967   ;
19968   return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_compile") 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19986   { (case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_try") 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); }; } &&
19995          { ac_try='test -s conftest.$ac_objext'
19996   { (case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_try") 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   ac_cv_func_std_isinf_in_cmath=yes
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010         ac_cv_func_std_isinf_in_cmath=no
20011 fi
20012
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014   ac_ext=c
20015 ac_cpp='$CPP $CPPFLAGS'
20016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019
20020 fi
20021 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20022 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20023
20024 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20025
20026 cat >>confdefs.h <<\_ACEOF
20027 #define HAVE_STD_ISINF_IN_CMATH 1
20028 _ACEOF
20029
20030 fi
20031
20032 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20033 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20034 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037   ac_ext=cpp
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
20043    cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 #include <ieeefp.h>
20050 int
20051 main ()
20052 {
20053 float f; finite(f);
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_compile") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } &&
20072          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073   { (case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_try") 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; } &&
20082          { ac_try='test -s conftest.$ac_objext'
20083   { (case "(($ac_try" in
20084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085   *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088   (eval "$ac_try") 2>&5
20089   ac_status=$?
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); }; }; then
20092   ac_cv_func_finite_in_ieeefp_h=yes
20093 else
20094   echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20096
20097         ac_cv_func_finite_in_ieeefp_h=no
20098 fi
20099
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101   ac_ext=c
20102 ac_cpp='$CPP $CPPFLAGS'
20103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106
20107 fi
20108 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20109 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20110
20111 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20112
20113 cat >>confdefs.h <<\_ACEOF
20114 #define HAVE_FINITE_IN_IEEEFP_H 1
20115 _ACEOF
20116
20117 fi
20118
20119
20120
20121 if test "$llvm_cv_platform_type" = "Unix" ; then
20122
20123
20124 for ac_header in stdlib.h unistd.h
20125 do
20126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20131   echo $ECHO_N "(cached) $ECHO_C" >&6
20132 fi
20133 ac_res=`eval echo '${'$as_ac_Header'}'`
20134                { echo "$as_me:$LINENO: result: $ac_res" >&5
20135 echo "${ECHO_T}$ac_res" >&6; }
20136 else
20137   # Is the header compilable?
20138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146 $ac_includes_default
20147 #include <$ac_header>
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compile") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } &&
20163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20164   { (case "(($ac_try" in
20165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166   *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169   (eval "$ac_try") 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; } &&
20173          { ac_try='test -s conftest.$ac_objext'
20174   { (case "(($ac_try" in
20175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176   *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179   (eval "$ac_try") 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   ac_header_compiler=yes
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188         ac_header_compiler=no
20189 fi
20190
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20193 echo "${ECHO_T}$ac_header_compiler" >&6; }
20194
20195 # Is the header present?
20196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 #include <$ac_header>
20205 _ACEOF
20206 if { (ac_try="$ac_cpp conftest.$ac_ext"
20207 case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20213   ac_status=$?
20214   grep -v '^ *+' conftest.er1 >conftest.err
20215   rm -f conftest.er1
20216   cat conftest.err >&5
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } >/dev/null; then
20219   if test -s conftest.err; then
20220     ac_cpp_err=$ac_c_preproc_warn_flag
20221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20222   else
20223     ac_cpp_err=
20224   fi
20225 else
20226   ac_cpp_err=yes
20227 fi
20228 if test -z "$ac_cpp_err"; then
20229   ac_header_preproc=yes
20230 else
20231   echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20233
20234   ac_header_preproc=no
20235 fi
20236
20237 rm -f conftest.err conftest.$ac_ext
20238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20239 echo "${ECHO_T}$ac_header_preproc" >&6; }
20240
20241 # So?  What about this header?
20242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20243   yes:no: )
20244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20248     ac_header_preproc=yes
20249     ;;
20250   no:yes:* )
20251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20263     ( cat <<\_ASBOX
20264 ## ------------------------------------ ##
20265 ## Report this to http://llvm.org/bugs/ ##
20266 ## ------------------------------------ ##
20267 _ASBOX
20268      ) | sed "s/^/$as_me: WARNING:     /" >&2
20269     ;;
20270 esac
20271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   eval "$as_ac_Header=\$ac_header_preproc"
20277 fi
20278 ac_res=`eval echo '${'$as_ac_Header'}'`
20279                { echo "$as_me:$LINENO: result: $ac_res" >&5
20280 echo "${ECHO_T}$ac_res" >&6; }
20281
20282 fi
20283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20284   cat >>confdefs.h <<_ACEOF
20285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20286 _ACEOF
20287
20288 fi
20289
20290 done
20291
20292
20293 for ac_func in getpagesize
20294 do
20295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20309 #define $ac_func innocuous_$ac_func
20310
20311 /* System header to define __stub macros and hopefully few prototypes,
20312     which can conflict with char $ac_func (); below.
20313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314     <limits.h> exists even on freestanding compilers.  */
20315
20316 #ifdef __STDC__
20317 # include <limits.h>
20318 #else
20319 # include <assert.h>
20320 #endif
20321
20322 #undef $ac_func
20323
20324 /* Override any GCC internal prototype to avoid an error.
20325    Use char because int might match the return type of a GCC
20326    builtin and then its argument prototype would still apply.  */
20327 #ifdef __cplusplus
20328 extern "C"
20329 #endif
20330 char $ac_func ();
20331 /* The GNU C library defines this for functions which it implements
20332     to always fail with ENOSYS.  Some functions are actually named
20333     something starting with __ and the normal name is an alias.  */
20334 #if defined __stub_$ac_func || defined __stub___$ac_func
20335 choke me
20336 #endif
20337
20338 int
20339 main ()
20340 {
20341 return $ac_func ();
20342   ;
20343   return 0;
20344 }
20345 _ACEOF
20346 rm -f conftest.$ac_objext conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_link") 2>conftest.er1
20354   ac_status=$?
20355   grep -v '^ *+' conftest.er1 >conftest.err
20356   rm -f conftest.er1
20357   cat conftest.err >&5
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } &&
20360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361   { (case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_try") 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; } &&
20370          { ac_try='test -s conftest$ac_exeext'
20371   { (case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_try") 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; }; then
20380   eval "$as_ac_var=yes"
20381 else
20382   echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20384
20385         eval "$as_ac_var=no"
20386 fi
20387
20388 rm -f core conftest.err conftest.$ac_objext \
20389       conftest$ac_exeext conftest.$ac_ext
20390 fi
20391 ac_res=`eval echo '${'$as_ac_var'}'`
20392                { echo "$as_me:$LINENO: result: $ac_res" >&5
20393 echo "${ECHO_T}$ac_res" >&6; }
20394 if test `eval echo '${'$as_ac_var'}'` = yes; then
20395   cat >>confdefs.h <<_ACEOF
20396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20397 _ACEOF
20398
20399 fi
20400 done
20401
20402 { echo "$as_me:$LINENO: checking for working mmap" >&5
20403 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20404 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   if test "$cross_compiling" = yes; then
20408   ac_cv_func_mmap_fixed_mapped=no
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 $ac_includes_default
20417 /* malloc might have been renamed as rpl_malloc. */
20418 #undef malloc
20419
20420 /* Thanks to Mike Haertel and Jim Avera for this test.
20421    Here is a matrix of mmap possibilities:
20422         mmap private not fixed
20423         mmap private fixed at somewhere currently unmapped
20424         mmap private fixed at somewhere already mapped
20425         mmap shared not fixed
20426         mmap shared fixed at somewhere currently unmapped
20427         mmap shared fixed at somewhere already mapped
20428    For private mappings, we should verify that changes cannot be read()
20429    back from the file, nor mmap's back from the file at a different
20430    address.  (There have been systems where private was not correctly
20431    implemented like the infamous i386 svr4.0, and systems where the
20432    VM page cache was not coherent with the file system buffer cache
20433    like early versions of FreeBSD and possibly contemporary NetBSD.)
20434    For shared mappings, we should conversely verify that changes get
20435    propagated back to all the places they're supposed to be.
20436
20437    Grep wants private fixed already mapped.
20438    The main things grep needs to know about mmap are:
20439    * does it exist and is it safe to write into the mmap'd area
20440    * how to use it (BSD variants)  */
20441
20442 #include <fcntl.h>
20443 #include <sys/mman.h>
20444
20445 #if !STDC_HEADERS && !HAVE_STDLIB_H
20446 char *malloc ();
20447 #endif
20448
20449 /* This mess was copied from the GNU getpagesize.h.  */
20450 #if !HAVE_GETPAGESIZE
20451 /* Assume that all systems that can run configure have sys/param.h.  */
20452 # if !HAVE_SYS_PARAM_H
20453 #  define HAVE_SYS_PARAM_H 1
20454 # endif
20455
20456 # ifdef _SC_PAGESIZE
20457 #  define getpagesize() sysconf(_SC_PAGESIZE)
20458 # else /* no _SC_PAGESIZE */
20459 #  if HAVE_SYS_PARAM_H
20460 #   include <sys/param.h>
20461 #   ifdef EXEC_PAGESIZE
20462 #    define getpagesize() EXEC_PAGESIZE
20463 #   else /* no EXEC_PAGESIZE */
20464 #    ifdef NBPG
20465 #     define getpagesize() NBPG * CLSIZE
20466 #     ifndef CLSIZE
20467 #      define CLSIZE 1
20468 #     endif /* no CLSIZE */
20469 #    else /* no NBPG */
20470 #     ifdef NBPC
20471 #      define getpagesize() NBPC
20472 #     else /* no NBPC */
20473 #      ifdef PAGESIZE
20474 #       define getpagesize() PAGESIZE
20475 #      endif /* PAGESIZE */
20476 #     endif /* no NBPC */
20477 #    endif /* no NBPG */
20478 #   endif /* no EXEC_PAGESIZE */
20479 #  else /* no HAVE_SYS_PARAM_H */
20480 #   define getpagesize() 8192   /* punt totally */
20481 #  endif /* no HAVE_SYS_PARAM_H */
20482 # endif /* no _SC_PAGESIZE */
20483
20484 #endif /* no HAVE_GETPAGESIZE */
20485
20486 int
20487 main ()
20488 {
20489   char *data, *data2, *data3;
20490   int i, pagesize;
20491   int fd;
20492
20493   pagesize = getpagesize ();
20494
20495   /* First, make a file with some known garbage in it. */
20496   data = (char *) malloc (pagesize);
20497   if (!data)
20498     return 1;
20499   for (i = 0; i < pagesize; ++i)
20500     *(data + i) = rand ();
20501   umask (0);
20502   fd = creat ("conftest.mmap", 0600);
20503   if (fd < 0)
20504     return 1;
20505   if (write (fd, data, pagesize) != pagesize)
20506     return 1;
20507   close (fd);
20508
20509   /* Next, try to mmap the file at a fixed address which already has
20510      something else allocated at it.  If we can, also make sure that
20511      we see the same garbage.  */
20512   fd = open ("conftest.mmap", O_RDWR);
20513   if (fd < 0)
20514     return 1;
20515   data2 = (char *) malloc (2 * pagesize);
20516   if (!data2)
20517     return 1;
20518   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20519   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20520                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20521     return 1;
20522   for (i = 0; i < pagesize; ++i)
20523     if (*(data + i) != *(data2 + i))
20524       return 1;
20525
20526   /* Finally, make sure that changes to the mapped area do not
20527      percolate back to the file as seen by read().  (This is a bug on
20528      some variants of i386 svr4.0.)  */
20529   for (i = 0; i < pagesize; ++i)
20530     *(data2 + i) = *(data2 + i) + 1;
20531   data3 = (char *) malloc (pagesize);
20532   if (!data3)
20533     return 1;
20534   if (read (fd, data3, pagesize) != pagesize)
20535     return 1;
20536   for (i = 0; i < pagesize; ++i)
20537     if (*(data + i) != *(data3 + i))
20538       return 1;
20539   close (fd);
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest$ac_exeext
20544 if { (ac_try="$ac_link"
20545 case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_link") 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20554   { (case "(($ac_try" in
20555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556   *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559   (eval "$ac_try") 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   ac_cv_func_mmap_fixed_mapped=yes
20564 else
20565   echo "$as_me: program exited with status $ac_status" >&5
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ( exit $ac_status )
20570 ac_cv_func_mmap_fixed_mapped=no
20571 fi
20572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20573 fi
20574
20575
20576 fi
20577 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20578 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20579 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_MMAP 1
20583 _ACEOF
20584
20585 fi
20586 rm -f conftest.mmap
20587
20588   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20589 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20590 if test "${ac_cv_func_mmap_file+set}" = set; then
20591   echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593    ac_ext=c
20594 ac_cpp='$CPP $CPPFLAGS'
20595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
20599   if test "$cross_compiling" = yes; then
20600   ac_cv_func_mmap_file=no
20601 else
20602   cat >conftest.$ac_ext <<_ACEOF
20603
20604     /* confdefs.h.  */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h.  */
20609
20610 #include <sys/types.h>
20611 #include <sys/mman.h>
20612 #include <fcntl.h>
20613
20614 int
20615 main ()
20616 {
20617
20618   int fd;
20619   fd = creat ("foo",0777);
20620   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20621   unlink ("foo");
20622   return (fd != (int) MAP_FAILED);
20623   ;
20624   return 0;
20625 }
20626 _ACEOF
20627 rm -f conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_link") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638   { (case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_try") 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); }; }; then
20647   ac_cv_func_mmap_file=yes
20648 else
20649   echo "$as_me: program exited with status $ac_status" >&5
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 ( exit $ac_status )
20654 ac_cv_func_mmap_file=no
20655 fi
20656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20657 fi
20658
20659
20660   ac_ext=c
20661 ac_cpp='$CPP $CPPFLAGS'
20662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666
20667 fi
20668 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20669 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20670 if test "$ac_cv_func_mmap_file" = yes; then
20671
20672 cat >>confdefs.h <<\_ACEOF
20673 #define HAVE_MMAP_FILE
20674 _ACEOF
20675
20676    MMAP_FILE=yes
20677
20678 fi
20679
20680   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20681 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20682 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685   if test "$llvm_cv_os_type" = "Interix" ; then
20686    ac_cv_need_dev_zero_for_mmap=yes
20687  else
20688    ac_cv_need_dev_zero_for_mmap=no
20689  fi
20690
20691 fi
20692 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20693 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20694 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20695
20696 cat >>confdefs.h <<\_ACEOF
20697 #define NEED_DEV_ZERO_FOR_MMAP 1
20698 _ACEOF
20699
20700 fi
20701
20702   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20703   then
20704     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20705 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20706   fi
20707   if test "$ac_cv_func_mmap_file" = "no"
20708   then
20709     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20710 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20711   fi
20712 fi
20713
20714 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20715 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20716 ac_ext=cpp
20717 ac_cpp='$CXXCPP $CPPFLAGS'
20718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20721
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 int main() {
20729         volatile unsigned long val = 1;
20730         __sync_synchronize();
20731         __sync_val_compare_and_swap(&val, 1, 0);
20732         __sync_add_and_fetch(&val, 1);
20733         __sync_sub_and_fetch(&val, 1);
20734         return 0;
20735       }
20736
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (ac_try="$ac_link"
20740 case "(($ac_try" in
20741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742   *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745   (eval "$ac_link") 2>conftest.er1
20746   ac_status=$?
20747   grep -v '^ *+' conftest.er1 >conftest.err
20748   rm -f conftest.er1
20749   cat conftest.err >&5
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); } &&
20752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20753   { (case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_try") 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; } &&
20762          { ac_try='test -s conftest$ac_exeext'
20763   { (case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768   (eval "$ac_try") 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); }; }; then
20772   ac_ext=c
20773 ac_cpp='$CPP $CPPFLAGS'
20774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777
20778   { echo "$as_me:$LINENO: result: yes" >&5
20779 echo "${ECHO_T}yes" >&6; }
20780
20781 cat >>confdefs.h <<\_ACEOF
20782 #define LLVM_HAS_ATOMICS 1
20783 _ACEOF
20784
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789         { echo "$as_me:$LINENO: result: no" >&5
20790 echo "${ECHO_T}no" >&6; }
20791
20792 cat >>confdefs.h <<\_ACEOF
20793 #define LLVM_HAS_ATOMICS 0
20794 _ACEOF
20795
20796   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20797 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20798 fi
20799
20800 rm -f core conftest.err conftest.$ac_objext \
20801       conftest$ac_exeext conftest.$ac_ext
20802
20803
20804 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20805   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20806 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20807 if test "${llvm_cv_linux_mixed+set}" = set; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810    ac_ext=c
20811 ac_cpp='$CPP $CPPFLAGS'
20812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20815
20816   cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 #ifndef __x86_64__
20823        error: Not x86-64 even if uname says so!
20824       #endif
20825
20826 int
20827 main ()
20828 {
20829
20830   ;
20831   return 0;
20832 }
20833 _ACEOF
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838   *) ac_try_echo=$ac_try;;
20839 esac
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841   (eval "$ac_compile") 2>conftest.er1
20842   ac_status=$?
20843   grep -v '^ *+' conftest.er1 >conftest.err
20844   rm -f conftest.er1
20845   cat conftest.err >&5
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } &&
20848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849   { (case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_try") 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; } &&
20858          { ac_try='test -s conftest.$ac_objext'
20859   { (case "(($ac_try" in
20860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861   *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864   (eval "$ac_try") 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   llvm_cv_linux_mixed=no
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873         llvm_cv_linux_mixed=yes
20874 fi
20875
20876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877   ac_ext=c
20878 ac_cpp='$CPP $CPPFLAGS'
20879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20882
20883
20884 fi
20885 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20886 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20887
20888   if test "$llvm_cv_linux_mixed" = "yes"; then
20889     llvm_cv_target_arch="x86"
20890     ARCH="x86"
20891   fi
20892 fi
20893
20894
20895 for ac_func in __dso_handle
20896 do
20897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903   cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20911 #define $ac_func innocuous_$ac_func
20912
20913 /* System header to define __stub macros and hopefully few prototypes,
20914     which can conflict with char $ac_func (); below.
20915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20916     <limits.h> exists even on freestanding compilers.  */
20917
20918 #ifdef __STDC__
20919 # include <limits.h>
20920 #else
20921 # include <assert.h>
20922 #endif
20923
20924 #undef $ac_func
20925
20926 /* Override any GCC internal prototype to avoid an error.
20927    Use char because int might match the return type of a GCC
20928    builtin and then its argument prototype would still apply.  */
20929 #ifdef __cplusplus
20930 extern "C"
20931 #endif
20932 char $ac_func ();
20933 /* The GNU C library defines this for functions which it implements
20934     to always fail with ENOSYS.  Some functions are actually named
20935     something starting with __ and the normal name is an alias.  */
20936 #if defined __stub_$ac_func || defined __stub___$ac_func
20937 choke me
20938 #endif
20939
20940 int
20941 main ()
20942 {
20943 return $ac_func ();
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (ac_try="$ac_link"
20950 case "(($ac_try" in
20951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952   *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955   (eval "$ac_link") 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } &&
20962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20963   { (case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_try") 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; } &&
20972          { ac_try='test -s conftest$ac_exeext'
20973   { (case "(($ac_try" in
20974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975   *) ac_try_echo=$ac_try;;
20976 esac
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978   (eval "$ac_try") 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); }; }; then
20982   eval "$as_ac_var=yes"
20983 else
20984   echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987         eval "$as_ac_var=no"
20988 fi
20989
20990 rm -f core conftest.err conftest.$ac_objext \
20991       conftest$ac_exeext conftest.$ac_ext
20992 fi
20993 ac_res=`eval echo '${'$as_ac_var'}'`
20994                { echo "$as_me:$LINENO: result: $ac_res" >&5
20995 echo "${ECHO_T}$ac_res" >&6; }
20996 if test `eval echo '${'$as_ac_var'}'` = yes; then
20997   cat >>confdefs.h <<_ACEOF
20998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20999 _ACEOF
21000
21001 fi
21002 done
21003
21004
21005 SHLIBEXT=$libltdl_cv_shlibext
21006
21007
21008 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21009
21010
21011 if test "${prefix}" = "NONE" ; then
21012   prefix="/usr/local"
21013 fi
21014 eval LLVM_PREFIX="${prefix}";
21015 eval LLVM_BINDIR="${prefix}/bin";
21016 eval LLVM_LIBDIR="${prefix}/lib";
21017 eval LLVM_DATADIR="${prefix}/share/llvm";
21018 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21019 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21020 eval LLVM_INCLUDEDIR="${prefix}/include";
21021 eval LLVM_INFODIR="${prefix}/info";
21022 eval LLVM_MANDIR="${prefix}/man";
21023 LLVM_CONFIGTIME=`date`
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21036   LLVM_CONFIGTIME="(timestamp not enabled)"
21037 fi
21038
21039
21040 cat >>confdefs.h <<_ACEOF
21041 #define LLVM_PREFIX "$LLVM_PREFIX"
21042 _ACEOF
21043
21044
21045 cat >>confdefs.h <<_ACEOF
21046 #define LLVM_BINDIR "$LLVM_BINDIR"
21047 _ACEOF
21048
21049
21050 cat >>confdefs.h <<_ACEOF
21051 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21052 _ACEOF
21053
21054
21055 cat >>confdefs.h <<_ACEOF
21056 #define LLVM_DATADIR "$LLVM_DATADIR"
21057 _ACEOF
21058
21059
21060 cat >>confdefs.h <<_ACEOF
21061 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21062 _ACEOF
21063
21064
21065 cat >>confdefs.h <<_ACEOF
21066 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21067 _ACEOF
21068
21069
21070 cat >>confdefs.h <<_ACEOF
21071 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21072 _ACEOF
21073
21074
21075 cat >>confdefs.h <<_ACEOF
21076 #define LLVM_INFODIR "$LLVM_INFODIR"
21077 _ACEOF
21078
21079
21080 cat >>confdefs.h <<_ACEOF
21081 #define LLVM_MANDIR "$LLVM_MANDIR"
21082 _ACEOF
21083
21084
21085 cat >>confdefs.h <<_ACEOF
21086 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21087 _ACEOF
21088
21089
21090 cat >>confdefs.h <<_ACEOF
21091 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21092 _ACEOF
21093
21094
21095 if test "$BINDINGS_TO_BUILD" = auto ; then
21096   BINDINGS_TO_BUILD=""
21097   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21098     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21099   fi
21100 fi
21101 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21102
21103
21104 ALL_BINDINGS=ocaml
21105
21106
21107 binding_prereqs_failed=0
21108 for a_binding in $BINDINGS_TO_BUILD ; do
21109   case "$a_binding" in
21110   ocaml)
21111     if test "x$OCAMLC" = x ; then
21112       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21113 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21114       binding_prereqs_failed=1
21115     fi
21116     if test "x$OCAMLDEP" = x ; then
21117       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21118 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21119       binding_prereqs_failed=1
21120     fi
21121     if test "x$OCAMLOPT" = x ; then
21122       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21123 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21124           fi
21125     if test "x$with_ocaml_libdir" != xauto ; then
21126       OCAML_LIBDIR=$with_ocaml_libdir
21127
21128     else
21129       ocaml_stdlib="`"$OCAMLC" -where`"
21130       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21131       then
21132         # ocaml stdlib is beneath our prefix; use stdlib
21133         OCAML_LIBDIR=$ocaml_stdlib
21134
21135       else
21136         # ocaml stdlib is outside our prefix; use libdir/ocaml
21137         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21138
21139       fi
21140     fi
21141     ;;
21142   esac
21143 done
21144 if test "$binding_prereqs_failed" = 1 ; then
21145   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21146 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21147    { (exit 1); exit 1; }; }
21148 fi
21149
21150 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21151 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21152 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21153   echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155    ac_ext=cpp
21156 ac_cpp='$CXXCPP $CPPFLAGS'
21157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21160
21161   oldcxxflags="$CXXFLAGS"
21162   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21163   cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21170 int
21171 main ()
21172 {
21173 X<int>().f();
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } &&
21192          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21193   { (case "(($ac_try" in
21194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195   *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198   (eval "$ac_try") 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; } &&
21202          { ac_try='test -s conftest.$ac_objext'
21203   { (case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_try") 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; }; then
21212   llvm_cv_cxx_visibility_inlines_hidden=yes
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217         llvm_cv_cxx_visibility_inlines_hidden=no
21218 fi
21219
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221   CXXFLAGS="$oldcxxflags"
21222   ac_ext=c
21223 ac_cpp='$CPP $CPPFLAGS'
21224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21227
21228
21229 fi
21230 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21231 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21232 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21233   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21234
21235 else
21236   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21237
21238 fi
21239
21240
21241 if test "$llvm_cv_link_use_r" = "yes" ; then
21242   RPATH="-Wl,-R"
21243 else
21244   RPATH="-Wl,-rpath"
21245 fi
21246
21247
21248 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21249   RDYNAMIC="-Wl,-export-dynamic"
21250 else
21251   RDYNAMIC=""
21252 fi
21253
21254
21255
21256 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21257
21258
21259
21260
21261
21262
21263 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21264
21265 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21266
21267 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21268
21269 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21270
21271 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21272
21273
21274 ac_config_files="$ac_config_files Makefile.config"
21275
21276
21277 ac_config_files="$ac_config_files llvm.spec"
21278
21279
21280 ac_config_files="$ac_config_files docs/doxygen.cfg"
21281
21282
21283 if test "${clang_src_root}" = ""; then
21284   clang_src_root="$srcdir/tools/clang"
21285 fi
21286 if test -f ${clang_src_root}/README.txt; then
21287     configh="include/clang/Config/config.h"
21288   doxy="docs/doxygen.cfg"
21289   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21290
21291   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21292
21293 fi
21294
21295 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21296
21297
21298 ac_config_commands="$ac_config_commands setup"
21299
21300 ac_config_commands="$ac_config_commands Makefile"
21301
21302
21303 ac_config_commands="$ac_config_commands Makefile.common"
21304
21305
21306 ac_config_commands="$ac_config_commands examples/Makefile"
21307
21308
21309 ac_config_commands="$ac_config_commands lib/Makefile"
21310
21311
21312 ac_config_commands="$ac_config_commands runtime/Makefile"
21313
21314
21315 ac_config_commands="$ac_config_commands test/Makefile"
21316
21317
21318 ac_config_commands="$ac_config_commands test/Makefile.tests"
21319
21320
21321 ac_config_commands="$ac_config_commands unittests/Makefile"
21322
21323
21324 ac_config_commands="$ac_config_commands tools/Makefile"
21325
21326
21327 ac_config_commands="$ac_config_commands utils/Makefile"
21328
21329
21330 ac_config_commands="$ac_config_commands projects/Makefile"
21331
21332
21333 ac_config_commands="$ac_config_commands bindings/Makefile"
21334
21335
21336 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21337
21338
21339
21340 cat >confcache <<\_ACEOF
21341 # This file is a shell script that caches the results of configure
21342 # tests run on this system so they can be shared between configure
21343 # scripts and configure runs, see configure's option --config-cache.
21344 # It is not useful on other systems.  If it contains results you don't
21345 # want to keep, you may remove or edit it.
21346 #
21347 # config.status only pays attention to the cache file if you give it
21348 # the --recheck option to rerun configure.
21349 #
21350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21352 # following values.
21353
21354 _ACEOF
21355
21356 # The following way of writing the cache mishandles newlines in values,
21357 # but we know of no workaround that is simple, portable, and efficient.
21358 # So, we kill variables containing newlines.
21359 # Ultrix sh set writes to stderr and can't be redirected directly,
21360 # and sets the high bit in the cache file unless we assign to the vars.
21361 (
21362   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21363     eval ac_val=\$$ac_var
21364     case $ac_val in #(
21365     *${as_nl}*)
21366       case $ac_var in #(
21367       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21368 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21369       esac
21370       case $ac_var in #(
21371       _ | IFS | as_nl) ;; #(
21372       *) $as_unset $ac_var ;;
21373       esac ;;
21374     esac
21375   done
21376
21377   (set) 2>&1 |
21378     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21379     *${as_nl}ac_space=\ *)
21380       # `set' does not quote correctly, so add quotes (double-quote
21381       # substitution turns \\\\ into \\, and sed turns \\ into \).
21382       sed -n \
21383         "s/'/'\\\\''/g;
21384           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21385       ;; #(
21386     *)
21387       # `set' quotes correctly as required by POSIX, so do not add quotes.
21388       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21389       ;;
21390     esac |
21391     sort
21392 ) |
21393   sed '
21394      /^ac_cv_env_/b end
21395      t clear
21396      :clear
21397      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21398      t end
21399      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21400      :end' >>confcache
21401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21402   if test -w "$cache_file"; then
21403     test "x$cache_file" != "x/dev/null" &&
21404       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21405 echo "$as_me: updating cache $cache_file" >&6;}
21406     cat confcache >$cache_file
21407   else
21408     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21409 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21410   fi
21411 fi
21412 rm -f confcache
21413
21414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21415 # Let make expand exec_prefix.
21416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21417
21418 DEFS=-DHAVE_CONFIG_H
21419
21420 ac_libobjs=
21421 ac_ltlibobjs=
21422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21423   # 1. Remove the extension, and $U if already installed.
21424   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21425   ac_i=`echo "$ac_i" | sed "$ac_script"`
21426   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21427   #    will be set to the directory where LIBOBJS objects are built.
21428   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21429   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21430 done
21431 LIBOBJS=$ac_libobjs
21432
21433 LTLIBOBJS=$ac_ltlibobjs
21434
21435
21436 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21437   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21438 Usually this means the macro was only invoked conditionally." >&5
21439 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21440 Usually this means the macro was only invoked conditionally." >&2;}
21441    { (exit 1); exit 1; }; }
21442 fi
21443 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21444   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21445 Usually this means the macro was only invoked conditionally." >&5
21446 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21447 Usually this means the macro was only invoked conditionally." >&2;}
21448    { (exit 1); exit 1; }; }
21449 fi
21450
21451 : ${CONFIG_STATUS=./config.status}
21452 ac_clean_files_save=$ac_clean_files
21453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21454 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21455 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21456 cat >$CONFIG_STATUS <<_ACEOF
21457 #! $SHELL
21458 # Generated by $as_me.
21459 # Run this file to recreate the current configuration.
21460 # Compiler output produced by configure, useful for debugging
21461 # configure, is in config.log if it exists.
21462
21463 debug=false
21464 ac_cs_recheck=false
21465 ac_cs_silent=false
21466 SHELL=\${CONFIG_SHELL-$SHELL}
21467 _ACEOF
21468
21469 cat >>$CONFIG_STATUS <<\_ACEOF
21470 ## --------------------- ##
21471 ## M4sh Initialization.  ##
21472 ## --------------------- ##
21473
21474 # Be Bourne compatible
21475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21476   emulate sh
21477   NULLCMD=:
21478   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21479   # is contrary to our usage.  Disable this feature.
21480   alias -g '${1+"$@"}'='"$@"'
21481   setopt NO_GLOB_SUBST
21482 else
21483   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21484 fi
21485 BIN_SH=xpg4; export BIN_SH # for Tru64
21486 DUALCASE=1; export DUALCASE # for MKS sh
21487
21488
21489 # PATH needs CR
21490 # Avoid depending upon Character Ranges.
21491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21494 as_cr_digits='0123456789'
21495 as_cr_alnum=$as_cr_Letters$as_cr_digits
21496
21497 # The user is always right.
21498 if test "${PATH_SEPARATOR+set}" != set; then
21499   echo "#! /bin/sh" >conf$$.sh
21500   echo  "exit 0"   >>conf$$.sh
21501   chmod +x conf$$.sh
21502   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21503     PATH_SEPARATOR=';'
21504   else
21505     PATH_SEPARATOR=:
21506   fi
21507   rm -f conf$$.sh
21508 fi
21509
21510 # Support unset when possible.
21511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21512   as_unset=unset
21513 else
21514   as_unset=false
21515 fi
21516
21517
21518 # IFS
21519 # We need space, tab and new line, in precisely that order.  Quoting is
21520 # there to prevent editors from complaining about space-tab.
21521 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21522 # splitting by setting IFS to empty value.)
21523 as_nl='
21524 '
21525 IFS=" ""        $as_nl"
21526
21527 # Find who we are.  Look in the path if we contain no directory separator.
21528 case $0 in
21529   *[\\/]* ) as_myself=$0 ;;
21530   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21531 for as_dir in $PATH
21532 do
21533   IFS=$as_save_IFS
21534   test -z "$as_dir" && as_dir=.
21535   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21536 done
21537 IFS=$as_save_IFS
21538
21539      ;;
21540 esac
21541 # We did not find ourselves, most probably we were run as `sh COMMAND'
21542 # in which case we are not to be found in the path.
21543 if test "x$as_myself" = x; then
21544   as_myself=$0
21545 fi
21546 if test ! -f "$as_myself"; then
21547   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21548   { (exit 1); exit 1; }
21549 fi
21550
21551 # Work around bugs in pre-3.0 UWIN ksh.
21552 for as_var in ENV MAIL MAILPATH
21553 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21554 done
21555 PS1='$ '
21556 PS2='> '
21557 PS4='+ '
21558
21559 # NLS nuisances.
21560 for as_var in \
21561   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21562   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21563   LC_TELEPHONE LC_TIME
21564 do
21565   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21566     eval $as_var=C; export $as_var
21567   else
21568     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21569   fi
21570 done
21571
21572 # Required to use basename.
21573 if expr a : '\(a\)' >/dev/null 2>&1 &&
21574    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21575   as_expr=expr
21576 else
21577   as_expr=false
21578 fi
21579
21580 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21581   as_basename=basename
21582 else
21583   as_basename=false
21584 fi
21585
21586
21587 # Name of the executable.
21588 as_me=`$as_basename -- "$0" ||
21589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21590          X"$0" : 'X\(//\)$' \| \
21591          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21592 echo X/"$0" |
21593     sed '/^.*\/\([^/][^/]*\)\/*$/{
21594             s//\1/
21595             q
21596           }
21597           /^X\/\(\/\/\)$/{
21598             s//\1/
21599             q
21600           }
21601           /^X\/\(\/\).*/{
21602             s//\1/
21603             q
21604           }
21605           s/.*/./; q'`
21606
21607 # CDPATH.
21608 $as_unset CDPATH
21609
21610
21611
21612   as_lineno_1=$LINENO
21613   as_lineno_2=$LINENO
21614   test "x$as_lineno_1" != "x$as_lineno_2" &&
21615   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21616
21617   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21618   # uniformly replaced by the line number.  The first 'sed' inserts a
21619   # line-number line after each line using $LINENO; the second 'sed'
21620   # does the real work.  The second script uses 'N' to pair each
21621   # line-number line with the line containing $LINENO, and appends
21622   # trailing '-' during substitution so that $LINENO is not a special
21623   # case at line end.
21624   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21625   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21626   # E. McMahon (1931-1989) for sed's syntax.  :-)
21627   sed -n '
21628     p
21629     /[$]LINENO/=
21630   ' <$as_myself |
21631     sed '
21632       s/[$]LINENO.*/&-/
21633       t lineno
21634       b
21635       :lineno
21636       N
21637       :loop
21638       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21639       t loop
21640       s/-\n.*//
21641     ' >$as_me.lineno &&
21642   chmod +x "$as_me.lineno" ||
21643     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21644    { (exit 1); exit 1; }; }
21645
21646   # Don't try to exec as it changes $[0], causing all sort of problems
21647   # (the dirname of $[0] is not the place where we might find the
21648   # original and so on.  Autoconf is especially sensitive to this).
21649   . "./$as_me.lineno"
21650   # Exit status is that of the last command.
21651   exit
21652 }
21653
21654
21655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21656   as_dirname=dirname
21657 else
21658   as_dirname=false
21659 fi
21660
21661 ECHO_C= ECHO_N= ECHO_T=
21662 case `echo -n x` in
21663 -n*)
21664   case `echo 'x\c'` in
21665   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21666   *)   ECHO_C='\c';;
21667   esac;;
21668 *)
21669   ECHO_N='-n';;
21670 esac
21671
21672 if expr a : '\(a\)' >/dev/null 2>&1 &&
21673    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21674   as_expr=expr
21675 else
21676   as_expr=false
21677 fi
21678
21679 rm -f conf$$ conf$$.exe conf$$.file
21680 if test -d conf$$.dir; then
21681   rm -f conf$$.dir/conf$$.file
21682 else
21683   rm -f conf$$.dir
21684   mkdir conf$$.dir
21685 fi
21686 echo >conf$$.file
21687 if ln -s conf$$.file conf$$ 2>/dev/null; then
21688   as_ln_s='ln -s'
21689   # ... but there are two gotchas:
21690   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21691   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21692   # In both cases, we have to default to `cp -p'.
21693   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21694     as_ln_s='cp -p'
21695 elif ln conf$$.file conf$$ 2>/dev/null; then
21696   as_ln_s=ln
21697 else
21698   as_ln_s='cp -p'
21699 fi
21700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21701 rmdir conf$$.dir 2>/dev/null
21702
21703 if mkdir -p . 2>/dev/null; then
21704   as_mkdir_p=:
21705 else
21706   test -d ./-p && rmdir ./-p
21707   as_mkdir_p=false
21708 fi
21709
21710 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21711 # systems may use methods other than mode bits to determine executability.
21712 cat >conf$$.file <<_ASEOF
21713 #! /bin/sh
21714 exit 0
21715 _ASEOF
21716 chmod +x conf$$.file
21717 if test -x conf$$.file >/dev/null 2>&1; then
21718   as_executable_p="test -x"
21719 else
21720   as_executable_p=:
21721 fi
21722 rm -f conf$$.file
21723
21724 # Sed expression to map a string onto a valid CPP name.
21725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21726
21727 # Sed expression to map a string onto a valid variable name.
21728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21729
21730
21731 exec 6>&1
21732
21733 # Save the log message, to keep $[0] and so on meaningful, and to
21734 # report actual input values of CONFIG_FILES etc. instead of their
21735 # values after options handling.
21736 ac_log="
21737 This file was extended by LLVM $as_me 3.2svn, which was
21738 generated by GNU Autoconf 2.60.  Invocation command line was
21739
21740   CONFIG_FILES    = $CONFIG_FILES
21741   CONFIG_HEADERS  = $CONFIG_HEADERS
21742   CONFIG_LINKS    = $CONFIG_LINKS
21743   CONFIG_COMMANDS = $CONFIG_COMMANDS
21744   $ $0 $@
21745
21746 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21747 "
21748
21749 _ACEOF
21750
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 # Files that config.status was made for.
21753 config_files="$ac_config_files"
21754 config_headers="$ac_config_headers"
21755 config_commands="$ac_config_commands"
21756
21757 _ACEOF
21758
21759 cat >>$CONFIG_STATUS <<\_ACEOF
21760 ac_cs_usage="\
21761 \`$as_me' instantiates files from templates according to the
21762 current configuration.
21763
21764 Usage: $0 [OPTIONS] [FILE]...
21765
21766   -h, --help       print this help, then exit
21767   -V, --version    print version number, then exit
21768   -q, --quiet      do not print progress messages
21769   -d, --debug      don't remove temporary files
21770       --recheck    update $as_me by reconfiguring in the same conditions
21771   --file=FILE[:TEMPLATE]
21772                    instantiate the configuration file FILE
21773   --header=FILE[:TEMPLATE]
21774                    instantiate the configuration header FILE
21775
21776 Configuration files:
21777 $config_files
21778
21779 Configuration headers:
21780 $config_headers
21781
21782 Configuration commands:
21783 $config_commands
21784
21785 Report bugs to <bug-autoconf@gnu.org>."
21786
21787 _ACEOF
21788 cat >>$CONFIG_STATUS <<_ACEOF
21789 ac_cs_version="\\
21790 LLVM config.status 3.2svn
21791 configured by $0, generated by GNU Autoconf 2.60,
21792   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21793
21794 Copyright (C) 2006 Free Software Foundation, Inc.
21795 This config.status script is free software; the Free Software Foundation
21796 gives unlimited permission to copy, distribute and modify it."
21797
21798 ac_pwd='$ac_pwd'
21799 srcdir='$srcdir'
21800 INSTALL='$INSTALL'
21801 _ACEOF
21802
21803 cat >>$CONFIG_STATUS <<\_ACEOF
21804 # If no file are specified by the user, then we need to provide default
21805 # value.  By we need to know if files were specified by the user.
21806 ac_need_defaults=:
21807 while test $# != 0
21808 do
21809   case $1 in
21810   --*=*)
21811     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21812     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21813     ac_shift=:
21814     ;;
21815   *)
21816     ac_option=$1
21817     ac_optarg=$2
21818     ac_shift=shift
21819     ;;
21820   esac
21821
21822   case $ac_option in
21823   # Handling of the options.
21824   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21825     ac_cs_recheck=: ;;
21826   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21827     echo "$ac_cs_version"; exit ;;
21828   --debug | --debu | --deb | --de | --d | -d )
21829     debug=: ;;
21830   --file | --fil | --fi | --f )
21831     $ac_shift
21832     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21833     ac_need_defaults=false;;
21834   --header | --heade | --head | --hea )
21835     $ac_shift
21836     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21837     ac_need_defaults=false;;
21838   --he | --h)
21839     # Conflict between --help and --header
21840     { echo "$as_me: error: ambiguous option: $1
21841 Try \`$0 --help' for more information." >&2
21842    { (exit 1); exit 1; }; };;
21843   --help | --hel | -h )
21844     echo "$ac_cs_usage"; exit ;;
21845   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21846   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21847     ac_cs_silent=: ;;
21848
21849   # This is an error.
21850   -*) { echo "$as_me: error: unrecognized option: $1
21851 Try \`$0 --help' for more information." >&2
21852    { (exit 1); exit 1; }; } ;;
21853
21854   *) ac_config_targets="$ac_config_targets $1"
21855      ac_need_defaults=false ;;
21856
21857   esac
21858   shift
21859 done
21860
21861 ac_configure_extra_args=
21862
21863 if $ac_cs_silent; then
21864   exec 6>/dev/null
21865   ac_configure_extra_args="$ac_configure_extra_args --silent"
21866 fi
21867
21868 _ACEOF
21869 cat >>$CONFIG_STATUS <<_ACEOF
21870 if \$ac_cs_recheck; then
21871   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21872   CONFIG_SHELL=$SHELL
21873   export CONFIG_SHELL
21874   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21875 fi
21876
21877 _ACEOF
21878 cat >>$CONFIG_STATUS <<\_ACEOF
21879 exec 5>>config.log
21880 {
21881   echo
21882   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21883 ## Running $as_me. ##
21884 _ASBOX
21885   echo "$ac_log"
21886 } >&5
21887
21888 _ACEOF
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 #
21891 # INIT-COMMANDS
21892 #
21893 llvm_src="${srcdir}"
21894
21895 _ACEOF
21896
21897 cat >>$CONFIG_STATUS <<\_ACEOF
21898
21899 # Handling of arguments.
21900 for ac_config_target in $ac_config_targets
21901 do
21902   case $ac_config_target in
21903     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21904     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21905     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21906     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21907     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21908     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21909     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21910     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21911     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21912     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21913     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21914     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21915     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21916     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21917     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21918     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21919     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21920     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21921     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21922     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21923     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21924     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21925     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21926     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21927     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21928     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21929     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21930
21931   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21933    { (exit 1); exit 1; }; };;
21934   esac
21935 done
21936
21937
21938 # If the user did not use the arguments to specify the items to instantiate,
21939 # then the envvar interface is used.  Set only those that are not.
21940 # We use the long form for the default assignment because of an extremely
21941 # bizarre bug on SunOS 4.1.3.
21942 if $ac_need_defaults; then
21943   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21944   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21945   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21946 fi
21947
21948 # Have a temporary directory for convenience.  Make it in the build tree
21949 # simply because there is no reason against having it here, and in addition,
21950 # creating and moving files from /tmp can sometimes cause problems.
21951 # Hook for its removal unless debugging.
21952 # Note that there is a small window in which the directory will not be cleaned:
21953 # after its creation but before its name has been assigned to `$tmp'.
21954 $debug ||
21955 {
21956   tmp=
21957   trap 'exit_status=$?
21958   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21959 ' 0
21960   trap '{ (exit 1); exit 1; }' 1 2 13 15
21961 }
21962 # Create a (secure) tmp directory for tmp files.
21963
21964 {
21965   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21966   test -n "$tmp" && test -d "$tmp"
21967 }  ||
21968 {
21969   tmp=./conf$$-$RANDOM
21970   (umask 077 && mkdir "$tmp")
21971 } ||
21972 {
21973    echo "$me: cannot create a temporary directory in ." >&2
21974    { (exit 1); exit 1; }
21975 }
21976
21977 #
21978 # Set up the sed scripts for CONFIG_FILES section.
21979 #
21980
21981 # No need to generate the scripts if there are no CONFIG_FILES.
21982 # This happens for instance when ./config.status config.h
21983 if test -n "$CONFIG_FILES"; then
21984
21985 _ACEOF
21986
21987
21988
21989 ac_delim='%!_!# '
21990 for ac_last_try in false false false false false :; do
21991   cat >conf$$subs.sed <<_ACEOF
21992 SHELL!$SHELL$ac_delim
21993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21999 exec_prefix!$exec_prefix$ac_delim
22000 prefix!$prefix$ac_delim
22001 program_transform_name!$program_transform_name$ac_delim
22002 bindir!$bindir$ac_delim
22003 sbindir!$sbindir$ac_delim
22004 libexecdir!$libexecdir$ac_delim
22005 datarootdir!$datarootdir$ac_delim
22006 datadir!$datadir$ac_delim
22007 sysconfdir!$sysconfdir$ac_delim
22008 sharedstatedir!$sharedstatedir$ac_delim
22009 localstatedir!$localstatedir$ac_delim
22010 includedir!$includedir$ac_delim
22011 oldincludedir!$oldincludedir$ac_delim
22012 docdir!$docdir$ac_delim
22013 infodir!$infodir$ac_delim
22014 htmldir!$htmldir$ac_delim
22015 dvidir!$dvidir$ac_delim
22016 pdfdir!$pdfdir$ac_delim
22017 psdir!$psdir$ac_delim
22018 libdir!$libdir$ac_delim
22019 localedir!$localedir$ac_delim
22020 mandir!$mandir$ac_delim
22021 DEFS!$DEFS$ac_delim
22022 ECHO_C!$ECHO_C$ac_delim
22023 ECHO_N!$ECHO_N$ac_delim
22024 ECHO_T!$ECHO_T$ac_delim
22025 LIBS!$LIBS$ac_delim
22026 build_alias!$build_alias$ac_delim
22027 host_alias!$host_alias$ac_delim
22028 target_alias!$target_alias$ac_delim
22029 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22030 CC!$CC$ac_delim
22031 CFLAGS!$CFLAGS$ac_delim
22032 LDFLAGS!$LDFLAGS$ac_delim
22033 CPPFLAGS!$CPPFLAGS$ac_delim
22034 ac_ct_CC!$ac_ct_CC$ac_delim
22035 EXEEXT!$EXEEXT$ac_delim
22036 OBJEXT!$OBJEXT$ac_delim
22037 CXX!$CXX$ac_delim
22038 CXXFLAGS!$CXXFLAGS$ac_delim
22039 ac_ct_CXX!$ac_ct_CXX$ac_delim
22040 CPP!$CPP$ac_delim
22041 subdirs!$subdirs$ac_delim
22042 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22043 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22044 build!$build$ac_delim
22045 build_cpu!$build_cpu$ac_delim
22046 build_vendor!$build_vendor$ac_delim
22047 build_os!$build_os$ac_delim
22048 host!$host$ac_delim
22049 host_cpu!$host_cpu$ac_delim
22050 host_vendor!$host_vendor$ac_delim
22051 host_os!$host_os$ac_delim
22052 target!$target$ac_delim
22053 target_cpu!$target_cpu$ac_delim
22054 target_vendor!$target_vendor$ac_delim
22055 target_os!$target_os$ac_delim
22056 OS!$OS$ac_delim
22057 HOST_OS!$HOST_OS$ac_delim
22058 TARGET_OS!$TARGET_OS$ac_delim
22059 LINKALL!$LINKALL$ac_delim
22060 NOLINKALL!$NOLINKALL$ac_delim
22061 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22062 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22063 ARCH!$ARCH$ac_delim
22064 HOST_ARCH!$HOST_ARCH$ac_delim
22065 ENDIAN!$ENDIAN$ac_delim
22066 GREP!$GREP$ac_delim
22067 EGREP!$EGREP$ac_delim
22068 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22069 BUILD_CC!$BUILD_CC$ac_delim
22070 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22071 BUILD_CXX!$BUILD_CXX$ac_delim
22072 CVSBUILD!$CVSBUILD$ac_delim
22073 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22074 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22075 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22076 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22077 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22078 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22079 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22080 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22081 JIT!$JIT$ac_delim
22082 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22083 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22084 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22085 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22086 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22087 ENABLE_PIC!$ENABLE_PIC$ac_delim
22088 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22089 _ACEOF
22090
22091   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22092     break
22093   elif $ac_last_try; then
22094     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096    { (exit 1); exit 1; }; }
22097   else
22098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22099   fi
22100 done
22101
22102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103 if test -n "$ac_eof"; then
22104   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105   ac_eof=`expr $ac_eof + 1`
22106 fi
22107
22108 cat >>$CONFIG_STATUS <<_ACEOF
22109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22111 _ACEOF
22112 sed '
22113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114 s/^/s,@/; s/!/@,|#_!!_#|/
22115 :n
22116 t n
22117 s/'"$ac_delim"'$/,g/; t
22118 s/$/\\/; p
22119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120 ' >>$CONFIG_STATUS <conf$$subs.sed
22121 rm -f conf$$subs.sed
22122 cat >>$CONFIG_STATUS <<_ACEOF
22123 CEOF$ac_eof
22124 _ACEOF
22125
22126
22127 ac_delim='%!_!# '
22128 for ac_last_try in false false false false false :; do
22129   cat >conf$$subs.sed <<_ACEOF
22130 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22131 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22132 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22133 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22134 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22135 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22136 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22137 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22138 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22139 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22140 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22141 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22142 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22143 NM!$NM$ac_delim
22144 ifGNUmake!$ifGNUmake$ac_delim
22145 LN_S!$LN_S$ac_delim
22146 CMP!$CMP$ac_delim
22147 CP!$CP$ac_delim
22148 DATE!$DATE$ac_delim
22149 FIND!$FIND$ac_delim
22150 MKDIR!$MKDIR$ac_delim
22151 MV!$MV$ac_delim
22152 RANLIB!$RANLIB$ac_delim
22153 AR!$AR$ac_delim
22154 RM!$RM$ac_delim
22155 SED!$SED$ac_delim
22156 TAR!$TAR$ac_delim
22157 BINPWD!$BINPWD$ac_delim
22158 GRAPHVIZ!$GRAPHVIZ$ac_delim
22159 DOT!$DOT$ac_delim
22160 FDP!$FDP$ac_delim
22161 NEATO!$NEATO$ac_delim
22162 TWOPI!$TWOPI$ac_delim
22163 CIRCO!$CIRCO$ac_delim
22164 GV!$GV$ac_delim
22165 DOTTY!$DOTTY$ac_delim
22166 XDOT_PY!$XDOT_PY$ac_delim
22167 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22168 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22169 INSTALL_DATA!$INSTALL_DATA$ac_delim
22170 BZIP2!$BZIP2$ac_delim
22171 CAT!$CAT$ac_delim
22172 DOXYGEN!$DOXYGEN$ac_delim
22173 GROFF!$GROFF$ac_delim
22174 GZIPBIN!$GZIPBIN$ac_delim
22175 PDFROFF!$PDFROFF$ac_delim
22176 RUNTEST!$RUNTEST$ac_delim
22177 TCLSH!$TCLSH$ac_delim
22178 ZIP!$ZIP$ac_delim
22179 OCAMLC!$OCAMLC$ac_delim
22180 OCAMLOPT!$OCAMLOPT$ac_delim
22181 OCAMLDEP!$OCAMLDEP$ac_delim
22182 OCAMLDOC!$OCAMLDOC$ac_delim
22183 GAS!$GAS$ac_delim
22184 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22185 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22186 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22187 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22188 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22189 LIBADD_DL!$LIBADD_DL$ac_delim
22190 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22191 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22192 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22193 USE_UDIS86!$USE_UDIS86$ac_delim
22194 USE_OPROFILE!$USE_OPROFILE$ac_delim
22195 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22196 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22197 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22198 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22199 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22200 MMAP_FILE!$MMAP_FILE$ac_delim
22201 SHLIBEXT!$SHLIBEXT$ac_delim
22202 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22203 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22204 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22205 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22206 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22207 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22208 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22209 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22210 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22211 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22212 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22213 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22214 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22215 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22216 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22217 RPATH!$RPATH$ac_delim
22218 RDYNAMIC!$RDYNAMIC$ac_delim
22219 LIBOBJS!$LIBOBJS$ac_delim
22220 LTLIBOBJS!$LTLIBOBJS$ac_delim
22221 _ACEOF
22222
22223   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22224     break
22225   elif $ac_last_try; then
22226     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22228    { (exit 1); exit 1; }; }
22229   else
22230     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22231   fi
22232 done
22233
22234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22235 if test -n "$ac_eof"; then
22236   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22237   ac_eof=`expr $ac_eof + 1`
22238 fi
22239
22240 cat >>$CONFIG_STATUS <<_ACEOF
22241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22243 _ACEOF
22244 sed '
22245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22246 s/^/s,@/; s/!/@,|#_!!_#|/
22247 :n
22248 t n
22249 s/'"$ac_delim"'$/,g/; t
22250 s/$/\\/; p
22251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22252 ' >>$CONFIG_STATUS <conf$$subs.sed
22253 rm -f conf$$subs.sed
22254 cat >>$CONFIG_STATUS <<_ACEOF
22255 :end
22256 s/|#_!!_#|//g
22257 CEOF$ac_eof
22258 _ACEOF
22259
22260
22261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22263 # trailing colons and then remove the whole line if VPATH becomes empty
22264 # (actually we leave an empty line to preserve line numbers).
22265 if test "x$srcdir" = x.; then
22266   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22267 s/:*\$(srcdir):*/:/
22268 s/:*\${srcdir}:*/:/
22269 s/:*@srcdir@:*/:/
22270 s/^\([^=]*=[     ]*\):*/\1/
22271 s/:*$//
22272 s/^[^=]*=[       ]*$//
22273 }'
22274 fi
22275
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 fi # test -n "$CONFIG_FILES"
22278
22279
22280 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22281 do
22282   case $ac_tag in
22283   :[FHLC]) ac_mode=$ac_tag; continue;;
22284   esac
22285   case $ac_mode$ac_tag in
22286   :[FHL]*:*);;
22287   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22289    { (exit 1); exit 1; }; };;
22290   :[FH]-) ac_tag=-:-;;
22291   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22292   esac
22293   ac_save_IFS=$IFS
22294   IFS=:
22295   set x $ac_tag
22296   IFS=$ac_save_IFS
22297   shift
22298   ac_file=$1
22299   shift
22300
22301   case $ac_mode in
22302   :L) ac_source=$1;;
22303   :[FH])
22304     ac_file_inputs=
22305     for ac_f
22306     do
22307       case $ac_f in
22308       -) ac_f="$tmp/stdin";;
22309       *) # Look for the file first in the build tree, then in the source tree
22310          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22311          # because $ac_f cannot contain `:'.
22312          test -f "$ac_f" ||
22313            case $ac_f in
22314            [\\/$]*) false;;
22315            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22316            esac ||
22317            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22319    { (exit 1); exit 1; }; };;
22320       esac
22321       ac_file_inputs="$ac_file_inputs $ac_f"
22322     done
22323
22324     # Let's still pretend it is `configure' which instantiates (i.e., don't
22325     # use $as_me), people would be surprised to read:
22326     #    /* config.h.  Generated by config.status.  */
22327     configure_input="Generated from "`IFS=:
22328           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22329     if test x"$ac_file" != x-; then
22330       configure_input="$ac_file.  $configure_input"
22331       { echo "$as_me:$LINENO: creating $ac_file" >&5
22332 echo "$as_me: creating $ac_file" >&6;}
22333     fi
22334
22335     case $ac_tag in
22336     *:-:* | *:-) cat >"$tmp/stdin";;
22337     esac
22338     ;;
22339   esac
22340
22341   ac_dir=`$as_dirname -- "$ac_file" ||
22342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343          X"$ac_file" : 'X\(//\)[^/]' \| \
22344          X"$ac_file" : 'X\(//\)$' \| \
22345          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22346 echo X"$ac_file" |
22347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22348             s//\1/
22349             q
22350           }
22351           /^X\(\/\/\)[^/].*/{
22352             s//\1/
22353             q
22354           }
22355           /^X\(\/\/\)$/{
22356             s//\1/
22357             q
22358           }
22359           /^X\(\/\).*/{
22360             s//\1/
22361             q
22362           }
22363           s/.*/./; q'`
22364   { as_dir="$ac_dir"
22365   case $as_dir in #(
22366   -*) as_dir=./$as_dir;;
22367   esac
22368   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22369     as_dirs=
22370     while :; do
22371       case $as_dir in #(
22372       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22373       *) as_qdir=$as_dir;;
22374       esac
22375       as_dirs="'$as_qdir' $as_dirs"
22376       as_dir=`$as_dirname -- "$as_dir" ||
22377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378          X"$as_dir" : 'X\(//\)[^/]' \| \
22379          X"$as_dir" : 'X\(//\)$' \| \
22380          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22381 echo X"$as_dir" |
22382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383             s//\1/
22384             q
22385           }
22386           /^X\(\/\/\)[^/].*/{
22387             s//\1/
22388             q
22389           }
22390           /^X\(\/\/\)$/{
22391             s//\1/
22392             q
22393           }
22394           /^X\(\/\).*/{
22395             s//\1/
22396             q
22397           }
22398           s/.*/./; q'`
22399       test -d "$as_dir" && break
22400     done
22401     test -z "$as_dirs" || eval "mkdir $as_dirs"
22402   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22404    { (exit 1); exit 1; }; }; }
22405   ac_builddir=.
22406
22407 case "$ac_dir" in
22408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409 *)
22410   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22411   # A ".." for each directory in $ac_dir_suffix.
22412   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22413   case $ac_top_builddir_sub in
22414   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22416   esac ;;
22417 esac
22418 ac_abs_top_builddir=$ac_pwd
22419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22420 # for backward compatibility:
22421 ac_top_builddir=$ac_top_build_prefix
22422
22423 case $srcdir in
22424   .)  # We are building in place.
22425     ac_srcdir=.
22426     ac_top_srcdir=$ac_top_builddir_sub
22427     ac_abs_top_srcdir=$ac_pwd ;;
22428   [\\/]* | ?:[\\/]* )  # Absolute name.
22429     ac_srcdir=$srcdir$ac_dir_suffix;
22430     ac_top_srcdir=$srcdir
22431     ac_abs_top_srcdir=$srcdir ;;
22432   *) # Relative name.
22433     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22434     ac_top_srcdir=$ac_top_build_prefix$srcdir
22435     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22436 esac
22437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22438
22439
22440   case $ac_mode in
22441   :F)
22442   #
22443   # CONFIG_FILE
22444   #
22445
22446   case $INSTALL in
22447   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22448   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22449   esac
22450 _ACEOF
22451
22452 cat >>$CONFIG_STATUS <<\_ACEOF
22453 # If the template does not know about datarootdir, expand it.
22454 # FIXME: This hack should be removed a few years after 2.60.
22455 ac_datarootdir_hack=; ac_datarootdir_seen=
22456
22457 case `sed -n '/datarootdir/ {
22458   p
22459   q
22460 }
22461 /@datadir@/p
22462 /@docdir@/p
22463 /@infodir@/p
22464 /@localedir@/p
22465 /@mandir@/p
22466 ' $ac_file_inputs` in
22467 *datarootdir*) ac_datarootdir_seen=yes;;
22468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22469   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22471 _ACEOF
22472 cat >>$CONFIG_STATUS <<_ACEOF
22473   ac_datarootdir_hack='
22474   s&@datadir@&$datadir&g
22475   s&@docdir@&$docdir&g
22476   s&@infodir@&$infodir&g
22477   s&@localedir@&$localedir&g
22478   s&@mandir@&$mandir&g
22479     s&\\\${datarootdir}&$datarootdir&g' ;;
22480 esac
22481 _ACEOF
22482
22483 # Neutralize VPATH when `$srcdir' = `.'.
22484 # Shell code in configure.ac might set extrasub.
22485 # FIXME: do we really want to maintain this feature?
22486 cat >>$CONFIG_STATUS <<_ACEOF
22487   sed "$ac_vpsub
22488 $extrasub
22489 _ACEOF
22490 cat >>$CONFIG_STATUS <<\_ACEOF
22491 :t
22492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22493 s&@configure_input@&$configure_input&;t t
22494 s&@top_builddir@&$ac_top_builddir_sub&;t t
22495 s&@srcdir@&$ac_srcdir&;t t
22496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22497 s&@top_srcdir@&$ac_top_srcdir&;t t
22498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22499 s&@builddir@&$ac_builddir&;t t
22500 s&@abs_builddir@&$ac_abs_builddir&;t t
22501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22502 s&@INSTALL@&$ac_INSTALL&;t t
22503 $ac_datarootdir_hack
22504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22505
22506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22507   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22508   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22509   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22510 which seems to be undefined.  Please make sure it is defined." >&5
22511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22512 which seems to be undefined.  Please make sure it is defined." >&2;}
22513
22514   rm -f "$tmp/stdin"
22515   case $ac_file in
22516   -) cat "$tmp/out"; rm -f "$tmp/out";;
22517   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22518   esac
22519  ;;
22520   :H)
22521   #
22522   # CONFIG_HEADER
22523   #
22524 _ACEOF
22525
22526 # Transform confdefs.h into a sed script `conftest.defines', that
22527 # substitutes the proper values into config.h.in to produce config.h.
22528 rm -f conftest.defines conftest.tail
22529 # First, append a space to every undef/define line, to ease matching.
22530 echo 's/$/ /' >conftest.defines
22531 # Then, protect against being on the right side of a sed subst, or in
22532 # an unquoted here document, in config.status.  If some macros were
22533 # called several times there might be several #defines for the same
22534 # symbol, which is useless.  But do not sort them, since the last
22535 # AC_DEFINE must be honored.
22536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22539 # PARAMS is the parameter list in the macro definition--in most cases, it's
22540 # just an empty string.
22541 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22542 ac_dB='\\)[      (].*,\\1define\\2'
22543 ac_dC=' '
22544 ac_dD=' ,'
22545
22546 uniq confdefs.h |
22547   sed -n '
22548         t rset
22549         :rset
22550         s/^[     ]*#[    ]*define[       ][      ]*//
22551         t ok
22552         d
22553         :ok
22554         s/[\\&,]/\\&/g
22555         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22556         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22557   ' >>conftest.defines
22558
22559 # Remove the space that was appended to ease matching.
22560 # Then replace #undef with comments.  This is necessary, for
22561 # example, in the case of _POSIX_SOURCE, which is predefined and required
22562 # on some systems where configure will not decide to define it.
22563 # (The regexp can be short, since the line contains either #define or #undef.)
22564 echo 's/ $//
22565 s,^[     #]*u.*,/* & */,' >>conftest.defines
22566
22567 # Break up conftest.defines:
22568 ac_max_sed_lines=50
22569
22570 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22571 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22572 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22573 # et cetera.
22574 ac_in='$ac_file_inputs'
22575 ac_out='"$tmp/out1"'
22576 ac_nxt='"$tmp/out2"'
22577
22578 while :
22579 do
22580   # Write a here document:
22581     cat >>$CONFIG_STATUS <<_ACEOF
22582     # First, check the format of the line:
22583     cat >"\$tmp/defines.sed" <<\\CEOF
22584 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22585 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22586 b
22587 :def
22588 _ACEOF
22589   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22590   echo 'CEOF
22591     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22592   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22593   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22594   grep . conftest.tail >/dev/null || break
22595   rm -f conftest.defines
22596   mv conftest.tail conftest.defines
22597 done
22598 rm -f conftest.defines conftest.tail
22599
22600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22601 cat >>$CONFIG_STATUS <<\_ACEOF
22602   if test x"$ac_file" != x-; then
22603     echo "/* $configure_input  */" >"$tmp/config.h"
22604     cat "$ac_result" >>"$tmp/config.h"
22605     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22606       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22607 echo "$as_me: $ac_file is unchanged" >&6;}
22608     else
22609       rm -f $ac_file
22610       mv "$tmp/config.h" $ac_file
22611     fi
22612   else
22613     echo "/* $configure_input  */"
22614     cat "$ac_result"
22615   fi
22616   rm -f "$tmp/out12"
22617  ;;
22618
22619   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22620 echo "$as_me: executing $ac_file commands" >&6;}
22621  ;;
22622   esac
22623
22624
22625   case $ac_file$ac_mode in
22626     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22627    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22628     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22629    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22630     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22631    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22632     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22633    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22634     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22635    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22636     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22637    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22638     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22639    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22640     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22641    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22642     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22643    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22644     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22645    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22646     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22647    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22648     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22649    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22650     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22651    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22652
22653   esac
22654 done # for ac_tag
22655
22656
22657 { (exit 0); exit 0; }
22658 _ACEOF
22659 chmod +x $CONFIG_STATUS
22660 ac_clean_files=$ac_clean_files_save
22661
22662
22663 # configure is writing to config.log, and then calls config.status.
22664 # config.status does its own redirection, appending to config.log.
22665 # Unfortunately, on DOS this fails, as config.log is still kept open
22666 # by configure, so config.status won't be able to write to it; its
22667 # output is simply discarded.  So we exec the FD to /dev/null,
22668 # effectively closing config.log, so it can be properly (re)opened and
22669 # appended to by config.status.  When coming back to configure, we
22670 # need to make the FD available again.
22671 if test "$no_create" != yes; then
22672   ac_cs_success=:
22673   ac_config_status_args=
22674   test "$silent" = yes &&
22675     ac_config_status_args="$ac_config_status_args --quiet"
22676   exec 5>/dev/null
22677   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22678   exec 5>>config.log
22679   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22680   # would make configure fail if this is the last instruction.
22681   $ac_cs_success || { (exit 1); exit 1; }
22682 fi
22683
22684 #
22685 # CONFIG_SUBDIRS section.
22686 #
22687 if test "$no_recursion" != yes; then
22688
22689   # Remove --cache-file and --srcdir arguments so they do not pile up.
22690   ac_sub_configure_args=
22691   ac_prev=
22692   eval "set x $ac_configure_args"
22693   shift
22694   for ac_arg
22695   do
22696     if test -n "$ac_prev"; then
22697       ac_prev=
22698       continue
22699     fi
22700     case $ac_arg in
22701     -cache-file | --cache-file | --cache-fil | --cache-fi \
22702     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22703       ac_prev=cache_file ;;
22704     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22705     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22706     | --c=*)
22707       ;;
22708     --config-cache | -C)
22709       ;;
22710     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22711       ac_prev=srcdir ;;
22712     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22713       ;;
22714     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22715       ac_prev=prefix ;;
22716     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22717       ;;
22718     *)
22719       case $ac_arg in
22720       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22721       esac
22722       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22723     esac
22724   done
22725
22726   # Always prepend --prefix to ensure using the same prefix
22727   # in subdir configurations.
22728   ac_arg="--prefix=$prefix"
22729   case $ac_arg in
22730   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22731   esac
22732   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22733
22734   ac_popdir=`pwd`
22735   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22736
22737     # Do not complain, so a configure script can configure whichever
22738     # parts of a large source tree are present.
22739     test -d "$srcdir/$ac_dir" || continue
22740
22741     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22742     echo "$as_me:$LINENO: $ac_msg" >&5
22743     echo "$ac_msg" >&6
22744     { as_dir="$ac_dir"
22745   case $as_dir in #(
22746   -*) as_dir=./$as_dir;;
22747   esac
22748   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22749     as_dirs=
22750     while :; do
22751       case $as_dir in #(
22752       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22753       *) as_qdir=$as_dir;;
22754       esac
22755       as_dirs="'$as_qdir' $as_dirs"
22756       as_dir=`$as_dirname -- "$as_dir" ||
22757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758          X"$as_dir" : 'X\(//\)[^/]' \| \
22759          X"$as_dir" : 'X\(//\)$' \| \
22760          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22761 echo X"$as_dir" |
22762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22763             s//\1/
22764             q
22765           }
22766           /^X\(\/\/\)[^/].*/{
22767             s//\1/
22768             q
22769           }
22770           /^X\(\/\/\)$/{
22771             s//\1/
22772             q
22773           }
22774           /^X\(\/\).*/{
22775             s//\1/
22776             q
22777           }
22778           s/.*/./; q'`
22779       test -d "$as_dir" && break
22780     done
22781     test -z "$as_dirs" || eval "mkdir $as_dirs"
22782   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22783 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22784    { (exit 1); exit 1; }; }; }
22785     ac_builddir=.
22786
22787 case "$ac_dir" in
22788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789 *)
22790   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22791   # A ".." for each directory in $ac_dir_suffix.
22792   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22793   case $ac_top_builddir_sub in
22794   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22795   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22796   esac ;;
22797 esac
22798 ac_abs_top_builddir=$ac_pwd
22799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22800 # for backward compatibility:
22801 ac_top_builddir=$ac_top_build_prefix
22802
22803 case $srcdir in
22804   .)  # We are building in place.
22805     ac_srcdir=.
22806     ac_top_srcdir=$ac_top_builddir_sub
22807     ac_abs_top_srcdir=$ac_pwd ;;
22808   [\\/]* | ?:[\\/]* )  # Absolute name.
22809     ac_srcdir=$srcdir$ac_dir_suffix;
22810     ac_top_srcdir=$srcdir
22811     ac_abs_top_srcdir=$srcdir ;;
22812   *) # Relative name.
22813     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22814     ac_top_srcdir=$ac_top_build_prefix$srcdir
22815     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22816 esac
22817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22818
22819
22820     cd "$ac_dir"
22821
22822     # Check for guested configure; otherwise get Cygnus style configure.
22823     if test -f "$ac_srcdir/configure.gnu"; then
22824       ac_sub_configure=$ac_srcdir/configure.gnu
22825     elif test -f "$ac_srcdir/configure"; then
22826       ac_sub_configure=$ac_srcdir/configure
22827     elif test -f "$ac_srcdir/configure.in"; then
22828       # This should be Cygnus configure.
22829       ac_sub_configure=$ac_aux_dir/configure
22830     else
22831       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22832 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22833       ac_sub_configure=
22834     fi
22835
22836     # The recursion is here.
22837     if test -n "$ac_sub_configure"; then
22838       # Make the cache file name correct relative to the subdirectory.
22839       case $cache_file in
22840       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22841       *) # Relative name.
22842         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22843       esac
22844
22845       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22846 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22847       # The eval makes quoting arguments work.
22848       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22849            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22850         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22851 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22852    { (exit 1); exit 1; }; }
22853     fi
22854
22855     cd "$ac_popdir"
22856   done
22857 fi
22858